addadee9553156863be72cfbd808857b661983c1
[gnulib.git] / ChangeLog
1 2013-03-11  Eric Blake  <eblake@redhat.com>
2
3         regex: port to mingw's recent addition of undeclared alarm
4         * doc/posix-functions/alarm.texi (alarm): Document that alarm
5         exists but still doesn't work in newer mingw.
6         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
7         not existence.  Ensure SIGALRM is not trapped.
8         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
9         * m4/regex.m4 (gl_REGEX): Likewise.
10         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
11         * tests/test-regex.c (main): Use correct probe for alarm.
12
13         putenv: avoid compilation warning on mingw
14         * lib/putenv.c (_unsetenv): Protect variable declaration.
15         (putenv): Fix indentation.
16
17 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
18
19         unistd: don't prevent Tru64 Unix from using gnulib strtod.
20         * lib/unistd.in.h: be careful not to include un-needed system
21         stdlib.h from here, because that prevents gnulib stdlib.h from
22         defining rpl_strtod correctly.
23
24 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
25
26         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
27         changesets, but for the 'precision 0' test.
28         * tests/test-vasprintf-posix.c (test_function): Don't insist on
29         round-to-even, since POSIX says rounding is implementation-defined
30         and OS X 10.8.2 rounds 1.51 to 1 here.
31
32         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
33         changeset.
34         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35         round-to-even, since POSIX says rounding is implementation-defined
36         and OS X 10.8.2 rounds 1.5 to 1 here.
37
38 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
39
40         vasnprintf-posix-tests: allow rounding 1.5 to 1
41         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
42         round-to-even, since POSIX says rounding is implementation-defined
43         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
44         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00019.html>.
45
46         bootstrap: port to FreeBSD
47         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
48         that treat '--' differently.  Reported by Mats Erik Andersson in
49         <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00012.html>.
50
51 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
52
53         regex: rename remaining __attribute calls to __attribute__.
54         2012-02-25 changed definition of __attribute, but left some uses
55         unchanged, preventing compilation of regex module on most non-gcc
56         environments.
57         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
58         (lookup_collation_sequence_value, build_range_exp)
59         (build_collating_symbol): Set attributes with newly renamed
60         __attribute__ decorator.
61         * lib/regex_internal.c (re_string_peek_byte_case)
62         (re_node_set_compare, re_node_set_contains): Likewise.
63         * lib/regexec.c (acquire_init_state_context): Likewise.
64
65 2013-03-06  Bruno Haible  <bruno@clisp.org>
66
67         execute: Revert last change, but use a different condition.
68         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
69         on Windows.
70
71 2013-03-05  Eric Blake  <eblake@redhat.com>
72
73         execute: drop dead code
74         * lib/execute.c (nonintr_close, nonintr_open): Delete.
75
76 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
77
78         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
79         * m4/non-recursive-gnulib-prefix-hack.m4
80         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
81         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
82         <http://bugs.gnu.org/10305#237>.
83
84 2013-03-04  Eric Blake  <eblake@redhat.com>
85
86         test-getsockopt: avoid compiler warning
87         * tests/test-getsockopt.c (includes): Ensure close is declared.
88
89 2013-03-02  Bruno Haible  <bruno@clisp.org>
90
91         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
92         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
93
94 2013-03-02  Bruno Haible  <bruno@clisp.org>
95
96         gettext: Update to version 0.18.2.
97         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
98         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
99                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
100
101 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
102
103         regex: merge patches from libc
104
105         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
106         * lib/regex_internal.h (__attribute__): Rename from __attribute.
107         All uses changed.
108         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
109         (re_string_wchar_at, re_string_elem_size_at):
110         Mark function as possibly unused.
111
112         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
113         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
114         elements compare against the byte sequence of it, not its name.
115
116 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
117
118         putenv: port better to native Windows
119         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
120         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
121         (_unsetenv): Use _putenv if available.
122         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
123         a bit less likely to cause damage.
124         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
125         Fix the wrong value with SetEnvironmentVariable.
126         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
127         code better.
128
129 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
130
131         regex: ignore old-style-definition warnings
132         * lib/regex.c: Add pragma to ignore these warnings.
133         Problem reported for GNU tar by Pavel Raiskup.
134
135 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
136
137         getcwd: support coreutils better
138         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
139         but this might not be correct in coreutils, which disables
140         the raw decl checks.  Problem reported by Nagendra in
141         <http://bugs.gnu.org/10305#192>.
142         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
143         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
144         Test the getcwd function, not any macro, since getcwd.c wants the
145         function.
146         * m4/getcwd.m4 (gl_FUNC_GETCWD):
147         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
148         compile, as might happen if there's a macro but no function.
149
150         strtod: support coreutils better
151         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
152         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
153         disables the raw decl checks.  This assumes there is an underlying
154         strtod, but that's a safe assumption these days.
155         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
156
157         mountlist: port to HP NonStop
158         Reported by Joachim Schmitz in
159         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
160         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
161         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
162
163 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
164
165         extern-inline: avoid compilation error with HP-UX cc
166         Reported by Richard Lloyd in
167         <http://lists.gnu.org/archive/html/bug-texinfo/2013-02/msg00030.html>.
168         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
169         Suppress extern inline with HP-UX cc.  This should be safe,
170         though it may hurt performance.  Perhaps someone with some HP-UX
171         experience can come up with a higher-performance fix.
172
173 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
174
175         putenv: fix heap corruption with mixed putenv/_putenv
176         Problem reported by Michael Goffioul in
177         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00061.html>.
178         * lib/putenv.c (putenv) [HAVE__PUTENV]:
179         Rely on _putenv to allocate the new environment.
180         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
181         * modules/putenv (configure.ac): Use it.
182
183 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
184
185         unsetenv etc.: port to Solaris 11 + GNU Emacs
186         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
187         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
188         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
189         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
190         idea but is too painful to fix right now), and without this gnulib
191         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
192         compiling unsetenv.c on Solaris 11.  Fix the problem for
193         unsetenv.c, and fix other similar occurrences.
194
195 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
196
197         secure_getenv: fix C++ declaration typo
198         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
199         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
200         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00057.html>.
201
202 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
203
204         careadlinkat: stop exporting careadlinkatcwd
205         Only Emacs used it directly, and Emacs no longer needs it.
206         * NEWS: Document this simplification.
207         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
208         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
209         for readlink.
210         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
211         Don't include stdlib.h; no longer needed.
212         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
213         * lib/relocwrapper.c: Adjust comment to match new dependencies.
214         * modules/areadlink (Depends-on): Add readlink.
215         (Maintainer): Add self.
216         * modules/careadlinkat (Depends-on): Remove readlink.
217
218         extensions: port better to HP-UX
219         This is merged from git Autoconf.
220         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
221         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
222         so that it's compatible with the value used when compiling.
223
224         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
225         Problem reported by Mats Erik Andersson in
226         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00051.html>.
227         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
228         openpty function exists, not merely when we intend to replace it.
229         This corrects the 2013-01-31 patch, which mistakenly defined
230         HAVE_OPENPTY even on hosts that lacked it.
231
232 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
233
234         secure_getenv: fix include typo
235         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
236
237         secure_getenv: port better to FreeBSD and Solaris
238         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
239         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
240         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
241         This works better on BSDish platforms.
242         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
243         Test for issetugid if __secure_getenv is missing.
244
245 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
246
247         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
248         Some of these changes are merged in from git Autoconf.
249         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
250         When deciding whether to define _XOPEN_SOURCE, inspect the
251         preprocessor macro __hpux instead of the more-heavyweight
252         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
253         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
254         as the key for __EXTENSIONS__.
255
256         unistd: avoid namespace pollution on non-glibc systems
257         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
258         This avoids namespace pollution on non-glibc systems, by causing
259         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
260         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
261         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00027.html>.
262
263 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
264
265         tmpdir: use secure_getenv
266         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
267         Define to secure_getenv, not getenv.
268         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
269         as that's now secure_getenv's job.
270         * modules/tmpdir (Depends-on): Add secure_getenv.
271
272         tempname: use secure_getenv
273         * lib/tempname.c (__secure_getenv) [!_LIBC]:
274         Define to secure_getenv, not getenv.
275         * modules/tempname (Depends-on):
276         Add secure_getenv.
277
278         secure_getenv: new module
279         * MODULES.html.sh (Extra functions based on ANSI C 89):
280         Add secure_getenv.
281         * doc/glibc-functions/secure_getenv.texi: New file.
282         * doc/gnulib.texi: Include it.
283         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
284         New files.
285         * lib/stdlib.in.h (secure_getenv): New decl.
286         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
287         * modules/stdlib (stdlib.h):
288         Add secure_getenv checks.
289
290 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
291
292         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
293         Reported for OS X 10.8.2 by Assaf Gordon in
294         <http://bugs.gnu.org/13516>.
295         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
296         !HAVE_OPENAT && !HAVE_FDOPENDIR.
297         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
298         so that they can be kept in sync more easily.  Avoid PATH_MAX
299         test on the Hurd.  Sync from test-getcwd.c for errno tests after
300         mkdir or chdir failure.
301         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
302         lib/getcwd.c.
303         (test_abort_bug): Do not test for the deep directory bug unless we
304         have openat support.  Avoid PATH_MAX test on the Hurd.
305
306         regex-tests, regex: fix bug: memset undeclared
307         * tests/test-regex.c: Don't include regex.h twice.  Include
308         string.h, to declare memset.  Christensen's report also mentioned
309         this issue.
310         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
311         test-regex.c, to avoid future problems like this.  Remove
312         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
313         twice.
314
315         regex-tests: fix link errors on older Solaris
316         These need to link with @LIBINTL@ to get libintl_gettext.
317         Problem reported by Tom G. Christensen in
318         <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00003.html>.
319         * modules/regex-tests (test_regex_LDADD): New macro.
320
321 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
322
323         regex-tests: new module
324         * modules/regex-tests, tests/test-regex.c: New files.
325
326         regex: fix off-by-one error in configure test
327         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
328
329 2013-01-31  Eric Blake  <eblake@redhat.com>
330
331         regex: avoid infinite configure test
332         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
333
334 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
335
336         openpty: fix bug where HAVE_OPENPTY wasn't defined
337         See the thread starting at:
338         http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00185.html
339         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
340         openpty function exists, not merely when we intend to replace it.
341
342 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
343
344         sys_time: port to Solaris 2.6
345         There is a circularity problem on Solaris 2.6, where <time.h> includes
346         <sys/time.h> for struct timespec.  The include nesting is gnulib
347         <time.h>, system <time.h>, gnulib <sys/time.h>, system
348         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
349         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
350         <sys/siginfo.h>; the last, innermost file needs struct
351         timestruc_t, which is defined in <sys/time.h>, which has not been
352         fully parsed.  Problem reported by Tom G. Christensen in
353         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00113.html>.
354         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
355         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
356         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
357         uses split double-inclusion guards.
358
359 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
360
361         regex: test for buffer overrun
362         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
363         for the just-fixed regex bug.
364
365 2013-01-29  Andreas Schwab  <schwab@suse.de>
366
367         regex: fix buffer overrun in regexp matcher [BZ #15078]
368         * lib/regexec.c (extend_buffers): Add parameter min_len.
369         (check_matching): Pass minimum needed length.
370         (clean_state_log_if_needed): Likewise.
371         (get_subexp): Likewise.
372
373 2013-01-28  Pádraig Brady  <P@draigBrady.com>
374
375         mountlist: don't consider "devtmpfs" as dummy
376         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
377         as there is storage associcated with it.
378
379 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
380
381         futimens-tests, utimens-tests: Depend on gettext.
382         This works around a problem introduced in my 2013-01-12 patch,
383         which added @LIBINTL@ to these modules.
384         * modules/futimens-tests (Depends-on):
385         * modules/utimens-tests (Depends-on): Add gettext.
386
387 2013-01-26  Eric Blake  <eblake@redhat.com>
388
389         test-getpeername: fix typo
390         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
391
392 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
393
394         bootstrap: remove the need for a sorted .gitignore file
395         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
396         rename to insert_if_absent(), so that we don't need or generate
397         a sorted .gitignore file.  We do require a .gitignore with no
398         existing duplicate entries and enforce that.
399         (sort_patterns): Remove this function as we now use the simpler
400         technigue of inserting blacklist entries at the top of the file,
401         assuming gnulib won't be inserting !whitelist entries.
402
403 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
404
405         readlinkat: don't depend on gl_FUNC_OPENAT
406         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
407         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
408         renameat.m4, symlinkat.m4; but one thing at a time.
409
410         statat: new module, split out from fstatat
411         GNU Emacs needs the POSIX-specified fstatat, but not the
412         gnulib-specified statat and lstat.  Split the latter two into a
413         new module 'statat'.
414         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
415         * lib/openat.h, lib/statat.c (STATAT_INLINE):
416         Rename from FSTATAT_INLINE. All uses changed.
417         * modules/fstatat (Files): Remove lib/statat.c.
418         (gl_MODULE_INDICATOR([fstatat])): Remove.
419         (lib_SOURCES): Remove.
420         (Maintainer): Add self.
421         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
422         * tests/test-fstatat.c (BASE): Don't define if already defined.
423         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
424
425 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
426
427         tests: don't assume fd 99 is closed
428         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
429         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
430         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
431         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
432         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
433         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
434         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
435         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
436         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
437         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
438         * tests/test-fwrite.c, tests/test-getpeername.c:
439         * tests/test-getsockname.c, tests/test-getsockopt.c:
440         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
441         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
442         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
443         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
444         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
445         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
446         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
447         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
448         * tests/test-unlinkat.c, tests/test-unlockpt.c:
449         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
450         Close file descriptor 99, instead of assuming it's already closed.
451
452 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
453
454         stpncpy: port to OS X 10.8
455         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
456         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
457
458 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
459
460         unistd: port to recent mingw
461         * lib/unistd.in.h: Remove special invocation convention for mingw,
462         which breaks for the latest mingw version.  See John W. Eaton in
463         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00100.html>.
464
465         largefile: port better to Mac OS X 10.5
466         This patch is backported from Autoconf git.
467         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
468         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
469         with ino_t size being different for configuration time versus
470         build/run time.  Problem reported by PHO in
471         <http://lists.gnu.org/archive/html/bug-autoconf/2013-01/msg00040.html>.
472
473 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
474
475         doc: clarify -Werror
476         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
477         clarify that it's intended for developers, not for ordinary builds,
478         and mention --enable-gcc-warnings as one possible use.
479
480 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
481
482         stdint: fix build with Android's Bionic fox x86
483         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
484         was already included as _SSIZE_T_DEFINED_ might also be defined
485         in include/machine/_types.h, which is included by stdio.h
486
487 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
488
489         net_if-tests: port to Solaris 7 + GCC 3.4.6
490         Problem reported by Tom G. Christensen in
491         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00091.html>.
492         * tests/test-net_if.c (ni): Move to next the code that uses it,
493         so that it's declared only if needed.
494
495 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
496
497         net_if-tests: port to older Solaris
498         Problem reported by Tom G. Christensen in
499         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
500         * modules/net_if-tests (NET_IF_LIB): New substitution.
501         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
502         (HAVE_IF_NAMEINDEX): New C macro.
503         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
504
505         system-quote-tests: port to older Solaris
506         Problem reported by Tom G. Christensen in
507         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
508         * tests/test-system-quote-child.c (fopen, fread): Undef.
509
510         c-xvasprintf etc.: fix link errors on older Solaris
511         These need to link with @LIBINTL@ to get libintl_gettext.
512         Problem reported by Tom G. Christensen in
513         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00086.html>.
514         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
515         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
516         * modules/futimens-tests (test_futimens_LDADD):
517         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
518
519 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
520
521         locale: port to Solaris 2.6 and 7 + GNU gettext
522         * lib/locale.in.h: Just include_next <locale.h> when
523         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
524         when combining the localename module with GNU gettext 0.18.2.
525         Problem reported by Tom G. Christensen in
526         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00084.html>.
527
528 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
529
530         stdlib: port to Solaris 2.6
531         Also, the code worked on Solaris 7 through 9 only by accident.
532         Problem reported by Tom G. Christensen in
533         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00059.html>.
534         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
535         simply include the system stdlib.h.
536         * lib/getopt.in.h (__need_system_stdlib_h):
537         * lib/pthread.in.h (__need_system_stdlib_h):
538         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
539         Define when including <stdlib.h>, to avoid problems at least for
540         the pthread case on Solaris 2.6 and 7.  These .h files can get by
541         with the system stdlib.h.
542
543 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
544
545         doc: update main copyright year
546         * doc/gnulib.texi: Update copyright date.
547
548         doc: improve ISO 8601 discussion
549         * doc/parse-datetime.texi (Combined date and time of day items):
550         Specify more carefully what formats are supported and what is
551         done with excess precision.
552
553 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
554
555         doc: avoid small caps
556         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
557         they're more trouble than they're worth.  Suggested by Karl Berry
558         in <http://bugs.gnu.org/13360>.
559
560         regex: conform to strict C
561         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
562         From Aharon Robbins.
563
564         gnulib-tool: fix incompatibility with autopoint 0.18.2
565         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
566         Problem reported by Tom G. Christensen in
567         <http://lists.gnu.org/archive/html/bug-gnulib/2013-01/msg00053.html>.
568
569 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
570
571         fprintftime: bring back and reword fwrite comment
572         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
573
574         stdio: remove now-unnecessary stdio.c
575         Since stdio.in.h no longer uses inline functions, we no longer
576         need to compile the extern versions.
577         * lib/stdio.c: Remove.
578         * modules/stdio (Files): Remove lib/stdio.c.
579         (lib_SOURCES): Remove.
580
581         unicodeio: depend on stdio, not ignore-value
582         * lib/unicodeio.c: Do not include ignore-value.h.
583         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
584         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
585
586         fprintftime: depend on stdio, not ignore-value
587         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
588         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
589         since the stdio module arranges to silence that warning now.
590         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
591
592 2012-10-04  Simon Josefsson  <simon@josefsson.org>
593
594         stdint-tests: Fix expanded-before-required-warning.
595         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
596
597 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
598
599         fwrite: silence __wur only for older glibc versions
600         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
601         This will help us remove this workaround some time in the far future.
602
603 2013-01-03  Eric Blake  <eblake@redhat.com>
604
605         fwrite: silence __wur without using inline
606         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
607         just gcc, and in a way that avoids inline issues.
608         * modules/stdio (Depends-on): Drop extern-inline.
609
610 2013-01-03  Jim Meyering  <jim@meyering.net>
611
612         update-copyright: avoid copyright notice date corruption
613         Given a sequence of copyright year numbers in which the final
614         one was a two-digit number that happened to be a substring of
615         a preceding four-digit year number, we would mistakenly update
616         the substring (from two- to four-digit) rather than the two-digit
617         number at the end, which, combined with the addition of the current
618         4-digit year number would yield two 5-digit year numbers, e.g.,
619         here, it would convert the first "99" to "1999, 2013" rather than
620         the final one:
621           1991, 99
622           11999, 20131, 1999
623         * build-aux/update-copyright: Tighten a regexp.
624         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
625         Reported by Joseph Myers in
626         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
627
628 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
629
630         regex: omit needless signed-pointer casts
631         * lib/regcomp.c (build_charclass, build_charclass_op):
632         Use char *, not unsigned char *, for class name and extra.
633         The char values are always nonnegative so there's no need to
634         insist on unsigned char * here, and using char * removes the need
635         for casts.  Reported by Aharon Robbins in
636         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
637
638         regex: support Gawk, which never uses alloca
639         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
640         Do not include in this case.  Gawk doesn't supply a substitute
641         alloca.h and doesn't need one.
642
643         regex: port __libc_lock_define usage to C89
644         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
645         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
646         does not conform to C89, as it has an empty macro argument.
647         Reported by Aharon Robbins in
648         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
649
650 2013-01-01  Eric Blake  <eblake@redhat.com>
651
652         maint: update all copyright year number ranges
653         Run "make update-copyright".
654
655         version-etc: bump copyright year reported in --version
656         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
657
658 2012-12-31  Eric Blake  <eblake@redhat.com>
659
660         sigprocmask-tests: skip test if pid is unexpectedly large
661         * tests/test-sigprocmask.c (main): Add range check.
662
663         git-version-gen: avoid test -z portability glitch
664         * build-aux/git-version-gen: Prefer portable test spelling, since
665         git-version-gen is run on more than just developer machines.
666
667 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
668
669         git-version-gen: add --fallback option to use if git is not present
670         * build-aux/git-version-gen: Add support for the new option --fallback,
671         which comes into play when there is no $tarball_version_file and
672         git is not working.
673         (scriptversion): Update.
674
675         maint.mk: handle missing git with more grace
676         * top/maint.mk (no-submodule-changes, public-submodule-commit):
677         Quietly proceed if git is not present.
678
679 2012-12-31  Eric Blake  <eblake@redhat.com>
680
681         dup2: work around cygwin bug
682         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
683         * lib/dup2.c (rpl_dup2): Work around it.
684         * doc/posix-functions/dup2.texi (dup2): Document it.
685
686 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
687
688         regex: remove unnecessary dependency on localcharset.h
689         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
690         hasn't been needed for years.
691         * modules/regex (Depends-on): Remove localcharset.
692
693         regex: revert single-byte change
694         * lib/regexec.c (check_node_accept_bytes): Revert previous change
695         to this function.  This was alredy fixed in a different way, at
696         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
697         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
698         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
699
700         regex: simplify based on Gawk version
701         * lib/regex_internal.c (re_dfa_add_node): Simplify.
702         Reported by Aharon Robbins in
703         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
704
705 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
706
707         regex: check that pattern char is single-byte
708         Reported by Aharon Robbins in
709         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
710         * lib/regexec.c (check_node_accept_bytes):
711         Return 0 if the pattern string has a multibyte character here.
712
713         regex: implement rational ranges
714         Reported by Aharon Robbins in
715         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
716         * lib/regcomp.c (build_range_exp) [!_LIBC]:
717         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
718         Implement rational ranges.
719
720         regex: avoid redefining __wctype
721         Reported by Aharon Robbins in
722         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
723         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
724         #undef before defining.
725
726         regex: port to hosts where malloc (0) == NULL
727         Reported by Aharon Robbins in
728         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
729         * lib/regex_internal.c (re_node_set_alloc):
730         Don't assume that malloc (0) yields nonnull.
731         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
732         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
733         * modules/regex (Files): Add m4/eealloc.m4.
734
735         regex: port to C89
736         Reported by Aharon Robbins in
737         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
738         * lib/regcomp.c (init_word_char): Declaration before statement.
739
740         regex: merge glibc changes
741         Also, copy the license wording from glibc.  This simplifies
742         merging changes.  gnulib-tool will change the wording to GPL as
743         appropriate, when importing it to other packages.  The only
744         glibc change made since the last merge, which needs merging, is:
745         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
746         * lib/regex_internal.h (gettext): Remove use of INTUSE.
747
748         * users.txt: Add Emacs.
749
750         doc: omit mention of version when not needed
751         * doc/gnulib-intro.texi (Portability and Application Code):
752         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
753         Don't mention particular dates or versions when not necessary, so
754         that the documentation won't go out of date so quickly.
755
756         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
757
758 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
759
760         bootstrap: pass --force to autoreconf.
761         * build-aux/bootstrap (AUTORECONFFLAGS): New.
762         Add "--force" so that Automake's ylwrap and other such tools
763         be updated at each bootstrap invocation.
764         Use it.
765
766 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
767
768         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
769         The earlier patch forgot to update one of the #if conditions, causing
770         a problem on Debian testing i386 reported by Mats Erik Andersson
771         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00124.html>.
772         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
773         (__argp_fmtstream_puts, argp_fmtstream_puts)
774         (__argp_fmtstream_write, argp_fmtstream_write)
775         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
776
777         * doc/gnulib-readme.texi: Minor fixups.
778         (Portability guidelines): Modernize URLs.  Remove some repetition.
779         (Indent with spaces not TABs): Reword to avoid too-long lines.
780         Remove some '@ifset standalone' stuff that isn't used.
781
782         * doc/gnulib-readme.texi (Portability guidelines):
783         ctype.h, not ctime.h.
784
785         Correct name of POSIX.1-2001.
786         * doc/posix-functions/fgetc.texi (fgetc):
787         * doc/posix-functions/fgets.texi (fgets):
788         * doc/posix-functions/fread.texi (fread):
789         * doc/posix-functions/fscanf.texi (fscanf):
790         * doc/posix-functions/getc.texi (getc):
791         * doc/posix-functions/getchar.texi (getchar):
792         * doc/posix-functions/scanf.texi (scanf):
793         POSIX.1-2001, not POSIX-2001.
794
795         doc: move README into manual
796         * README: Move contents to new file doc/gnulib-readme.texi.
797         Replace with a one-line summary.
798         * doc/gnulib.texi (Brief Overview): New section,
799         with old intro preface.  Include gnulib-readme.texi for contents.
800         (Philosophy): Rename from "Introduction", since this
801         section no longer introduces the rest.  Write a new preface.
802         * doc/gnulib-readme.texi: New file, with the old contents of
803         README texinfo-ized.  This way, the README info appears
804         in the online and printed manual.
805
806 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
807
808         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
809         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
810         c_vasprintf() prototype.
811
812 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
813
814         c-vasprintf: Fix "empty declaration" warning reported by GCC.
815         * lib/c-vasprintf.h: Remove stray semicolon.
816
817 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
818
819         gettext: avoid obsolete macro AM_PROG_MKDIR_P
820         It is obsolete and is planned to be removed from Automake 1.14; see
821         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
822         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
823         (installdirs-data, installdirs-data-yes):
824         Use $(MKDIR_P), not $(mkdir_p).
825         * m4/intl.m4 (AM_INTL_SUBDIR):
826         * m4/po.m4 (AM_PO_SUBDIRS):
827         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
828
829 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
830
831         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
832         On this platform, we are not optimizing but we are using
833         the substitute for extern inlines, so compile as if
834         C99-style extern inline, or a substitute, is available.
835         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
836         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
837         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
838         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
839         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
840         Declare as ARGP_FS_EI, not as extern.
841         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
842         (__option_is_short, _option_is_end, __option_is_end)
843         [!_LIBC && __USE_EXTERN_INLINES]:
844         Declare as ARGP_EI, not as extern.
845
846 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
847
848         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
849         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
850         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
851         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
852         ...), as the latter is fatal with older Autoconfs.
853         Problem reported and fix suggested by Eric Blake in thread starting at
854         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
855
856 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
857
858         AC_PROG_MKDIR_P: don't workaround if not buggy
859         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
860         Define only for Autoconf versions before 2.62.
861         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
862         undocumented m4_PACKAGE_VERSION, for consistency with the
863         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
864         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
865         was introduced in 2.62.
866
867 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
868
869         New 'c-*printf' modules for formatted output in C locale.
870
871         New module 'c-vasnprintf'.
872         * modules/c-vasnprintf: New file.
873         * lib/c-vasnprintf.c: New file.
874         * lib/c-vasnprintf.h: New file.
875
876         New module 'c-snprintf'.
877         * modules/c-snprintf: New file.
878         * modules/c-snprintf-tests: New file.
879         * lib/c-snprintf.c: New file.
880         * lib/c-snprintf.h: New file.
881         * tests/test-c-snprintf.c: New file.
882         * tests/test-c-snprintf.sh: New file.
883
884         New module 'c-vsnprintf'.
885         * modules/c-vsnprintf: New file.
886         * modules/c-vsnprintf-tests: New file.
887         * lib/c-vsnprintf.c: New file.
888         * lib/c-vsnprintf.h: New file.
889         * tests/test-c-vsnprintf.c: New file.
890         * tests/test-c-vsnprintf.sh: New file.
891
892         New module 'c-vasprintf'.
893         * modules/c-vasprintf: New file.
894         * modules/c-vasprintf-tests: New file.
895         * lib/c-asprintf.c: New file.
896         * lib/c-vasprintf.c: New file.
897         * lib/c-vasprintf.h: New file.
898         * tests/test-c-vasprintf.c  +: New file.
899         * tests/test-c-vasprintf.sh: New file.
900
901         New module 'c-xvasprintf'.
902         * modules/c-xvasprintf: New file.
903         * modules/c-xvasprintf-tests: New file.
904         * lib/c-xasprintf.c: New file.
905         * lib/c-xvasprintf.c: New file.
906         * lib/c-xvasprintf.h: New file.
907         * tests/test-c-xvasprintf.c: New file.
908         * tests/test-c-xvasprintf.sh: New file.
909
910 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
911
912         argp: better 'inline'
913         Use extern-inline module to declare extern inline functions.
914         This avoids some bogus warning diagnostics.  Problem discovered
915         when modifying GNU tar to use the manywarnings module.
916         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
917         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
918         Define based on extern-inline.
919         * modules/argp (Depends-on): Add extern-inline.
920
921 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
922
923         filemode, sys_stat: Handle MPX files a la AIX.
924         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
925         * lib/sys_stat.in.h (S_ISMPX): New macro.
926         * tests/test-sys_stat.c: Add tests for MPX files.
927
928 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
929
930         x-to-1: honor $PERL
931         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
932         a chance to use his preferred version of Perl.  This is typically
933         required by Darwin users whose default /usr/bin/perl does not have all
934         the libraries required by help2man, and who need to use their MacPorts
935         installation of Perl instead.
936
937 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
938
939         gnu-web-doc-update: add all the new files, even in new directories
940         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
941         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
942         Use it.
943         (main): Don't use cvsutils to get the list of unknown files,
944         just add all the existing files and directories.
945
946 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
947
948         gnu-web-doc-update: improve --help
949         * build-aux/gnu-web-doc-update: Move comments into --help.
950
951 2012-12-07  Eric Wong  <normalperson@yhbt.net>
952
953         mountlist: recognize more "dummy" file systems
954         * lib/mountlist.c (ME_DUMMY_0):
955         Add these dummy FS names to the list:
956         - "debugfs" virtual filesystem for kernel debugging
957         - "devpts" PTY slave filesystem
958         - "devtmpfs" device filesystem on top of tmpfs/ramfs
959         - "fusectl" control filesystem for FUSE
960         - "mqueue" enumerates POSIX message queues
961         - "rpc_pipefs" kernel <-> userspace bridge for NFS
962         - "sysfs" is for exporting kernel objects
963         - "devfs" device filesystem for Linux 2.4 and FreeBSD
964
965 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
966
967         extern-inline: avoid incompatibility with Darwin Libc
968         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
969         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
970         Problem reported by Akim Demaille in
971         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
972
973 2012-12-11  Simon Josefsson  <simon@josefsson.org>
974
975         gnupload: Work with GnuPG using gpg-agent (for smartcards).
976         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
977         let it handle password prompting.
978
979 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
980
981         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
982         * lib/canonicalize.c (canonicalize_filename_mode):
983         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
984         fetching the current directory.  Don't overrun the beginning of
985         rpath if there's no slashes after the MS-Windows drive letter.
986
987 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
988
989         maint.mk: avoid extra forks
990         * top/maint.mk (_cfg_mk): The GNU make manual documents that
991         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
992         So use that instead of "$(shell test -f FILE && echo FILE)".
993
994 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
995
996         vasnprintf: fix ASCII_ONLY typo
997         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
998         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
999         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
1000         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
1001         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
1002
1003 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1004
1005         list, oset, xlist, xoset: fix extern inline issue with C99
1006         This was introduced by my recent changes for 'inline'.
1007         Problem reported for gettext by Daiki Ueno in
1008         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
1009         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
1010         (gl_list_nx_create, gl_list_size, gl_list_node_value)
1011         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
1012         (gl_list_previous_node, gl_list_get_at)
1013         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
1014         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
1015         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
1016         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
1017         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
1018         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
1019         (gl_list_iterator_free, gl_sortedlist_search)
1020         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
1021         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
1022         (gl_sortedlist_remove):
1023         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
1024         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
1025         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
1026         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
1027         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
1028         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
1029         (gl_list_add_at, gl_sortedlist_add):
1030         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
1031         Wrap these extern decls inside "#if 0", because they are implemented
1032         as inline functions, and extern inline is not what's wanted here.
1033         It would simplify these .h files to remove the extern decls entirely,
1034         although a downside would be less-clear separation between
1035         specification and implementation.
1036
1037 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
1038
1039         sys_stat: no 'static inline'
1040         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
1041         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
1042
1043         extern-inline: no 'static inline'
1044         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
1045         Do not require AC_C_INLINE.
1046         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
1047         'static inline', for older compilers.
1048
1049         snippet/warn-on-use: no 'static inline'
1050         * build-aux/snippet/warn-on-use.h:
1051         Remove unnecessary 'inline' in comment.
1052
1053         rbtree-list, rbtreehash-list: no 'static inline'
1054         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
1055         * lib/gl_anytree_list2.h (node_at):
1056         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
1057         (gl_oset_first, add_nodes_to_buckets):
1058         Now static, not static inline.
1059
1060         regex: no 'static inline'
1061         * lib/regex_internal.c (calc_state_hash):
1062         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
1063         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
1064         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
1065         Now static, not static inline.
1066         (inline) [__GNUC__ < 3 && _LIBC]:
1067         Remove macro; no longer needed.
1068
1069         xvasprintf: no 'static inline'
1070         * lib/xvasprintf.c (xstrcat):
1071         Now static, not static inline.
1072         * m4/xvasprintf.m4 (gl_XVASPRINTF):
1073         Do not require AC_C_INLINE.
1074
1075         parse-datetime, parse-duration: no 'static inline'
1076         * lib/parse-datetime.y (to_uchar):
1077         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
1078         (scale_n_add):
1079         Now static, not static inline.
1080         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
1081         * modules/parse-duration (configure.ac):
1082         Do not require AC_C_INLINE.
1083
1084         getaddrinfo: no 'static inline'
1085         * lib/getaddrinfo.c (validate_family):
1086         Now static, not static inline.
1087         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
1088         Do not require AC_C_INLINE.
1089
1090         ftruncate, fts, lstat, openat, raise: no 'static inline'
1091         * lib/ftruncate.c (chsize_nothrow):
1092         * lib/fts.c (opendirat, diropen):
1093         * lib/lstat.c (orig_lstat):
1094         * lib/openat.c (orig_openat):
1095         * lib/raise.c (raise_nothrow):
1096         Now static, not static inline.
1097         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
1098         * m4/fts.m4 (gl_FUNC_FTS_CORE):
1099         * m4/lstat.m4 (gl_PREREQ_LSTAT):
1100         * m4/openat.m4 (gl_PREREQ_OPENAT):
1101         * m4/raise.m4 (gl_PREREQ_RAISE):
1102         Do not require AC_C_INLINE.
1103
1104         fflush, stat: no 'static inline'
1105         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
1106         (clear_ungetc_buffer, disable_seek_optimization)
1107         (restore_seek_optimization, update_fpos_cache):
1108         * lib/stat.c (orig_stat):
1109         Now static, not static inline.
1110         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
1111         (update_fpos_cache):
1112         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
1113         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
1114         * m4/stat.m4 (gl_PREREQ_STAT):
1115         Do not require AC_C_INLINE.
1116
1117         error, filevercmp: no 'static inline'
1118         * lib/error.c (is_open, flush_stdout):
1119         * lib/filevercmp.c (order):
1120         Now static, not static inline.
1121         * m4/error.m4 (gl_PREREQ_ERROR):
1122         * modules/filevercmp (configure.ac):
1123         Do not require AC_C_INLINE.
1124
1125         dup, execute, fatal-signal, etc.: no 'static inline'
1126         * lib/dup.c (dup_nothrow):
1127         * lib/execute.c (nonintr_close, nonintr_open):
1128         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
1129         * lib/fopen.c (orig_fopen):
1130         * lib/freadseek.c (freadptrinc):
1131         * lib/freopen.c (orig_freopen):
1132         * lib/fstat.c (orig_fstat, fstat_nothrow):
1133         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
1134         (get_rusage_as_via_iterator):
1135         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
1136         * lib/getdtablesize.c (_setmaxstdio_nothrow):
1137         * lib/isatty.c (_isatty_nothrow):
1138         * lib/open.c (orig_open):
1139         * lib/read.c (read_nothrow):
1140         * lib/sigprocmask.c (signal_nothrow):
1141         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
1142         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
1143         * lib/wait-process.c (unregister_slave_subprocess):
1144         * lib/write.c (write_nothrow):
1145         Now static, not static inline.
1146         * lib/spawn-pipe.c (nonintr_open): Define only if
1147         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
1148         * m4/dup.m4 (gl_PREREQ_DUP):
1149         * m4/execute.m4 (gl_EXECUTE):
1150         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
1151         * m4/fopen.m4 (gl_PREREQ_FOPEN):
1152         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
1153         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
1154         * m4/fstat.m4 (gl_PREREQ_FSTAT):
1155         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
1156         * m4/isatty.m4 (gl_PREREQ_ISATTY):
1157         * m4/open.m4 (gl_PREREQ_OPEN):
1158         * m4/read.m4 (gl_PREREQ_READ):
1159         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
1160         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
1161         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
1162         * m4/wait-process.m4 (gl_WAIT_PROCESS):
1163         * m4/write.m4 (gl_PREREQ_WRITE):
1164         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
1165         Do not require AC_C_INLINE.
1166
1167         c-strtod, memcoll, readutmp: no 'static inline'
1168         * lib/c-strtod.c (c_locale):
1169         * lib/memcoll.c (strcoll_loop):
1170         * lib/readutmp.c (desirable_utmp_entry):
1171         Now static, not static inline.
1172         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
1173         * m4/memcoll.m4 (gl_MEMCOLL):
1174         * m4/readutmp.m4 (gl_READUTMP):
1175         Do not require AC_C_INLINE.
1176
1177         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
1178         * lib/arctwo.c (to_uchar):
1179         * lib/md4.c (set_uint32):
1180         * lib/md5.c (set_uint32):
1181         * lib/sha1.c (set_uint32):
1182         * lib/sha256.c (set_uint32):
1183         * lib/sha512.c (set_uint64):
1184         Now static, not static inline.  This is a bit simpler, and doesn't
1185         affect performance with GCC and default optimization.
1186         * m4/arctwo.m4 (gl_ARCTWO):
1187         * m4/md4.m4 (gl_MD4):
1188         * m4/md5.m4 (gl_MD5):
1189         * m4/sha1.m4 (gl_SHA1):
1190         * m4/sha256.m4 (gl_SHA256):
1191         * m4/sha512.m4 (gl_SHA512):
1192         Do not require AC_C_INLINE.
1193
1194         cond, lock, thread: better 'inline'
1195         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
1196         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
1197         New macros.  Use them instead of static inline, for header functions.
1198         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
1199         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1200         * lib/glthread/lock.c (gl_waitqueue_init)
1201         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
1202         * lib/glthread/thread.c (get_current_thread_handle):
1203         Change 'static inline' to 'inline'.
1204         * lib/glthread/cond.h, lib/glthread/thread.h:
1205         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1206         * m4/cond.m4 (gl_COND):
1207         * m4/lock.m4 (gl_PREREQ_LOCK):
1208         * m4/thread.m4 (gl_THREAD):
1209         Do not require AC_C_INLINE.
1210         * modules/cond, modules/thread (Depends-on): Add extern-inline.
1211
1212         chdir-long, cycle-check, savewd: better 'inline'
1213         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
1214         (find_non_slash):
1215         * lib/cycle-check.c (is_zero_or_power_of_two):
1216         * lib/savewd.c (savewd_delegating):
1217         Change 'static inline' to 'inline'.
1218         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
1219         Replace all remaining uses of 'static inline' with it.
1220         * lib/savewd.h:
1221         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1222         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
1223         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
1224         * m4/savewd.m4 (gl_SAVEWD):
1225         Do not require AC_C_INLINE.
1226         * modules/savewd (Depends-on): Add extern-inline.
1227
1228         base32, base64: no need for 'inline'
1229         * lib/base32.c (to_uchar, get_8, decode_8):
1230         * lib/base64.c (to_uchar, get_4, decode_4):
1231         Change 'static inline' to 'inline'.
1232         * m4/base32.m4 (gl_PREREQ_BASE32):
1233         * m4/base64.m4 (gl_PREREQ_BASE64):
1234         Do not require AC_C_INLINE.
1235
1236         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
1237         * lib/gl_array_oset.c (gl_array_nx_add_at):
1238         (gl_array_remove_at):
1239         * lib/gl_linkedhash_list.c (hash_resize_after_add)
1240         (add_to_bucket, remove_from_bucket):
1241         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
1242         Change 'static inline' to 'static', as it's simpler to omit
1243         'inline' unless there's a significant performance advantage.
1244
1245         list, oset, xlist, xoset, xsublist: simplify via extern inline
1246         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
1247         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
1248         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
1249         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
1250         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
1251         New macro.  Replace all uses of 'static inline' with it.
1252         [HAVE_INLINE]: Implement functions as *_INLINE functions,
1253         instead of as macros FOO that are defined to static inline
1254         functions FOO_inline.
1255         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
1256         * lib/gl_xsublist.c:
1257         Reimplement from scratch, by defining the corresponding *_INLINE
1258         macro and including the corresponding .h file.  This is simpler.
1259         * modules/list, modules/oset, modules/xlist, modules/xoset:
1260         (Files): Remove m4/gl_list.m4.
1261         (configure.ac): Remove gl_LIST.
1262         * m4/gl_list.m4: Remove.
1263         * modules/list, modules/oset, modules/xlist, modules/xoset:
1264         * modules/xsublist:
1265         (Depends-on): Depend on extern-inline, not inline.
1266
1267         xalloc: better 'inline'
1268         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
1269         New macro.  Replace all uses of 'static inline' with it.
1270         (static_inline): Remove.
1271         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
1272         Let 'extern inline' do the work automatically, instead of doing
1273         it by hand.
1274         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
1275         Remove.  All uses removed.
1276         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
1277
1278         gethrxtime: better 'inline'
1279         * lib/xtime.c: New file.
1280         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
1281         * lib/xtime.h (XTIME_INCLUDE):
1282         New macros.  Replace all uses of 'static inline' with them.
1283         * lib/gethrxtime.c (gethrxtime): Define only if
1284         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
1285         this source file is now always compiled, because of the extern inline.
1286         * lib/gethrxtime.h, lib/xtime.h:
1287         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1288         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
1289         if gethrtime works, as they're not needed in that case.
1290         (gl_XTIME): Do not require AC_C_INLINE.
1291         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
1292         compiled now.  Move the check into gl_GETHRXTIME.
1293         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
1294         (Depends-on): Add extern-inline.
1295         (configure.ac): gethrxtime is always compiled now.
1296         (lib_SOURCES): Add gethrxtime.c.
1297
1298         wctype-h: better 'inline'
1299         * lib/wctype-h.c: New file.
1300         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
1301         New macro.  Replace all uses of 'static inline' with it.
1302         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1303         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
1304         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
1305         (Depends-on): Add extern-inline.
1306
1307         unistd: better 'inline'
1308         * lib/unistd.c: New file.
1309         * lib/unistd.in.h (_GL_UNISTD_INLINE):
1310         New macro.  Replace all uses of 'static inline' with it.
1311         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1312         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
1313         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
1314         (Depends-on): Add extern-inline.
1315
1316         sys_socket: better 'inline'
1317         * lib/sys_socket.c: New file.
1318         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
1319         New macro.  Replace all uses of 'static inline' with it.
1320         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1321         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
1322         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
1323         (Depends-on): Add extern-inline.
1324
1325         stdio: better 'inline'
1326         * lib/stdio.c: New file.
1327         * lib/stdio.in.h (_GL_STDIO_INLINE):
1328         New macro.  Replace all uses of 'static inline' with it.
1329         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1330         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
1331         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
1332         (Depends-on): Add extern-inline.
1333
1334         sigaction: better 'inline'
1335         * lib/sig-handler.c: New file.
1336         * lib/sig-handler.h (SIG_HANDLER_INLINE):
1337         New macro.  Replace all uses of 'static inline' with it.
1338         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1339         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
1340         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
1341         (Depends-on): Add extern-inline.
1342
1343         selinux-h: better 'inline'
1344         * lib/se-context.c, lib/se-selinux.c: New files.
1345         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
1346         * lib/se-context.in.h (SE_CONTEXT_INLINE):
1347         New macro.  Replace all uses of 'static inline' with it.
1348         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1349         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
1350         New macro.  Replace all uses of 'static inline' with it.
1351         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1352         * modules/selinux-h (Files, lib_SOURCES):
1353         Add lib/se-context.c, lib/se-selinux.c.
1354         (Depends-on): Add extern-inline.
1355         (configure.ac): Do not require AC_C_INLINE.
1356
1357         pthread: better 'inline'
1358         * lib/pthread.c: New file.
1359         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
1360         New macro.  Replace all uses of 'static inline' with it.
1361         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1362         * m4/pthread.m4 (gl_PTHREAD_CHECK):
1363         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
1364         * modules/pthread (Files): Add lib/pthread.c.
1365         (Depends-on): Add extern-inline.
1366
1367         math: better 'inline'
1368         * lib/math.c: New file.
1369         * lib/math.in.h (_GL_MATH_INLINE):
1370         New macro.  Replace all uses of 'static inline' with it.
1371         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1372         * m4/math_h.m4 (gl_MATH_H):
1373         Do not require AC_C_INLINE.
1374         * modules/math (Files, lib_SOURCES):
1375         Add lib/math.c.
1376         (Depends-on): Add extern-inline.
1377
1378         count-one-bits: better 'inline'
1379         * lib/count-one-bits.c: New file.
1380         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
1381         New macro.  Replace all uses of 'static inline' with it.
1382         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1383         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
1384         Do not require AC_C_INLINE.
1385         * modules/count-one-bits (Files, lib_SOURCES):
1386         Add lib/count-one-bits.c.
1387         (Depends-on): Add extern-inline.
1388
1389         count-leading-zeros: better 'inline'
1390         * lib/count-leading-zeros.c: New file.
1391         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
1392         New macro.  Replace all uses of 'static inline' with it.
1393         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1394         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
1395         Do not require AC_C_INLINE.
1396         * modules/count-leading-zeros (Files, lib_SOURCES):
1397         Add lib/count-leading-zeros.c.
1398         (Depends-on): Add extern-inline.
1399
1400         bitrotate: better 'inline'
1401         * lib/bitrotate.c: New file.
1402         * lib/bitrotate.h (BITROTATE_INLINE):
1403         New macros.
1404         Replace all uses of 'static inline' with them.
1405         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1406         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
1407         (Depends-on): Add extern-inline.
1408         (configure.ac): Do not require AC_C_INLINE.
1409
1410 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
1411
1412         maint.mk: avoid gratuitous failure
1413         Reported by Stefano Lattarini in
1414         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
1415         * top/maint.mk (public-submodule-commit): Quote more safely.
1416
1417 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
1418
1419         canonicalize, canonicalize-lgpl: support MS-Windows file names
1420         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
1421         for test cases, which it'd be nice to add at some point.
1422         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
1423         * lib/canonicalize.c (canonicalize_filename_mode):
1424         * lib/canonicalize-lgpl.c (__realpath):
1425         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
1426         slash is at the beginning of the file name.  Use ISSLASH, instead
1427         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
1428         the first character with '/'.  Test for
1429         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
1430         with a drive letter.
1431         * lib/canonicalize.c (SLASHES): New macro.
1432         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
1433
1434 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
1435
1436         fts: introduce FTS_VERBATIM
1437         * lib/fts_.h (FTS_VERBATIM): New bit flag.
1438         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
1439         * lib/fts.c (fts_open): Honor it.
1440
1441 2012-11-09  Pádraig Brady  <P@draigBrady.com>
1442
1443         getlogin-tests: allow errno == ENXIO
1444         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1445         with errno == ENXIO (No controlling tty).
1446         getlogin_r-tests: Likewise. Also allow errno == ENOENT
1447         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
1448         with errno == ENOENT.  This was reported to happen in various
1449         situations on GNU/Linux.
1450
1451 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
1452
1453         getlogin-tests: allow errno == ENOENT
1454         * tests/test-getlogin.c (main): Skip tests if getlogin fails
1455         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
1456         when running a test in an Emacs shell buffer.
1457
1458 2012-11-08  Jim Meyering  <jim@meyering.net>
1459
1460         tests/nap.h: avoid warning about unused variable
1461         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
1462
1463         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
1464         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
1465         white space before each of the special-cased file names, to avoid
1466         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
1467         in http://bugs.gnu.org/12830.
1468
1469 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
1470
1471         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
1472         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
1473         fails with errno == EBADF when fd is opened with O_PATH.
1474         Reported by Jim Meyering in
1475         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
1476         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1477         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
1478
1479 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1480
1481         test-utimens: speed up by taking shorter naps
1482         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
1483         New functions.
1484         (nap): Use them, to do a better job of guessing the delay.
1485         On Fedora 17 with ext4 atop md atop hard disks, this made
1486         test-utimens run 10x faster, because the test napped for
1487         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
1488         <http://bugs.gnu.org/12820#11>.
1489
1490 2012-11-07  Jim Meyering  <jim@meyering.net>
1491
1492         mountlist.c: fix a compilation failure
1493         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
1494         I introduced while transforming commit v0.0-7683-g613bcb6
1495
1496 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1497
1498         errno: port to LynxOS 178 2.2.2
1499         Problem reported by Joel Brobecker in
1500         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
1501         * doc/posix-headers/errno.texi (errno.h): Document this.
1502         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
1503         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
1504         Supply a string for EILSEQ.
1505         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
1506
1507 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
1508
1509         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
1510         Linux kernel 2.6.39 introduced O_PATH (see
1511         <http://lwn.net/Articles/433854/>) and this is a better fallback
1512         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
1513         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
1514         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
1515         * lib/fcntl.in.h (O_ACCMODE):
1516         * tests/test-fcntl-h.c (main):
1517         Do not reject O_ACCMODE merely because it has more than the
1518         minimal number of bits, as POSIX allows extensions here.
1519
1520 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
1521
1522         mountlist: do not classify a bind-mounted dir entry as "dummy"
1523         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
1524         the "none"-testing clause.
1525         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
1526         exception for bind-mounted directories.
1527
1528 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
1529
1530         quote: provide a means to escape strings with nul characters
1531         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
1532         (quote, quote_n): Rename formal arguments for consistency with
1533         quotearg.
1534
1535 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
1536
1537         test-raise: don't assume 199 is an invalid signal
1538         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
1539
1540         sh-quote-tests: port to Solaris 9
1541         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
1542         Problem reported by Dagobert Michelsen in
1543         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
1544
1545 2012-10-28  Jim Meyering  <jim@meyering.net>
1546
1547         maint.mk: rename a new configurable variable
1548         * top/maint.mk (_gl_translatable_string_re): Rename from
1549         translation-markers: _gl_ prefix to insulate from user Makefile code,
1550         and the _re suffix to inform that it's a regular expression.
1551
1552 2012-10-26  Eric Blake  <eblake@redhat.com>
1553
1554         maint.mk: let packages tweak sc_po_check pattern
1555         * top/maint.mk (sc_po_check): Add translation-markers, to allow
1556         finding files with other translation markers.
1557
1558 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1559
1560         euidaccess: speed up 'configure' on GNU hosts
1561         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
1562         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
1563         it's needed only in this case.  Use AC_CHECK_DECLS, not
1564         AC_CHECK_DECLS_ONCE.
1565         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
1566         or AC_REQUIRE for AC_FUNC_GETGROUPS.
1567
1568         * lib/regexec.c (re_search_internal): Fix grammar in comment.
1569
1570 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1571
1572         fchmodat, fchownat, fstatat: port to non-inlining compilers
1573         Problem reported for FreeBSD 9 by Jim Meyering in
1574         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
1575         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
1576         New files, which define FCHMODAT_INLINE etc.
1577         * lib/fchmodat.c (FCHMODAT_INLINE):
1578         * lib/fchownat.c (FCHOWNAT_INLINE):
1579         * lib/fstatat.c (FSTATAT_INLINE):
1580         Remove, as chmodat.c etc. now do this.
1581         * modules/fchmodat (Files): Add lib/chmodat.c.
1582         * modules/fchownat (Files): Add lib/chownat.c.
1583         * modules/fstatat (Files): Add lib/statat.c.
1584
1585 2012-10-15  Jim Meyering  <jim@meyering.net>
1586
1587         fchmodat.c, fchownat.c: compile-impeding typos
1588         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
1589         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
1590         Introduced in commit v0.0-7636-gd202279.
1591
1592 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
1593
1594         fcntl-h: support GNU flags like O_IGNORE_CTTY
1595         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
1596         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
1597         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
1598         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
1599         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
1600         Define to 0 if not already defined.
1601         * tests/test-fcntl-h.c: Test these new flags.
1602
1603 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
1604
1605         faccessat, etc.: support AT_FDCWD-only use
1606         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
1607         this function only if its first argument is AT_FDCWD.
1608         Emacs wants faccessat for AT_EACCESS but not for any first-arg
1609         values other than AT_FDCWD, so it doesn't want all the openat
1610         machinery with fchdir etc.
1611         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
1612         * modules/fstatat, modules/mkdirat, modules/openat (Files):
1613         * modules/unlinkat (Files):
1614         Remove lib/openat-priv.h, as at-internal supplies this file.
1615         Removing this file here allows us to support programs like Emacs
1616         that avoid at-internal.
1617
1618         faccessat: speed up 'configure' on mainstream hosts
1619         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
1620         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
1621         since it's only on unusual platforms that we need to check for
1622         'access', and it's better not to slow 'configure' down on all
1623         platforms.
1624
1625         faccessat: port to Solaris 10
1626         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
1627         Needed on Solaris 10, which doesn't have AT_EACCESS,
1628         so we need the Gnulib fcntl.h, which defines it.
1629
1630 2012-10-14  Pádraig Brady  <P@draigBrady.com>
1631         canonicalize: fix C89 compilation
1632         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
1633         declarations so C89 is supported.  Also remove the comment
1634         referencing memorty allocation as the suggested feature could
1635         not be implemented as suggested.
1636         Reported by Michael Goffioul.
1637
1638 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
1639
1640         group-member: omit unnecessary dependencies
1641         This is for Emacs, which has its own allocator and where we
1642         don't want to use xalloc.
1643         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
1644         since we no longer use xmalloc.  Do not include stdbool.h, since
1645         the changes below happen to remove the only use of bool.
1646         (GROUPBUF_SIZE): New constant.
1647         (struct group_info): Remove n_groups member.  Add groupbuf member.
1648         This lets us get the groups without using malloc, usually.
1649         (free_group_info, get_group_info): Adjust to this.
1650         (get_group_info): Return the number of groups found, or -1 on error.
1651         Use plain malloc not xmalloc, and treat its failure as if there
1652         are no groups, as the user already loses in case of error.
1653         (group_member): Simplify, based on changes to get_group_info.
1654         * modules/group-member (Depends-on): Remove dependencies on
1655         xalloc and stdbool.  Add dependency on xalloc-oversized.
1656
1657 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
1658
1659         gethrxtime: port to C++
1660         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
1661
1662 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
1663
1664         ptsname: fix macro-name typo
1665         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
1666
1667 2012-10-03  Simon Josefsson  <simon@josefsson.org>
1668
1669         inttostr: Relax license.
1670         * modules/inttostr (License): Change from LGPL to LGPLv2+.
1671
1672 2012-10-03  Eric Blake  <eblake@redhat.com>
1673
1674         ptsname_r: support ptys returned by FreeBSD posix_openpt
1675         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
1676         lives in /dev/pts/.
1677
1678 2012-10-02  Eric Blake  <eblake@redhat.com>
1679
1680         pselect: reject invalid file descriptors
1681         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
1682         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
1683         * modules/pselect (Depends-on): Add dup2.
1684         * doc/posix-functions/pselect.texi (pselect): Document this.
1685
1686         select: reject invalid file descriptors
1687         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
1688         * lib/select.c (rpl_select) [!win32]: Work around it.
1689         * modules/select (Depends-on): Add dup2.
1690         * doc/posix-functions/select.texi (select): Document this.
1691
1692         select: enhance test
1693         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
1694         New functions.
1695         (test_function): Enhance test.
1696         (do_select_bad_fd): Avoid any stale errno values.
1697
1698         ptsname: reject invalid file descriptors
1699         http://www.austingroupbugs.net/view.php?id=503
1700         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
1701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
1702         * modules/stdlib (Makefile.am): Replace witness.
1703         * lib/stdlib.in.h (ptsname): Allow for replacement.
1704         * modules/ptsname (configure.ac): Trigger replacement.
1705         * doc/posix-functions/ptsname.texi (ptsname): Document this.
1706
1707 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
1708
1709         hash-pjw-bare: new module
1710         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
1711         * lib/hash-pjw-bare.h: Likewise.
1712         * modules/hash-pjw-bare: New file.
1713         * MODULES.html.sh (Misc): Add it.
1714
1715 2012-10-02  Eric Blake  <eblake@redhat.com>
1716
1717         manywarnings: cater to more gcc infelicities
1718         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
1719         -Wuninitialized without -O.
1720
1721 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
1722
1723         select, poll tests: Make setsockopt invocation effective.
1724         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
1725         the bind() call.
1726         * tests/test-select.h (open_server_socket): Likewise.
1727
1728 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
1729
1730         sockets, sys_stat: restore AC_C_INLINE
1731         This undoes the 2012-09-22 patch.
1732         * m4/sockets.m4 (gl_SOCKETS):
1733         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1734         Restore AC_C_INLINE, since MSVC requires __inline or _inline
1735         and does not support plain 'inline'.  Reported by Bruno Haible in
1736         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
1737
1738 2012-09-30  Bruno Haible  <bruno@clisp.org>
1739
1740         localeconv tests: Avoid test failure on OpenIndiana.
1741         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
1742         skip the 'grouping' and 'mon_grouping' tests.
1743         Reported by Jim Meyering.
1744
1745 2012-09-30  Bruno Haible  <bruno@clisp.org>
1746
1747         havelib: Follow libtool developments.
1748         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
1749         Suggested by Simon Josefsson.
1750
1751 2012-09-29  Jim Meyering  <meyering@redhat.com>
1752
1753         fstatat.c: fix a compile-impeding typo
1754         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
1755         Introduced in commit v0.0-7636-gd202279.
1756         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
1757
1758 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
1759
1760         extern-inline: provide a -Wundef safe config.h
1761         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
1762         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
1763         to produce a -Wundef warning free config.h.
1764
1765 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
1766
1767         hash-pjw: relax license to LGPLv2+
1768         * modules/hash-pjw (License): Relax, with consent of author.
1769
1770 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1771
1772         maint.mk: fix strict vs. lazy variable issues with RELEASE
1773         * top/maint.mk (_equal): New function.
1774         (member_check): Strip the result to avoid spurious spaces.
1775         (url_dir_list): Do not use ifeq, which is strict, as it will
1776         require RELEASE_TYPE to be defined.
1777         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
1778         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
1779         (announcement_Cc_alpha,announcement_mail_headers_alpha)
1780         (announcement_Cc_beta,announcement_mail_headers_beta)
1781         (announcement_Cc_stable,announcement_mail_headers_stable): these.
1782         (release): Do not depend on $(release-type), as it forces its
1783         evaluation.  Bounce to it.
1784
1785 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
1786
1787         maint.mk: formatting changes
1788         * top/maint.mk: Indent bodies of if's.
1789
1790 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
1791
1792         maint.mk: factor the validation of RELEASE_TYPE
1793         With help from Jim Meyering.
1794         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
1795         * top/maint.mk (_empty, _sp): Move their definition earlier.
1796         (member-check, release-type): New.
1797         Use the latter instead of $(RELEASE_TYPE).
1798         Remove now useless local checks.
1799
1800 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1801
1802         maint.mk: provide "make upload" to ease uploading
1803         See
1804         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
1805         Do not depend simply on the current $(VERSION), as there may have been
1806         new commits since the tarball generation.  Rather, rely on $(RELEASE),
1807         as "make release-commit" already does.
1808
1809         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
1810         "make TYPE".
1811
1812         * top/maint.mk (upload_command, upload, release): New.
1813         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1814         (VERSION): first word of $(RELEASE) is always right.
1815         (emit_upload_commands): Adjust.
1816         * top/README-release: Update.
1817
1818 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1819
1820         maint.mk: silent rules
1821         With help from Stefano Lattarini.
1822         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1823         (announcement): Use $(AM_V_at).
1824
1825 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1826
1827         localename: port gl_locale_name_thread_unsafe to FreeBSD
1828         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1829         and use the simpler FreeBSD implementation on Mac OS X as well.
1830         Original idea suggested by Ed Maste in
1831         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1832
1833 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1834
1835         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1836         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1837         * lib/mbuiter.c, lib/xsize.c: New files.
1838         * lib/binary-io.h (BINARY_IO_INLINE):
1839         * lib/eealloc.h (EEALLOC_INLINE):
1840         * lib/mbfile.h (MBFILE_INLINE):
1841         * lib/mbiter.h (MBITER_INLINE):
1842         * lib/mbuiter.h (MBUITER_INLINE):
1843         * lib/xsize.h (XSIZE_INLINE):
1844         New macros.
1845         Replace all uses of 'static inline' with them.
1846         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1847         * m4/eealloc.m4 (gl_EEALLOC):
1848         * m4/mbfile.m4 (gl_MBFILE):
1849         * m4/mbiter.m4 (gl_MBITER):
1850         * m4/xsize.m4 (gl_XSIZE):
1851         Do not require AC_C_INLINE.
1852         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1853         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1854         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1855         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1856         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1857         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1858         * modules/binary-io, modules/eealloc, modules/mbfile:
1859         * modules/mbiter, modules/mbuiter:
1860         (Depends-on): Add extern-inline.
1861
1862         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1863         * lib/pipe-filter-aux.c: New file.
1864         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1865         Replace all uses of 'static inline' with it.
1866         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1867         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1868         (filter_retcode): No real need for inline here.
1869         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1870         (Files): Add lib/pipe-filter-aux.c.
1871         (Depends-on): Add extern-inline.
1872         (configure.ac): Do not require AC_C_INLINE.
1873         (lib_SOURCES): Add pipe-filter-aux.c.
1874
1875         fdutimensat: omit unnecessary AC_C_INLINE
1876         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1877
1878         fchmodat, fchownat, fstatat: use extern-inline
1879         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1880         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1881         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1882         New macros.
1883         * lib/openat.h:
1884         Replace all uses of 'static inline' with them.
1885         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1886         * modules/fchmodat, modules/fchownat, modules/fstatat:
1887         * modules/openat-h:
1888         (Depends-on):
1889         Add extern-inline.
1890         (configure.ac): Remove AC_C_INLINE.
1891
1892         acl, mbchar, priv-set: use extern-inline
1893         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1894         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1895         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1896         New macros.
1897         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1898         Replace all uses of 'static inline' with it.
1899         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1900         * m4/acl.m4 (gl_FUNC_ACL):
1901         * m4/mbchar.m4 (gl_MBCHAR):
1902         * m4/priv-set.m4 (gl_PRIV_SET):
1903         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1904         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1905         Add extern-inline.
1906
1907         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1908         * m4/sockets.m4 (gl_SOCKETS):
1909         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1910         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1911         environments where it's already guaranteed to work, so we needn't
1912         check for it at 'configure'-time.
1913
1914         tls-tests: omit unnecessary 'inline'
1915         * tests/test-tls.c (perhaps_yield): No longer inline.
1916         Simplicity and portability trump efficiency in test cases.
1917
1918         utimens-tests: avoid unnecessary 'inline'
1919         * modules/fdutimensat-tests (configure.ac):
1920         * modules/futimens-tests (configure.ac):
1921         * modules/utimens-tests (configure.ac):
1922         * modules/utimensat-tests (configure.ac):
1923         Remove AC_C_INLINE.
1924         * tests/test-utimens-common.h (ctime_compare):
1925         No longer inline.  Simplicity and portability trump efficiency here.
1926
1927         misc: don't limit commentary to inline functions
1928         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1929         * lib/xalloc-oversized.h, lib/xsize.h:
1930         Contrast macros to functions in general, not just to inline functions,
1931         when the commentary does not apply only to inline functions.
1932
1933 2012-09-20  Jim Meyering  <meyering@redhat.com>
1934
1935         non-recursive-gnulib-prefix-hack: new module
1936         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1937         the file that originated in Bison.
1938         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1939         largely copied from a snippet that resided in bison's configure.ac.
1940         * modules/non-recursive-gnulib-prefix-hack: New file.
1941         * MODULES.html.sh (Support for maintaining and releasing projects):
1942         Add it.
1943
1944 2012-09-18  Jim Meyering  <meyering@redhat.com>
1945
1946         maint.mk: generalize _gl_tight_scope for non-recursive make
1947         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1948         that *.h would describe additional .h files in the directory
1949         specified by $(_gl_TS_dir).  I.e., add this...
1950         (_gl_TS_other_headers): New variable.
1951
1952         maint.mk: exempt trailing blanks found in "binary" files
1953         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1954         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1955         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1956
1957 2012-09-17  Jim Meyering  <meyering@redhat.com>
1958
1959         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1960         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1961         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1962         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1963
1964 2012-09-17  Jim Meyering  <meyering@redhat.com>
1965
1966         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1967         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1968         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1969         It is not in the same category as "exit (0)" or "exit (1)", and
1970         besides, I know of no symbolic name for that 77.  Reported by
1971         Richard W.M. Jones in
1972         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1973
1974 2012-09-17  Jim Meyering  <meyering@redhat.com>
1975
1976         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1977         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1978         all uses of #define, not just those that start in column 1.
1979         Richard W.M. Jones reported a false positive in
1980         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1981
1982 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1983
1984         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1985         * lib/localcharset.c (locale_charset) [DARWIN7]:
1986         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1987         as these two values are incompatible.  Problem reported by Max Horn.
1988         For more discussion, please see
1989         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1990
1991         doc: document sticky-EOF issue
1992         * doc/posix-functions/fgetc.texi (fgetc):
1993         * doc/posix-functions/fgets.texi (fgets):
1994         * doc/posix-functions/fread.texi (fread):
1995         * doc/posix-functions/fscanf.texi (fscanf):
1996         * doc/posix-functions/getc.texi (getc):
1997         * doc/posix-functions/getchar.texi (getchar):
1998         * doc/posix-functions/scanf.texi (scanf):
1999         Mention that glibc and default Solaris do not conform to
2000         C99 and POSIX-2001 or later, with respect to how getchar
2001         etc. behave when feof reports nonzero.
2002
2003 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2004
2005         poll: fix poll(0, NULL, msec)
2006         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
2007         but nfd is 0.  In that case poll should behave like select.
2008
2009 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
2010             Paolo Bonzini <bonzini@gnu.org>
2011
2012         poll: fix for systems that can't recv() on a non-socket
2013         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
2014         is readable.  In this case POLLHUP will not be supported.
2015         * doc/posix-functions/poll.texi: Document this.
2016
2017 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
2018
2019         poll/select: document portability problems not fixed by Gnulib.
2020         * doc/posix-functions/poll.texi: poll does not work well on
2021         pipes under Windows.  It has the same limitations as select on
2022         BeOS.
2023         * doc/posix-functions/select.texi: select does not work well
2024         on pipes under Windows.
2025
2026 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
2027
2028         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
2029         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
2030         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
2031         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
2032
2033 2012-09-06  Eric Blake  <eblake@redhat.com>
2034
2035         net_if: give more details about the bug being fixed
2036         * doc/posix-headers/net_if.texi: Add clarification.
2037
2038 2012-09-05  Eric Blake  <eblake@redhat.com>
2039
2040         net_if: new module
2041         * modules/net_if: New module, borrowing ideas from netinet_in.
2042         * m4/net_if_h.m4: New file.
2043         * lib/net_if.in.h: Likewise.
2044         * doc/posix-headers/net_if.texi (net/if.h): Document it.
2045         * MODULES.html.sh (lacking POSIX:2008): Likewise.
2046         * tests/test-net_if.c: Make function checks conditional.
2047         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
2048
2049 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
2050
2051         readutmp: fix non-portable UT_PID use
2052         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
2053         Use `UT_PID (u) > 0' as absolute condition.
2054
2055 2012-09-04  Jim Meyering  <meyering@redhat.com>
2056
2057         fts: reduce two or more trailing spaces to just one, usually
2058         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
2059         or more slashes, trim all but the final one.  But if a name consists
2060         solely of two slashes, don't modify it.  If it consists solely of
2061         three or more slashes, strip all but one.
2062
2063         This is part of the solution to a minor problem with rm:
2064         it would print a bogus ELOOP diagnostic when failing to remove
2065         the slash-decorated name of a symlink-to-directory:
2066
2067             $ mkdir d && ln -s d s && env rm -r s/
2068             rm: cannot remove 's': Too many levels of symbolic links
2069
2070         With the change below and a trivial don't-trim-trailing-slashes
2071         adjustment to remove.c, it does this:
2072
2073             $ env rm -r s/
2074             rm: cannot remove 's/': Not a directory
2075
2076         Improved by: Eric Blake
2077
2078         fts: when there is no risk of overlap, use memcpy, not memmove
2079         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
2080
2081 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
2082
2083         stdbool: be more compatible with mixed C/C++ compiles
2084         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
2085         Define to bool, true, false, respectively, as GCC's builtin
2086         stdbool.h does.  Problem reported by Michael Goffioul in
2087         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
2088
2089 2012-08-28  Jim Meyering  <meyering@redhat.com>
2090
2091         revert last change: it was not needed
2092         * tests/test-vc-list-files-git.sh: There's already a test for
2093         a working git, just below.
2094
2095 2012-08-28  Jim Meyering  <meyering@redhat.com>
2096
2097         tests: test-vc-list-files-git.sh: skip if git is not available
2098         * tests/test-vc-list-files-git.sh: Skip this test when git is
2099         not available.
2100
2101 2012-08-26  Bruno Haible  <bruno@clisp.org>
2102
2103         gnulib-tool: Remove no-op option --no-changelog.
2104         * gnulib-tool (func_usage): Don't mention --no-changelog.
2105         (do_changelog): Remove variable.
2106         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2107
2108 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2109
2110         doc: remove fdl-1.2.texi
2111         It is no longer used or maintained, and its use of @acronym
2112         is problematic.  See the thread containing
2113         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
2114         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
2115         * doc/old-licenses/fdl-1.2.texi: Remove.
2116
2117         execinfo: port to FreeBSD
2118         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
2119         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
2120         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
2121         * modules/execinfo (Link): Add $(LIB_EXECINFO).
2122
2123 2012-08-23  Jim Meyering  <meyering@redhat.com>
2124
2125         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
2126         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
2127         to placate gcc's -Wold-style-declaration.
2128
2129 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2130
2131         doc: do not use @acronym
2132         * doc/inet_ntoa.texi (inet_ntoa):
2133         * doc/parse-datetime.texi (Seconds since the Epoch)
2134         (Specifying time zone rules):
2135         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
2136         Don't use @acronym.  Problem reported by John Darlington in
2137         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
2138
2139 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
2140
2141         stdnoreturn: port to newer GCCs
2142         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
2143         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
2144         Problem reported by Jim Meyering in
2145         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
2146         Also, rename the 'test' function to a void a clash with the
2147         already-supplied 'main' function; this fixes a bug that incorrectly
2148         rejected GCC 4.7.1's <stdnoreturn.h>.
2149         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
2150         Document GCC problem.
2151
2152 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
2153
2154         pipe-filter: fix comment typo
2155         * lib/pipe-filter.h: Mention correct function.
2156
2157 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
2158
2159         execinfo: new module
2160         This is for Emacs.  Currently, it provides a no-effect stub
2161         on all platforms where it does not already work.
2162         It already works on glibc-based systems, and on Solaris 11.
2163         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
2164         New files.
2165         * doc/glibc-headers/execinfo.texi (execinfo.h):
2166         * MODULES.html.sh (Misc): Document it.
2167
2168 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
2169
2170         extern-inline: support old GCC 'inline'
2171         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
2172         if available.  This applies to GCC versions 2.7 through 4.2, or
2173         when newer GCC is using -fgnu89-inline.  The goal is to address
2174         some of the performance issues mentioned by Bruno Haible in
2175         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
2176
2177 2012-08-20  Eric Blake  <eblake@redhat.com>
2178
2179         maint.mk: avoid redundant file name in message
2180         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
2181         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
2182         (sc_makefile_path_separator_check): Remove bogus $(ME).
2183
2184 2012-08-20  Mike Frysinger <vapier@gentoo.org>
2185
2186         timer-time: fix link order when static linking on glibc
2187         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
2188         _after_ -lrt so that it's significant.
2189
2190 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
2191
2192         timespec: omit unnecessary AC_C_INLINE
2193         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
2194
2195         stat-time: omit unnecessary AC_C_INLINE
2196         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
2197         Do not require AC_C_INLINE.
2198
2199         ignore-value: omit unnecessary AC_C_INLINE
2200         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
2201
2202         sys_select: avoid 'static inline'
2203         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
2204
2205         mktime: avoid 'static inline'
2206         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
2207         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
2208
2209 2012-08-19  Bruno Haible  <bruno@clisp.org>
2210
2211         gnulib-tool: Improve coding style.
2212         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
2213         func_emit_lib_Makefile_am.
2214         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2215
2216 2012-08-19  Bruno Haible  <bruno@clisp.org>
2217
2218         gnulib-tool: Fix indentation.
2219         * gnulib-tool (func_import): Fix indentation.
2220
2221 2012-08-19  Bruno Haible  <bruno@clisp.org>
2222
2223         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
2224         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
2225         on the list of removed files.
2226
2227 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
2228
2229         test-parse-datetime: avoid glibc leap-second glitch
2230         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
2231         with the 2012 rules.  Problem reported by Bruce Dubbs in
2232         <http://bugs.gnu.org/12206>.
2233
2234 2012-08-14  Bruno Haible  <bruno@clisp.org>
2235
2236         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
2237         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
2238         from argument.
2239         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2240
2241 2012-08-14  Eric Blake  <eblake@redhat.com>
2242
2243         ldexp: relax license
2244         * modules/ldexp (License): Trivial relax, since the module only
2245         provides a permissively licensed m4 file.
2246
2247 2012-08-13  Bruno Haible  <bruno@clisp.org>
2248
2249         gnulib-tool: Fix persistence of --witness-c-macro option.
2250         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
2251         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2252
2253 2012-08-11  Eric Blake  <eblake@redhat.com>
2254
2255         count-leading-zeros: use a lookup table on non-gcc compilers
2256         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
2257         alternate implementation, suggested by Jim Meyering.
2258
2259 2012-08-10  Eric Blake  <eblake@redhat.com>
2260
2261         count-leading-zeros: new module
2262         * modules/count-leading-zeros: New module.
2263         * m4/count-leading-zeros.m4: New file.
2264         * lib/count-leading-zeros.h: Likewise.
2265         * modules/count-leading-zeros-tests: New test.
2266         * tests/test-count-leading-zeros.c: New file.
2267         * MODULES.html.sh (Integer arithmetic functions): Document it.
2268
2269 2012-08-07  Simon Josefsson  <simon@josefsson.org>
2270             Jim Meyering  <meyering@redhat.com>
2271
2272         maintainer-makefile: Fix syntax error with dash.
2273         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
2274         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
2275
2276 2012-08-05  Jim Meyering  <meyering@redhat.com>
2277
2278         extern-inline: also ignore -Wmissing-declarations
2279         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
2280         required with gcc-4.8.0-to-be.
2281
2282         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
2283         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
2284         for /error ?([^,]*)/.  This avoids false-positives for strings like
2285         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
2286
2287 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
2288
2289         gnumakefile: better interaction with Automake-NG
2290         * modules/gnumakefile [Makefile.am]: The makefiles generated by
2291         Automake-NG always contain a definition of VPATH, even in non-VPATH
2292         builds (its value being simply '.' in that case).  So, in the
2293         'clean-GNUmakefile' rule, to determine whether running under a
2294         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
2295         '$(VPATH)' expands to the empty string.
2296
2297 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
2298
2299         base64: Use extern C scope in header file, for C++.
2300         * lib/base64.h: Add C++ namespace protection.
2301
2302 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
2303
2304         stat-time, timespec, u64: support naive out-of-dir builds
2305         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
2306         Use '#include "foo.h"', not '#include <foo.h>', when including
2307         one's own interface.  This works better when configuring with
2308         out-of-directory builds, since packages need not add an
2309         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
2310
2311 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
2312
2313         utimens: use extern-inline
2314         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
2315         * lib/utimens.h: Add copyright notice, since this is now large enough
2316         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2317         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
2318         * modules/utimens (Depends-on): Add extern-inline.
2319
2320         u64: use extern-inline
2321         * lib/u64.c: New file.
2322         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2323         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
2324         * modules/u64 (Files): Add lib/u64.c.
2325         (Depends-on): Add extern-inline.
2326         (configure.ac): No need to require AC_C_INLINE, since extern-inline
2327         does that now.
2328         (lib_SOURCES): Add u64.c.
2329
2330         timespec: use extern-inline
2331         * lib/timespec.c: New file.
2332         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2333         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
2334         * modules/timespec (Files): Add lib/timespec.c.
2335         (Depends-on): Add extern-inline.
2336         (lib_SOURCES): Add timespec.c.
2337
2338         stat-time: use extern-inline
2339         * lib/stat-time.c: New file.
2340         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
2341         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
2342         * modules/stat-time (Files): Add lib/stat-time.c.
2343         (Depends-on): Add extern-inline.
2344         (lib_SOURCES): Add stat-time.c.
2345
2346         extern-inline: new module
2347         * modules/extern-inline, m4/extern-inline.m4: New files.
2348         This is for better support of 'extern inline' a la ISO C99,
2349         with a portable alternative on compilers that do not support
2350         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
2351         of the Emacs executable, when compiled with debugging disabled,
2352         which is a typical way that Emacs is built while developing.
2353
2354 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
2355
2356         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
2357         * build-aux/do-release-commit-and-tag: Move variable definitions
2358         together.
2359         ($branch): Instead of defaulting to "master", default to the current
2360         branch (as gnu-web-doc-update does).
2361         (help): Display the current values of the option arguments.
2362         * top/maint.mk (release-commit): New.
2363         * top/README-release: Simplify the corresponding step.
2364
2365 2012-07-30  Eric Blake  <eblake@redhat.com>
2366
2367         passfd: fix comment on recvfd
2368         * lib/passfd.c (recvfd): Fix comment.
2369         Reported by Jann Horn <jannhorn@googlemail.com>.
2370
2371 2012-07-30  Jim Meyering  <meyering@redhat.com>
2372
2373         maint.mk: avoid a sub-shell
2374         * top/maint.mk (release-prep): Remove unneeded sub-shell.
2375
2376 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2377
2378         maint.mk: use silent-rules support from Automake
2379         * top/maint.mk (news-check, vc-diff-check, announcement)
2380         (no-submodule-changes, alpha beta stable, release-prep)
2381         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
2382
2383 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2384
2385         maint.mk: provide a web-manual-update target
2386         * top/maint.mk: here.
2387         * top/README-release: Use it to simplify the web manual update step.
2388
2389 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2390
2391         README-release: shorten the circuit to post a news
2392         * top/README-release: Point directly to the news submission form.
2393
2394 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2395
2396         gnu-web-doc-update: fix --help
2397         * build-aux/gnu-web-doc-update: The information "top level" was written
2398         twice.
2399
2400 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
2401
2402         maint.mk: absolute VPATH issue
2403         * top/maint.mk (release-prep): Help Git find .git/.
2404         From Jim Meyering.
2405
2406 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2407
2408         gitlog-to-changelog: fix previous change
2409         * build-aux/gitlog-to-changelog: Fix condition.
2410         Add missing ";".
2411
2412 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2413
2414         gitlog-to-changelog: don't expect .git to be in $srcdir
2415         Reported by Bruno Haible.
2416         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
2417         * build-aux/gitlog-to-changelog (&git_dir_option): New.
2418         Use it.
2419
2420 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
2421
2422         maint.mk: absolute VPATH build fix
2423         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
2424         $(srcdir) is not a parent of $(builddir).
2425
2426 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
2427
2428         clean-temp: Fix memory leak.
2429         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
2430         'files' members of tmpdir.
2431
2432 2012-07-27  Jim Meyering  <meyering@redhat.com>
2433
2434         maint.mk: new rule: refresh-gnulib-patches
2435         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
2436         Use this rule to refresh them.
2437         * top/maint.mk (refresh-gnulib-patches): New rule.
2438
2439 2012-07-24  Bruno Haible  <bruno@clisp.org>
2440
2441         gnulib-tool: Fix handling of inctests variable.
2442         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
2443         Reported by Nick Bowler <nbowler@elliptictech.com>.
2444
2445 2012-07-22  Bruno Haible  <bruno@clisp.org>
2446
2447         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
2448         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
2449         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2450         Remove exemption for getpass.h.
2451         Suggested by Eric Blake.
2452
2453 2012-07-20  Eric Blake  <eblake@redhat.com>
2454
2455         verify: document conflict with -Wnested-externs
2456         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
2457
2458         maint.mk: forbid exit(-1)
2459         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
2460
2461 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
2462
2463         fsusage: port back to Solaris
2464         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
2465         error (fsd not declared) on Solaris 10.  Reported privately by
2466         Andrew Borodin.
2467
2468 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
2469
2470         gnu-web-doc-update: fix error messages
2471         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
2472
2473         gnu-web-doc-update: check the requirements.
2474         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
2475         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
2476         * build-aux/bootstrap (find_tool): Comment change.
2477
2478 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
2479
2480         maint.mk: minor simplication.
2481         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
2482         for default values.
2483
2484 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
2485
2486         gitlog-to-changelog: VPATH build issues
2487         If builddir is not a subdirectory of srcdir, running git from it will
2488         fail.
2489         * build-aux/gitlog-to-changelog (--srcdir): New option.
2490
2491 2012-07-15  Bruno Haible  <bruno@clisp.org>
2492
2493         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
2494         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
2495         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
2496         Remove exemption for fpending.h.
2497         Suggested by Eric Blake.
2498
2499 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2500
2501         pthread_sigmask: fix bug on FreeBSD 9
2502         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
2503         Include string.h.
2504         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
2505         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
2506         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
2507         but pthread_sigmask (1729, NULL, NULL) returns zero.
2508         See <http://bugs.gnu.org/11884>.
2509         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
2510         by inspecting whether the main call changed the old mask.
2511
2512 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
2513
2514         README-release: make it more legible
2515         * top/README-release: Improve typography slightly.
2516
2517 2012-07-15  Jim Meyering  <meyering@redhat.com>
2518
2519         maint: require that each sc_... command start with "@"
2520         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
2521         "make sc_maint" helps us avoid this nit.
2522
2523 2012-07-15  Jim Meyering  <meyering@redhat.com>
2524
2525         maint.mk: add leading "@" to quiet new "make syntax-check" rule
2526         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
2527
2528 2012-07-13  Eric Blake  <eblake@redhat.com>
2529
2530         maint.mk: new syntax check for HAVE_DECL checks
2531         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
2532         * cfg.mk
2533         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
2534         Exempt some false positives.
2535         Based on a report by Karel Zak.
2536
2537         argp: make HAVE_DECL usage consistent
2538         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
2539         macros, not whether they are defined.
2540         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
2541         convention with other declaration checks.
2542         Reported by Karel Zak, with suggestions from Paul Eggert.
2543
2544         stat-time: relax license to LGPLv2+
2545         * modules/stat-time (License): Relax, with consent of all authors.
2546
2547         strndup: fix m4 usage error
2548         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
2549         defined, to either 0 or 1.
2550         Reported by Karel Zak.
2551
2552 2012-07-11  Jim Meyering  <meyering@redhat.com>
2553
2554         maint: enable the sc_avoid_if_before_free syntax-check rule
2555         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
2556         (if_before_free_offenders_): Define.
2557         (if_before_free_basename_re_): Define.
2558         Exempt current files with useless if-before-free.
2559
2560 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
2561
2562         gettext: do not assume '#define ... defined ...' behavior
2563         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
2564         Do not use '#define FOO ... defined BAR ...', as the C standard says
2565         it's not portable to expect that this works after macro expansion.
2566         Problem reported for gzip by Steven M. Schweda in
2567         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
2568
2569 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
2570
2571         getloadavg: clean out old Emacs and Autoconf cruft
2572         See Glenn Morris in <http://bugs.gnu.org/11905>.
2573         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
2574         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
2575         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
2576         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
2577
2578 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
2579
2580         bootstrap: let warn be like tests/init.sh's warn_
2581         Reported by Jim Meyering.
2582         * build-aux/bootstrap (warn): Remove, replaced by...
2583         (warnf_, warn_): these.
2584         Adjust callers.
2585         Shorten messages that no longer fit in 80 columns.
2586
2587 2012-07-09  Bruno Haible  <bruno@clisp.org>
2588
2589         getopt: Simplify after Emacs changed.
2590         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
2591         (gl_GETOPT_IFELSE): Remove macro.
2592
2593 2012-07-09  Jim Meyering  <meyering@redhat.com>
2594
2595         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
2596         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
2597
2598         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
2599         Bugs in both of those conspired to make the
2600         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
2601         _sc_search_regexp's handling of non-empty $in_files would filter
2602         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
2603         choice of in_files value meant there would be no match in most
2604         projects, due to the presence of two or more Makefile.in files.
2605         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
2606         Fix a bug in how a non-empty $$in_files was processed:
2607         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
2608         in spite of the name, it's a regexp, not a list of file names.
2609
2610 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2611
2612         getloadavg, getopt: fix commentary re configure.in
2613         Autoconf is deprecating the name 'configure.in', so change it to
2614         to the new name 'configure.ac' in a couple of places.
2615         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
2616         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
2617         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
2618         Emacs has renamed it to configure.ac, and it no longer refers
2619         to these macros anyway.
2620
2621         timespec: mark functions with const attributes
2622         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
2623         Mark with _GL_ATTRIBUTE_CONST.
2624
2625 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2626
2627         canonicalize[-lgpl]: handle "guessing" values when cross-building
2628         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
2629         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
2630         matches "*yes" instead of just "yes".  Regression introduced in commit
2631         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
2632
2633 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
2634             Bruno Haible  <bruno@clisp.org>
2635
2636         canonicalize: make the right guess when cross-compiling to GNU
2637         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
2638         determine whether cross-compiling to glibc systems, so as to
2639         include GNU/Hurd.
2640
2641 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2642
2643         timespec-sub: avoid duplicate include
2644         * lib/timespec-sub.c: Do not include <config.h> twice.
2645         Reported by Juanma Barranquero.
2646
2647 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
2648
2649         bootstrap: use a more consistent error reporting scheme
2650         * build-aux/bootstrap (warn, die): New.
2651         Use them.
2652
2653 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2654
2655         sys_time: allow too-wide tv_sec
2656         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
2657         timeval even if tv_sec is wider than time_t.  This allows
2658         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
2659         as without this patch gnulib replaces struct timeval
2660         and OpenBSD futimes therefore has a type mismatch.
2661         * doc/posix-headers/sys_time.texi: Mention this.
2662
2663         pthread: check for both pthread_create and pthread_join
2664         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
2665         alter the check so that it tests for both pthread_create and
2666         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
2667         Suggested by Bruno Haible and Richard Yao in
2668         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
2669
2670         parse-datetime: doc tuneup
2671         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
2672         spacing issues.
2673
2674 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
2675
2676         do-release-commit-and-tag: fix the previous commit
2677         * build-aux/do-release-commit-and-tag: Actually the test was right,
2678         but the comment and the error message were misleading.
2679         Fix comment, and improve error message.
2680         Perform check first, so that NEWS is not modified uselessly.
2681
2682         do-release-commit-and-tag: fix typo
2683         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
2684         _not_ start with a stub.
2685
2686 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
2687
2688         pthread: check for pthread_create, not pthread_join
2689         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
2690         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
2691         pthread_join in libc.  I hope this removes the need for all the
2692         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
2693         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
2694
2695 2012-07-04  Jim Meyering  <meyering@redhat.com>
2696
2697         parse-datetime: fix failure to diagnose invalid input
2698         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
2699         rather than diagnosing the invalid input.  Now it reports this:
2700         date: invalid date '\260'
2701         * lib/parse-datetime.y (to_uchar): Define.
2702         (yylex): Don't sign-extend "other" bytes.
2703         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
2704         Thanks to Bruno Haible for the patch to this file.
2705         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
2706         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
2707
2708 2012-07-03  Jim Meyering  <meyering@redhat.com>
2709
2710         bootstrap: do not require now-removed build-aux/missing
2711         Now that build-aux/missing is, er, missing, bootstrap would
2712         silently fail.
2713         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
2714         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
2715         no longer part of gnulib.
2716         Diagnose the failure.
2717
2718 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
2719
2720         alloca: add support for HP NonStop TNS/E native
2721         * lib/alloca.in.h (alloca): Support the new host.
2722         From a suggestion by Joachim Schmitz in
2723         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
2724
2725 2012-07-02  Pádraig Brady  <P@draigBrady.com>
2726
2727         fsusage: remove code not needed on non GNU/Linux systems.
2728
2729         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2730         Don't include headers no longer needed in this case.
2731         * lib/fsusage.c [STAT_STATVFS &&
2732         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
2733         STAT_STATFS2_FRSIZE to exclude code not used in this case.
2734
2735 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
2736
2737         fsusage: include files needed for glibc 2.6 fallback
2738         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
2739         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
2740         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
2741         Problem reported by Ludovic Courtès in
2742         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
2743
2744         fsusage: avoid needless check on GNU/Linux
2745         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
2746         on GNU/Linux systems, since it can't possibly work.
2747
2748 2012-07-01  Bruno Haible  <bruno@clisp.org>
2749
2750         log: Fix an autoconf >= 2.64 warning.
2751         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
2752         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2753
2754 2012-06-28  Bruno Haible  <bruno@clisp.org>
2755
2756         log10f: Fix possible configuration problem.
2757         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
2758         $LOGF_LIBM.
2759         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2760
2761 2012-06-28  Bruno Haible  <bruno@clisp.org>
2762
2763         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
2764         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
2765         not gl_cv_func_unlink_works.
2766         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
2767
2768 2012-06-27  Eric Blake  <eblake@redhat.com>
2769
2770         config: drop scripts that automake says are not independent
2771         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
2772         * build-aux/elisp-comp: Delete.
2773         * build-aux/missing: Likewise.
2774         * build-aux/ylwrap: Likewise.
2775         * modules/elisp-comp: Likewise.
2776         * MODULES.html.sh: Drop mention of elisp-comp.
2777         * NEWS: Mention this.
2778
2779 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
2780
2781         root-uid: new module
2782         This is for portability to Tandem's NonStop Kernel.
2783         * lib/root-uid.h, modules/root-uid: New files.
2784         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
2785         * lib/write-any-file.c, tests/test-sethostname2.c:
2786         Include "root-uid.h".
2787         * lib/euidaccess.c (euidaccess):
2788         * lib/pt_chown.c (main):
2789         * lib/unlinkdir.c (cannot_unlink_dir):
2790         * lib/write-any-file.c (can_write_any_file):
2791         * m4/mknod.m4 (gl_FUNC_MKNOD):
2792         * tests/test-sethostname2.c (geteuid, main):
2793         Don't assume ROOT_UID == 0.
2794         * modules/euidaccess (Depends-on):
2795         * modules/pt_chown (Depends-on):
2796         * modules/sethostname-tests (Depends-on):
2797         * modules/unlinkdir (Depends-on):
2798         * modules/write-any-file (Depends-on):
2799         Add root-uid.
2800
2801         regex: use locale-independent comparison for codeset name
2802         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
2803         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
2804         for codeset name.
2805         * lib/regex_internal.h: Do not include <strings.h>, since we
2806         no longer use strcasecmp.
2807         * modules/regex (Depends-on): Remove strcase.
2808
2809 2012-06-23  Bruno Haible  <bruno@clisp.org>
2810
2811         getopt-posix: No longer guarantee that option processing is resettable.
2812         * doc/posix-functions/getopt.texi: Drop description of problem with
2813         internal state. Fix info about mingw and msvc9.
2814         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2815         option processing by getopt(). Run three test programs instead of one.
2816         Simplify cross-compilation guess.
2817         * NEWS: Mention the change.
2818         Reported by Rich Felker <dalias@aerifal.cx>.
2819
2820 2012-06-26  Bruno Haible  <bruno@clisp.org>
2821
2822         argp, regex: Ensure strcasecmp gets declared.
2823         * lib/argp-help.c: Include <strings.h>.
2824         * lib/regex_internal.h: Likewise.
2825         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2826
2827 2012-06-24  Bruno Haible  <bruno@clisp.org>
2828
2829         ptsname_r: Make it consistent with ptsname on AIX.
2830         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2831         implementation as for OSF/1.
2832         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2833         a pty master.
2834
2835         ptsname_r: Make it consistent with ptsname on OSF/1.
2836         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2837         OSF/1.
2838
2839 2012-06-24  Bruno Haible  <bruno@clisp.org>
2840
2841         ttyname_r: Fix result on OSF/1, Solaris.
2842         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2843
2844 2012-06-24  Bruno Haible  <bruno@clisp.org>
2845
2846         ptsname_r: Add support for Solaris.
2847         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2848         Solaris.
2849
2850         ptsname_r: Fix test failure on native Windows.
2851         * modules/ptsname_r (Depends-on): Add isatty.
2852
2853         ptsname_r: Fix test failures on IRIX, Solaris.
2854         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2855         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2856         accordingly.
2857         * lib/ptsname_r.c: Include <fcntl.h>.
2858         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2859         set errno if fd is invalid.
2860         * tests/test-isatty.c (main): Update comments.
2861
2862 2012-06-24  Bruno Haible  <bruno@clisp.org>
2863
2864         ptsname test: Extend test.
2865         * tests/test-ptsname.c: Include <errno.h>.
2866         (main): Test behaviour with invalid file descriptor.
2867
2868 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2869
2870         time: fix obsolete comment
2871         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2872         reference to HAVE_STRUCT_TIMESPEC in comment.
2873
2874 2012-06-23  Bruno Haible  <bruno@clisp.org>
2875
2876         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2877         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2878         does not handle abbreviated long options with equivalent
2879         disambiguations, set gl_replace_getopt to yes.
2880         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2881
2882 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2883
2884         time_r: fix typo that always overrode localtime_r decl
2885         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2886         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2887         not in a standard include.
2888
2889 2012-06-22  Bruno Haible  <bruno@clisp.org>
2890
2891         Write "Mac OS X" instead of "MacOS X".
2892         * README: Write "Mac OS X" instead of "MacOS X".
2893         * build-aux/bootstrap: Likewise.
2894         * build-aux/install-reloc: Likewise.
2895         * lib/acl-internal.h: Likewise.
2896         * lib/acl_entries.c: Likewise.
2897         * lib/argp-ba.c: Likewise.
2898         * lib/argp-pv.c: Likewise.
2899         * lib/config.charset: Likewise.
2900         * lib/copy-acl.c: Likewise.
2901         * lib/csharpexec.c: Likewise.
2902         * lib/euidaccess.c: Likewise.
2903         * lib/fbufmode.c: Likewise.
2904         * lib/fflush.c: Likewise.
2905         * lib/file-has-acl.c: Likewise.
2906         * lib/filemode.h: Likewise.
2907         * lib/fpurge.c: Likewise.
2908         * lib/freadable.c: Likewise.
2909         * lib/freadahead.c: Likewise.
2910         * lib/freading.c: Likewise.
2911         * lib/freadptr.c: Likewise.
2912         * lib/freadseek.c: Likewise.
2913         * lib/fseeko.c: Likewise.
2914         * lib/fseterr.c: Likewise.
2915         * lib/fsusage.c: Likewise.
2916         * lib/fwritable.c: Likewise.
2917         * lib/fwriting.c: Likewise.
2918         * lib/get-rusage-as.c: Likewise.
2919         * lib/get-rusage-data.c: Likewise.
2920         * lib/getdomainname.c: Likewise.
2921         * lib/idpriv-drop.c: Likewise.
2922         * lib/idpriv-droptemp.c: Likewise.
2923         * lib/localcharset.c: Likewise.
2924         * lib/locale.in.h: Likewise.
2925         * lib/localename.c: Likewise.
2926         * lib/mbsrtowcs-state.c: Likewise.
2927         * lib/nproc.c: Likewise.
2928         * lib/passfd.c: Likewise.
2929         * lib/posix_openpt.c: Likewise.
2930         * lib/printf-parse.c: Likewise.
2931         * lib/progreloc.c: Likewise.
2932         * lib/safe-read.h: Likewise.
2933         * lib/safe-write.h: Likewise.
2934         * lib/sched.in.h: Likewise.
2935         * lib/set-mode-acl.c: Likewise.
2936         * lib/signal.in.h: Likewise.
2937         * lib/stdint.in.h: Likewise.
2938         * lib/stdio-impl.h: Likewise.
2939         * lib/stdlib.in.h: Likewise.
2940         * lib/strtod.c: Likewise.
2941         * lib/sys_select.in.h: Likewise.
2942         * lib/tcgetsid.c: Likewise.
2943         * lib/unistd.in.h: Likewise.
2944         * lib/unlockpt.c: Likewise.
2945         * lib/vasnprintf.c: Likewise.
2946         * lib/vma-iter.c: Likewise.
2947         * lib/wcsrtombs-state.c: Likewise.
2948         * m4/acl.m4: Likewise.
2949         * m4/acosl.m4: Likewise.
2950         * m4/asinl.m4: Likewise.
2951         * m4/atanl.m4: Likewise.
2952         * m4/c-stack.m4: Likewise.
2953         * m4/cosl.m4: Likewise.
2954         * m4/expl.m4: Likewise.
2955         * m4/extensions.m4: Likewise.
2956         * m4/fdatasync.m4: Likewise.
2957         * m4/fmal.m4: Likewise.
2958         * m4/frexp.m4: Likewise.
2959         * m4/frexpf.m4: Likewise.
2960         * m4/frexpl.m4: Likewise.
2961         * m4/fsusage.m4: Likewise.
2962         * m4/getdomainname.m4: Likewise.
2963         * m4/getloadavg.m4: Likewise.
2964         * m4/getopt.m4: Likewise.
2965         * m4/gettext.m4: Likewise.
2966         * m4/gnulib-common.m4: Likewise.
2967         * m4/intdiv0.m4: Likewise.
2968         * m4/intlmacosx.m4: Likewise.
2969         * m4/largefile.m4: Likewise.
2970         * m4/ldexpl.m4: Likewise.
2971         * m4/link-follow.m4: Likewise.
2972         * m4/locale-ar.m4: Likewise.
2973         * m4/locale-fr.m4: Likewise.
2974         * m4/locale-ja.m4: Likewise.
2975         * m4/locale-tr.m4: Likewise.
2976         * m4/locale-zh.m4: Likewise.
2977         * m4/locale_h.m4: Likewise.
2978         * m4/lock.m4: Likewise.
2979         * m4/logl.m4: Likewise.
2980         * m4/mathfunc.m4: Likewise.
2981         * m4/minus-zero.m4: Likewise.
2982         * m4/mktime.m4: Likewise.
2983         * m4/mmap-anon.m4: Likewise.
2984         * m4/multiarch.m4: Likewise.
2985         * m4/nanosleep.m4: Likewise.
2986         * m4/nocrash.m4: Likewise.
2987         * m4/poll.m4: Likewise.
2988         * m4/printf-frexpl.m4: Likewise.
2989         * m4/printf.m4: Likewise.
2990         * m4/signbit.m4: Likewise.
2991         * m4/sinl.m4: Likewise.
2992         * m4/sqrtl.m4: Likewise.
2993         * m4/strerror_r.m4: Likewise.
2994         * m4/tanl.m4: Likewise.
2995         * m4/threadlib.m4: Likewise.
2996         * m4/ttyname_r.m4: Likewise.
2997         * m4/unlink.m4: Likewise.
2998         * m4/visibility.m4: Likewise.
2999         * m4/wcwidth.m4: Likewise.
3000         * tests/minus-zero.h: Likewise.
3001         * tests/test-alloca-opt.c: Likewise.
3002         * tests/test-copy-acl.sh: Likewise.
3003         * tests/test-copy-file.sh: Likewise.
3004         * tests/test-fdatasync.c: Likewise.
3005         * tests/test-file-has-acl.sh: Likewise.
3006         * tests/test-flock.c: Likewise.
3007         * tests/test-fsync.c: Likewise.
3008         * tests/test-localename.c: Likewise.
3009         * tests/test-malloca.c: Likewise.
3010         * tests/test-nonblocking-pipe.h: Likewise.
3011         * tests/test-nonblocking-socket.h: Likewise.
3012         * tests/test-openpty.c: Likewise.
3013         * tests/test-posix_openpt.c: Likewise.
3014         * tests/test-ptsname.c: Likewise.
3015         * tests/test-ptsname_r.c: Likewise.
3016         * tests/test-sameacls.c: Likewise.
3017         * tests/test-select.h: Likewise.
3018         * tests/test-set-mode-acl.sh: Likewise.
3019         * tests/test-snprintf-posix.h: Likewise.
3020         * tests/test-sprintf-posix.h: Likewise.
3021         * tests/test-strtod.c: Likewise.
3022         * tests/test-time.c: Likewise.
3023         * tests/test-vasnprintf-posix.c: Likewise.
3024         * tests/test-vasprintf-posix.c: Likewise.
3025         * doc/acl-resources.txt: Likewise.
3026         * doc/**/*.texi: Likewise.
3027         Reported by Max Horn <max@quendi.de>.
3028
3029 2012-06-22  Bruno Haible  <bruno@clisp.org>
3030
3031         grantpt: Relax requirement regarding invalid file descriptors.
3032         * lib/grantpt.c: Don't include <fcntl.h>.
3033         (grantpt): Don't verify the validity of the file descriptor.
3034         * modules/grantpt (Depends-on): Remove fcntl-h.
3035         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
3036         file descriptors.
3037         * doc/posix-functions/grantpt.texi: Document more platforms on which
3038         grantpt succeeds for invalid file descriptors.
3039         Reported by Rich Felker <dalias@aerifal.cx>.
3040
3041 2012-06-22  Bruno Haible  <bruno@clisp.org>
3042
3043         fbufmode test: Don't test unportable behaviour.
3044         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
3045         (main): Invoke it three times.
3046         Reported by Szabolcs Nagy <nsz@port70.net>
3047         and Rich Felker <dalias@aerifal.cx>.
3048
3049 2012-06-21  Bruno Haible  <bruno@clisp.org>
3050
3051         gnulib-tool: Refactor inctests variable.
3052         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
3053         (func_modules_transitive_closure,
3054         func_modules_transitive_closure_separately,
3055         func_import, func_create_testdir): Update.
3056
3057         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
3058         * gnulib-tool: Accept option --without-tests.
3059         (func_usage): Document --without-tests option. Rearrange.
3060         (inctests): Normalize according to the mode.
3061         * NEWS: Mention the change.
3062         Suggested by Simon Josefsson.
3063
3064 2012-06-21  Bruce Korb  <bkorb@gnu.org>
3065
3066         parse-duration test: Avoid spurious output.
3067         * tests/test-parse-duration.sh: Reindent with leading tabs.
3068
3069 2012-06-21  Jim Meyering  <meyering@redhat.com>
3070
3071         maint: disable the strncpy prohibition
3072         * cfg.mk: Do not prohibit strncpy here.
3073
3074 2012-06-21  Bruno Haible  <bruno@clisp.org>
3075
3076         nonblocking: Avoid compilation error on mingw64.
3077         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
3078         fscanf.
3079         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
3080         * modules/vfscanf (configure.ac): Likewise.
3081         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
3082         definition only if stdio.h has prepared it.
3083         Reported by Daniel P. Berrange <berrange@redhat.com>.
3084
3085 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
3086
3087         gnulib-tool: Use readlink if it is available.
3088         * gnulib-tool (func_readlink): Choose function more appropriately.
3089
3090 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
3091
3092         posixtm-tests: port to buggy compiler
3093         Problem reported by Simon Josefsson in
3094         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
3095         * modules/posixtm-tests (Depends-on): Add stdint.
3096         * tests/test-posixtm.c (struct posixtm_test.t_expected):
3097         Now of type int_least64_t, not int64_t, both because that's
3098         what INT64_C returns and because int_least64_t works even
3099         on 72-bit hosts.
3100         (T): Use INT64_C on constants outside the traditional int range,
3101         to work around compiler bug noted by Simon.
3102
3103         mktime: fix integer overflow in 'configure'-time test
3104         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
3105         after integer overflow.  Problem reported by Rich Felker in
3106         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
3107         Also, don't look for further instances of a bug if we've already
3108         found one instance; this helps 'configure' run faster.
3109
3110 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
3111
3112         tmpfile, clean-temp: Fix invocation of GetVersionEx.
3113         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
3114         GetVersionEx correctly.
3115         * lib/clean-temp.c (supports_delete_on_close): Likewise.
3116
3117 2012-06-20  Bruno Haible  <bruno@clisp.org>
3118
3119         fdopen: Allow implementations that don't reject invalid fd arguments.
3120         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
3121         succeeds.
3122         Reported by Rich Felker <dalias@aerifal.cx>.
3123
3124 2012-06-20  Simon Josefsson  <simon@josefsson.org>
3125
3126         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
3127         bring in LIBINTL.
3128
3129 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3130
3131         init.sh: do not rely on autoupated PWD
3132         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
3133         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
3134         Although Nelson's bug was not necessarily fixed by this patch,
3135         it seems wise to make the change for safety.
3136         * tests/init.sh (path_prepend_): Do not rely on PWD updating
3137         automagically after 'cd'; this is not reliable on older shells.
3138         (setup_): Fail if we cannot cd to temporary directory.
3139
3140 2012-06-19  Bruno Haible  <bruno@clisp.org>
3141
3142         stat, fstat: Avoid warnings on mingw64.
3143         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
3144         redefining.
3145         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
3146         Reported by Daniel P. Berrange <berrange@redhat.com>.
3147
3148 2012-06-19  Bruno Haible  <bruno@clisp.org>
3149
3150         stdioext: Add support for musl libc.
3151
3152         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
3153         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
3154
3155         * m4/fseterr.m4: New file.
3156         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
3157         function exists.
3158         * modules/fseterr (Files): Add m4/fseterr.m4.
3159         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
3160         __fseterr does not exist.
3161         (Makefile.am): Remove fseterr.c from lib_SOURCES.
3162
3163         * lib/freadable.h: Update comment.
3164
3165         * lib/fwritable.h: Update comment.
3166
3167         * lib/freading.h: Update comment.
3168
3169         * lib/fwriting.h: Update comment.
3170
3171         * m4/freadahead.m4: New file.
3172         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
3173         that function exists.
3174         * modules/freadahead (Files): Add m4/freadahead.m4.
3175         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
3176         __freadahead does not exist.
3177         (Makefile.am): Remove freadahead.c from lib_SOURCES.
3178
3179         * m4/freadptr.m4: New file.
3180         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
3181         function exists.
3182         * modules/freadptr (Files): Add m4/freadptr.m4.
3183         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
3184         __freadptr does not exist.
3185         (Makefile.am): Remove freadptr.c from lib_SOURCES.
3186
3187         * m4/freadseek.m4: New file.
3188         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
3189         exists.
3190         * modules/freadseek (Files): Add m4/freadseek.m4.
3191         (configure.ac): Invoke gl_FUNC_FREADSEEK.
3192
3193         * lib/fpurge.c (fpurge): Update comment.
3194
3195         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
3196
3197 2012-06-19  Bruno Haible  <bruno@clisp.org>
3198
3199         *printf-posix: Put more info into config.log.
3200         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
3201         exit code into config.log.
3202
3203 2012-06-19  Bruno Haible  <bruno@clisp.org>
3204
3205         getopt-gnu: Fix exit code overflow in autoconf test.
3206         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
3207         to keep them below < 128.
3208
3209 2012-06-17  Jim Meyering  <meyering@redhat.com>
3210
3211         maint.mk: fix typo in code to derive GPG key at release time
3212         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
3213
3214 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
3215
3216         regex: avoid warning when pointers are not long
3217         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
3218         and uintptr_t, not long, for portability to hosts where pointers and
3219         long have different sizes.  Issue noted by Daniel P. Berrange in
3220         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
3221         and fix suggested by Bruno Haible in
3222         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
3223
3224 2012-06-17  Bruno Haible  <bruno@clisp.org>
3225
3226         dummy: Relicense into the public domain.
3227         * modules/dummy (License): Set to "public domain".
3228         Suggested by Reuben Thomas.
3229
3230 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3231
3232         announce-gen: VPATH issues
3233         * build-aux/announce-gen (--srcdir): New option, used to trim the
3234         $srcdir part of the path from $builddir to NEWS.
3235         * top/maint.mk (announcement): Adjust.
3236
3237 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
3238
3239         gnu-web-doc-update: VPATH builds
3240         * build-aux/gnu-web-doc-update (--builddir): New option.
3241         Revamp the handling of options.
3242         Prefer $(...) to `...`.
3243         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
3244         the template, and it is GNU mktemp specific.
3245         Prefer set -e to long series of &&.
3246         Restore the initial git branch, not "master".
3247         Properly initialize submodules (don't rely only on bootstrap).
3248         Do not reconfigure blindly, use config.status.
3249         * top/README-release: Update instructions for gnu-web-doc-update.
3250
3251 2012-06-11  Jim Meyering  <meyering@redhat.com>
3252
3253         maint.mk: revert most of the previous change re "all these"
3254         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
3255         For rationale, see the discussion at
3256         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
3257
3258 2012-06-10  Karl Berry  <karl@gnu.org>
3259
3260         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
3261
3262         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
3263
3264 2012-06-10  Bruce Korb  <bkorb@gnu.org>
3265
3266         parse-duration: Relicense under LGPLv2+.
3267         * modules/parse-duration (License): Change to LGPLv2+.
3268
3269 2012-06-10  Jim Meyering  <meyering@redhat.com>
3270
3271         maint.mk: prohibit common grammar error: "all these"
3272         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
3273         the list of prohibited word sequences.  It should be "all of these".
3274         * lib/tempname.c (__gen_tempname): Fix one of them.
3275
3276 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3277
3278         do-release-commit-and-tag: support VPATH builds
3279         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
3280         (noteworthy): Defined earlier to factor its value.
3281         (noteworthy_stub): New.
3282         Use it to factor.
3283         (help_version): Split into...
3284         (help, version): these.
3285         Adjust the option processing part.
3286         Support "--option=value" in addition to "--option value".
3287         (builddir): New.
3288         (--builddir): New option.
3289         * top/README-release: Document this.
3290         Reword slightly so that the reader cannot understand that he
3291         has to do these steps before calling do-release-commit-and-tag.
3292
3293 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3294
3295         readme-release: also require announce-gen and maintainer-makefile
3296         * modules/readme-release (Depends-on): here.
3297         * modules/announce-gen, modules/do-release-commit-and-tag,
3298         modules/gnu-web-doc-update, modules/maintainer-makefile
3299         (Description): Point to readme-release.
3300
3301 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
3302
3303         maint.mk: fix VPATH issues.
3304         * top/maint.mk (news-check): GNU Make understand $< very well.
3305         (release-prep): NEWS is in $(srcdir).
3306
3307 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
3308
3309         readme-release: require the promoted modules.
3310         * modules/readme-release (Depends-on): Add
3311         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
3312         in this text.
3313
3314 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3315             Bruno Haible  <bruno@clisp.org>
3316
3317         error, strerror-override: Support mingw64 from Fedora 17.
3318         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
3319         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
3320         EINPROGRESS.
3321         * lib/strerror-override.h (strerror_override): Test it.
3322         * lib/strerror-override.c (strerror_override): Likewise.
3323         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
3324
3325 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3326             Bruno Haible  <bruno@clisp.org>
3327
3328         error, strerror-override: Support mingw64 from Fedora 17.
3329         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
3330         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
3331         * lib/strerror-override.h (strerror_override): Test it.
3332         * lib/strerror-override.c (strerror_override): Likewise.
3333
3334 2012-06-03  Bruno Haible  <bruno@clisp.org>
3335
3336         error, strerror-override: Support new errno values from POSIX:2008.
3337         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
3338         ENOTRECOVERABLE.
3339         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
3340         platforms.
3341         * lib/strerror-override.c (strerror_override): Conditionalize the
3342         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
3343         * lib/strerror-override.h (strerror_override): Declare also if
3344         GNULIB_defined_EOWNERDEAD is defined.
3345         * tests/test-errno.c (e130, e131): New variables.
3346         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
3347         ENOTRECOVERABLE.
3348         Reported by Paolo Bonzini.
3349
3350 2012-05-31  Jim Meyering  <meyering@redhat.com>
3351
3352         savewd: add missing dependency on sys_wait module
3353         * modules/savewd (Depends-on): Add sys_wait, needed at least
3354         for MSVC.  Report and suggested change by Michael Goffioul.
3355
3356 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
3357
3358         system-quote-tests: port to CentOS 5
3359         Problem reported by Tom G. Christensen in
3360         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
3361         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
3362
3363 2012-05-29  Jim Meyering  <meyering@redhat.com>
3364
3365         maint: fix typos in comments and ChangeLog
3366         Culprits identified and fixed mostly automatically using these commands:
3367         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
3368         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
3369         using http://github.com/lyda/misspell-check
3370         * ChangeLog: Fix typos.
3371         * doc/solaris-versions: Likewise.
3372         * lib/regexec.c (re_search_stub): Likewise.
3373         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
3374
3375 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
3376
3377         manywarnings: remove duplicate -Wmultichar entry
3378         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
3379         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
3380         so keep the entry marked as documented.
3381
3382 2012-05-27  Karl Berry  <karl@gnu.org>
3383
3384         * config/srclist.txt (mktime.c): remove last libc sync,
3385         perhaps just temporarily.
3386
3387 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
3388
3389         regex: don't assume uint64_t or uint32_t
3390         * lib/regcomp.c (init_word_char): Don't assume that the types
3391         uint64_t and uint32_t exist.  The C standard doesn't guarantee
3392         them, and on some 32-bit compilers there is no uint64_t.
3393         Problem reported by Gianluigi Tiesi in
3394         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
3395
3396 2012-05-25  Jim Meyering  <meyering@redhat.com>
3397
3398         maint.mk: add strncpy-prohibiting syntax-check rule
3399         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
3400
3401 2012-05-24  Jim Meyering  <meyering@redhat.com>
3402
3403         maint.mk: compute $(gpg_key_ID) more portably
3404         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
3405         That use of sed is not portable to some fringe systems.
3406         Reported by Paul Eggert in
3407         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
3408
3409 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3410
3411         mktime: sync from glibc
3412         * config/srclist.txt: Uncomment mktime.c.
3413         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
3414         First, indent with tabs, since glibc uses tabs and doesn't want to
3415         change and we'd rather be identical to glibc.  Also, two small
3416         coding changes:
3417         (isdst_differ): Use &&, not &, as && is the usual style.
3418         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
3419         for clarity.
3420
3421 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3422
3423         announce-gen: du -h is more portable than du --human
3424         * build-aux/announce-gen (sizes): Invoke du with -h instead
3425         of --human.  Accept leading white space in its output.
3426
3427 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3428
3429         announce-gen: Improve diagnostics.
3430         * build-aux/announce-gen: When parsing command line options,
3431         prefer "announce-gen: option --release-type requires an argument"
3432         to "Option release-type requires an argument".
3433
3434 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
3435
3436         maint.mk: gpg_key_ID: use sed more portably
3437         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
3438         the closing brace.
3439         (refresh-po): Fuse two sed invocations into one.
3440
3441 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
3442
3443         gitlog-to-changelog: support the log message format used in Bison.
3444         * build-aux/gitlog-to-changelog: Support --strip-tab and
3445         --strip-cherry-picked.
3446
3447 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
3448
3449         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
3450         the rest of the current time slice to another thread in the current
3451         process. So if the thread that feeds the file decscriptor we're
3452         polling is not in the current process, we get busy-waiting.
3453         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
3454         Patch from Theodore Leblond.
3455         * lib/select.c: Split polling out of the loop that sets the output
3456         fd_sets.  Check for zero result and loop if the wait timeout is
3457         infinite.
3458
3459 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3460
3461         select: Fix build error on IRIX 6.5.
3462         * lib/select.c: Include stddef.h for NULL.
3463
3464 2012-05-21  Simon Josefsson  <simon@josefsson.org>
3465
3466         gc: fix libgcrypt detection on older machines.
3467         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
3468         copyright years because the file has been distributed every year
3469         since it was created.
3470
3471 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
3472
3473         crypto: fix bug in large buffer handling
3474         Problem reported by Serge Belyshev for glibc in
3475         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
3476         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
3477         * lib/md4.c (md4_process_block):
3478         * lib/md5.c (md5_process_block):
3479         * lib/sha1.c (sha1_process_block):
3480         * lib/sha256.c (sha256_process_block):
3481         Don't assume the buffer length is less than 2**32.
3482         * lib/sha512.c (sha512_process_block): Likewise.
3483         Here, the bug is present only in the rare case where the host does
3484         not support uint64_t or where size_t is wider than 64 bits.
3485         Use u64size to work around the problems.
3486         * lib/u64.h (u64size): New macro.
3487
3488 2012-05-15  Pádraig Brady  <P@draigBrady.com>
3489
3490         fsusage: fix block size returned on older Linux 2.6
3491
3492         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
3493         which is available since Linux 2.6.
3494         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
3495         when the member is available so it can be used as a fallback.
3496         * doc/posix-functions/statvfs.texi: Mention the hang issue
3497         on Linux < 2.6.36.
3498
3499 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
3500
3501         bootstrap: suppress stderr chatter
3502         * build-aux/bootstrap (insert_sorted_if_absent, main program):
3503         Omit unnecessary chatter to stderr.  The main program chatter
3504         was there only inadvertantly.
3505
3506         bootstrap: .gitignore files created by autopoint, libtool
3507         I ran into this problem when bootstrapping the latest diffutils.
3508         After './bootstrap', 'git status' reported lots of untracked files
3509         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
3510         autopoint and do not need to be version-controlled.
3511         * build-aux/bootstrap: Put into .gitignore the files that
3512         autopoint and libtool create, by keeping track of files that exist
3513         after but not before these programs are run.
3514         (version_controlled_file): Move up.  2nd arg is now full file
3515         name, not base name; this is more convenient.  Put CVS at the end,
3516         as it's now somewhat deprecated.
3517
3518 2012-05-14  Jim Meyering  <meyering@redhat.com>
3519
3520         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
3521         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
3522         definition.  Reported by Bruno Haible.
3523
3524 2012-05-13  Bruno Haible  <bruno@clisp.org>
3525             Paul Eggert  <eggert@cs.ucla.edu>
3526
3527         binary-io: Define set_binary_mode function.
3528         * lib/binary-io.h (set_binary_mode): New function.
3529         (SET_BINARY): Define in terms of set_binary_mode.
3530         * modules/binary-io (configure.ac): Require AC_C_INLINE.
3531         * tests/test-binary-io.c (main): Accept an argument, and test either
3532         set_binary_mode or SET_BINARY depending on the argument.
3533         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
3534         argument. Clean up also t-bin-out0.tmp.
3535
3536 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
3537
3538         bootstrap: take advantage of POSIX shell features
3539
3540         The 'bootstrap' script offered by Gnulib script already uses POSIX
3541         shell features (like $((...)) arithmetic expansions) that are not
3542         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
3543         means that bootstrap must already be run using a proper POSIX shell,
3544         which will thus provide more features, like ${var#pattern} parameter
3545         expansion or inversion of a command exit status with '!'.  We can
3546         thus use these features to improve the clarity and the performances
3547         of the bootstrap script.
3548
3549         Suggested by Eric Blake.
3550
3551         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
3552         of sed/expr plus command substitutions, to save some forks.  While
3553         we are at it, prefer the POSIX $(...) form of command substitution,
3554         rather than the legacy form `...` (since the former is visually
3555         clearer and interacts better with quoting), and prefer the idiom:
3556           "if ! CMD; then ACTION ..."
3557         over the idiom:
3558           "if CMD; then :; else ACTION ..."
3559         which was required by legacy Bourne shells not supporting '!'.
3560
3561 2012-05-12  Bruno Haible  <bruno@clisp.org>
3562
3563         system-quote: Add more comments.
3564         * lib/system-quote.h: Add more comments about wilcards and limitations.
3565         Suggested by Eli Zaretskii <eliz@gnu.org>.
3566
3567         sh-quote, system-quote: Add comments about wildcards.
3568         * lib/sh-quote.h: Clarify what happens with wildcard characters.
3569         * lib/system-quote.h: Likewise.
3570         Reported by Eli Zaretskii <eliz@gnu.org>.
3571
3572 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
3573
3574         fsusage: check for GNU/Linux statvfs problem dynamically
3575         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
3576         Define STAT_STATFS2_BSIZE too, since in this case the code now
3577         checks dynamically whether statvfs is reliable, falling back on
3578         Linux-style statfs otherwise.
3579         (statvfs_works): New function, for dynamically testing statvfs.
3580         (get_fs_usage) [STAT_STATVFS]: Use it.
3581         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
3582         statvfs on GNU/Linux hosts, since it's now done dynamically.
3583
3584 2012-05-10  Bruno Haible  <bruno@clisp.org>
3585
3586         system-quote, execute, spawn-pipe: Escape '?' on Windows.
3587         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
3588         '?' character.
3589         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
3590         * tests/test-system-quote-main.c (check_all): Check also strings like
3591         "??????????".
3592         Reported by Eli Zaretskii <eliz@gnu.org>.
3593
3594 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
3595
3596         _Noreturn: port config.h to gcc -Wundef
3597         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
3598         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
3599         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
3600
3601 2012-05-10  Bruno Haible  <bruno@clisp.org>
3602
3603         system-quote: Refactor.
3604         * lib/system-quote.h (system_quote_copy): Fix comment.
3605         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
3606         New functions, extracted from system_quote_copy.
3607         (system_quote_length, system_quote_copy): Use these functions.
3608         Reported by Paul Eggert.
3609
3610 2012-05-08  Bruno Haible  <bruno@clisp.org>
3611
3612         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
3613         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
3614
3615 2012-05-08  Bruno Haible  <bruno@clisp.org>
3616
3617         Tests for module 'system-quote'.
3618         * modules/system-quote-tests: New file.
3619         * tests/test-system-quote.sh: New file.
3620         * tests/test-system-quote-main.c: New file.
3621         * tests/test-system-quote-child.c: New file.
3622
3623         New module 'system-quote'.
3624         * lib/system-quote.h: New file.
3625         * lib/system-quote.c: New file.
3626         * modules/system-quote: New file.
3627
3628 2012-05-08  Bruno Haible  <bruno@clisp.org>
3629
3630         sh-quote: Make C++ safe and allow multiple inclusion.
3631         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
3632         declarations in extern "C".
3633
3634 2012-05-08  Bruno Haible  <bruno@clisp.org>
3635
3636         sh-quote tests: Make tests stricter.
3637         * tests/test-sh-quote.c (check_one): Check the return value of
3638         shell_quote_copy.
3639         (main): Check a string with a CR character. Check a string that
3640         contains UCHAR_MAX.
3641
3642 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
3643
3644         warnings.m4: provide a means to specify the program to compile.
3645         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
3646         (gl_WARN_ADD): here.
3647         Use gl_AS_VAR_APPEND.
3648         Support an argument to specify the program to compile.
3649         (gl_WARN_ADD): Accept an argument to specify the program to compile.
3650         AC_SUBST the WARN_CFLAGS when they are used.
3651         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
3652         leave this to gl_WARN_ADD.
3653
3654 2012-05-08  Eric Blake  <eblake@redhat.com>
3655
3656         doc: recommendations on gettext version
3657         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
3658         choice between versions.
3659         * DEPENDENCIES (gettext): Cover both approaches.
3660
3661 2012-05-08  Jim Meyering  <meyering@redhat.com>
3662
3663         init.sh: explain why EXEEXT support uses aliases rather than functions
3664         * tests/init.sh: Add a comment.
3665
3666         init.sh: don't let bash aliases interfere with tests
3667         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
3668         is bash.  This avoids problems for those who alias standard commands to
3669         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
3670         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
3671
3672 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
3673
3674         stdint: be more consistent with glibc, SunOS libc
3675         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
3676         (gl_int_fast16_t, gl_uint_fast16_t)
3677         (gl_int_fast32_t, gl_uint_fast32_t)
3678         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
3679         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
3680         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
3681         Be consistent with glibc by default, and with SunOS 5.10 and later
3682         if __sun is defined.  This lessens the likelihood of clashes if
3683         code compiled for older hosts is combined with code compiled for
3684         newer ones.  Problem reported by Niels Möller in
3685         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
3686
3687 2012-05-07  Eric Blake  <eblake@redhat.com>
3688
3689         isatty: relax license to LGPLv2+
3690         * modules/isatty (License): Relax license.
3691
3692 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3693
3694         stat-size: comment fix
3695         * lib/stat-size.h: Remove obsolete comment about indenting.
3696
3697 2012-05-06  Bruno Haible  <bruno@clisp.org>
3698
3699         Tests for module 'sh-quote'.
3700         * modules/sh-quote-tests: New file.
3701         * tests/test-sh-quote.c: New file.
3702
3703 2012-05-06  Bruno Haible  <bruno@clisp.org>
3704
3705         sh-quote: Improve shell_quote_argv's signature.
3706         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
3707         * lib/sh-quote.c (shell_quote_argv): Likewise.
3708
3709 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
3710
3711         stdint: document issues with int_fast8_t etc.
3712         * doc/posix-headers/stdint.texi (stdint.h): Say that other
3713         stdint.h substitutes may define these types differently.  See
3714         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
3715
3716 2012-05-05  Bruno Haible  <bruno@clisp.org>
3717
3718         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
3719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
3720         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
3721         or 'guessing no (mishandles large arguments)'.
3722
3723 2012-05-05  Bruno Haible  <bruno@clisp.org>
3724
3725         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
3726         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
3727         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3728         set gl_cv_func_link_follows_symlink to "guessing no".
3729
3730 2012-05-05  Bruno Haible  <bruno@clisp.org>
3731
3732         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
3733         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
3734         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
3735         "guessing no".
3736         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
3737
3738 2012-05-05  Bruno Haible  <bruno@clisp.org>
3739
3740         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
3741         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
3742         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
3743         set gl_cv_struct_dirent_d_ino to "guessing yes".
3744
3745 2012-05-05  Bruno Haible  <bruno@clisp.org>
3746
3747         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
3748         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
3749         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
3750         "guessing yes".
3751
3752 2012-05-05  Bruno Haible  <bruno@clisp.org>
3753
3754         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
3755         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
3756         compiling to a glibc system, set gl_cv_func_signbit and
3757         gl_cv_func_signbit_gcc to "guessing yes".
3758
3759 2012-05-05  Bruno Haible  <bruno@clisp.org>
3760
3761         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
3762         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
3763         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
3764         to "guessing yes".
3765         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
3766         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
3767
3768 2012-05-05  Bruno Haible  <bruno@clisp.org>
3769
3770         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
3771         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
3772         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
3773         gl_cv_func_realpath_works to "guessing yes".
3774
3775 2012-05-05  Bruno Haible  <bruno@clisp.org>
3776
3777         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
3778         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
3779         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
3780
3781 2012-05-04  Bruno Haible  <bruno@clisp.org>
3782
3783         Tweak last commit.
3784         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
3785         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
3786
3787 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
3788
3789         unistd_h: make it easier to avoid sys_types_h
3790         This is useful for Emacs, which has its own method of porting to
3791         Windows, and which therefore does not need the sys_types_h module.
3792         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
3793         code moved here from gl_SYS_TYPES_H.
3794         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
3795         using the code directly.
3796         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
3797         gl_SYS_TYPES_H.
3798         * modules/sys_types (Files):
3799         * modules/unistd (Files): Add m4/off_t.m4.
3800
3801 2012-05-03  Bruno Haible  <bruno@clisp.org>
3802
3803         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
3804         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
3805         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
3806         "guessing yes" or "guessing no".
3807         (gl_FUNC_LSTAT): Update.
3808         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
3809         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
3810         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3811
3812 2012-05-03  Bruno Haible  <bruno@clisp.org>
3813
3814         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3815         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3816         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3817         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3818         cross-compiling, choose the first alternative on glibc systems.
3819         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3820
3821 2012-05-03  Bruno Haible  <bruno@clisp.org>
3822
3823         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3824         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3825         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3826
3827 2012-05-03  Bruno Haible  <bruno@clisp.org>
3828
3829         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3830         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3831
3832 2012-05-03  Bruno Haible  <bruno@clisp.org>
3833
3834         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3835         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3836         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3837         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3838         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3839         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3840         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3841         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3842         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3843         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3844         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3845         gl_cv_func_chown_ctime_works to "guessing yes".
3846         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3847         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3848         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3849         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3850         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3851         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3852         compiling to glibc systems, set gl_cv_func_open_directory_works to
3853         "guessing yes".
3854         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3855         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3856         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3857         "guessing yes".
3858         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3859         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3860         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3861         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3862         "guessing yes".
3863         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3864         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3865         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3866         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3867         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3868         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3869         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3870         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3871         "guessing yes".
3872         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3873         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3874         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3875         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3876         "guessing yes".
3877         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3878         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3879         "guessing yes".
3880         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3881         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3882         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3883         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3884         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3885         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3886         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3887         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3888         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3889         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3890         "guessing yes".
3891         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3892         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3893         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3894         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3895         "guessing yes".
3896         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3897         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3898         "guessing yes".
3899         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3900         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3901         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3902         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3903         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3904         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3905         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3906         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3907         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3908         "guessing yes".
3909         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3910         compiling to glibc systems, set gl_cv_func_mknod_works to
3911         "guessing yes".
3912         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3913         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3914         "guessing yes".
3915         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3916         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3917         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3918         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3919         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3920         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3921         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3922         compiling to glibc systems, set gl_cv_func_svid_putenv to
3923         "guessing yes".
3924         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3925         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3926         "guessing yes".
3927         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3928         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3929         "guessing yes".
3930         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3931         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3932         to "guessing yes".
3933         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3934         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3935         to "guessing yes".
3936         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3937         compiling to glibc systems, set gl_cv_func_rmdir_works to
3938         "guessing yes".
3939         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3940         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3941         gl_cv_func_unlink_parent_fails to "guessing yes".
3942         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3943         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3944         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3945         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3946         gl_cv_func_rename_dest_works to "guessing yes".
3947         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3948         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3949         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3950         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3951         "guessing yes".
3952         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3953         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3954         "guessing yes".
3955         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3956         compiling to glibc systems, set gl_cv_func_setenv_works to
3957         "guessing yes".
3958         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3959         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3960         "guessing yes".
3961         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3962         compiling to glibc systems, set gl_cv_func_sleep_works to
3963         "guessing yes".
3964         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3965         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3966         "guessing yes".
3967         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3968         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3969         "guessing yes".
3970         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3971         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3972         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3973         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3974         "guessing yes".
3975         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3976         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3977         "guessing yes".
3978         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3979         compiling to glibc systems, set gl_cv_func_usleep_works to
3980         "guessing yes".
3981         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3982         compiling to glibc systems, set gl_cv_func_futimesat_works to
3983         "guessing yes".
3984
3985 2012-05-03  Bruno Haible  <bruno@clisp.org>
3986
3987         Say "guessing yes" or "guessing no" when cross-compiling.
3988         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3989         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3990         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3991         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3992         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3993         am_cv_func_working_getline to "guessing yes" or "guessing no".
3994         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3995         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3996         (gl_FUNC_MEMMEM): When cross-compiling, set
3997         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3998         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3999         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
4000         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
4001         set gl_cv_func_strcasestr_works_always to "guessing yes" or
4002         "guessing no".
4003         (gl_FUNC_STRCASESTR): When cross-compiling, set
4004         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
4005         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
4006         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
4007         (gl_FUNC_STRSTR): When cross-compiling, set
4008         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
4009         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
4010         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
4011         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
4012         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
4013
4014 2012-05-01  Bruno Haible  <bruno@clisp.org>
4015
4016         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
4017         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
4018         * build-aux/reloc-ldflags: Likewise.
4019         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
4020
4021 2012-05-01  Bruno Haible  <bruno@clisp.org>
4022
4023         gnulib-tool: Remove transitional code.
4024         * gnulib-tool: Don't warn about --import with 0 arguments any more.
4025         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
4026
4027 2012-05-01  Bruno Haible  <bruno@clisp.org>
4028
4029         getcwd: Fix misindentation.
4030         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
4031
4032 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
4033
4034         exclude: process exclude and include directives in order
4035         This restores the pre-2009 behavior, and is part of a fix of a
4036         grep bug reported by Quentin Arce in
4037         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
4038         * lib/exclude.c (struct exclude): Remove 'tail' member.
4039         (new_exclude_segment): Prepend the new segment instead of appending.
4040         Return void, since that's now more convenient.
4041         (file_pattern_matches): Renamed from excluded_file_pattern_p.
4042         (file_name_matches): Renamed from excluded_file_name_p.
4043         (file_pattern_matches, file_name_matches):
4044         Return true if the pattern matches, not if it excludes.
4045         All callers changed.
4046         (excluded_file_name): Process the list in reverse order;
4047         since the list is now reversed this restores the pre-2009 behavior.
4048         (add_exclude): Adjust to new reversed-order list.  Use local var
4049         rather than macro, for clarity.
4050         * tests/test-exclude7.sh: Adjust to corrected behavior.
4051
4052         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
4053         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
4054         it's not possible here.  Handle the case of \ at end of pattern
4055         without dumping core.
4056         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
4057
4058         _Noreturn: future-proof non-GNU and non-MSVC compilers
4059         * build-aux/snippet/_Noreturn.h (_Noreturn):
4060         * m4/gnulib-common.m4 (gl_COMMON_BODY):
4061         Do not define _Noreturn if __STDC_VERSION__ indicates this is
4062         C11 or later.  This is more likely to work with random future C
4063         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
4064         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
4065
4066         exclude: handle wildcards with FNM_EXTMATCH
4067         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
4068         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
4069         comment that "has wildcards" really means "has or may have
4070         wildcards".  Simplify by avoiding the need to call strcspn.
4071
4072 2012-04-29  Bruno Haible  <bruno@clisp.org>
4073
4074         gnulib-tool: Fix list of authors.
4075         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
4076
4077 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
4078
4079         bootstrap: support Automake-NG in $buildreq
4080         * bootstrap (check_versions): Handle automake and aclocal from
4081         Automake-NG specially.  They can be specified as respectively
4082         the "automake-ng" and "aclocal-ng" requirements.
4083
4084 2012-04-25  Eric Blake  <eblake@redhat.com>
4085
4086         bootstrap: only force latest Makefile.in.in for gettext module
4087         * build-aux/bootstrap (with_gettext): Only install latest
4088         Makefile.in.in for projects requesting bleeding edge gettext.
4089
4090 2012-04-22  Bruno Haible  <bruno@clisp.org>
4091
4092         doc: Mention reason for replacement on glibc/Linux systems.
4093         * doc/posix-functions/dprintf.texi: Mention the problem with special
4094         'long double' values.
4095         * doc/posix-functions/fprintf.texi: Likewise.
4096         * doc/posix-functions/printf.texi: Likewise.
4097         * doc/posix-functions/snprintf.texi: Likewise.
4098         * doc/posix-functions/sprintf.texi: Likewise.
4099         * doc/posix-functions/vdprintf.texi: Likewise.
4100         * doc/posix-functions/vfprintf.texi: Likewise.
4101         * doc/posix-functions/vprintf.texi: Likewise.
4102         * doc/posix-functions/vsnprintf.texi: Likewise.
4103         * doc/posix-functions/vsprintf.texi: Likewise.
4104         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
4105         platforms with F_DUPFD_CLOEXEC problems.
4106         * doc/posix-functions/glob.texi: Mention which platforms are affected
4107         by the problem with symbolic links.
4108         * doc/posix-functions/linkat.texi: Mention the problem with
4109         AT_SYMLINK_FOLLOW on Linux.
4110
4111 2012-04-22  Bruno Haible  <bruno@clisp.org>
4112
4113         pwrite: Don't replace on all platforms.
4114         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
4115
4116 2012-04-22  Bruno Haible  <bruno@clisp.org>
4117
4118         rint* tests: Avoid gcc warnings.
4119         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
4120         * tests/test-rintf.c (INFINITY, NAN): Likewise.
4121         * tests/test-rintl.c (INFINITY, NAN): Likewise.
4122
4123 2012-04-21  Bruno Haible  <bruno@clisp.org>
4124
4125         users.txt: Update.
4126         * users.txt: Add freedink, wdiff. Update URLs for projects that have
4127         switched from CVS to git, bzr, or svn.
4128
4129 2012-04-21  Bruno Haible  <bruno@clisp.org>
4130
4131         Large File Support for native Windows platforms.
4132
4133         * m4/largefile.m4 (gl_LARGEFILE): New macro.
4134         * modules/largefile (configure.ac): Require gl_LARGEFILE.
4135
4136         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
4137         type.
4138         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
4139         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
4140         * doc/posix-headers/sys_types.texi: Mention the effect of the
4141         'largefile' module.
4142
4143         * lib/fcntl.in.h: Add comments about off_t.
4144         * modules/fcntl-h (Depends-on): Add sys_types.
4145
4146         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
4147         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
4148         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
4149         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
4150         * modules/unistd (Depends-on): Add sys_types.
4151         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
4152
4153         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
4154         instead of lseek.
4155         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
4156         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
4157         * modules/lseek (Depends-on): Add sys_types.
4158
4159         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
4160         msvc-nothrow.h.
4161         (SetFileSize): New function.
4162         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
4163         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
4164         if Large File Support is requested.
4165         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
4166         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
4167
4168         * lib/stdio.in.h: Add comments about off_t.
4169         * modules/stdio (Depends-on): Add sys_types.
4170
4171         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
4172         instead of ftello.
4173         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
4174         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
4175         (gl_PREREQ_FTELLO): New macro.
4176         * modules/ftello (Depends-on): Add sys_types.
4177         (configure.ac): Incoke gl_PREREQ_FTELLO.
4178
4179         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
4180         instead of fseeko.
4181         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
4182         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
4183         (gl_PREREQ_FSEEKO): New macro.
4184         * modules/fseeko (Depends-on): Add sys_types.
4185         (configure.ac): Invoke gl_PREREQ_FSEEKO.
4186
4187         * lib/sys_stat.in.h: Add comments about off_t.
4188         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
4189         64-bit integer for st_size in 'struct stat'.
4190         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
4191         Define _GL_WINDOWS_64_BIT_ST_SIZE.
4192         * modules/sys_stat (Depends-on): Add sys_types.
4193         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
4194
4195         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
4196         instead of stat or _stat.
4197
4198         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
4199         'struct _stati64' instead of fstat and 'struct stat'.
4200         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
4201         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
4202
4203         Reported by Ray Satiro <raysatiro@yahoo.com>.
4204
4205 2012-04-19  Eric Blake  <eblake@redhat.com>
4206
4207         bootstrap: accommodate older libtool
4208         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
4209         Reported by Daniel P. Berrange.
4210
4211 2012-04-19  Jim Meyering  <meyering@redhat.com>
4212
4213         announce-gen: avoid failure due to lack of Digest::SHA1
4214         Even with the preferred Digest::SHA available, this script
4215         would fail when the backup module, Digest::SHA1, was not installed.
4216         * build-aux/announce-gen: Quote the conditional use of "use".
4217         Reported by Reuben Thomas in:
4218         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
4219
4220         bootstrap: don't let a user's CDPATH setting affect this script
4221         When CDPATH is set, cd will sometimes generate output.
4222         When "cd" is run in a subshell whose output matters, that
4223         surprising-to-some output can cause malfunction.
4224         Unsetting CDPATH turns off this shell "feature."
4225         * build-aux/bootstrap (CDPATH): Unset.
4226         Reported by Reuben Thomas in:
4227         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
4228         and inspired by his patch here:
4229         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
4230
4231 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
4232         and Jim Meyering  <meyering@redhat.com>
4233
4234         maint.mk: catch "see @xref{}" and similar
4235         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
4236         prohibit "See also @xref{", "Also see @pxref{", and similar.
4237
4238 2012-04-16  Jim Meyering  <meyering@redhat.com>
4239
4240         bootstrap: really use gnulib's po/Makefile.in.in
4241         * build-aux/bootstrap: Correct the source file name in previous change.
4242         Reported by Akim Demaille.
4243
4244         configmake: correct minor inconsistency in Makefile rule
4245         * modules/configmake (Makefile.am): All other rules like this one
4246         run the final "mv -f ..." in the same backslash-continued command
4247         as the one that does everything else.  This one put the mv -f ...
4248         command on a separate, non-backslash-continued line.
4249         Make it like the others.
4250
4251         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
4252         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
4253         the one from gettext.  Reported by Akim Demaille.
4254
4255 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
4256
4257         Fix recursion of install-* into po directories.
4258         Bison's install-pdf bug reported by Hans Aberg at
4259         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
4260         * build-aux/po/Makefile.in.in (install-dvi, install-html)
4261         (install-info, install-pdf, install-ps): New targets.
4262
4263 2012-04-16  Jim Meyering  <meyering@redhat.com>
4264
4265         maint: avoid spurious "make sc_maint" failure
4266         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
4267         exempt all *.class file names, for lib/javaversion.class.
4268
4269 2012-04-15  Bruno Haible  <bruno@clisp.org>
4270
4271         lseek: Make configure test independent of environment.
4272         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
4273         Windows, we know that lseek() on pipes is broken; skip the runtime
4274         test.
4275
4276 2012-04-14  Bruno Haible  <bruno@clisp.org>
4277
4278         stat: Bypass buggy override in mingw64.
4279         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
4280         * lib/stat.c (stat) [mingw64]: Define to _stat.
4281         * doc/posix-functions/stat.texi: Mention mingw64 bug.
4282
4283 2012-04-14  Bruno Haible  <bruno@clisp.org>
4284
4285         pathmax: Fix compilation error on MSVC 9.
4286         * modules/pathmax (Depends-on): Add unistd.
4287
4288 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
4289
4290         README: document pointer comparison assumption
4291         * README (Portability guidelines): Document assumption about
4292         pointer comparisons, in response to a recent bug-gnulib comment by
4293         Jeffrey Kegler.
4294
4295 2012-04-12  Bruno Haible  <bruno@clisp.org>
4296
4297         Tests for module 'getrusage'.
4298         * modules/getrusage-tests: New file.
4299         * tests/test-getrusage.c: New file.
4300
4301         New module 'getrusage'.
4302         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
4303         warn-on-use.h.
4304         (getrusage): New declaration.
4305         * lib/getrusage.c: New file.
4306         * m4/getrusage.m4: New file.
4307         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
4308         is declared.
4309         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
4310         HAVE_GETRUSAGE.
4311         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
4312         snippet/c++defs, snippet/warn-on-use.
4313         (Makefile.am): Update generation of sys/resource.h. Substitute
4314         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
4315         * modules/getrusage: New file.
4316         * doc/posix-functions/getrusage.texi: Mention the new module.
4317
4318 2012-04-12  Bruno Haible  <bruno@clisp.org>
4319
4320         Tests for module 'sys_resource'.
4321         * modules/sys_resource-tests: New file.
4322         * tests/test-sys_resource.c: New file.
4323
4324         New module 'sys_resource'.
4325         * lib/sys_resource.in.h: New file.
4326         * m4/sys_resource_h.m4: New file.
4327         * modules/sys_resource: New file.
4328         * doc/posix-headers/sys_resource.texi: Mention the new module.
4329
4330 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
4331
4332         ioctl: Fix compilation error on mingw.
4333         * lib/ioctl.c: Include <windows.h>.
4334         Also reported by Ray Satiro <raysatiro@yahoo.com>.
4335
4336 2012-04-04  Jim Meyering  <meyering@redhat.com>
4337
4338         regex: correct #pragma guard expression
4339         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
4340         not 4.3.  Correct its cpp guard expression.
4341
4342 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
4343
4344         regex: remove unnecessary type punning
4345         Problem reported by Vladimir Serbinenko in
4346         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
4347         * lib/regex.h (struct re_pattern_buffer): Change the type of
4348         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
4349         Fix comment to match code.
4350         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
4351         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
4352         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
4353         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
4354         (set_regs):
4355         Omit no-longer-necessary casts.
4356
4357 2012-04-03  Bruno Haible  <bruno@clisp.org>
4358
4359         Tests for module 'ilogbl'.
4360         * modules/ilogbl-tests: New file.
4361         * tests/test-ilogbl.c: New file.
4362
4363         New module 'ilogbl'.
4364         * lib/math.in.h (ilogbl): New declaration.
4365         * lib/ilogbl.c: New file.
4366         * m4/ilogbl.m4: New file.
4367         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
4368         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
4369         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
4370         Split sed invocation, to avoid the limit of 100 substitutions of
4371         HP-UX 'sed'.
4372         * modules/ilogbl: New file.
4373         * tests/test-math-c++.cc: Check the declaration of ilogbl.
4374         * doc/posix-functions/ilogbl.texi: Mention the new module.
4375
4376 2012-04-03  Bruno Haible  <bruno@clisp.org>
4377
4378         Tests for module 'ilogbf'.
4379         * modules/ilogbf-tests: New file.
4380         * tests/test-ilogbf.c: New file.
4381
4382         New module 'ilogbf'.
4383         * lib/math.in.h (ilogbf): New declaration.
4384         * lib/ilogbf.c: New file.
4385         * m4/ilogbf.m4: New file.
4386         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
4387         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
4388         REPLACE_ILOGBF.
4389         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
4390         REPLACE_ILOGBF.
4391         * modules/ilogbf: New file.
4392         * tests/test-math-c++.cc: Check the declaration of ilogbf.
4393         * doc/posix-functions/ilogbf.texi: Mention the new module.
4394
4395 2012-04-03  Bruno Haible  <bruno@clisp.org>
4396
4397         Tests for module 'ilogb'.
4398         * modules/ilogb-tests: New file.
4399         * tests/test-ilogb.c: New file.
4400         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
4401         tests/test-logb-ieee.h.
4402
4403         New module 'ilogb'.
4404         * lib/math.in.h (ilogb): New declaration.
4405         * lib/ilogb.c: New file.
4406         * m4/ilogb.m4: New file.
4407         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
4408         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
4409         REPLACE_ILOGB.
4410         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
4411         REPLACE_ILOGB.
4412         * modules/ilogb: New file.
4413         * tests/test-math-c++.cc: Check the declaration of ilogb.
4414         * doc/posix-functions/ilogb.texi: Mention the new module.
4415
4416 2012-04-03  Bruno Haible  <bruno@clisp.org>
4417
4418         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
4419         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
4420         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
4421         (main): Check their values.
4422         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
4423         problem.
4424
4425 2012-04-03  Bruno Haible  <bruno@clisp.org>
4426
4427         Tests for module 'logbl-ieee'.
4428         * modules/logbl-ieee-tests: New file.
4429         * tests/test-logbl-ieee.c: New file.
4430
4431         New module 'logbl-ieee'.
4432         * modules/logbl-ieee: New file.
4433
4434         Tests for module 'logb-ieee'.
4435         * modules/logb-ieee-tests: New file.
4436         * tests/test-logb-ieee.c: New file.
4437
4438         New module 'logb-ieee'.
4439         * modules/logb-ieee: New file.
4440
4441         Tests for module 'logbf-ieee'.
4442         * modules/logbf-ieee-tests: New file.
4443         * tests/test-logbf-ieee.c: New file.
4444         * tests/test-logb-ieee.h: New file.
4445
4446         New module 'logbf-ieee'.
4447         * modules/logbf-ieee: New file.
4448
4449 2012-04-03  Bruno Haible  <bruno@clisp.org>
4450
4451         Tests for module 'logbl'.
4452         * modules/logbl-tests: New file.
4453         * tests/test-logbl.c: New file.
4454
4455         New module 'logbl'.
4456         * lib/math.in.h (logbl): New declaration.
4457         * lib/logbl.c: New file.
4458         * m4/logbl.m4: New file.
4459         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
4460         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
4461         REPLACE_LOGBL.
4462         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
4463         REPLACE_LOGBL.
4464         * modules/logbl: New file.
4465         * tests/test-math-c++.cc: Check the declaration of logbl.
4466         * doc/posix-functions/logbl.texi: Mention the new module.
4467
4468 2012-04-02  Bruno Haible  <bruno@clisp.org>
4469
4470         Tests for module 'logbf'.
4471         * modules/logbf-tests: New file.
4472         * tests/test-logbf.c: New file.
4473
4474         New module 'logbf'.
4475         * lib/math.in.h (logbf): New declaration.
4476         * lib/logbf.c: New file.
4477         * m4/logbf.m4: New file.
4478         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
4479         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
4480         REPLACE_LOGBF.
4481         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
4482         REPLACE_LOGBF.
4483         * modules/logbf: New file.
4484         * tests/test-math-c++.cc: Check the declaration of logbf.
4485         * doc/posix-functions/logbf.texi: Mention the new module.
4486
4487 2012-04-02  Bruno Haible  <bruno@clisp.org>
4488
4489         logb tests: More tests.
4490         * tests/test-logb.h: New file, based on tests/test-logb.c and
4491         tests/test-frexp.h.
4492         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
4493         (main): Just invoke test_function.
4494         * modules/logb-tests (Files): Add tests/test-logb.h,
4495         tests/minus-zero.h, tests/randomd.c.
4496         (Makefile.am): Add randomd.c to test_logb_SOURCES.
4497
4498         logb: Provide replacement and workarounds.
4499         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
4500         is 1.
4501         * lib/logb.c: New file.
4502         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
4503         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
4504         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
4505         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
4506         * modules/logb (Files): Add lib/logb.c.
4507         (Depends-on): Add isfinite, frexp, isnand.
4508         (configure.ac): Compile the replacement code logb.c if needed.
4509         * tests/test-math-c++.cc: Check the declaration of logb.
4510         * doc/posix-functions/logb.texi: Mention the replacement and the bug
4511         with subnormal numbers.
4512
4513 2012-04-02  Bruno Haible  <bruno@clisp.org>
4514
4515         log10* tests: Speed up.
4516         * tests/test-log10.h (test_function): Reduce amount of random numbers
4517         to test.
4518
4519 2012-04-01  Bruno Haible  <bruno@clisp.org>
4520
4521         logf-ieee: Fix test whether logf works.
4522         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
4523
4524 2012-04-01  Bruno Haible  <bruno@clisp.org>
4525
4526         log10l: Work around log10l-ieee test failure on IRIX 6.5.
4527         * lib/log10l.c: Include <float.h>
4528         (log10l): On IRIX, normalize the +Infinity value.
4529         * modules/log10l (Depends-on): Add 'float'.
4530         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
4531         +Infinity.
4532
4533         log10f-ieee: Work around test failure on NetBSD 5.1.
4534         * m4/log10f-ieee.m4: New file.
4535         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
4536         test whether log10f works with a negative argument. Replace it if not.
4537         * lib/log10f.c (log10f): For negative arguments, return NaN.
4538         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
4539         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
4540         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
4541
4542         log10f-ieee: Work around test failure on Solaris 9.
4543         * modules/log10f-ieee (Depends-on): Add log10-ieee.
4544         (configure.ac): Require gl_FUNC_LOG10F.
4545
4546         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4547         * m4/log10-ieee.m4: New file.
4548         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
4549         whether log10 works with a negative argument. Replace it if not.
4550         * lib/log10.c (log10): For negative arguments, return NaN.
4551         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
4552         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
4553         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
4554
4555         Tests for module 'log10l-ieee'.
4556         * modules/log10l-ieee-tests: New file.
4557         * tests/test-log10l-ieee.c: New file.
4558
4559         New module 'log10l-ieee'.
4560         * modules/log10l-ieee: New file.
4561
4562         Tests for module 'log10-ieee'.
4563         * modules/log10-ieee-tests: New file.
4564         * tests/test-log10-ieee.c: New file.
4565
4566         New module 'log10-ieee'.
4567         * modules/log10-ieee: New file.
4568
4569         Tests for module 'log10f-ieee'.
4570         * modules/log10f-ieee-tests: New file.
4571         * tests/test-log10f-ieee.c: New file.
4572         * tests/test-log10-ieee.h: New file.
4573
4574         New module 'log10f-ieee'.
4575         * modules/log10f-ieee: New file.
4576
4577 2012-04-01  Bruno Haible  <bruno@clisp.org>
4578
4579         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
4580         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
4581         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
4582         workaround.
4583         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
4584         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
4585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
4586         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
4587         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
4588         (Depends-on): Update conditions.
4589         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
4590         IRIX 6.5, OSF/1 5.1 problems.
4591
4592 2012-04-01  Bruno Haible  <bruno@clisp.org>
4593
4594         log10f: Work around OSF/1 5.1 bug.
4595         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
4596         * lib/log10f.c (log10f): If logf exists, use it and provide just the
4597         workaround.
4598         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
4599         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
4600         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
4601         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
4602         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
4603         (Depends-on): Update conditions.
4604         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
4605
4606 2012-04-01  Bruno Haible  <bruno@clisp.org>
4607
4608         log10: Work around OSF/1 5.1 bug.
4609         * lib/math.in.h (log10): New declaration.
4610         * lib/log10.c: New file.
4611         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
4612         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
4613         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
4614         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
4615         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
4616         * modules/log10 (Files): Add lib/log10.c.
4617         (Depends-on): Add math.
4618         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
4619         * tests/test-math-c++.cc: Check the declaration of log10.
4620         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
4621
4622 2012-03-31  Bruno Haible  <bruno@clisp.org>
4623
4624         log10l tests: More tests.
4625         * modules/log10l-tests (Files): Add tests/test-log10l.h,
4626         tests/minus-zero.h, tests/randoml.c.
4627         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
4628         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
4629         (main): Invoke test_function.
4630
4631         log10f tests: More tests.
4632         * modules/log10f-tests (Files): Add tests/test-log10.h,
4633         tests/minus-zero.h, tests/randomf.c.
4634         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
4635         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
4636         (main): Invoke test_function.
4637
4638         log10 tests: More tests.
4639         * tests/test-log10.h: New file.
4640         * modules/log10-tests (Files): Add tests/test-log10.h,
4641         tests/minus-zero.h, tests/randomd.c.
4642         (Makefile.am): Add randomd.c to test_log10_SOURCES.
4643         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
4644         (main): Invoke test_function.
4645
4646 2012-03-31  Simon Josefsson  <simon@josefsson.org>
4647
4648         fflush: Fix syntax error.
4649         * lib/fflush.c: Include unused-parameter.h, needed for
4650         _GL_UNUSED_PARAMETER.
4651         * modules/fflush (Depends-on): Add snippet/unused-parameter.
4652
4653 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
4654
4655         regex: pacify GCC when compiling GRUB
4656         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
4657         a diagnostic.  Reported by Vladimir Serbinenko in
4658         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
4659
4660 2012-03-29  Eric Blake  <eblake@redhat.com>
4661
4662         stdio: don't assume gets any more
4663         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
4664         support.
4665         * modules/stdio (Makefile.am): Likewise.
4666         * lib/stdio-read.c (gets): Likewise.
4667         * tests/test-stdio-c++.cc: Likewise.
4668         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
4669         * lib/stdio.in.h (gets): Make warning occur in more places.
4670         * doc/posix-functions/gets.texi (gets): Update documentation.
4671         Reported by Christer Solskogen.
4672
4673         maint.mk: fix syntax checks without exclusions
4674         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
4675         Reported by Daniel P. Berrange.
4676
4677         strerror_r: avoid compiler warning
4678         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
4679         level.
4680
4681         fflush: avoid compiler warning
4682         * lib/fflush.c (update_fpos_cache): Mark variables that are
4683         potentially unused.
4684
4685 2012-03-25  Bruno Haible  <bruno@clisp.org>
4686
4687         Tests for module 'localeconv'.
4688         * modules/localeconv-tests: New file.
4689         * tests/test-localeconv.c: New file.
4690
4691         New module 'localeconv'.
4692         * lib/locale.in.h (localeconv): New declaration.
4693         * lib/localeconv.c: New file.
4694         * m4/localeconv.m4: New file.
4695         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
4696         REPLACE_LOCALECONV.
4697         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
4698         REPLACE_LOCALECONV.
4699         * modules/localeconv: New file.
4700         * modules/nl_langinfo (Depends-on): Add localeconv.
4701         * modules/human (Depends-on): Likewise.
4702         * doc/posix-functions/localeconv.texi: Mention the new module.
4703
4704 2012-03-25  Bruno Haible  <bruno@clisp.org>
4705
4706         locale: Provide a complete 'struct lconv'.
4707         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4708         'struct lconv' does not contain int_p_cs_precedes.
4709         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4710         * doc/posix-headers/locale.texi: Update.
4711
4712         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
4713         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
4714         * doc/posix-headers/locale.texi: Update.
4715
4716         locale: Provide a working 'struct lconv'.
4717         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
4718         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
4719         'struct lconv' does not even contain decimal_point.
4720         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
4721         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
4722         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
4723         * doc/posix-headers/locale.texi: Mention the problems with
4724         'struct lconv'.
4725         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
4726
4727 2012-03-24  Bruno Haible  <bruno@clisp.org>
4728
4729         Enable common subexpression optimization in GCC.
4730         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
4731         macros.
4732         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
4733         GCC attribute 'const'.
4734         (uc_locale_language): Declare with GCC attribute 'pure'.
4735         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
4736         with GCC attribute 'const'.
4737         * lib/unictype.in.h (uc_is_general_category_withtable,
4738         uc_combining_class, uc_combining_class_name,
4739         uc_combining_class_long_name, uc_bidi_class_name,
4740         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
4741         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
4742         uc_decimal_value, uc_digit_value, uc_numeric_value,
4743         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
4744         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
4745         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
4746         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
4747         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
4748         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
4749         Declare with GCC attribute 'const'.
4750         (uc_general_category_name, uc_general_category_long_name,
4751         uc_general_category_byname, uc_general_category,
4752         uc_is_general_category, uc_combining_class_byname,
4753         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
4754         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
4755         Declare with GCC attribute 'pure'.
4756         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
4757         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
4758         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
4759         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
4760         with GCC attribute 'pure'.
4761         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
4762         'const'.
4763         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
4764         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
4765         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
4766         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
4767         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
4768         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
4769         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
4770         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
4771         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
4772         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
4773         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
4774         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
4775         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
4776         GCC attribute 'pure'.
4777         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
4778         'const'.
4779         * lib/uniwidth.in.h (uc_width): Simplify declaration.
4780         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
4781         u32_strwidth): Declare with GCC attribute 'pure'.
4782
4783         Enable common subexpression optimization in GCC.
4784         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4785         (alphasort): Declare with GCC attribute 'pure'.
4786         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4787         (atoll): Declare with GCC attribute 'pure'.
4788         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
4789         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
4790         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
4791         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
4792         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
4793         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
4794         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
4795
4796 2012-03-24  Bruno Haible  <bruno@clisp.org>
4797
4798         gnulib-tool: Avoid unintended error output from 'cmp'.
4799         * gnulib-tool (func_add_file, func_update_file, func_import): Use
4800         "cmp -s", not "cmp > /dev/null".
4801
4802 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
4803
4804         gnulib-tool: fix imprecise comments w.r.t. an automake bug
4805
4806         It's not just Automake versions < 1.9b that creates an empty
4807         pkgdatadir at installation time if pkgdata_DATA is specified
4808         to empty; modern automake versions do this as well, at least
4809         until automake 1.11.4 (not yet released at the moment of writing,
4810         but soon to appear).  That behaviour was generally considered a
4811         feature rather than a bug, at least until this discussion:
4812         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4813
4814         See also automake bugs #10997 and #11030.
4815
4816         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4817         reference to relevant automake bug numbers.
4818         (func_emit_tests_Makefile_am): Likewise.
4819
4820 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4821
4822         announce-gen: use Digest::SHA when possible
4823         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4824         back to Digest::SHA1 if necessary.
4825
4826 2012-03-20  Jim Meyering  <meyering@redhat.com>
4827
4828         tests: avoid gcc warnings about argv vs. const initializers
4829         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4830         warnings about discarding 'const' qualifier from pointer target type.
4831         * tests/test-posix_spawn2.c (main): Likewise.
4832
4833 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4834
4835         README-release: simplify slightly
4836         * top/README-release: Run "git checkout master" only once.
4837
4838 2012-03-15  Mark Wielaard  <mark@klomp.org>
4839
4840         git-merge-changelog: add specific example on how to use with hg.
4841         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4842
4843 2012-03-18  Mark Wielaard  <mark@klomp.org>
4844
4845         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4846
4847 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4848
4849         git-version-gen: don't let "prefix" envvar cause trouble
4850         * build-aux/git-version-gen (prefix): Initialize properly,
4851         so as not to use a value specified via the environment.
4852         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4853
4854 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4855
4856         regex: diagnose too-large repeat counts in EREs
4857         Previously, the code did not diagnose the too-large repeat count
4858         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4859         as if it were 'b\{1000000000}', which is unexpected.
4860         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4861         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4862         is a reasonable one for this problem.  Another option would be to
4863         create a new REG_OVERFLOW error for repeat counts that are too large.
4864         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4865         count is too large, so that the caller can distinguish the two cases.
4866         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4867         "Too large" return code, and that repeat counts are one example of this.
4868
4869 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4870
4871         doc: some glibc x32 integer width issues
4872         * doc/posix-headers/sys_types.texi (sys/types.h):
4873         * doc/posix-headers/time.texi (time.h):
4874         Mention that glibc x32 does not conform to POSIX in a couple of
4875         areas related to integer widths.
4876
4877 2012-03-15  Bruno Haible  <bruno@clisp.org>
4878
4879         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4880         * lib/fma.c (VOLATILE): New macro.
4881         (FUNC): Use it to work around a GCC compiler bug.
4882
4883 2012-03-13  Bruno Haible  <bruno@clisp.org>
4884
4885         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4886         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4887         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4888         REPLACE_HYPOTL to 1.
4889         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4890
4891 2012-03-13  Bruno Haible  <bruno@clisp.org>
4892
4893         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4894         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4895         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4896         REPLACE_REMAINDERL to 1.
4897         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4898         bug.
4899
4900 2012-03-13  Bruno Haible  <bruno@clisp.org>
4901
4902         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4903         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4904         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4905         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4906         too big rounding errors.
4907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4908         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4909         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4910         (Depends-on): Update conditions.
4911         * tests/test-sqrtl.c (my_ldexpl): New function.
4912         (main): Add test of a particular value.
4913         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4914
4915 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4916
4917         doc: Update timer_* platform portability notes.
4918         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4919         that always return ENOSYS.
4920         * doc/posix-functions/timer_delete.texi: Likewise.
4921         * doc/posix-functions/timer_gettime.texi: Likewise.
4922         * doc/posix-functions/timer_settime.texi: Likewise.
4923
4924 2012-03-13  Bruno Haible  <bruno@clisp.org>
4925
4926         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4927         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4928         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4929         REPLACE_CBRTL to 1.
4930         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4931
4932 2012-03-13  Bruno Haible  <bruno@clisp.org>
4933
4934         remainderl: Avoid compilation error on AIX >= 5.2.
4935         * lib/math.in.h (remainderl): Undefine macro from the system header.
4936
4937 2012-03-13  Bruno Haible  <bruno@clisp.org>
4938
4939         Avoid compilation errors with MSVC option -fp:strict.
4940         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4941         * lib/cbrtf.c: Likewise.
4942         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4943
4944 2012-03-12  Bruno Haible  <bruno@clisp.org>
4945
4946         uninorm: Don't crash in out-of-memory conditions.
4947         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4948         gracefully.
4949         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4950         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4951
4952 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4953
4954         quote: fix syntax-check
4955         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4956         also exports quote_quoting_options.
4957
4958 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4959
4960         Collapse list of copyright years to ranges.  See
4961         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4962         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4963         build-aux/csharpexec.sh.in, build-aux/gnupload,
4964         build-aux/install-reloc, build-aux/javacomp.sh.in,
4965         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4966         build-aux/move-if-change, build-aux/reloc-ldflags,
4967         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4968
4969 2012-03-11  Bruno Haible  <bruno@clisp.org>
4970
4971         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4972         * m4/log2f-ieee.m4: New file.
4973         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4974         whether log2f works with a minus zero argument. Replace it if not.
4975         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4976         (Depends-on): Add log2-ieee.
4977         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4978         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4979
4980         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4981         * m4/log2-ieee.m4: New file.
4982         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4983         whether log2 works with a minus zero argument. Replace it if not.
4984         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4985         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4986         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4987
4988         Tests for module 'log2l-ieee'.
4989         * modules/log2l-ieee-tests: New file.
4990         * tests/test-log2l-ieee.c: New file.
4991
4992         New module 'log2l-ieee'.
4993         * modules/log2l-ieee: New file.
4994
4995         Tests for module 'log2-ieee'.
4996         * modules/log2-ieee-tests: New file.
4997         * tests/test-log2-ieee.c: New file.
4998
4999         New module 'log2-ieee'.
5000         * modules/log2-ieee: New file.
5001
5002         Tests for module 'log2f-ieee'.
5003         * modules/log2f-ieee-tests: New file.
5004         * tests/test-log2f-ieee.c: New file.
5005         * tests/test-log2-ieee.h: New file.
5006
5007         New module 'log2f-ieee'.
5008         * modules/log2f-ieee: New file.
5009
5010 2012-03-11  Bruno Haible  <bruno@clisp.org>
5011
5012         Tests for module 'log2l'.
5013         * modules/log2l-tests: New file.
5014         * tests/test-log2l.c: New file.
5015
5016         New module 'log2l'.
5017         * lib/math.in.h (log2l): New declaration.
5018         * lib/log2l.c: New file.
5019         * m4/log2l.m4: New file.
5020         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
5021         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
5022         REPLACE_LOG2L.
5023         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
5024         REPLACE_LOG2L.
5025         * modules/log2l: New file.
5026         * tests/test-math-c++.cc: Check the declaration of log2l.
5027         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
5028         and OSF/1 problems.
5029
5030 2012-03-11  Bruno Haible  <bruno@clisp.org>
5031
5032         Tests for module 'log2f'.
5033         * modules/log2f-tests: New file.
5034         * tests/test-log2f.c: New file.
5035
5036         New module 'log2f'.
5037         * lib/math.in.h (log2f): New declaration.
5038         * lib/log2f.c: New file.
5039         * m4/log2f.m4: New file.
5040         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
5041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
5042         REPLACE_LOG2F.
5043         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
5044         REPLACE_LOG2F.
5045         * modules/log2f: New file.
5046         * tests/test-math-c++.cc: Check the declaration of log2f.
5047         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
5048         and OSF/1 and Cygwin problems.
5049
5050 2012-03-11  Bruno Haible  <bruno@clisp.org>
5051
5052         Tests for module 'log2'.
5053         * modules/log2-tests: New file.
5054         * tests/test-log2.c: New file.
5055         * tests/test-log2.h: New file.
5056
5057         New module 'log2'.
5058         * lib/math.in.h (log2): New declaration.
5059         * lib/log2.c: New file.
5060         * m4/log2.m4: New file.
5061         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
5062         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
5063         REPLACE_LOG2.
5064         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
5065         REPLACE_LOG2.
5066         * modules/log2: New file.
5067         * tests/test-math-c++.cc: Check the declaration of log2.
5068         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
5069         and OSF/1 and Cygwin problems.
5070
5071 2012-03-11  Bruno Haible  <bruno@clisp.org>
5072
5073         exp2* tests: More tests.
5074         * tests/test-exp2.h (test_function): Test all integral arguments that
5075         don't need to overflow or denormalized numbers.
5076         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
5077         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
5078         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
5079
5080 2012-03-10  Bruno Haible  <bruno@clisp.org>
5081
5082         log1pl-ieee: Work around test failure on AIX 7.1.
5083         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
5084
5085         log1pl-ieee: Work around test failure on IRIX 6.5.
5086         * m4/log1pl-ieee.m4: New file.
5087         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
5088         test whether log1pl works with a minus zero argument. Replace it if
5089         not.
5090         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
5091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
5092         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
5093         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
5094         (Depends-on): Update conditions.
5095         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5096         m4/signbit.m4.
5097         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
5098         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
5099
5100         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
5101         * m4/log1pf-ieee.m4: New file.
5102         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
5103         test whether log1pf works with a minus zero argument. Replace it if
5104         not.
5105         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
5106         m4/signbit.m4.
5107         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
5108         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
5109
5110         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
5111         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
5112         (configure.ac): Require gl_FUNC_LOG1PF.
5113
5114         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
5115         * m4/log1p-ieee.m4: New file.
5116         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
5117         whether log1p works with a minus zero argument. Replace it if not.
5118         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
5119         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
5120         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
5121         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
5122         (Depends-on): Update conditions.
5123         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
5124         m4/signbit.m4.
5125         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
5126         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
5127
5128         Tests for module 'log1pl-ieee'.
5129         * modules/log1pl-ieee-tests: New file.
5130         * tests/test-log1pl-ieee.c: New file.
5131
5132         New module 'log1pl-ieee'.
5133         * modules/log1pl-ieee: New file.
5134
5135         Tests for module 'log1p-ieee'.
5136         * modules/log1p-ieee-tests: New file.
5137         * tests/test-log1p-ieee.c: New file.
5138
5139         New module 'log1p-ieee'.
5140         * modules/log1p-ieee: New file.
5141
5142         Tests for module 'log1pf-ieee'.
5143         * modules/log1pf-ieee-tests: New file.
5144         * tests/test-log1pf-ieee.c: New file.
5145         * tests/test-log1p-ieee.h: New file.
5146
5147         New module 'log1pf-ieee'.
5148         * modules/log1pf-ieee: New file.
5149
5150 2012-03-10  Bruno Haible  <bruno@clisp.org>
5151
5152         Tests for module 'log1pl'.
5153         * modules/log1pl-tests: New file.
5154         * tests/test-log1pl.c: New file.
5155
5156         New module 'log1pl'.
5157         * lib/math.in.h (log1pl): New declaration.
5158         * lib/log1pl.c: New file.
5159         * m4/log1pl.m4: New file.
5160         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
5161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
5162         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
5163         * modules/log1pl: New file.
5164         * tests/test-math-c++.cc: Check the declaration of log1pl.
5165         * doc/posix-functions/log1pl.texi: Mention the new module.
5166
5167 2012-03-10  Bruno Haible  <bruno@clisp.org>
5168
5169         Tests for module 'log1pf'.
5170         * modules/log1pf-tests: New file.
5171         * tests/test-log1pf.c: New file.
5172
5173         New module 'log1pf'.
5174         * lib/math.in.h (log1pf): New declaration.
5175         * lib/log1pf.c: New file.
5176         * m4/log1pf.m4: New file.
5177         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
5178         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
5179         REPLACE_LOG1PF.
5180         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
5181         REPLACE_LOG1PF.
5182         * modules/log1pf: New file.
5183         * tests/test-math-c++.cc: Check the declaration of log1pf.
5184         * doc/posix-functions/log1pf.texi: Mention the new module.
5185
5186 2012-03-10  Bruno Haible  <bruno@clisp.org>
5187
5188         log1p tests: More tests.
5189         * tests/test-log1p.h: New file.
5190         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
5191         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
5192         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
5193         (main): Invoke test_function.
5194
5195         log1p: Provide replacement for Minix and MSVC.
5196         * lib/math.in.h (log1p): New declaration.
5197         * lib/log1p.c: New file.
5198         * m4/log1p.m4: New file.
5199         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
5200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
5201         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
5202         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
5203         (Depends-on): Add math, isnand, log, round.
5204         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
5205         HAVE_LOG1P is 0.
5206         * tests/test-math-c++.cc: Check the declaration of log1p.
5207         * doc/posix-functions/log1p.texi: Mention the replacement.
5208
5209 2012-03-10  Bruno Haible  <bruno@clisp.org>
5210
5211         math tests: Small simplification.
5212         * tests/test-exp.h (test_function): Use the same err_bound for
5213         'double' on platforms with sizeof (long double) == sizeof (double)
5214         than on platforms with sizeof (long double) > sizeof (double).
5215         * tests/test-exp2.h (test_function): Likewise.
5216         * tests/test-expm1.h (test_function): Likewise.
5217         * tests/test-log.h (test_function): Likewise.
5218
5219 2012-03-10  Bruno Haible  <bruno@clisp.org>
5220
5221         Fix some comments.
5222         * lib/expl.c: Fix an ambiguous comment.
5223         * lib/expm1.c: Likewise.
5224         * lib/expm1l.c: Likewise.
5225         * lib/exp2.c: Likewise.
5226         * lib/exp2l.c: Likewise.
5227
5228 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
5229
5230         regex: allow inclusion of <regex.h> before <limits.h>
5231         Without this patch, portable programs had to include <limits.h> before
5232         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
5233         I ran into this problem with a test version of GNU grep on Solaris 8.
5234         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
5235         This is done conditionally so that this change can be merged
5236         back to glibc.
5237         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
5238         using the included regex.
5239
5240         fts: depend on fdopendir
5241         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
5242         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
5243         problem was introduced when fdopendir was split out.
5244
5245 2012-03-10  Bruno Haible  <bruno@clisp.org>
5246
5247         Remove unused variables.
5248         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
5249         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5250
5251 2012-03-10  Bruno Haible  <bruno@clisp.org>
5252
5253         isnanf-nolibm: Fix last commit.
5254         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
5255
5256         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
5257         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
5258
5259 2012-03-10  Bruno Haible  <bruno@clisp.org>
5260
5261         logf-ieee: Work around test failure on NetBSD 5.1.
5262         * m4/logf-ieee.m4: New file.
5263         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
5264         whether logf works with a negative argument. Replace it if not.
5265         * lib/logf.c (logf): For negative arguments, return NaN.
5266         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
5267         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
5268         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
5269
5270         logf-ieee: Work around test failure on Solaris 9.
5271         * modules/logf-ieee (Depends-on): Add log-ieee.
5272         (configure.ac): Require gl_FUNC_LOGF.
5273
5274         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
5275         * m4/log-ieee.m4: New file.
5276         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
5277         log works with a negative argument. Replace it if not.
5278         * lib/log.c (log): For negative arguments, return NaN.
5279         * modules/log-ieee (Files): Add m4/log-ieee.m4.
5280         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
5281         * doc/posix-functions/log.texi: Mention the log-ieee module.
5282
5283         Tests for module 'logl-ieee'.
5284         * modules/logl-ieee-tests: New file.
5285         * tests/test-logl-ieee.c: New file.
5286
5287         New module 'logl-ieee'.
5288         * modules/logl-ieee: New file.
5289
5290         Tests for module 'log-ieee'.
5291         * modules/log-ieee-tests: New file.
5292         * tests/test-log-ieee.c: New file.
5293
5294         New module 'log-ieee'.
5295         * modules/log-ieee: New file.
5296
5297         Tests for module 'logf-ieee'.
5298         * modules/logf-ieee-tests: New file.
5299         * tests/test-logf-ieee.c: New file.
5300         * tests/test-log-ieee.h: New file.
5301
5302         New module 'logf-ieee'.
5303         * modules/logf-ieee: New file.
5304
5305 2012-03-10  Bruno Haible  <bruno@clisp.org>
5306
5307         log: Fix bug introduced on 2012-03-09.
5308         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
5309
5310 2012-03-10  Pádraig Brady  <P@draigBrady.com>
5311
5312         timer-time: link explicitly with pthreads on glibc
5313         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
5314         to support static linking, when newer glibc is
5315         detected, as that contains pthread emulation of
5316         POSIX timer functions where required.
5317         * modules/timer-time: Depend on threadlib to
5318         pull in the appropriate library to link.
5319
5320 2012-03-10  Bruno Haible  <bruno@clisp.org>
5321
5322         log* tests: More tests.
5323         * tests/test-log.h: New file.
5324         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
5325         (main): Invoke test_function.
5326         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
5327         (main): Invoke test_function.
5328         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
5329         (main): Invoke test_function.
5330         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5331         tests/randomd.c.
5332         (Makefile.am): Add randomd.c to test_log_SOURCES.
5333         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5334         tests/randomf.c.
5335         (Makefile.am): Add randomf.c to test_logf_SOURCES.
5336         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
5337         tests/randoml.c.
5338         (Depends-on): Add 'float'.
5339         (Makefile.am): Add randoml.c to test_logl_SOURCES.
5340
5341 2012-03-09  Bruno Haible  <bruno@clisp.org>
5342
5343         logl: Work around OSF/1 5.1 bug.
5344         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
5345         * lib/logl.c (logl): If logl exists, use it and provide just the
5346         workaround.
5347         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
5348         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
5349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
5350         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
5351         * modules/logl (configure.ac): Consider REPLACE_LOGL.
5352         (Depends-on): Update conditions.
5353         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
5354
5355 2012-03-09  Bruno Haible  <bruno@clisp.org>
5356
5357         logf: Work around OSF/1 5.1 bug.
5358         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
5359         * lib/logf.c (logf): If logf exists, use it and provide just the
5360         workaround.
5361         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
5362         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
5363         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
5364         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
5365         * modules/logf (configure.ac): Consider REPLACE_LOGF.
5366         (Depends-on): Update conditions.
5367         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
5368
5369 2012-03-09  Bruno Haible  <bruno@clisp.org>
5370
5371         log: Work around OSF/1 5.1 bug.
5372         * lib/math.in.h (log): New declaration.
5373         * lib/log.c: New file.
5374         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
5375         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
5376         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
5377         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
5378         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
5379         * modules/log (Files): Add lib/log.c.
5380         (Depends-on): Add math.
5381         (configure.ac): If REPLACE_LOG is 1, compile an override.
5382         * tests/test-math-c++.cc: Check the declaration of log.
5383         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
5384
5385 2012-03-09  Jim Meyering  <meyering@redhat.com>
5386
5387         readtokens.c: adjust wording in a comment
5388         * lib/readtokens.c: Insert omitted "that" in a comment.
5389
5390 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5391
5392         modechange: add notations +40, 00440, etc.
5393         * lib/modechange.c (mode_compile): Support new notations
5394         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
5395
5396 2012-03-08  Bruno Haible  <bruno@clisp.org>
5397
5398         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
5399         * m4/exp2l-ieee.m4: New file.
5400         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
5401         test whether exp2l works with a NaN argument and with a negative
5402         infinity argument. Replace it if not.
5403         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
5404         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
5405         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
5406         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
5407         (Depends-on): Update conditions.
5408         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
5409         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
5410         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
5411
5412         Tests for module 'exp2l-ieee'.
5413         * modules/exp2l-ieee-tests: New file.
5414         * tests/test-exp2l-ieee.c: New file.
5415
5416         New module 'exp2l-ieee'.
5417         * modules/exp2l-ieee: New file.
5418
5419         Tests for module 'exp2-ieee'.
5420         * modules/exp2-ieee-tests: New file.
5421         * tests/test-exp2-ieee.c: New file.
5422
5423         New module 'exp2-ieee'.
5424         * modules/exp2-ieee: New file.
5425
5426         Tests for module 'exp2f-ieee'.
5427         * modules/exp2f-ieee-tests: New file.
5428         * tests/test-exp2f-ieee.c: New file.
5429         * tests/test-exp2-ieee.h: New file.
5430
5431         New module 'exp2f-ieee'.
5432         * modules/exp2f-ieee: New file.
5433
5434 2012-03-08  Bruno Haible  <bruno@clisp.org>
5435
5436         Tests for module 'exp2l'.
5437         * modules/exp2l-tests: New file.
5438         * tests/test-exp2l.c: New file.
5439
5440         New module 'exp2l'.
5441         * lib/math.in.h (exp2l): New declaration.
5442         * lib/exp2l.c: New file.
5443         * lib/expl-table.c: New file, extracted from lib/expl.c.
5444         * lib/expl.c (gl_expl_table): New declaration.
5445         (expl): Remove expl_table. Update reference.
5446         * m4/exp2l.m4: New file.
5447         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
5448         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
5449         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
5450         * modules/exp2l: New file.
5451         * modules/expl (Files): Add lib/expl-table.c.
5452         (configure.ac): Compile also expl-table.c.
5453         * tests/test-math-c++.cc: Check the declaration of exp2l.
5454         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
5455         problem.
5456
5457 2012-03-08  Bruno Haible  <bruno@clisp.org>
5458
5459         Tests for module 'exp2f'.
5460         * modules/exp2f-tests: New file.
5461         * tests/test-exp2f.c: New file.
5462
5463         New module 'exp2f'.
5464         * lib/math.in.h (exp2f): New declaration.
5465         * lib/exp2f.c: New file.
5466         * m4/exp2f.m4: New file.
5467         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
5468         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
5469         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
5470         * modules/exp2f: New file.
5471         * tests/test-math-c++.cc: Check the declaration of exp2f.
5472         * doc/posix-functions/exp2f.texi: Mention the new module and the
5473         IRIX problem.
5474
5475 2012-03-08  Bruno Haible  <bruno@clisp.org>
5476
5477         Tests for module 'exp2'.
5478         * modules/exp2-tests: New file.
5479         * tests/test-exp2.c: New file.
5480         * tests/test-exp2.h: New file.
5481
5482         New module 'exp2'.
5483         * lib/math.in.h (exp2): New declaration.
5484         * lib/exp2.c: New file.
5485         * m4/exp2.m4: New file.
5486         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
5487         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
5488         REPLACE_EXP2.
5489         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
5490         REPLACE_EXP2.
5491         * modules/exp2: New file.
5492         * tests/test-math-c++.cc: Check the declaration of exp2.
5493         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
5494         and OpenBSD problems.
5495
5496 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
5497
5498         savedir: fix comment typo
5499         * lib/savedir.c (savedirstream): Fix typo in comment.
5500
5501 2012-03-08  Bruno Haible  <bruno@clisp.org>
5502
5503         test-readtokens.c: use const; remove unwarranted cast
5504         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
5505
5506 2012-03-08  Bruno Haible  <bruno@clisp.org>
5507
5508         fmal: Avoid compilation error on AIX.
5509         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
5510         AIX 5.2..7.1.
5511
5512 2012-03-08  Bruno Haible  <bruno@clisp.org>
5513
5514         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
5515         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
5516         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
5517         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
5518         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
5519         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
5520         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
5521
5522 2012-03-08  Bruno Haible  <bruno@clisp.org>
5523
5524         remainderf: Override buggy system function on IRIX 6.5.
5525         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
5526         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
5527         when it exists.
5528         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
5529
5530 2012-03-08  Jim Meyering  <meyering@redhat.com>
5531
5532         test-readtokens.c: avoid const-related compilation warnings
5533         * tests/test-readtokens.c: Avoid const-related compilation warnings.
5534
5535 2012-03-07  Jim Meyering  <meyering@redhat.com>
5536             Bruno Haible  <bruno@clisp.org>
5537
5538         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
5539         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
5540         tests/randomd.c.
5541         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
5542         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
5543         tests/randoml.c.
5544         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
5545
5546 2012-03-07  Bruno Haible  <bruno@clisp.org>
5547
5548         expm1l: Avoid compilation error on AIX.
5549         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
5550         AIX 5.2..7.1.
5551
5552 2012-03-07  Bruno Haible  <bruno@clisp.org>
5553
5554         expm1l: Don't override undeclared system function on IRIX 6.5.
5555         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
5556         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
5557         it exists. Set HAVE_DECL_EXPM1L.
5558         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
5559         HAVE_EXPM1L.
5560         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
5561         HAVE_EXPM1L.
5562         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
5563
5564 2012-03-07  Bruno Haible  <bruno@clisp.org>
5565
5566         remainderl: Don't override undeclared system function on IRIX 6.5.
5567         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
5568         HAVE_REMAINDERL.
5569         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
5570         declared when it exists. Set HAVE_DECL_REMAINDERL.
5571         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
5572         not HAVE_REMAINDERL.
5573         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
5574         HAVE_REMAINDERL.
5575         * doc/posix-functions/remainderl.texi: Mention missing declaration
5576         problem.
5577
5578 2012-03-07  Bruno Haible  <bruno@clisp.org>
5579
5580         rintf: Don't override undeclared system function on IRIX 6.5.
5581         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
5582         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
5583         exists. Set HAVE_DECL_RINTF.
5584         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
5585         HAVE_RINTF.
5586         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
5587         HAVE_RINTF.
5588         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
5589
5590 2012-03-07  Bruno Haible  <bruno@clisp.org>
5591
5592         roundl: Avoid compilation error on AIX.
5593         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
5594         AIX 5.2..7.1.
5595
5596 2012-03-07  Bruno Haible  <bruno@clisp.org>
5597
5598         roundl: Don't override undeclared system function on IRIX 6.5.
5599         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
5600         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
5601         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5602         * modules/roundl (configure.ac): For replacement code, test
5603         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
5604         (Depends-on): Update conditions.
5605         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
5606
5607 2012-03-07  Bruno Haible  <bruno@clisp.org>
5608
5609         roundf: Don't override undeclared system function on IRIX 6.5.
5610         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
5611         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
5612         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5613         * modules/roundf (configure.ac): For replacement code, test
5614         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
5615         (Depends-on): Update conditions.
5616         * modules/roundf-ieee (Depends-on): Update conditions.
5617         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
5618
5619 2012-03-07  Bruno Haible  <bruno@clisp.org>
5620
5621         round: Don't override undeclared system function on IRIX 6.5.
5622         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
5623         argument.
5624         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
5625         also when it is not declared. Set HAVE_ROUND. For replacement code,
5626         test HAVE_ROUND, not HAVE_DECL_ROUND.
5627         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
5628         not HAVE_DECL_ROUND.
5629         (Depends-on): Update conditions.
5630         * modules/round-ieee (Depends-on): Update conditions.
5631         * doc/posix-functions/round.texi: Mention the IRIX problem.
5632
5633 2012-03-07  Bruno Haible  <bruno@clisp.org>
5634
5635         copysignf: Don't override undeclared system function on IRIX 6.5.
5636         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
5637         HAVE_COPYSIGNF.
5638         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
5639         declared when it exists. Set HAVE_DECL_COPYSIGNF.
5640         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
5641         not HAVE_COPYSIGNF.
5642         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
5643         HAVE_COPYSIGNF.
5644         * doc/posix-functions/copysignf.texi: Mention missing declaration
5645         problem.
5646
5647 2012-03-07  Jim Meyering  <meyering@redhat.com>
5648
5649         readtokens: add tests
5650         * modules/readtokens-tests: New file.
5651         * tests/test-readtokens.c: New file.
5652
5653 2012-03-07  Jim Meyering  <meyering@redhat.com>
5654
5655         quotearg: the module must now include quote.h
5656         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
5657         So must the module.
5658         * modules/quotearg (Files): Add quote.h.
5659
5660 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
5661
5662         readtokens: avoid core dumps with unusual calling patterns
5663         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
5664         * lib/readtokens.c: Include limits.h.
5665         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
5666         (readtoken): Don't cache the delimiters; the cache code was buggy
5667         if !delim && saved_delim, or if the new n_delim differs from the old.
5668         Also, it wasn't thread-safe.
5669
5670 2012-03-07  Bruno Haible  <bruno@clisp.org>
5671
5672         quote: Adhere to common module description layout.
5673         * modules/quote (Makefile.am): Add back empty section.
5674
5675 2012-03-06  Akim Demaille  <demaille@gostai.com>
5676
5677         quote: fuse into quotearg
5678         This patch is made for the benefit of Bison.
5679         quote does not leave the choice of the quoting style to the user.
5680         quoting_style provides poor customizability, yet quoting_options,
5681         which is very rich, is hidden inside quotearg.c.  So in order to
5682         allow quote customization, move its implementation to quotearg.c.
5683         * lib/quote.c: Remove.
5684         * modules/quote: Adjust.
5685         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
5686         warning: provide all the members of literal structs.
5687         (quote_quoting_options): New.
5688         (quote, quote_n): Import implementation from quote.c.
5689         * lib/quote.h: Import the comments from quote.c.
5690         (quote_quoting_options): New.
5691
5692 2012-03-06  Bruno Haible  <bruno@clisp.org>
5693
5694         Tests for module 'expm1l-ieee'.
5695         * modules/expm1l-ieee-tests: New file.
5696         * tests/test-expm1l-ieee.c: New file.
5697
5698         New module 'expm1l-ieee'.
5699         * modules/expm1l-ieee: New file.
5700
5701         Tests for module 'expm1f-ieee'.
5702         * modules/expm1f-ieee-tests: New file.
5703         * tests/test-expm1f-ieee.c: New file.
5704
5705         New module 'expm1f-ieee'.
5706         * modules/expm1f-ieee: New file.
5707
5708         Tests for module 'expm1-ieee'.
5709         * modules/expm1-ieee-tests: New file.
5710         * tests/test-expm1-ieee.c: New file.
5711         * tests/test-expm1-ieee.h: New file.
5712
5713         New module 'expm1-ieee'.
5714         * modules/expm1-ieee: New file.
5715         * m4/expm1-ieee.m4: New file.
5716         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
5717         whether expm1 works with a minus zero argument. Replace it if not.
5718         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
5719         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
5720         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
5721         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
5722         (Depends-on): Update conditions.
5723         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
5724         AIX problem.
5725
5726 2012-03-06  Bruno Haible  <bruno@clisp.org>
5727
5728         Work around expm1f bug on IRIX 6.5.
5729         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
5730         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
5731         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
5732         not work.
5733         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
5734         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
5735         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
5736         (Depends-on): Update conditions.
5737         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
5738
5739 2012-03-06  Bruno Haible  <bruno@clisp.org>
5740
5741         Tests for module 'expm1l'.
5742         * modules/expm1l-tests: New file.
5743         * tests/test-expm1l.c: New file.
5744
5745         New module 'expm1l'.
5746         * lib/math.in.h (expm1l): New declaration.
5747         * lib/expm1l.c: New file.
5748         * m4/expm1l.m4: New file.
5749         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
5750         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
5751         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
5752         * modules/expm1l: New file.
5753         * tests/test-math-c++.cc: Check the declaration of expm1l.
5754         * doc/posix-functions/expm1l.texi: Mention the new module.
5755
5756 2012-03-06  Bruno Haible  <bruno@clisp.org>
5757
5758         Tests for module 'expm1f'.
5759         * modules/expm1f-tests: New file.
5760         * tests/test-expm1f.c: New file.
5761
5762         New module 'expm1f'.
5763         * lib/math.in.h (expm1f): New declaration.
5764         * lib/expm1f.c: New file.
5765         * m4/expm1f.m4: New file.
5766         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
5767         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
5768         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
5769         * modules/expm1f: New file.
5770         * tests/test-math-c++.cc: Check the declaration of expm1f.
5771         * doc/posix-functions/expm1f.texi: Mention the new module.
5772
5773 2012-03-06  Bruno Haible  <bruno@clisp.org>
5774
5775         Tests for module 'expm1'.
5776         * modules/expm1-tests: New file.
5777         * tests/test-expm1.c: New file.
5778         * tests/test-expm1.h: New file.
5779
5780         New module 'expm1'.
5781         * lib/math.in.h (expm1): New declaration.
5782         * lib/expm1.c: New file.
5783         * m4/expm1.m4: New file.
5784         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
5785         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
5786         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
5787         * modules/expm1: New file.
5788         * tests/test-math-c++.cc: Check the declaration of expm1.
5789         * doc/posix-functions/expm1.texi: Mention the new module.
5790
5791 2012-03-06  Bruno Haible  <bruno@clisp.org>
5792
5793         math: Ensure declarations of math functions.
5794         * modules/acosf (Depends-on): Add 'extensions'.
5795         * modules/asinf (Depends-on): Likewise.
5796         * modules/atan2f (Depends-on): Likewise.
5797         * modules/atanf (Depends-on): Likewise.
5798         * modules/cbrt (Depends-on): Likewise.
5799         * modules/cbrtf (Depends-on): Likewise.
5800         * modules/cbrtl (Depends-on): Likewise.
5801         * modules/copysignf (Depends-on): Likewise.
5802         * modules/copysignl (Depends-on): Likewise.
5803         * modules/cosf (Depends-on): Likewise.
5804         * modules/coshf (Depends-on): Likewise.
5805         * modules/expf (Depends-on): Likewise.
5806         * modules/fabsf (Depends-on): Likewise.
5807         * modules/fabsl (Depends-on): Likewise.
5808         * modules/fmaf (Depends-on): Likewise.
5809         * modules/fmal (Depends-on): Likewise.
5810         * modules/fmodf (Depends-on): Likewise.
5811         * modules/fmodl (Depends-on): Likewise.
5812         * modules/frexpf (Depends-on): Likewise.
5813         * modules/frexpl (Depends-on): Likewise.
5814         * modules/hypot (Depends-on): Likewise.
5815         * modules/hypotf (Depends-on): Likewise.
5816         * modules/hypotl (Depends-on): Likewise.
5817         * modules/ldexpf (Depends-on): Likewise.
5818         * modules/ldexpl (Depends-on): Likewise.
5819         * modules/log10f (Depends-on): Likewise.
5820         * modules/log10l (Depends-on): Likewise.
5821         * modules/log1p (Depends-on): Likewise.
5822         * modules/logb (Depends-on): Likewise.
5823         * modules/logf (Depends-on): Likewise.
5824         * modules/modff (Depends-on): Likewise.
5825         * modules/modfl (Depends-on): Likewise.
5826         * modules/powf (Depends-on): Likewise.
5827         * modules/remainderf (Depends-on): Likewise.
5828         * modules/remainderl (Depends-on): Likewise.
5829         * modules/rintf (Depends-on): Likewise.
5830         * modules/rintl (Depends-on): Likewise.
5831         * modules/sinf (Depends-on): Likewise.
5832         * modules/sinhf (Depends-on): Likewise.
5833         * modules/sqrtf (Depends-on): Likewise.
5834         * modules/tanf (Depends-on): Likewise.
5835         * modules/tanhf (Depends-on): Likewise.
5836         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5837         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5838         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5839         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5840         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5841         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5842         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5843         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5844         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5845         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5846         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5847         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5848         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5849         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5850         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5851         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5852         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5853         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5854         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5855         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5856         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5857         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5858         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5859         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5860         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5861         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5862         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5863         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5864         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5865         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5866         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5867         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5868         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5869         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5870         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5871         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5872         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5873         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5874         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5875         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5876         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5877
5878 2012-03-06  Bruno Haible  <bruno@clisp.org>
5879
5880         math: Update module names in warnings.
5881         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5882         tanl): Use specific module name in warn-on-use warning.
5883
5884 2012-03-06  Bruno Haible  <bruno@clisp.org>
5885
5886         expl: Simplify computation.
5887         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5888
5889 2012-03-05  Bruno Haible  <bruno@clisp.org>
5890
5891         exp* tests: More tests.
5892         * tests/test-exp.h: New file.
5893         * tests/test-exp.c: Include <float.h> and test-exp.h.
5894         (main): Invoke test_function.
5895         * tests/test-expf.c: Include <float.h> and test-exp.h.
5896         (main): Invoke test_function.
5897         * tests/test-expl.c: Include <float.h> and test-exp.h.
5898         (main): Invoke test_function.
5899         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5900         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5901         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5902         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5903         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5904         (Depends-on): Add 'float'.
5905         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5906
5907         expl: Fix precision of computed result.
5908         * lib/expl.c: Completely rewritten.
5909         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5910         (Maintainer): Add me.
5911         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5912
5913 2012-03-05  Bruno Haible  <bruno@clisp.org>
5914
5915         cbrt* tests: More tests.
5916         * tests/test-cbrt.h: New file.
5917         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5918         (main): Invoke test_function.
5919         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5920         (main): Invoke test_function.
5921         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5922         (main): Invoke test_function.
5923         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5924         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5925         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5926         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5927         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5928         (Depends-on): Add 'float'.
5929         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5930
5931 2012-03-05  Bruno Haible  <bruno@clisp.org>
5932
5933         hypot* tests: More tests.
5934         * tests/test-hypot.h: New file, partially extracted from
5935         tests/test-hypotl.c.
5936         * tests/test-hypot.c: Include test-hypot.h.
5937         (main): Invoke test_function.
5938         * tests/test-hypotf.c: Include test-hypot.h.
5939         (main): Invoke test_function.
5940         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5941         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5942         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5943         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5944         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5945         tests/randomf.c.
5946         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5947         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5948         tests/randoml.c.
5949         (Depends-on): Add 'fpucw', 'float'.
5950         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5951
5952 2012-03-05  Bruno Haible  <bruno@clisp.org>
5953
5954         fpucw: Doc about FreeBSD.
5955         * lib/fpucw.h: Mention FreeBSD in comments.
5956
5957 2012-03-04  Bruno Haible  <bruno@clisp.org>
5958
5959         sqrt* tests: More tests.
5960         * tests/test-sqrt.h: New file.
5961         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5962         (main): Invoke test_function.
5963         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5964         (main): Invoke test_function.
5965         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5966         (main): Invoke test_function.
5967         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5968         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5969         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5970         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5971         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5972         (Depends-on): Add 'float'.
5973         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5974
5975 2012-03-04  Bruno Haible  <bruno@clisp.org>
5976
5977         remainder* tests: More tests.
5978         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5979         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5980         (main): Invoke test_function.
5981         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5982         (main): Invoke test_function.
5983         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5984         (main): Invoke test_function.
5985         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5986         tests/randomd.c.
5987         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5988         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5989         tests/randomf.c.
5990         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5991         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5992         tests/randoml.c.
5993         (Depends-on): Add 'float'.
5994         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5995
5996 2012-03-04  Bruno Haible  <bruno@clisp.org>
5997
5998         remainder, remainderf, remainderl: Fix computation for large quotients.
5999         * lib/remainder.c: Completely rewritten.
6000         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
6001         USE_FLOAT.
6002         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
6003         USE_LONG_DOUBLE.
6004         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
6005         isnand, isinf. Remove round, fma.
6006         * modules/remainderf (Files): Add lib/remainder.c.
6007         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
6008         Remove roundf, fmaf.
6009         * modules/remainderl (Files): Add lib/remainder.c.
6010         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
6011         isinf. Remove roundl, fmal.
6012         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
6013         REMAINDER_LIBM.
6014         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
6015         REMAINDERF_LIBM.
6016         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
6017         REMAINDERL_LIBM.
6018
6019 2012-03-04  Bruno Haible  <bruno@clisp.org>
6020
6021         fmod* tests: More tests.
6022         * tests/test-fmod.h (my_ldexp): New function.
6023         (test_function): Reduce amount of random numbers to test. Add tests
6024         of very large quotients x / y.
6025         * tests/test-fmod.c (MAX_EXP): New macro.
6026         * tests/test-fmodf.c (MAX_EXP): Likewise.
6027         * tests/test-fmodl.c (MAX_EXP): Likewise.
6028
6029 2012-03-04  Bruno Haible  <bruno@clisp.org>
6030
6031         fmod, fmodl: Fix computation for large quotients x / y.
6032         * lib/fmod.c: Completely rewritten.
6033         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
6034         USE_LONG_DOUBLE.
6035         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
6036         isnand. Remove fma.
6037         * modules/fmodl (Files): Add lib/fmod.c.
6038         (Depends-on): Add float, isfinite, signbit, fabsl,
6039         frexpl, ldexpl, isnanl. Remove fma.
6040         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
6041         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
6042
6043 2012-03-03  Bruno Haible  <bruno@clisp.org>
6044
6045         fmod* tests: More tests.
6046         * tests/test-fmod.h: New file.
6047         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
6048         (main): Invoke test_function.
6049         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
6050         (main): Invoke test_function.
6051         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
6052         (main): Invoke test_function.
6053         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
6054         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
6055         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
6056         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
6057         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
6058         (Depends-on): Add 'float'.
6059         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
6060
6061 2012-03-03  Bruno Haible  <bruno@clisp.org>
6062
6063         rint* tests: More tests.
6064         * tests/test-rint.h: New file, partially extracted from
6065         tests/test-rintl.c.
6066         * tests/test-rint.c: Include test-rint.h.
6067         (main): Invoke test_function.
6068         * tests/test-rintf.c: Include test-rint.h.
6069         (main): Invoke test_function.
6070         * tests/test-rintl.c: Include test-rint.h.
6071         (main): Invoke test_function.
6072         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
6073         (Makefile.am): Add randomd.c to test_rint_SOURCES.
6074         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
6075         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
6076         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
6077         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
6078
6079 2012-03-03  Bruno Haible  <bruno@clisp.org>
6080
6081         modf* tests: More tests.
6082         * tests/test-modf.h: New file.
6083         * tests/test-modf.c: Include <float.h> and test-modf.h.
6084         (main): Invoke test_function.
6085         * tests/test-modff.c: Include <float.h> and test-modf.h.
6086         (main): Invoke test_function.
6087         * tests/test-modfl.c: Include <float.h> and test-modf.h.
6088         (main): Invoke test_function.
6089         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
6090         (Makefile.am): Add randomd.c to test_modf_SOURCES.
6091         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
6092         (Makefile.am): Add randomf.c to test_modff_SOURCES.
6093         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
6094         (Depends-on): Add 'float'.
6095         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
6096
6097 2012-03-03  Bruno Haible  <bruno@clisp.org>
6098
6099         fabs* tests: More tests.
6100         * tests/test-fabs.h: New file, partially extracted from
6101         tests/test-fabsl.c.
6102         * tests/test-fabs.c (RANDOM): New macro.
6103         * tests/test-fabsf.c (RANDOM): New macro.
6104         * tests/test-fabsl.c (RANDOM): New macro.
6105         * modules/fabs-tests (Files): Add tests/randomd.c.
6106         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
6107         * modules/fabsf-tests (Files): Add tests/randomf.c.
6108         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
6109         * modules/fabsl-tests (Files): Add tests/randoml.c.
6110         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
6111
6112 2012-03-03  Bruno Haible  <bruno@clisp.org>
6113
6114         ldexp* tests: More tests.
6115         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
6116         * tests/test-ldexp.c (RANDOM): New macro.
6117         * tests/test-ldexpf.c (RANDOM): New macro.
6118         * tests/test-ldexpl.c (RANDOM): New macro.
6119         * modules/ldexp-tests (Files): Add tests/randomd.c.
6120         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
6121         * modules/ldexpf-tests (Files): Add tests/randomf.c.
6122         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
6123         * modules/ldexpl-tests (Files): Add tests/randoml.c.
6124         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
6125
6126 2012-03-03  Bruno Haible  <bruno@clisp.org>
6127
6128         frexp* tests: More tests.
6129         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
6130         * tests/test-frexp.c (RANDOM): New macro.
6131         * tests/test-frexpf.c (RANDOM): New macro.
6132         * tests/test-frexpl.c (RANDOM): New macro.
6133         * modules/frexp-tests (Files): Add tests/randomd.c.
6134         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
6135         * modules/frexpf-tests (Files): Add tests/randomf.c.
6136         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
6137         * modules/frexpl-tests (Files): Add tests/randoml.c.
6138         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
6139
6140 2012-03-03  Bruno Haible  <bruno@clisp.org>
6141
6142         Support for pseudo-random numbers in tests.
6143         * tests/randomf.c: New file.
6144         * tests/randomd.c: New file.
6145         * tests/randoml.c: New file.
6146         * tests/macros.h (randomf, randomd, randoml): New declarations.
6147
6148 2012-03-03  Bruno Haible  <bruno@clisp.org>
6149
6150         frexp* tests: Refactor.
6151         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
6152         * tests/test-frexp.c: Include and use it.
6153         * tests/test-frexpf.c: Likewise.
6154         * tests/test-frexpl.c: Likewise.
6155         * modules/frexp-tests (Files): Add tests/test-frexp.h.
6156         * modules/frexpf-tests (Files): Likewise.
6157         * modules/frexpl-tests (Files): Likewise.
6158
6159 2012-03-02  Jim Meyering  <meyering@redhat.com>
6160
6161         maint: don't specify XZ_OPT=-9ev in dist-related rule
6162         Using xz's -9 option is warranted only if you have a very large
6163         tarball (see xz's documentation for the sizes vs. presets), and
6164         requires 64MiB of memory at decompression time.
6165         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
6166         Automake's default of just "-e" is fine.  Override on a
6167         per-package basis by setting XZ_OPT e.g., in cfg.mk.
6168
6169 2012-03-01  Eric Blake  <eblake@redhat.com>
6170
6171         maint.mk: allow announcement for non-gnulib project
6172         * maint.mk (announcement): Skip gnulib version if not used.
6173
6174 2012-03-01  Jim Meyering  <meyering@redhat.com>
6175
6176         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
6177         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
6178         envvar settings cannot interfere.  Otherwise, setting envvars like
6179         prohibit=foo require=bar, etc. would cause spurious test failures.
6180
6181 2012-03-01  Eric Blake  <eblake@redhat.com>
6182
6183         maint.mk: add per-line exclusions to prohibitions
6184         * maint.mk (_sc_search_regexp): Add $exclude parameter.
6185         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
6186         (sc_const_long_option): Use it.
6187
6188 2012-03-01  Bruno Haible  <bruno@clisp.org>
6189
6190         Tests for module 'expl-ieee'.
6191         * modules/expl-ieee-tests: New file.
6192         * tests/test-expl-ieee.c: New file.
6193
6194         New module 'expl-ieee'.
6195         * modules/expl-ieee: New file.
6196
6197         Tests for module 'exp-ieee'.
6198         * modules/exp-ieee-tests: New file.
6199         * tests/test-exp-ieee.c: New file.
6200
6201         New module 'exp-ieee'.
6202         * modules/exp-ieee: New file.
6203
6204         Tests for module 'expf-ieee'.
6205         * modules/expf-ieee-tests: New file.
6206         * tests/test-expf-ieee.c: New file.
6207         * tests/test-exp-ieee.h: New file.
6208
6209         New module 'expf-ieee'.
6210         * modules/expf-ieee: New file.
6211
6212 2012-02-29  Bruno Haible  <bruno@clisp.org>
6213
6214         cbrtl-ieee: Work around test failure on IRIX 6.5.
6215         * m4/cbrtl-ieee.m4: New file.
6216         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
6217         test whether cbrtl works with a minus zero argument. Replace it if not.
6218         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
6219         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
6220         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
6221         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
6222         (Depends-on): Update conditions.
6223         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
6224         m4/signbit.m4.
6225         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
6226         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
6227         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
6228
6229         Tests for module 'cbrtl-ieee'.
6230         * modules/cbrtl-ieee-tests: New file.
6231         * tests/test-cbrtl-ieee.c: New file.
6232
6233         New module 'cbrtl-ieee'.
6234         * modules/cbrtl-ieee: New file.
6235
6236         Tests for module 'cbrt-ieee'.
6237         * modules/cbrt-ieee-tests: New file.
6238         * tests/test-cbrt-ieee.c: New file.
6239
6240         New module 'cbrt-ieee'.
6241         * modules/cbrt-ieee: New file.
6242
6243         Tests for module 'cbrtf-ieee'.
6244         * modules/cbrtf-ieee-tests: New file.
6245         * tests/test-cbrtf-ieee.c: New file.
6246         * tests/test-cbrt-ieee.h: New file.
6247
6248         New module 'cbrtf-ieee'.
6249         * modules/cbrtf-ieee: New file.
6250
6251 2012-02-29  Bruno Haible  <bruno@clisp.org>
6252
6253         cbrtf: Work around bug in IRIX 6.5 system function.
6254         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
6255         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
6256         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
6257         work.
6258         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
6259         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
6260         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
6261         (Depends-on): Update conditions.
6262         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
6263
6264 2012-02-29  Bruno Haible  <bruno@clisp.org>
6265
6266         Tests for module 'cbrtl'.
6267         * modules/cbrtl-tests: New file.
6268         * tests/test-cbrtl.c: New file.
6269
6270         New module 'cbrtl'.
6271         * lib/math.in.h (cbrtl): New declaration.
6272         * lib/cbrtl.c: New file.
6273         * m4/cbrtl.m4: New file.
6274         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
6275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
6276         HAVE_DECL_CBRTL.
6277         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
6278         HAVE_DECL_CBRTL.
6279         * modules/cbrtl: New file.
6280         * tests/test-math-c++.cc: Check the declaration of cbrtl.
6281         * doc/posix-functions/cbrtl.texi: Mention the new module.
6282
6283 2012-02-29  Bruno Haible  <bruno@clisp.org>
6284
6285         Tests for module 'cbrtf'.
6286         * modules/cbrtf-tests: New file.
6287         * tests/test-cbrtf.c: New file.
6288
6289         New module 'cbrtf'.
6290         * lib/math.in.h (cbrtf): New declaration.
6291         * lib/cbrtf.c: New file.
6292         * m4/cbrtf.m4: New file.
6293         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
6294         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
6295         HAVE_DECL_CBRTF.
6296         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
6297         HAVE_DECL_CBRTF.
6298         * modules/cbrtf: New file.
6299         * tests/test-math-c++.cc: Check the declaration of cbrtf.
6300         * doc/posix-functions/cbrtf.texi: Mention the new module.
6301
6302 2012-02-29  Bruno Haible  <bruno@clisp.org>
6303
6304         cbrt: Provide replacement on MSVC and Minix.
6305         * lib/math.in.h (cbrt): New declaration.
6306         * lib/cbrt.c: New file.
6307         * m4/cbrt.m4: New file.
6308         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
6309         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
6310         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
6311         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
6312         (Depends-on): Add dependencies.
6313         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
6314         * tests/test-math-c++.cc: Check the declaration of cbrt.
6315         * doc/posix-functions/cbrt.texi: Mention that the module provides a
6316         replacement.
6317
6318 2012-02-29  Bruno Haible  <bruno@clisp.org>
6319
6320         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
6321         * m4/hypotl-ieee.m4: New file.
6322         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
6323         test whether hypotl works with mixed NaN and Infinity arguments.
6324         Replace it if not.
6325         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
6326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
6327         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
6328         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
6329         (Depends-on): Update conditions.
6330         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
6331         (Depends-on): Add hypot-ieee.
6332         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
6333         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
6334
6335         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
6336         * m4/hypotf-ieee.m4: New file.
6337         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
6338         test whether hypotf works with mixed NaN and Infinity arguments.
6339         Replace it if not.
6340         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
6341         (Depends-on): Add hypot-ieee.
6342         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
6343         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
6344
6345         hypot-ieee: Work around test failure on OSF/1 and native Windows.
6346         * lib/math.in.h (hypot): New declaration.
6347         * lib/hypot.c: New file.
6348         * m4/hypot-ieee.m4: New file.
6349         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
6350         whether hypot works with mixed NaN and Infinity arguments. Replace it
6351         if not.
6352         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
6353         REPLACE_HYPOT.
6354         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
6355         * modules/hypot (Files): Add lib/hypot.c.
6356         (Depends-on): Add dependencies.
6357         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
6358         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
6359         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
6360         * tests/test-math-c++.cc: Check the declaration of hypot.
6361         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
6362
6363         Tests for module 'hypotl-ieee'.
6364         * modules/hypotl-ieee-tests: New file.
6365         * tests/test-hypotl-ieee.c: New file.
6366
6367         New module 'hypotl-ieee'.
6368         * modules/hypotl-ieee: New file.
6369
6370         Tests for module 'hypot-ieee'.
6371         * modules/hypot-ieee-tests: New file.
6372         * tests/test-hypot-ieee.c: New file.
6373
6374         New module 'hypot-ieee'.
6375         * modules/hypot-ieee: New file.
6376
6377         Tests for module 'hypotf-ieee'.
6378         * modules/hypotf-ieee-tests: New file.
6379         * tests/test-hypotf-ieee.c: New file.
6380         * tests/test-hypot-ieee.h: New file.
6381
6382         New module 'hypotf-ieee'.
6383         * modules/hypotf-ieee: New file.
6384
6385 2012-02-29  Bruno Haible  <bruno@clisp.org>
6386
6387         Remove unused variables.
6388         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
6389         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
6390         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
6391         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
6392
6393 2012-02-29  Eric Blake  <eblake@redhat.com>
6394
6395         termios: fix pid_t always, not just for tcgetsid
6396         * doc/posix-headers/termios.texi (termios.h): Mention problem.
6397         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
6398         just when building tcgetsid.
6399
6400 2012-02-29  Bruno Haible  <bruno@clisp.org>
6401
6402         Tests for module 'hypotl'.
6403         * modules/hypotl-tests: New file.
6404         * tests/test-hypotl.c: New file.
6405
6406         New module 'hypotl'.
6407         * lib/math.in.h (hypotl): New declaration.
6408         * lib/hypotl.c: New file.
6409         * m4/hypotl.m4: New file.
6410         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6411         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
6412         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
6413         * modules/hypotl: New file.
6414         * tests/test-math-c++.cc: Check the hypotl declaration.
6415         * doc/posix-functions/hypotl.texi: Mention the new module.
6416
6417 2012-02-29  Eric Blake  <eblake@redhat.com>
6418
6419         tcgetsid: fix cygwin header bug
6420         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
6421
6422         docs: update cygwin progress
6423         * doc/posix-functions/llround.texi (llround): Added in cygwin
6424         1.7.8.
6425         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
6426         * doc/glibc-functions/program_invocation_name.texi
6427         (program_invocation_name): Likewise.
6428         * doc/glibc-functions/program_invocation_short_name.texi
6429         (program_invocation_short_name): Likewise.
6430         * doc/glibc-functions/madvise.texi (madvise): Likewise.
6431         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
6432         Likewise.
6433         * doc/posix-functions/pthread_spin_destroy.texi
6434         (pthread_spin_destroy): Added in cygwin 1.7.10.
6435         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
6436         Likewise.
6437         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
6438         Likewise.
6439         * doc/posix-functions/pthread_spin_trylock.texi
6440         (pthread_spin_trylock): Likewise.
6441         * doc/posix-functions/pthread_spin_unlock.texi
6442         (pthread_spin_unlock): Likewise.
6443         * doc/posix-functions/pthread_setschedprio.texi
6444         (pthread_setschedprio): Likewise.
6445         * doc/posix-functions/pthread_attr_getstack.texi
6446         (pthread_attr_getstack): Likewise.
6447         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
6448         (pthread_attr_getstackaddr): Likewise.
6449         * doc/glibc-functions/pthread_getattr_np.texi
6450         (pthread_getattr_np): Likewise.
6451         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
6452         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
6453         * doc/posix-functions/clock_settime.texi (clock_settime):
6454         Likewise.
6455         * doc/posix-functions/pthread_attr_getguardsize.texi
6456         (pthread_attr_getguardsize): Likewise.
6457         * doc/posix-functions/pthread_attr_setguardsize.texi
6458         (pthread_attr_setguardsize): Likewise.
6459         * doc/posix-functions/pthread_attr_setstack.texi
6460         (pthread_attr_setstack): Likewise.
6461         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
6462         (pthread_attr_setstackaddr): Likewise.
6463         * doc/posix-functions/clock_getcpuclockid.texi
6464         (clock_getcpuclockid): Likewise.
6465         * doc/posix-functions/pthread_getcpuclockid.texi
6466         (pthread_getcpuclockid): Likewise.
6467         * doc/glibc-functions/error.texi (error): Likewise.
6468         * doc/glibc-functions/error_at_line.texi (error_at_line):
6469         Likewise.
6470         * doc/glibc-functions/error_message_count.texi
6471         (error_message_count): Likewise.
6472         * doc/glibc-functions/error_one_per_line.texi
6473         (error_one_per_line): Likewise.
6474         * doc/glibc-functions/error_print_progname.texi
6475         (error_print_progname): Likewise.
6476         * doc/posix-functions/pthread_condattr_getclock.texi
6477         (pthread_condattr_getclock): Likewise.
6478         * doc/posix-functions/pthread_condattr_setclock.texi
6479         (pthread_condattr_setclock): Likewise.
6480         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
6481         Likewise.
6482         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
6483         * doc/glibc-functions/getpt.texi (getpt): Likewise.
6484         * doc/glibc-functions/get_current_dir_name.texi
6485         (get_current_dir_name): Likewise.
6486         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
6487         Likewise.
6488         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
6489         wrong return type.
6490         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
6491         1.7.11.
6492
6493 2012-02-29  Bruno Haible  <bruno@clisp.org>
6494
6495         Tests for module 'hypotf'.
6496         * modules/hypotf-tests: New file.
6497         * tests/test-hypotf.c: New file.
6498
6499         New module 'hypotf'.
6500         * lib/math.in.h (hypotf): New declaration.
6501         * lib/hypotf.c: New file.
6502         * m4/hypotf.m4: New file.
6503         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
6504         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
6505         REPLACE_HYPOTF.
6506         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
6507         REPLACE_HYPOTF.
6508         * modules/hypotf: New file.
6509         * tests/test-math-c++.cc: Check the hypotf declaration.
6510         * doc/posix-functions/hypotf.texi: Mention the new module.
6511
6512         hypot: Prepare for hypotf module.
6513         * m4/hypot.m4: New file.
6514         * modules/hypot (Files): Add m4/hypot.m4.
6515         (configure.ac): Invoke gl_FUNC_HYPOT.
6516
6517 2012-02-29  Bruno Haible  <bruno@clisp.org>
6518
6519         hypot tests: More tests.
6520         * tests/test-hypot.c: Include <float.h>.
6521         (main): Add tests about overflow and underflow.
6522
6523 2012-02-29  Bruno Haible  <bruno@clisp.org>
6524
6525         math code: Add comments.
6526         * lib/acosl.c: Add comment about related glibc source files.
6527         * lib/asinl.c: Likewise.
6528         * lib/atanl.c: Likewise.
6529         * lib/expl.c: Likewise.
6530         * lib/logl.c: Likewise.
6531         * lib/sincosl.c: Likewise.
6532         * lib/sinl.c: Likewise.
6533         * lib/tanl.c: Likewise.
6534         * lib/trigl.c: Likewise.
6535         * lib/cosl.c: Likewise. Fix comments.
6536
6537 2012-02-28  Bruno Haible  <bruno@clisp.org>
6538
6539         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
6540         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
6541         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
6542         HUGE_VALL are defined.
6543         (numeric_equald): Renamed from numeric_equal.
6544         (numeric_equalf, numeric_equall): New functions.
6545         (main): Check also HUGE_VALF, HUGE_VALL.
6546         * modules/math-tests (Files): Add tests/macros.h.
6547         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
6548         HUGE_VALL.
6549
6550 2012-02-28  Bruno Haible  <bruno@clisp.org>
6551
6552         doc: Move ISO C11 feature notes into POSIX chapters.
6553         * doc/posix-functions/aligned_alloc.texi: Renamed from
6554         doc/glibc-functions/aligned_alloc.texi.
6555         * doc/posix-functions/quick_exit.texi: Renamed from
6556         doc/glibc-functions/quick_exit.texi.
6557         * doc/posix-headers/uchar.texi: Renamed from
6558         doc/glibc-headers/uchar.texi.
6559         * doc/posix-functions/c16rtomb.texi: Renamed from
6560         doc/glibc-functions/c16rtomb.texi.
6561         * doc/posix-functions/c32rtomb.texi: Renamed from
6562         doc/glibc-functions/c32rtomb.texi.
6563         * doc/posix-functions/mbrtoc16.texi: Renamed from
6564         doc/glibc-functions/mbrtoc16.texi.
6565         * doc/posix-functions/mbrtoc32.texi: Renamed from
6566         doc/glibc-functions/mbrtoc32.texi.
6567         * doc/gnulib.texi: Update.
6568         (Glibc uchar.h): Remove section.
6569         Suggested by Eric Blake.
6570
6571 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
6572
6573         stdnoreturn: port to MSVC better
6574         MSVC standard headers use __declspec(noreturn), so #define noreturn
6575         to empty on that platform.  Reported by Bruno Haible in
6576         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
6577         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
6578         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
6579
6580 2012-02-28  Bruno Haible  <bruno@clisp.org>
6581
6582         doc: Mention new glibc headers and functions.
6583         * doc/glibc-headers/uchar.texi: New file.
6584         * doc/glibc-functions/aligned_alloc.texi: New file.
6585         * doc/glibc-functions/c16rtomb.texi: New file.
6586         * doc/glibc-functions/c32rtomb.texi: New file.
6587         * doc/glibc-functions/clock_adjtime.texi: New file.
6588         * doc/glibc-functions/fanotify_init.texi: New file.
6589         * doc/glibc-functions/fanotify_mark.texi: New file.
6590         * doc/glibc-functions/inet6_opt_append.texi: New file.
6591         * doc/glibc-functions/inet6_opt_find.texi: New file.
6592         * doc/glibc-functions/inet6_opt_finish.texi: New file.
6593         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
6594         * doc/glibc-functions/inet6_opt_init.texi: New file.
6595         * doc/glibc-functions/inet6_opt_next.texi: New file.
6596         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
6597         * doc/glibc-functions/inet6_rth_add.texi: New file.
6598         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
6599         * doc/glibc-functions/inet6_rth_init.texi: New file.
6600         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
6601         * doc/glibc-functions/inet6_rth_segments.texi: New file.
6602         * doc/glibc-functions/inet6_rth_space.texi: New file.
6603         * doc/glibc-functions/login.texi: New file.
6604         * doc/glibc-functions/mbrtoc16.texi: New file.
6605         * doc/glibc-functions/mbrtoc32.texi: New file.
6606         * doc/glibc-functions/name_to_handle_at.texi: New file.
6607         * doc/glibc-functions/ntp_gettimex.texi: New file.
6608         * doc/glibc-functions/open_by_handle_at.texi: New file.
6609         * doc/glibc-functions/prlimit.texi: New file.
6610         * doc/glibc-functions/process_vm_readv.texi: New file.
6611         * doc/glibc-functions/process_vm_writev.texi: New file.
6612         * doc/glibc-functions/recvmmsg.texi: New file.
6613         * doc/glibc-functions/scandirat.texi: New file.
6614         * doc/glibc-functions/sendmmsg.texi: New file.
6615         * doc/glibc-functions/setns.texi: New file.
6616         * doc/glibc-functions/timespec_get.texi: New file.
6617         * doc/gnulib.texi: Include them.
6618         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
6619         sections.
6620         Reported by Eric Blake.
6621
6622 2012-02-28  Bruno Haible  <bruno@clisp.org>
6623
6624         Avoid compilation errors with MSVC option -fp:strict.
6625         * lib/floor.c: Use MSVC specific pragma fenv_access.
6626         * lib/ceil.c: Likewise.
6627         * lib/trunc.c: Likewise.
6628         * lib/round.c: Likewise.
6629         * lib/rint.c: Likewise.
6630         * lib/fma.c: Likewise.
6631         * lib/integer_length.c: Likewise.
6632         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6633         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6634         * tests/test-floor2.c: Likewise.
6635         * tests/test-floorf2.c: Likewise.
6636         * tests/test-ceil2.c: Likewise.
6637         * tests/test-ceilf2.c: Likewise.
6638         * tests/test-trunc2.c: Likewise.
6639         * tests/test-truncf2.c: Likewise.
6640         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6641
6642 2012-02-27  Bruno Haible  <bruno@clisp.org>
6643
6644         Tests for module 'sqrtl-ieee'.
6645         * modules/sqrtl-ieee-tests: New file.
6646         * tests/test-sqrtl-ieee.c: New file.
6647
6648         New module 'sqrtl-ieee'.
6649         * modules/sqrtl-ieee: New file.
6650
6651         Tests for module 'sqrt-ieee'.
6652         * modules/sqrt-ieee-tests: New file.
6653         * tests/test-sqrt-ieee.c: New file.
6654
6655         New module 'sqrt-ieee'.
6656         * modules/sqrt-ieee: New file.
6657
6658         Tests for module 'sqrtf-ieee'.
6659         * modules/sqrtf-ieee-tests: New file.
6660         * tests/test-sqrtf-ieee.c: New file.
6661         * tests/test-sqrt-ieee.h: New file.
6662
6663         New module 'sqrtf-ieee'.
6664         * modules/sqrtf-ieee: New file.
6665
6666 2012-02-27  Bruno Haible  <bruno@clisp.org>
6667
6668         remainderl-ieee: Work around test failure on OSF/1.
6669         * m4/remainderl-ieee.m4: New file.
6670         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
6671         present, test whether remainderl works with a zero second argument.
6672         Replace it if not.
6673         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
6674         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
6675         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
6676         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
6677         (Depends-on): Update conditions.
6678         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
6679         (Depends-on): Add remainder-ieee.
6680         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
6681         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
6682         module.
6683
6684         remainderf-ieee: Work around test failure on OSF/1.
6685         * m4/remainderf-ieee.m4: New file.
6686         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
6687         present, test whether remainderf works with a zero second argument.
6688         Replace it if not.
6689         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
6690         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
6691         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
6692         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
6693         (Depends-on): Update conditions.
6694         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
6695         (Depends-on): Add remainder-ieee.
6696         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
6697         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
6698         module.
6699
6700         remainder-ieee: Work around test failure on OSF/1.
6701         * m4/remainder-ieee.m4: New file.
6702         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
6703         present, test whether remainder works with a zero second argument.
6704         Replace it if not.
6705         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
6706         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
6707         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
6708         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
6709         (Depends-on): Update dependencies.
6710         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
6711         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
6712         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
6713
6714         Tests for module 'remainderl-ieee'.
6715         * modules/remainderl-ieee-tests: New file.
6716         * tests/test-remainderl-ieee.c: New file.
6717
6718         New module 'remainderl-ieee'.
6719         * modules/remainderl-ieee: New file.
6720
6721         Tests for module 'remainder-ieee'.
6722         * modules/remainder-ieee-tests: New file.
6723         * tests/test-remainder-ieee.c: New file.
6724
6725         New module 'remainder-ieee'.
6726         * modules/remainder-ieee: New file.
6727
6728         Tests for module 'remainderf-ieee'.
6729         * modules/remainderf-ieee-tests: New file.
6730         * tests/test-remainderf-ieee.c: New file.
6731         * tests/test-remainder-ieee.h: New file.
6732
6733         New module 'remainderf-ieee'.
6734         * modules/remainderf-ieee: New file.
6735
6736 2012-02-27  Bruno Haible  <bruno@clisp.org>
6737
6738         modff, modfl: Fix configure syntax error.
6739         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
6740         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
6741
6742 2012-02-27  Bruno Haible  <bruno@clisp.org>
6743
6744         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
6745         * m4/fmodl-ieee.m4: New file.
6746         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
6747         whether fmodl works with zero arguments. Replace it if not.
6748         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
6749         (Depends-on): Add fmod-ieee.
6750         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
6751         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
6752
6753         fmodf-ieee: Work around test failure on OSF/1.
6754         * m4/fmodf-ieee.m4: New file.
6755         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
6756         whether fmodf works with zero arguments. Replace it if not.
6757         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
6758         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
6759         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
6760         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
6761         (Depends-on): Update dependencies.
6762         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
6763         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
6764         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
6765
6766         fmodf-ieee: Work around test failure on MSVC 9.
6767         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
6768         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
6769
6770         fmod-ieee: Work around test failures on OSF/1, mingw.
6771         * m4/fmod-ieee.m4: New file.
6772         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
6773         whether fmod works with zero arguments. Replace it if not.
6774         * lib/math.in.h (fmod): New declaration.
6775         * lib/fmod.c: New file.
6776         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
6777         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
6778         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
6779         * modules/fmod (Files): Add lib/fmod.c.
6780         (Depends-on): Add math, isinf, trunc, fma.
6781         (configure.ac): Arrange to compile lib/fmod.c if needed.
6782         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
6783         m4/signbit.m4.
6784         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
6785         * tests/test-math-c++.cc: Check the declaration of fmod.
6786         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
6787
6788         fmodl-ieee: Fix test failures.
6789         * lib/fmodl.c (fmodl): Treat Inf specially.
6790         * modules/fmodl (Depends-on): Add isinf.
6791
6792         Tests for module 'fmodl-ieee'.
6793         * modules/fmodl-ieee-tests: New file.
6794         * tests/test-fmodl-ieee.c: New file.
6795
6796         New module 'fmodl-ieee'.
6797         * modules/fmodl-ieee: New file.
6798
6799         Tests for module 'fmod-ieee'.
6800         * modules/fmod-ieee-tests: New file.
6801         * tests/test-fmod-ieee.c: New file.
6802
6803         New module 'fmod-ieee'.
6804         * modules/fmod-ieee: New file.
6805
6806         Tests for module 'fmodf-ieee'.
6807         * modules/fmodf-ieee-tests: New file.
6808         * tests/test-fmodf-ieee.c: New file.
6809         * tests/test-fmod-ieee.h: New file.
6810
6811         New module 'fmodf-ieee'.
6812         * modules/fmodf-ieee: New file.
6813
6814 2012-02-27  Bruno Haible  <bruno@clisp.org>
6815
6816         Tests for module 'rintl-ieee'.
6817         * modules/rintl-ieee-tests: New file.
6818         * tests/test-rintl-ieee.c: New file.
6819
6820         New module 'rintl-ieee'.
6821         * modules/rintl-ieee: New file.
6822
6823         Tests for module 'rint-ieee'.
6824         * modules/rint-ieee-tests: New file.
6825         * tests/test-rint-ieee.c: New file.
6826
6827         New module 'rint-ieee'.
6828         * modules/rint-ieee: New file.
6829
6830         Tests for module 'rintf-ieee'.
6831         * modules/rintf-ieee-tests: New file.
6832         * tests/test-rintf-ieee.c: New file.
6833         * tests/test-rint-ieee.h: New file.
6834
6835         New module 'rintf-ieee'.
6836         * modules/rintf-ieee: New file.
6837
6838 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6839
6840         regex: re_search etc. should return -2 when memory exhausted
6841         This bug was uncovered when testing 'grep'.  Without the fix,
6842         re_search and friends return -1 when memory is exhausted, but -1
6843         means no match, and this causes grep to falsely report no-match
6844         instead of memory-exhaustion.  See
6845         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6846         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6847         trouble; this can occur if re_search_internal ran out of memory.
6848
6849 2012-02-26  Bruno Haible  <bruno@clisp.org>
6850
6851         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6852         * m4/modfl-ieee.m4: New file.
6853         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6854         whether modfl works with Inf. Replace it if not.
6855         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6856         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6857         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6858         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6859         (Depends-on): Update dependencies.
6860         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6861         m4/signbit.m4.
6862         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6863         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6864
6865         modfl-ieee: Fix dependencies.
6866         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6867
6868         modfl-ieee: Fix test failures.
6869         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6870         * modules/modfl (Depends-on): Add isfinite, isinf.
6871
6872         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6873         * m4/modff-ieee.m4: New file.
6874         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6875         whether modff works with NaN and Inf. Replace it if not.
6876         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6877         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6878         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6879         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6880         (Depends-on): Update dependencies.
6881         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6882         m4/signbit.m4.
6883         (Depends-on): Add modf-ieee.
6884         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6885         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6886
6887         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6888         * m4/modf-ieee.m4: New file.
6889         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6890         whether modf works with NaN and Inf. Replace it if not.
6891         * lib/math.in.h (modf): New declaration.
6892         * lib/modf.c: New file.
6893         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6894         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6895         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6896         * modules/modf (Files): Add lib/modf.c.
6897         (Depends-on): Add math, isfinite, trunc, isinf.
6898         (configure.ac): Addrange to compile lib/modf.c if needed.
6899         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6900         m4/signbit.m4.
6901         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6902         * tests/test-math-c++.cc: Check the declaration of modf.
6903         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6904
6905         Tests for module 'modfl-ieee'.
6906         * modules/modfl-ieee-tests: New file.
6907         * tests/test-modfl-ieee.c: New file.
6908
6909         New module 'modfl-ieee'.
6910         * modules/modfl-ieee: New file.
6911
6912         Tests for module 'modf-ieee'.
6913         * modules/modf-ieee-tests: New file.
6914         * tests/test-modf-ieee.c: New file.
6915
6916         New module 'modf-ieee'.
6917         * modules/modf-ieee: New file.
6918
6919         Tests for module 'modff-ieee'.
6920         * modules/modff-ieee-tests: New file.
6921         * tests/test-modff-ieee.c: New file.
6922         * tests/test-modf-ieee.h: New file.
6923
6924         New module 'modff-ieee'.
6925         * modules/modff-ieee: New file.
6926
6927 2012-02-26  Bruno Haible  <bruno@clisp.org>
6928
6929         Tests for module 'fabsl-ieee'.
6930         * modules/fabsl-ieee-tests: New file.
6931         * tests/test-fabsl-ieee.c: New file.
6932
6933         New module 'fabsl-ieee'.
6934         * modules/fabsl-ieee: New file.
6935
6936         Tests for module 'fabs-ieee'.
6937         * modules/fabs-ieee-tests: New file.
6938         * tests/test-fabs-ieee.c: New file.
6939
6940         New module 'fabs-ieee'.
6941         * modules/fabs-ieee: New file.
6942
6943         Tests for module 'fabsf-ieee'.
6944         * modules/fabsf-ieee-tests: New file.
6945         * tests/test-fabsf-ieee.c: New file.
6946         * tests/test-fabs-ieee.h: New file.
6947
6948         New module 'fabsf-ieee'.
6949         * modules/fabsf-ieee: New file.
6950
6951 2012-02-26  Bruno Haible  <bruno@clisp.org>
6952
6953         Tests for module 'fmal-ieee'.
6954         * modules/fmal-ieee-tests: New file.
6955         * tests/test-fmal-ieee.c: New file.
6956
6957         New module 'fmal-ieee'.
6958         * modules/fmal-ieee: New file.
6959
6960         Tests for module 'fma-ieee'.
6961         * modules/fma-ieee-tests: New file.
6962         * tests/test-fma-ieee.c: New file.
6963
6964         New module 'fma-ieee'.
6965         * modules/fma-ieee: New file.
6966
6967         Tests for module 'fmaf-ieee'.
6968         * modules/fmaf-ieee-tests: New file.
6969         * tests/test-fmaf-ieee.c: New file.
6970         * tests/test-fma-ieee.h: New file.
6971
6972         New module 'fmaf-ieee'.
6973         * modules/fmaf-ieee: New file.
6974
6975 2012-02-26  Bruno Haible  <bruno@clisp.org>
6976
6977         Tests for module 'ldexpl-ieee'.
6978         * modules/ldexpl-ieee-tests: New file.
6979         * tests/test-ldexpl-ieee.c: New file.
6980
6981         New module 'ldexpl-ieee'.
6982         * modules/ldexpl-ieee: New file.
6983
6984         Tests for module 'ldexp-ieee'.
6985         * modules/ldexp-ieee-tests: New file.
6986         * tests/test-ldexp-ieee.c: New file.
6987
6988         New module 'ldexp-ieee'.
6989         * modules/ldexp-ieee: New file.
6990
6991         Tests for module 'ldexpf-ieee'.
6992         * modules/ldexpf-ieee-tests: New file.
6993         * tests/test-ldexpf-ieee.c: New file.
6994         * tests/test-ldexp-ieee.h: New file.
6995
6996         New module 'ldexpf-ieee'.
6997         * modules/ldexpf-ieee: New file.
6998
6999 2012-02-26  Bruno Haible  <bruno@clisp.org>
7000
7001         Refactor frexp*-ieee tests.
7002         * tests/test-frexp-ieee.h: New file.
7003         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
7004         (main): Just call test_function.
7005         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
7006         (main): Just call test_function.
7007         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
7008         (main): Just call test_function.
7009         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
7010         * modules/frexp-ieee-tests (Files): Likewise.
7011         * modules/frexpl-ieee-tests (Files): Likewise.
7012
7013         Tests for module 'frexpl-ieee'.
7014         * modules/frexpl-ieee-tests: New file.
7015         * tests/test-frexpl-ieee.c: New file.
7016
7017         New module 'frexpl-ieee'.
7018         * modules/frexpl-ieee: New file.
7019
7020         Tests for module 'frexp-ieee'.
7021         * modules/frexp-ieee-tests: New file.
7022         * tests/test-frexp-ieee.c: New file.
7023
7024         New module 'frexp-ieee'.
7025         * modules/frexp-ieee: New file.
7026
7027         Tests for module 'frexpf-ieee'.
7028         * modules/frexpf-ieee-tests: New file.
7029         * tests/test-frexpf-ieee.c: New file.
7030
7031         New module 'frexpf-ieee'.
7032         * modules/frexpf-ieee: New file.
7033
7034 2012-02-26  Bruno Haible  <bruno@clisp.org>
7035
7036         roundl-ieee tests: More tests.
7037         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7038         (main): Add tests for [MX] shaded specification in POSIX.
7039         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7040         (Depends-on): Add isnanl-nolibm.
7041
7042         round-ieee tests: More tests.
7043         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7044         (main): Add tests for [MX] shaded specification in POSIX.
7045         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7046         (Depends-on): Add isnand-nolibm.
7047
7048         roundf-ieee tests: More tests.
7049         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7050         (main): Add tests for [MX] shaded specification in POSIX.
7051         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7052         (Depends-on): Add isnanf-nolibm.
7053
7054         truncl-ieee tests: More tests.
7055         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7056         (main): Add tests for [MX] shaded specification in POSIX.
7057         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7058         (Depends-on): Add isnanl-nolibm.
7059
7060         trunc-ieee tests: More tests.
7061         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7062         (main): Add tests for [MX] shaded specification in POSIX.
7063         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7064         (Depends-on): Add isnand-nolibm.
7065
7066         truncf-ieee tests: More tests.
7067         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7068         (main): Add tests for [MX] shaded specification in POSIX.
7069         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7070         (Depends-on): Add isnanf-nolibm.
7071
7072         ceill-ieee tests: More tests.
7073         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7074         (main): Add tests for [MX] shaded specification in POSIX.
7075         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7076         (Depends-on): Add isnanl-nolibm.
7077
7078         ceil-ieee tests: More tests.
7079         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7080         (main): Add tests for [MX] shaded specification in POSIX.
7081         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7082         (Depends-on): Add isnand-nolibm.
7083
7084         ceilf-ieee tests: More tests.
7085         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7086         (main): Add tests for [MX] shaded specification in POSIX.
7087         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7088         (Depends-on): Add isnanf-nolibm.
7089
7090         floorl-ieee tests: More tests.
7091         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
7092         (main): Add tests for [MX] shaded specification in POSIX.
7093         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7094         (Depends-on): Add isnanl-nolibm.
7095
7096         floor-ieee tests: More tests.
7097         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
7098         (main): Add tests for [MX] shaded specification in POSIX.
7099         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7100         (Depends-on): Add isnand-nolibm.
7101
7102         floorf-ieee tests: More tests.
7103         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
7104         (main): Add tests for [MX] shaded specification in POSIX.
7105         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
7106         (Depends-on): Add isnanf-nolibm.
7107
7108 2012-02-26  Bruno Haible  <bruno@clisp.org>
7109
7110         fpieee: More comments.
7111         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
7112
7113 2012-02-25  Bruno Haible  <bruno@clisp.org>
7114
7115         Tests for module 'log10l'.
7116         * modules/log10l-tests: New file.
7117         * tests/test-log10l.c: New file.
7118         * tests/test-math-c++.cc: Check the declaration of log10l.
7119
7120         New module 'log10l'.
7121         * lib/math.in.h (log10l): New declaration.
7122         * lib/log10l.c: New file.
7123         * m4/log10l.m4: New file.
7124         * modules/log10l: New file.
7125         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
7126         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
7127         HAVE_DECL_LOG10L.
7128         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
7129         HAVE_DECL_LOG10L.
7130         * doc/posix-functions/log10l.texi: Mention the new module.
7131
7132 2012-02-25  Bruno Haible  <bruno@clisp.org>
7133
7134         fmodl, remainder*: Avoid wrong results due to rounding errors.
7135         * lib/fmodl.c (fmodl): Correct the result if it is not within the
7136         expected bounds.
7137         * lib/remainderf.c (remainderf): Likewise.
7138         * lib/remainder.c (remainder): Likewise.
7139         * lib/remainderl.c (remainderl): Likewise.
7140
7141 2012-02-25  Bruno Haible  <bruno@clisp.org>
7142
7143         Tests for module 'remainderl'.
7144         * modules/remainderl-tests: New file.
7145         * tests/test-remainderl.c: New file.
7146         * tests/test-math-c++.cc: Check the declaration of remainderl.
7147
7148         New module 'remainderl'.
7149         * lib/math.in.h (remainderl): New declaration.
7150         * lib/remainderl.c: New file.
7151         * m4/remainderl.m4: New file.
7152         * modules/remainderl: New file.
7153         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
7154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
7155         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
7156         HAVE_REMAINDERL.
7157         * doc/posix-functions/remainderl.texi: Mention the new module.
7158
7159 2012-02-25  Bruno Haible  <bruno@clisp.org>
7160
7161         Tests for module 'remainderf'.
7162         * modules/remainderf-tests: New file.
7163         * tests/test-remainderf.c: New file.
7164         * tests/test-math-c++.cc: Check the declaration of remainderf.
7165
7166         New module 'remainderf'.
7167         * lib/math.in.h (remainderf): New declaration.
7168         * lib/remainderf.c: New file.
7169         * m4/remainderf.m4: New file.
7170         * modules/remainderf: New file.
7171         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
7172         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
7173         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
7174         HAVE_REMAINDERF.
7175         * doc/posix-functions/remainderf.texi: Mention the new module.
7176
7177 2012-02-25  Bruno Haible  <bruno@clisp.org>
7178
7179         remainder: Support for MSVC.
7180         * lib/math.in.h (remainder): New declaration.
7181         * lib/remainder.c: New file.
7182         * m4/remainder.m4: New file.
7183         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
7184         (Depends-on): Add math, round, fma.
7185         (configure.ac): Use results of gl_FUNC_REMAINDER.
7186         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
7187         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
7188         HAVE_DECL_REMAINDER.
7189         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
7190         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
7191         * tests/test-math-c++.cc: Check the declaration of remainder.
7192         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
7193         problems are fixed.
7194
7195 2012-02-25  Bruno Haible  <bruno@clisp.org>
7196
7197         Tests for module 'fmodl'.
7198         * modules/fmodl-tests: New file.
7199         * tests/test-fmodl.c: New file.
7200         * tests/test-math-c++.cc: Check the declaration of fmodl.
7201
7202         New module 'fmodl'.
7203         * lib/math.in.h (fmodl): New declaration.
7204         * lib/fmodl.c: New file.
7205         * m4/fmodl.m4: New file.
7206         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
7207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
7208         REPLACE_FMODL.
7209         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
7210         REPLACE_FMODL.
7211         * modules/fmodl: New file.
7212         * doc/posix-functions/fmodl.texi: Mention the new module.
7213
7214 2012-02-25  Bruno Haible  <bruno@clisp.org>
7215
7216         Tests for module 'modfl'.
7217         * modules/modfl-tests: New file.
7218         * tests/test-modfl.c: New file.
7219         * tests/test-math-c++.cc: Check the declaration of modfl.
7220
7221         New module 'modfl'.
7222         * lib/math.in.h (modfl): New declaration.
7223         * lib/modfl.c: New file.
7224         * m4/modfl.m4: New file.
7225         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
7226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
7227         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
7228         * modules/modfl: New file.
7229         * doc/posix-functions/modfl.texi: Mention the new module.
7230
7231 2012-02-25  Bruno Haible  <bruno@clisp.org>
7232
7233         Tests for module 'fabsl'.
7234         * modules/fabsl-tests: New file.
7235         * tests/test-fabsl.c: New file.
7236         * tests/test-math-c++.cc: Check the declaration of fabsl.
7237
7238         New module 'fabsl'.
7239         * lib/math.in.h (fabsl): New declaration.
7240         * lib/fabsl.c: New file.
7241         * m4/fabsl.m4: New file.
7242         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
7243         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
7244         REPLACE_FABSL.
7245         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
7246         REPLACE_FABSL.
7247         * modules/fabsl: New file.
7248         * doc/posix-functions/fabsl.texi: Mention the new module.
7249
7250 2012-02-25  Bruno Haible  <bruno@clisp.org>
7251
7252         fabs tests: More tests.
7253         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
7254         (zero): New variable.
7255         (main): Add tests for signed zero.
7256         * modules/fabs-tests (Files): Add tests/minus-zero.h.
7257
7258         fabsf tests: More tests.
7259         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
7260         (zero): New variable.
7261         (main): Add tests for signed zero.
7262         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
7263
7264 2012-02-24  Bruno Haible  <bruno@clisp.org>
7265
7266         atanl: Provide function definition on MSVC.
7267         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
7268         function pointer.
7269         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
7270
7271 2012-02-24  Bruno Haible  <bruno@clisp.org>
7272
7273         acosl: Provide function definition on MSVC.
7274         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
7275         function pointer.
7276         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
7277
7278 2012-02-24  Bruno Haible  <bruno@clisp.org>
7279
7280         asinl: Provide function definition on MSVC.
7281         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
7282         function pointer.
7283         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
7284
7285 2012-02-24  Bruno Haible  <bruno@clisp.org>
7286
7287         tanl: Provide function definition on MSVC.
7288         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
7289         function pointer.
7290         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
7291
7292 2012-02-24  Bruno Haible  <bruno@clisp.org>
7293
7294         cosl: Provide function definition on MSVC.
7295         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
7296         function pointer.
7297         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
7298
7299 2012-02-24  Bruno Haible  <bruno@clisp.org>
7300
7301         sinl: Provide function definition on MSVC.
7302         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
7303         function pointer.
7304         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
7305
7306 2012-02-24  Bruno Haible  <bruno@clisp.org>
7307
7308         logl: Provide function definition on MSVC.
7309         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
7310         function pointer.
7311         * lib/math.in.h (logl): Undefine if it does not exist as a function.
7312
7313 2012-02-24  Bruno Haible  <bruno@clisp.org>
7314
7315         expl: Provide function definition on MSVC.
7316         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
7317         function pointer.
7318         * lib/math.in.h (expl): Undefine if it does not exist as a function.
7319
7320 2012-02-24  Bruno Haible  <bruno@clisp.org>
7321
7322         sqrtl: Provide function definition on MSVC.
7323         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
7324         a function pointer.
7325         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
7326
7327 2012-02-24  Bruno Haible  <bruno@clisp.org>
7328
7329         ceill: Provide function definition on MSVC.
7330         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
7331         used as a function pointer.
7332         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
7333
7334 2012-02-24  Bruno Haible  <bruno@clisp.org>
7335
7336         floorl: Provide function definition on MSVC.
7337         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
7338         used as a function pointer.
7339         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
7340
7341 2012-02-24  Bruno Haible  <bruno@clisp.org>
7342
7343         ceilf: Provide function definition on MSVC.
7344         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
7345         used as a function pointer.
7346         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
7347
7348 2012-02-24  Bruno Haible  <bruno@clisp.org>
7349
7350         floorf: Provide function definition on MSVC.
7351         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
7352         used as a function pointer.
7353         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
7354
7355 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
7356
7357         stdnoreturn: new module
7358         This implements a replacement for C11's <stdnoreturn.h>.
7359         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
7360         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
7361         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7362         * tests/test-stdnoreturn.c: New files.
7363
7364 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
7365
7366         regex: fix false multibyte matches in some regular expressions
7367         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
7368         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
7369         * lib/regex_internal.c (re_string_skip_chars):
7370         Fix miscomputation of remain_len that may cause incomplete
7371         multi-byte character and false match.
7372
7373 2012-02-24  Jim Meyering  <meyering@redhat.com>
7374
7375         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
7376         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
7377         uses with "==" *before* the call, e.g., 0 == strcmp (...)
7378         Remove now-unnecessary str''cmp obfuscation.
7379         Suggested by Akim Demaille.
7380
7381 2012-02-24  Bruno Haible  <bruno@clisp.org>
7382
7383         streq: Rename macro.
7384         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
7385         * NEWS: Mention the change.
7386         * lib/mbrtowc.c (mbrtowc): Update.
7387         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
7388         * lib/wcwidth.c (wcwidth): Update.
7389         Suggested by Akim Demaille and Jim Meyering.
7390
7391 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
7392
7393         regex: fix typo in definition of MIN
7394         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
7395         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
7396
7397 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7398             Bruno Haible  <bruno@clisp.org>
7399
7400         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
7401         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
7402         entries into a stack-allocated buffer directly.
7403         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
7404
7405 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
7406             Bruno Haible  <bruno@clisp.org>
7407
7408         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
7409
7410          - There were several instances of this pattern:
7411
7412              for (;;) {
7413                n = acl (f, GETACLCNT, 0, NULL);
7414                [ allocate an array A of size N ]
7415                if (acl (f, GETACL, n, a) == n)
7416                  break;
7417              }
7418
7419            This loop might never terminate if some other process is constantly
7420            manipulating the file's ACL.  The loop should be rewritten to
7421            terminate.
7422
7423          - The acl (... GETACLNT ...) call is merely an optimization; its value
7424            is merely a hint as to how big to make the array.  A better
7425            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
7426            and just guess a reasonably-big size, growing the size and trying
7427            again if it's not large enough.  This guarantees termination, and
7428            saves a system call.
7429
7430         * lib/acl-internal.h: Include <limits.h>.
7431         (MIN, SIZE_MAX): New macros.
7432         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
7433         a stack-allocated buffer, and use malloc if it does not fit. Don't
7434         use GETACLCNT.
7435         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7436
7437 2012-02-19  Bruno Haible  <bruno@clisp.org>
7438
7439         acl: Fix endless loop on Solaris with vxfs.
7440         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
7441         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
7442         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
7443         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
7444         * tests/test-sameacls.c (main)[Solaris]: Likewise.
7445         Reported by Bill Jones in
7446         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
7447
7448 2012-02-19  Bruno Haible  <bruno@clisp.org>
7449
7450         acl: Fix copy-acl test failure on Solaris 11 2011-11.
7451         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
7452         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
7453         that this function returns 0 in some more cases.
7454
7455 2012-02-19  Bruno Haible  <bruno@clisp.org>
7456
7457         acl: Update doc references.
7458         * doc/acl-resources.txt: Update links to Solaris documentation.
7459
7460 2012-02-19  Bruno Haible  <bruno@clisp.org>
7461
7462         Fix test failure in many locales on Solaris 11.
7463         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
7464         'tr' arguments.
7465         * tests/test-pipe-filter-ii1.c (main): Likewise.
7466         * build-aux/bootstrap (check_versions): Run 'tr' command with range
7467         expressions in the C locale.
7468         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
7469         * m4/host-os.m4 (gl_HOST_OS): Likewise.
7470
7471 2012-02-19  Bruno Haible  <bruno@clisp.org>
7472
7473         gnulib-tool: Improve usage message.
7474         * gnulib-tool (func_usage): Move doc of --help and --version to the
7475         section "Operation modes".
7476
7477 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
7478
7479         README-release: make it easier to execute commands
7480         * top/README-release: break commands out on to separate lines.
7481
7482 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
7483
7484         GNUmakefile: simplify detection of unconfigured trees
7485         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
7486         whether the tree make is being run from is already configured or
7487         not.  Related simplifications.
7488
7489 2012-02-13  Simon Josefsson  <simon@josefsson.org>
7490
7491         * gnulib-tool (func_usage): Document --help and --version.
7492
7493 2012-02-11  Jim Meyering  <meyering@redhat.com>
7494
7495         bootstrap: don't exit 0 upon gnulib-tool failure
7496         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
7497         its exit status, not 0.
7498
7499 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
7500
7501         README-release: various improvements
7502         * top/README-release: Give a command to push changes for the
7503         release.  Add "distcheck" to list of other pre-release checks.
7504         Fix instance of "make stable" which should be "make TYPE".
7505
7506 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7507
7508         maint: replace FSF snail-mail addresses with URLs
7509         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
7510         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
7511         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
7512         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
7513         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
7514         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
7515         * lib/check-version.c, lib/check-version.h, lib/config.charset:
7516         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
7517         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
7518         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
7519         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
7520         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
7521         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
7522         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
7523         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
7524         * lib/glthread/thread.c, lib/glthread/thread.h:
7525         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
7526         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
7527         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
7528         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
7529         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
7530         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
7531         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
7532         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
7533         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
7534         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
7535         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
7536         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
7537         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
7538         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
7539         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
7540         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
7541         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
7542         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
7543         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
7544         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
7545         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
7546         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
7547         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
7548         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
7549         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
7550         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
7551         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
7552         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
7553         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
7554         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
7555         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
7556         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
7557         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
7558         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
7559         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
7560         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
7561         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
7562         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
7563         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
7564         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
7565         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
7566         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
7567         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
7568         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
7569         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
7570         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
7571         * tests/test-poll.c, tests/test-quotearg-simple.c:
7572         * tests/test-quotearg.c, tests/test-quotearg.h:
7573         * tests/test-round-ieee.c, tests/test-round1.c:
7574         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
7575         * tests/test-roundl-ieee.c, tests/test-roundl.c:
7576         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
7577         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
7578         * tests/test-strerror.c, tests/test-strerror_r.c:
7579         * tests/test-strsignal.c, tests/test-strverscmp.c:
7580         * tests/test-xmemdup0.c:
7581         Replace FSF snail mail addresses with URLs, as per GNU coding
7582         standards.  See glibc bug
7583         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
7584
7585 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7586
7587         README-release: capitalize a word and split a line
7588         * top/README-release: Fix punctuation and spacing.
7589
7590 2012-02-08  Akim Demaille  <demaille@gostai.com>
7591
7592         fatal-signal: use C prototypes (with explicit void).
7593         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
7594         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
7595
7596 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7597
7598         regex: spelling fix
7599         * lib/regexec.c: spelling fix
7600
7601         regex: rely on stdint.h for SIZE_MAX
7602         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
7603
7604 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
7605
7606         regex: merge glibc changes
7607
7608         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
7609         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
7610         (init_word_char): Work even if bitset words are not exactly 32 or
7611         64 bits wide.  Don't assume there are no padding bits.
7612         * lib/regex.c [_LIBC]: Do not include <config.h>.
7613         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
7614         and -Wtype-limits.
7615         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
7616         needless disagreement with glibc.  All uses changed.  Define it to
7617         1 only if _GNU_SOURCE, to match glibc.
7618         (_REG_RM_NAME): Remove; no longer needed, since the names in
7619         question are now all protected by __USE_GNU.
7620         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
7621         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
7622         * lib/regex_internal.h (MIN): New macro.
7623
7624         2012-01-03 Ulrich Drepper <drepper@gmail.com>
7625         * lib/regcomp.c (init_word_char): Optimize regex a bit.
7626
7627         2011-12-30 Jakub Jelinek <jakub@redhat.com>
7628         * lib/regex_internal.c (re_string_fetch_byte_case):
7629         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
7630         is miscompiled, and it turns out it is because of an incorrect
7631         attribute on re_string_fetch_byte_case.  Unlike
7632         re_string_peek_byte_case, this one is really not pure, it modifies
7633         memory (increments pstr->cur_idx), and with the pure attribute GCC
7634         assumed it doesn't and it cached the presumed value of
7635         regexp->cur_idx in a variable across the
7636          for (;; ++i)
7637            {
7638              if (i >= BRACKET_NAME_BUF_SIZE)
7639                return REG_EBRACK;
7640              if (token->type == OP_OPEN_CHAR_CLASS)
7641                ch = re_string_fetch_byte_case (regexp);
7642              else
7643                ch = re_string_fetch_byte (regexp);
7644              if (re_string_eoi(regexp))
7645                return REG_EBRACK;
7646              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
7647                break;
7648              elem->opr.name[i] = ch;
7649            }
7650
7651         2011-11-29 Andreas Schwab <schwab@redhat.com>
7652         * lib/regcomp.c (build_equiv_class):
7653         Fix access after end of search string in regex matcher.
7654
7655         2011-11-12 Ulrich Drepper <drepper@redhat.com>
7656         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
7657
7658         2011-10-12 Ulrich Drepper <drepper@redhat.com>
7659         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
7660
7661         2011-10-11 Ulrich Drepper <drepper@redhat.com>
7662         * lib/regcomp.c (parse_branch, parse_sub_exp):
7663         More regex memory leak fixes and tests.
7664         (parse_sub_exp, parse_bracket_exp):
7665         Fix memory leak for some invalid regular expressions.
7666
7667         2011-05-28 Ulrich Drepper <drepper@gmail.com>
7668         * lib/regex_internal.c, lib/regexec.c:
7669         Fix unnecessary overallocation due to incomplete character.  When
7670         incomplete characters are found at the end of a string the code
7671         ran amok and allocated lots of memory.  Stricter limits are now in
7672         place.
7673
7674         2011-05-20 Reuben Thomas <rrt@sc3d.org>
7675         * lib/regex.h: Update documentation.
7676
7677         2011-05-16 Aharon Robbins <arnold@skeeve.com>
7678         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
7679
7680         2010-05-05 Andreas Schwab <schwab@redhat.com>
7681         * lib/regexec.c (find_collation_sequence_value):
7682         Fix lookup of collation sequence value during regexp matching.
7683
7684         2010-01-22 Ulrich Drepper <drepper@redhat.com>
7685         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
7686
7687         2008-01-16 Ulrich Drepper <drepper@redhat.com>
7688         * lib/regex.h: Cleanup namespace.
7689
7690         2007-11-26 Ulrich Drepper <drepper@redhat.com>
7691         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
7692
7693         2007-08-26 Ulrich Drepper <drepper@redhat.com>
7694         * lib/regex_internal.h: Prevent some declarations and definitions
7695         to be seen when used in tests.
7696
7697         2005-05-06 Ulrich Drepper <drepper@redhat.com>
7698         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
7699         __libc_lock_* macros if not _LIBC.
7700         (struct re_dfa_t): Add lock.
7701
7702 2012-02-07  Eric Blake  <eblake@redhat.com>
7703
7704         maint.mk: also prohibit lower-case @var@
7705         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
7706         lower case, like @top_srcdir@.
7707
7708 2012-02-04  Eric Blake  <eblake@redhat.com>
7709
7710         canonicalize: avoid uninitialized memory use
7711         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
7712         random '/' left in dest.
7713         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
7714
7715 2012-02-04  Bruno Haible  <bruno@clisp.org>
7716
7717         isatty: Fix test failure of ptsname_r on native Windows.
7718         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
7719         and don't set errno.
7720         (isatty): Test first whether fd is valid. Set errno when returning 0.
7721
7722 2012-02-04  Bruno Haible  <bruno@clisp.org>
7723
7724         spawn-pipe tests: Fix a NULL program name in a diagnostic.
7725         * tests/test-spawn-pipe-main.c: Include progname.h.
7726         (main): Invoke set_program_name.
7727         * modules/spawn-pipe-tests (Depends-on): Add progname.
7728
7729         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
7730         * tests/test-nonblocking-socket-main.c: Include progname.h.
7731         (main): Invoke set_program_name.
7732         * modules/nonblocking-socket-tests (Depends-on): Add progname.
7733
7734         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
7735         * tests/test-nonblocking-pipe-main.c: Include progname.h.
7736         (main): Invoke set_program_name.
7737         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
7738
7739 2012-02-04  Eric Blake  <eblake@redhat.com>
7740
7741         canonicalize-lgpl: fix // handling
7742         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
7743
7744         canonicalize: fix // handling
7745         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
7746         /// to //, since only // is special.
7747
7748 2012-02-04  Bruno Haible  <bruno@clisp.org>
7749
7750         ioctl: Fix test failure on native Windows.
7751         * lib/ioctl.c: Include msvc-nothrow.h.
7752         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
7753
7754 2012-02-04  Bruno Haible  <bruno@clisp.org>
7755
7756         fsync: Avoid test failure on native Windows.
7757         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
7758         read-only.
7759
7760 2012-02-04  Bruno Haible  <bruno@clisp.org>
7761
7762         sys_select: Avoid syntax error on OpenBSD 5.0.
7763         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
7764         currently being included, just include the system's <sys/select.h>.
7765
7766 2012-02-04  Bruno Haible  <bruno@clisp.org>
7767
7768         sys_select: Avoid syntax error on OpenBSD 5.0.
7769         * lib/sys_select.in.h: Include <signal.h> only after the include_next
7770         <sys/select.h>, not before.
7771         Reported by Jiri B <jirib@devio.us>.
7772
7773 2012-02-04  Bruno Haible  <bruno@clisp.org>
7774
7775         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
7776         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
7777         global variables.
7778         * tests/test-get-rusage-data.c (main): Likewise.
7779         Reported by Jim Meyering.
7780
7781 2012-02-04  Bruno Haible  <bruno@clisp.org>
7782
7783         stdioext: Fix last commit.
7784         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
7785
7786 2012-02-03  Bruno Haible  <bruno@clisp.org>
7787
7788         stdioext: Add tentative support for Plan9.
7789         * lib/stdio-impl.h: Include <errno.h>.
7790         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
7791         * lib/freadable.c (freadable): Likewise.
7792         * lib/fwritable.c (fwritable): Likewise.
7793         * lib/fbufmode.c (fbufmode): Likewise.
7794         * lib/freading.c (freading): Likewise.
7795         * lib/fwriting.c (fwriting): Likewise.
7796         * lib/freadptr.c (freadptr): Likewise.
7797         * lib/freadseek.c (freadptrinc): Likewise.
7798         * lib/freadahead.c (freadahead): Likewise.
7799         * lib/fpurge.c (fpurge): Likewise.
7800         * lib/fseeko.c (rpl_fseeko): Likewise.
7801         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
7802         Reported by Jens Staal <staal1978@gmail.com>.
7803
7804 2012-02-02  Jim Meyering  <meyering@redhat.com>
7805
7806         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
7807         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
7808         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
7809         not even to try to add the attribute.  Instead, add a pragma to suppress
7810         the suggestion/warning.
7811
7812 2012-01-31  Karl Berry  <karl@gnu.org>
7813
7814         setstate doc: typo.
7815         * doc/posix-functions/setstate.texi (setstate): { not (.
7816
7817 2012-01-31  Bruno Haible  <bruno@clisp.org>
7818
7819         popen: Make more robust on Windows.
7820         * lib/popen.c: On native Windows, use the _popen based code even if
7821         HAVE_POPEN is set.
7822         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7823         environment variable on native Windows.
7824
7825 2012-01-30  Bruno Haible  <bruno@clisp.org>
7826
7827         pclose: Fix typo.
7828         * lib/stdio.in.h (pclose): Fix typo in warning message.
7829
7830 2012-01-30  Bruno Haible  <bruno@clisp.org>
7831
7832         doc about getlogin_r, setstate.
7833         * doc/posix-functions/getlogin_r.texi: List the incompatible
7834         declaration problem under "not fixed by gnulib".
7835         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7836         problem on Solaris 11 and other platforms.
7837
7838 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7839             Bruno Haible  <bruno@clisp.org>
7840
7841         poll tests: Make test more robust.
7842         * tests/test-poll.c: Include macros.h.
7843         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7844         return value of various I/O operations.
7845         * modules/poll-tests (Files): Add tests/macros.h.
7846
7847 2012-01-30  Bruno Haible  <bruno@clisp.org>
7848
7849         sys_stat: Fix support for mingw64 and MSVC.
7850         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7851         header files already do it.
7852         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7853         stat itself.
7854         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7855
7856 2012-01-30  Bruno Haible  <bruno@clisp.org>
7857
7858         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7859         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7860         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7861
7862 2012-01-29  Bruno Haible  <bruno@clisp.org>
7863
7864         quotearg: Fix test failure on MacOS X 10.5.
7865         * tests/test-quotearg-simple.c: Include localcharset.h.
7866         (main): If the locale encoding is not ASCII, bypass the tests of
7867         locale_quoting_style and clocale_quoting_style.
7868         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7869
7870 2012-01-29  Jim Meyering  <meyering@redhat.com>
7871
7872         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7873         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7874         detect uses of canonicalize_file_name.
7875
7876 2012-01-28  Bruno Haible  <bruno@clisp.org>
7877
7878         test-framework-sh: Fix test failure with AIX 7.1 diff.
7879         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7880         in column 1, like 'diff -c' does.
7881         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7882         whether 'diff -u' is used. Instead, test whether the output contains
7883         some '@' character.
7884
7885 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7886
7887         strtoimax: eliminate need for stdint.h, inttypes.h checks
7888         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7889         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7890         the prerequisites for a recently-introduced strtoimax test.
7891         I guess this might cause strtoimax to be replaced when not
7892         strictly necessary on older hosts, but this shouldn't introduce
7893         any bugs and it should make Emacs 'configure' faster on typical
7894         modern hosts.  Problem discovered when importing the latest gnulib
7895         to an Emacs test version.
7896         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7897
7898 2012-01-28  Bruno Haible  <bruno@clisp.org>
7899
7900         sys_time: Override 'struct timeval' on some native Windows platforms.
7901         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7902         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7903         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7904         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7905         needs to be overridden.
7906         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7907         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7908         * tests/test-sys_select.c: Check that the tv_sec member has the same
7909         size as a 'time_t'.
7910         * tests/test-sys_time.c: Likewise.
7911         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7912         is set, set also REPLACE_GETTIMEOFDAY.
7913         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7914         convert the resulting 'struct timeval' before returning.
7915         * lib/select.c: Include <sys/time.h>.
7916         (select, timeval): Undefine at the right place.
7917         * modules/select (Depends-on): Add sys_time.
7918         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7919         some Windows platforms.
7920         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7921
7922 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7923
7924         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7925         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7926         an integer.
7927         * lib/fcntl.c (dupfd): Likewise.
7928         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7929
7930 2012-01-28  Bruno Haible  <bruno@clisp.org>
7931
7932         fcntl: Avoid compilation error on native Windows.
7933         * modules/fcntl (Depends-on): Add 'close'.
7934
7935 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7936
7937         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7938         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7939         pointer to an integer.
7940         * lib/poll.c (IsConsoleHandle): Likewise.
7941         * lib/isatty.c (IsConsoleHandle): Likewise.
7942
7943 2012-01-28  Jim Meyering  <meyering@redhat.com>
7944
7945         doc: clarify README-release
7946         * top/README-release: Clarify: you should make a point to have
7947         the latest stable versions of build tools in your PATH, and the
7948         reference to buildreq is solely for its list of tool names, not
7949         for its minimal-functional version numbers.
7950         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7951
7952         maint.mk: use more readable (yet functionally equivalent) quoting
7953         It is common to quote a single quote in a single quoted string like
7954         this:  '...'\''...'.  Unless you know the idiom, that looks like
7955         gibberish, so prefer to double-quote the string when possible.
7956         Then you can use a more readable, lone single quote: "...'..."
7957         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7958         "don't" is more readable than the equivalent 'don'\''t'.
7959         (sc_cast_of_x_alloc_return_value): Likewise.
7960         (sc_cast_of_alloca_return_value): Likewise.
7961         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7962         rather than '\'':'\''.
7963
7964 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7965
7966         stdalign: relax _Alignof and tighten _Alignas test
7967         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7968         as it was too strict: alignof must divide offsetof, but it need
7969         not equal offsetof.  Inspired by Joseph S. Myers's comment
7970         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7971         Conversely, tighten the _Alignas test a bit, as the resulting
7972         alignment must be exactly 8.
7973
7974 2012-01-27  Bruno Haible  <bruno@clisp.org>
7975
7976         stdalign: Document the last change.
7977         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7978
7979 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7980
7981         stdalign: check that alignof and offsetof are consistent
7982         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7983         Problem reported for gnulib by Richard W.M. Jones in
7984         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7985
7986 2012-01-27  Jim Meyering  <meyering@redhat.com>
7987
7988         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7989         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7990         convert a sequence with gaps to the minimal containing range.
7991         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7992         * tests/test-update-copyright.sh: Test for this.
7993         The FSF confirmed it is ok to do this, assuming there is at
7994         least one significant change per year in the affected range:
7995         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7996
7997 2012-01-26  Bruno Haible  <bruno@clisp.org>
7998
7999         pipe2: refine doc about thread-safety
8000         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
8001         multithread-safety problem.
8002         * doc/glibc-functions/accept4.texi: Likewise.
8003
8004 2012-01-26  Bruno Haible  <bruno@clisp.org>
8005
8006         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
8007         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
8008         In the test program, include <fcntl.h>, for O_RDONLY.
8009
8010 2012-01-26  Eric Blake  <eblake@redhat.com>
8011
8012         pipe2: document lack of thread-safety in replacement
8013         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
8014         issue in replacement.
8015         * doc/glibc-functions/accept4.texi (accept4): Likewise.
8016         Based on a report by Eric Wong.
8017
8018 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
8019             Bruno Haible  <bruno@clisp.org>
8020
8021         malloca: Avoid warnings on x86_64 mingw64.
8022         * lib/malloca.c: Include <stdint.h>.
8023         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
8024         * modules/malloca (Depends-on): Add stdint.
8025         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
8026
8027 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8028
8029         obstack: remove __STDC__ conditionals
8030         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
8031         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
8032         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
8033         m4/include_next.m4 as the only gnulib-maintained places that still
8034         refer to __STDC__.
8035
8036 2012-01-24  Bruno Haible  <bruno@clisp.org>
8037
8038         havelib: Modern quoting.
8039         * build-aux/config.rpath: Quote 'like this', not `like this', as per
8040         the recent change to the GNU coding standards.
8041
8042 2012-01-24  Bruno Haible  <bruno@clisp.org>
8043
8044         stdint: Improve support for Android.
8045         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
8046         Reported by Simon Josefsson <simon@josefsson.org>.
8047
8048 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
8049
8050         doc: omit trailing empty lines from INSTALL etc.
8051         * doc/Makefile (INSTALL): Omit trailing empty lines.
8052         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
8053         omit trailing empty lines.  This simplifies the build procedure.
8054
8055 2012-01-23  Jim Meyering  <meyering@redhat.com>
8056
8057         tests: avoid spurious warnings about gl_sockets_startup
8058         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
8059         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
8060         reporting a "statement with no effect".
8061         * tests/test-accept.c (main): Mark as "(void)".
8062         * tests/test-accept4.c (main): Likewise.
8063         * tests/test-bind.c (main): Likewise.
8064         * tests/test-connect.c (main): Likewise.
8065         * tests/test-getpeername.c (main): Likewise.
8066         * tests/test-getsockname.c (main): Likewise.
8067         * tests/test-getsockopt.c (main): Likewise.
8068         * tests/test-listen.c (main): Likewise.
8069         * tests/test-recv.c (main): Likewise.
8070         * tests/test-recvfrom.c (main): Likewise.
8071         * tests/test-send.c (main): Likewise.
8072         * tests/test-sendto.c (main): Likewise.
8073         * tests/test-setsockopt.c (main): Likewise.
8074         * tests/test-shutdown.c (main): Likewise.
8075
8076 2012-01-21  Bruno Haible  <bruno@clisp.org>
8077
8078         locale-fr.m4: Fix for Android.
8079         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
8080         failure of the test program on Bionic libc.
8081
8082 2012-01-21  Jim Meyering  <meyering@redhat.com>
8083
8084         bootstrap: fail when bootstrap_post_import_hook fails
8085         Otherwise, it's far too easy to miss diagnostics emitted
8086         between gnulib-tool's output and that of running configure.
8087         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
8088
8089 2012-01-17  Jim Meyering  <meyering@redhat.com>
8090
8091         maint: enable sc_trailing_blank
8092         * build-aux/pmccabe.css: Remove trailing blanks.
8093         * doc/acl-cygwin.txt: Likewise.
8094         * doc/gnu-oids.texi: Likewise
8095         * cfg.mk: Enable sc_trailing_blank.
8096         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
8097
8098 2012-01-17  Jim Meyering  <meyering@redhat.com>
8099
8100         maint: enable sc_prohibit_openat_without_use
8101         * cfg.mk: Enable sc_prohibit_openat_without_use.
8102         Exempt lib/selinux-at.c.
8103
8104 2012-01-17  Jim Meyering  <meyering@redhat.com>
8105
8106         maint: enable sc_prohibit_cloexec_without_use
8107         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
8108         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
8109
8110 2012-01-17  Jim Meyering  <meyering@redhat.com>
8111
8112         maint: enable sc_prohibit_intprops_without_use
8113         * cfg.mk: Enable sc_prohibit_intprops_without_use
8114         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
8115
8116 2012-01-17  Jim Meyering  <meyering@redhat.com>
8117
8118         maint: enable sc_prohibit_hash_pjw_without_use
8119         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
8120         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
8121         to match any use of \<hash_pjw\>, i.e., not necessarily with a
8122         following " (".
8123
8124 2012-01-17  Jim Meyering  <meyering@redhat.com>
8125
8126         maint: enable double-word-prohibiting rule
8127         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
8128         Exempt three files.
8129
8130 2012-01-17  Jim Meyering  <meyering@redhat.com>
8131
8132         maint: remove empty lines at EOF, but excluding modules/*
8133         Apply syntax rules at home as well as abroad.  Most changes
8134         were induced by running this:
8135           make srcdir=. _build-aux=build-aux -f top/maint.mk \
8136             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
8137             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
8138         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
8139         Exempt modules/* and two binary files.
8140         Also exempt doc/INSTALL*, per request from Bruno Haible.
8141         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
8142         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
8143         * doc/Copyright/request-assign.future: Likewise.
8144         * doc/Copyright/request-disclaim.changes: Likewise.
8145         * doc/INSTALL: Likewise.
8146         * doc/INSTALL.ISO: Likewise.
8147         * doc/INSTALL.UTF-8: Likewise.
8148         * doc/acl-cygwin.txt: Likewise.
8149         * doc/acl-resources.txt: Likewise.
8150         * doc/fdl-1.2.texi: Likewise.
8151         * doc/fdl-1.3.texi: Likewise.
8152         * doc/fdl.texi: Likewise.
8153         * lib/argp-pin.c: Likewise.
8154         * lib/round.c: Likewise.
8155         * lib/unicase/u16-totitle.c: Likewise.
8156         * lib/unictype/block_test.c: Likewise.
8157         * lib/uninorm/canonical-decomposition.c: Likewise.
8158         * m4/README: Likewise.
8159         * m4/relocatable-lib.m4: Likewise.
8160         * tests/test-isnand-nolibm.c: Likewise.
8161         * tests/test-isnand.c: Likewise.
8162         * tests/uninorm/NormalizationTest.txt: Likewise.
8163
8164 2012-01-17  Jim Meyering  <meyering@redhat.com>
8165
8166         maint: add framework to run syntax-check rules against gnulib sources
8167         * cfg.mk: New file, to disable all currently-failing tests.
8168         We'll enable them one by one, as they are made to pass.
8169         * Makefile (sc_maint): New rule.
8170
8171 2012-01-21  Bruno Haible  <bruno@clisp.org>
8172
8173         stdint: Add support for Android.
8174         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
8175         include the system's <stdint.h>.
8176         Reported by Simon Josefsson <simon@josefsson.org>.
8177
8178 2012-01-19  Jim Meyering  <meyering@redhat.com>
8179
8180         bootstrap: add bootstrap_post_import_hook
8181         Bison does still need something like the gnulib_mk_hook whose
8182         invocation I had to remove along with slurp in commit 767ccd40.
8183         Technically, we could get along without it, but doing so would
8184         have required living with a warning and a mandatory post-bootstrap
8185         automake rerun.
8186         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
8187         (bootstrap_post_import_hook): New function.
8188         Invoke it after gnulib-tool --import and before autoreconf.
8189
8190 2012-01-18  Jim Meyering  <meyering@redhat.com>
8191
8192         gitlog-to-changelog: don't use "no_"-prefixed variable name
8193         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
8194         to enable both --cluster and --no-cluster.  Change variable name,
8195         s/\$no_cluster/$cluster/, and reverse usage to match.
8196
8197         gitlog-to-changelog: use "||", not "or" in expressions
8198         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
8199         expressions.
8200
8201 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
8202
8203         gitlog-to-changelog: new option --no-cluster
8204         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
8205         clustering of adjacent commit messages.
8206
8207 2012-01-17  Jim Meyering  <meyering@redhat.com>
8208
8209         maint: spell file systems with two words, not one
8210         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
8211         two words, not one.
8212
8213 2012-01-16  Jim Meyering  <meyering@redhat.com>
8214
8215         bootstrap: add a FIXME comment to ensure we eventually remove the hack
8216         * build-aux/bootstrap (gnulib_tool_options): Add comment.
8217
8218 2012-01-16  Eric Blake  <eblake@redhat.com>
8219
8220         bootstrap: cater to autoconf 2.59
8221         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
8222         is not available.
8223
8224         bootstrap: properly check for libtool
8225         * build-aux/bootstrap (libtoolize): Also run libtool when older
8226         usage is detected.
8227
8228 2012-01-15  Bruno Haible  <bruno@clisp.org>
8229
8230         Improve support for MSVC 9.
8231         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
8232         clashes on MSVC.
8233         * lib/fcntl.in.h: Likewise.
8234         * lib/stdlib.in.h: Likewise.
8235         * lib/sys_stat.in.h: Likewise.
8236
8237 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
8238
8239         gnupload: we hold the master copy of this script now
8240         For motivation and more information, see:
8241         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
8242         * build-aux/gnupload: Make it clear in the heading comments that the
8243         master copy of this file is maintained by gnulib.  Since we are at
8244         it, bump its copyright year and ...
8245         ($scriptversion): ... the date in its version.
8246         ($usage): Patches and bug reports should be sent to the gnulib list,
8247         not the automake one.
8248         * config/srclist.txt: Don't try to sync 'gnupload' from automake
8249         anymore.
8250
8251 2012-01-15  Bruno Haible  <bruno@clisp.org>
8252
8253         Fix module 'random'.
8254         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
8255         initstate, setstate are declared.
8256
8257 2012-01-14  Bruno Haible  <bruno@clisp.org>
8258
8259         Tests for module 'random'.
8260         * modules/random-tests: New file.
8261         * tests/test-random.c: New file, based on tests/test-random_r.c.
8262
8263         New module 'random'.
8264         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
8265         declarations.
8266         * lib/random.c: New file, based on glibc/stdlib/random.c.
8267         * m4/random.m4: New file.
8268         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
8269         HAVE_RANDOM.
8270         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
8271         * modules/random: New file.
8272         * config/srclist.txt: Add an entry for random.c.
8273         * doc/posix-functions/random.texi: Mention the 'random' module.
8274         * doc/posix-functions/initstate.texi: Likewise.
8275         * doc/posix-functions/setstate.texi: Likewise.
8276         * doc/posix-functions/srandom.texi: Likewise.
8277
8278 2012-01-12  Bruno Haible  <bruno@clisp.org>
8279
8280         random_r: Use common idioms.
8281         * lib/random_r.c: Include <stdlib.h> first.
8282
8283         random_r: Override incompatible API on AIX, OSF/1.
8284         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
8285         Override the system function if REPLACE_RANDOM_R is 1.
8286         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
8287         and OSF/1, set REPLACE_RANDOM_R.
8288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
8289         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
8290         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
8291         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
8292         * doc/glibc-functions/random_r.texi: Likewise.
8293         * doc/glibc-functions/setstate_r.texi: Likewise.
8294
8295         random_r: Support for MSVC 9.
8296         * lib/random_r.c: Include stdint.h, not inttypes.h.
8297
8298 2012-01-12  Eric Blake  <eblake@redhat.com>
8299
8300         inet_ntop: guard extra work by IF_LINT
8301         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
8302         better code generation when not checking for warnings.
8303         Suggested by Paul Eggert and Jim Meyering.
8304
8305         strptime: fix regression on mingw
8306         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
8307         Fix regression.  Reported by Bruno Haible.
8308
8309 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
8310             Bruno Haible  <bruno@clisp.org>
8311
8312         copy-file: add error-code-returning variant.
8313         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
8314         (qcopy_file_preserving): New declaration.
8315         * lib/copy-file.c (qcopy_file_preserving): Renamed from
8316         copy_file_preserving. Change return type to 'int'. Don't emit an error
8317         message here.
8318         (copy_file_preserving): New function.
8319         * tests/test-copy-file.c: Include <stdlib.h>.
8320         (main): Test qcopy_file_preserving if the environment variable
8321         NO_STDERR_OUTPUT is set.
8322         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
8323         with NO_STDERR_OUTPUT
8324         * tests/test-copy-file-2.sh: Likewise.
8325
8326 2012-01-10  Bruno Haible  <bruno@clisp.org>
8327
8328         copy-file: Use 'quote' module consistently.
8329         * lib/copy-file.c (copy_file_preserving): Use quote().
8330
8331         copy-file: Refactor.
8332         * lib/copy-file.c: Include quote.h.
8333         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
8334         message here.
8335         * modules/copy-file (Depends-on): Add quote.
8336
8337         acl: Export qcopy_acl.
8338         * lib/acl.h (qcopy_acl): New declaration.
8339         * lib/copy-acl.c (qcopy_acl): Make non-static.
8340
8341         acl: Rename a local variable.
8342         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
8343
8344         acl: Align return values of copy_acl and qcopy_acl.
8345         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
8346         maybe < -1.
8347
8348 2012-01-11  Eric Blake  <eblake@redhat.com>
8349
8350         strptime: silence gcc warnings
8351         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
8352         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
8353         Reported by Daniel P. Berrange.
8354
8355         inet_ntop: silence gcc warning
8356         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
8357         Reported by Daniel P. Berrange.
8358
8359 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
8360
8361         getloadavg test: skip the test on GNU/Linux without /proc mounted
8362         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
8363         file.  When /proc is not mounted, it always fails with ENOENT.
8364         * tests/test-getloadavg.c (main): Treat ENOENT return code from
8365         getloadavg(3) the same way as ENOSYS and ENOTSUP.
8366
8367 2012-01-10  Bruno Haible  <bruno@clisp.org>
8368
8369         regex: Avoid link error on MSVC 9.
8370         * modules/regex (Depends-on): Add wctype.
8371
8372 2012-01-10  Bruno Haible  <bruno@clisp.org>
8373
8374         doc: Mention --with-tests option.
8375         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
8376         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
8377         --with-tests.
8378         Reported by Reuben Thomas.
8379
8380 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
8381
8382         users.txt: order package names lexicographically.
8383         * users.txt: Order package names lexicographically.
8384
8385 2012-01-10  Jim Meyering  <meyering@redhat.com>
8386
8387         maint.mk: fix description in comment
8388         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
8389
8390         ignore-value: remove deprecated ignore_ptr function
8391         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
8392         * NEWS: Note this.
8393
8394 2012-01-09  Jim Meyering  <meyering@redhat.com>
8395
8396         test-init.sh: avoid a subshell
8397         * tests/test-init.sh: Remove protective subshell.
8398         Suggested by Bernhard Voelker.  While a subshell is normally
8399         required to protect against older shells (Solaris, FreeBSD) that
8400         warn about a missing program before performing redirection, the
8401         shell-selection tests performed by init.sh probably exclude any
8402         offending shell.
8403
8404 2012-01-08  Bruno Haible  <bruno@clisp.org>
8405
8406         setlocale tests: Avoid test failure on Solaris 11 2011-11.
8407         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
8408         variable.
8409
8410 2012-01-08  Bruno Haible  <bruno@clisp.org>
8411
8412         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
8413         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8414         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8415         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
8416         macro.
8417         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
8418         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8419         * lib/spawn_faction_addopen.c: Add workaround implementation if
8420         HAVE_WORKING_POSIX_SPAWN.
8421         * modules/spawn (Makefile): Substitute
8422         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
8423         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
8424         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
8425         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
8426         (Depends-on): Update conditions.
8427         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
8428         the Solaris 11 bug.
8429
8430 2012-01-08  Bruno Haible  <bruno@clisp.org>
8431
8432         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
8433         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8434         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8435         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
8436         macro.
8437         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
8438         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8439         * lib/spawn_faction_adddup2.c: Add workaround implementation if
8440         HAVE_WORKING_POSIX_SPAWN.
8441         * modules/spawn (Makefile): Substitute
8442         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
8443         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
8444         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
8445         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
8446         (Depends-on): Update conditions.
8447         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
8448         the Solaris 11 bug.
8449
8450 2012-01-08  Bruno Haible  <bruno@clisp.org>
8451
8452         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
8453         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
8454         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8455         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
8456         HAVE_WORKING_POSIX_SPAWN.
8457         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
8458         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
8459         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8460         * lib/spawn_faction_addclose.c: Add workaround implementation if
8461         HAVE_WORKING_POSIX_SPAWN.
8462         * modules/spawn (Makefile): Substitute
8463         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
8464         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
8465         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
8466         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
8467         (Depends-on): Update conditions.
8468         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
8469         the Solaris 11 bug.
8470
8471 2012-01-08  Bruno Haible  <bruno@clisp.org>
8472
8473         doc: Update for Solaris 11 2011-11.
8474         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
8475         * m4/printf.m4: Update comments.
8476
8477 2012-01-08  Bruno Haible  <bruno@clisp.org>
8478
8479         mktime: Avoid compilation error on Solaris 11.
8480         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
8481
8482 2012-01-08  Bruno Haible  <bruno@clisp.org>
8483
8484         doc: Small fix.
8485         * doc/posix-headers/nl_types.texi: Correct platforms list.
8486
8487 2012-01-08  Simon Josefsson  <simon@josefsson.org>
8488
8489         Add lgpl-3.0 module.
8490         * MODULES.html.sh (Support for building documentation): Add
8491         lgpl-3.0.
8492         * modules/lgpl-3.0: New file.
8493
8494 2012-01-08  Jim Meyering  <meyering@redhat.com>
8495
8496         select.c: indent with spaces, not TABs
8497         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
8498
8499 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8500
8501         quotearg: do not use grave accent for left quote
8502         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
8503         locale_quoting_style.
8504         (quotearg_buffer_restyled): Fix example.
8505         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
8506
8507 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8508
8509         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
8510         Most programs do not have translation catalogs for English and much
8511         less separate catalogs for British and American English.  Drop the
8512         suggestion to translators about these two, and provide it
8513         automatically for Unicode locales.  Like most programs, even those
8514         using American English, we use single quotation marks.  This conflicts
8515         with the American typographic convention, but works better when you
8516         cite the entire error message within double quotes.  It also tries not
8517         to clash with established practice and with what non-gnulib programs
8518         will usually do.
8519         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
8520         using an UTF-8 or GB-18030 locale.  The list of other locales with
8521         quotes was provided by Bruno Haible.
8522         (quotearg_buffer_restyled): Adjust instructions to translators.
8523         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
8524         text, since this would be wrong when using Unicode.
8525         * modules/quotearg: Depend on c-strcaseeq.
8526
8527 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
8528
8529         quotearg: fix Wikipedia link
8530         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
8531
8532 2012-01-07  Simon Josefsson  <simon@josefsson.org>
8533
8534         Fix for mingw with MSVC9.
8535         * m4/ld-version-script.m4: Check that compiler rejects version
8536         scripts with syntax errors.  Reported by Bruno Haible
8537         <bruno@clisp.org>.
8538
8539 2012-01-06  Bruno Haible  <bruno@clisp.org>
8540
8541         Talk about "native Windows API", not "Woe32".
8542         * lib/accept4.c: Update comments to mention native Windows.
8543         * lib/execute.c: Likewise.
8544         * lib/fatal-signal.c: Likewise.
8545         * lib/localcharset.c: Likewise.
8546         * lib/nanosleep.c: Likewise.
8547         * lib/nl_langinfo.c: Likewise.
8548         * lib/pclose.c: Likewise.
8549         * lib/pipe-filter-gi.c: Likewise.
8550         * lib/pipe-filter-ii.c: Likewise.
8551         * lib/pipe.c: Likewise.
8552         * lib/pipe2.c: Likewise.
8553         * lib/popen.c: Likewise.
8554         * lib/progreloc.c: Likewise.
8555         * lib/relocatable.c: Likewise.
8556         * lib/sigaction.c: Likewise.
8557         * lib/sigprocmask.c: Likewise.
8558         * lib/spawn-pipe.h: Likewise.
8559         * lib/spawn-pipe.c: Likewise.
8560         * lib/spawni.c: Likewise.
8561         * lib/stat-time.h: Likewise.
8562         * lib/w32spawn.h: Likewise.
8563         * tests/test-isatty.c: Likewise.
8564         * lib/config.charset: More comments.
8565         * doc/gnulib-intro.texi: Mention native Windows.
8566         * doc/posix-functions/_Exit_C99.texi: Likewise.
8567         * doc/posix-headers/fcntl.texi: Likewise.
8568
8569 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
8570
8571         argp: Avoid crash if translator uses % characters in a translation.
8572         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
8573         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8574
8575 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
8576
8577         doc: C11 and C++11 are now official
8578         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
8579         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
8580         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
8581         * modules/stdalign:
8582         Replace references to draft C1X to C11, and to draft C++0X to C++11.
8583
8584 2012-01-06  Bruno Haible  <bruno@clisp.org>
8585
8586         uc-is-grapheme-break tests: Tweak.
8587         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
8588         message.
8589
8590 2012-01-06  Bruno Haible  <bruno@clisp.org>
8591
8592         test-init.sh: correct the test for diff -u
8593         * tests/test-init.sh: Also redirect stdout to /dev/null.
8594
8595 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
8596
8597         Use ', not `, for quoting output.
8598         * build-aux/announce-gen (usage, sizes, print_news_deltas)
8599         (print_changelog_deltas, get_tool_versions, main program):
8600         * build-aux/git-version-gen:
8601         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
8602         * build-aux/move-if-change (help):
8603         * build-aux/useless-if-before-free (usage, main program):
8604         * check-module (parse_module_file, usage)
8605         (find_included_lib_files, check_module):
8606         * lib/argmatch.c (main) [TEST]:
8607         * lib/argp-help.c (_help):
8608         * lib/getopt1.c (main) [TEST]:
8609         * lib/git-merge-changelog.c (usage):
8610         * lib/xstrtol-error.c (xstrtol_error):
8611         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
8612         * m4/argz.m4 (gl_FUNC_ARGZ):
8613         * m4/bison.m4 (gl_BISON):
8614         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
8615         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
8616         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
8617         * m4/fpending.m4 (gl_PREREQ_FPENDING):
8618         * m4/gc-random.m4 (gl_GC_RANDOM):
8619         * m4/intl.m4 (gt_CHECK_DECL):
8620         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
8621         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
8622         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
8623         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
8624         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
8625         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
8626         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
8627         * tests/test-dirname.c (main):
8628         * tests/test-getpass.c (main):
8629         * tests/test-iconvme.c (main):
8630         * tests/test-parse-datetime.c (LOG):
8631         * tests/test-xstrtoimax.sh:
8632         * tests/test-xstrtol.sh:
8633         * tests/test-xstrtoll.sh:
8634         * tests/test-xstrtoumax.sh:
8635         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
8636         * top/GNUmakefile (abort-due-to-no-makefile):
8637         Quote 'like this', not `like this', as per the recent change to
8638         the GNU coding standards.
8639
8640 2012-01-05  Bruno Haible  <bruno@clisp.org>
8641
8642         strtoimax: Don't force a replacement on systems where intmax_t is int.
8643         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
8644         'intmax_t' is not larger than 'int'.
8645         Reported by Pádraig Brady <P@draigBrady.com>.
8646
8647 2012-01-05  Bruno Haible  <bruno@clisp.org>
8648
8649         doc: Mention NetBSD bugs.
8650         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
8651         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
8652
8653 2012-01-05  Bruno Haible  <bruno@clisp.org>
8654
8655         strtoumax tests: Enhance tests.
8656         * tests/test-strtoumax.c (main): Add tests for large values.
8657
8658 2012-01-05  Bruno Haible  <bruno@clisp.org>
8659
8660         strtoimax: Work around AIX 5.1 bug.
8661         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
8662         definition.
8663         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
8664         Set HAVE_STRTOIMAX.
8665         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
8666         REPLACE_STRTOIMAX.
8667         * modules/inttypes-incomplete (Makefile.am): Substitute
8668         REPLACE_STRTOIMAX.
8669         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
8670         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
8671         (Depends-on): Update conditions.
8672         * tests/test-strtoimax.c (main): Add tests for large values.
8673         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
8674
8675 2012-01-05  Bruno Haible  <bruno@clisp.org>
8676
8677         inttypes: Modernize.
8678         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
8679         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
8680         (Makefile.am): Update inttypes.h rule.
8681
8682 2012-01-05  Jim Meyering  <meyering@redhat.com>
8683
8684         init.sh: don't waste a subshell just to redirect stderr
8685         * tests/init.sh: In testing for diff -u and diff -c, use a
8686         stderr-redirecting exec inside `...` rather than a subshell.
8687
8688         test-init.sh: avoid failure on HP-UX 11.00
8689         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
8690         resolves to diff -c or cmp.  Reported by Bruno Haible.
8691
8692 2012-01-05  Bruno Haible  <bruno@clisp.org>
8693
8694         Tests for module 'strtoull'.
8695         * modules/strtoull-tests: New file.
8696         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
8697
8698 2012-01-05  Bruno Haible  <bruno@clisp.org>
8699
8700         Tests for module 'strtoll'.
8701         * modules/strtoll-tests: New file.
8702         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
8703
8704 2012-01-05  Bruno Haible  <bruno@clisp.org>
8705
8706         Tests for module 'strtoul'.
8707         * modules/strtoul-tests: New file.
8708         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
8709
8710 2012-01-05  Bruno Haible  <bruno@clisp.org>
8711
8712         Tests for module 'strtol'.
8713         * modules/strtol-tests: New file.
8714         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
8715
8716 2012-01-04  Jim Meyering  <meyering@redhat.com>
8717
8718         test-init.sh: accommodate Solaris 5.10's different diff -u output
8719         * tests/test-init.sh: Also exempt @@ lines from the comparison
8720         of diff output, since Solaris 5.10 and GNU diff formats differ.
8721         Reported by Stefano Lattarini.
8722
8723 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
8724
8725         test-posixtm: don't assume signed integer wraparound
8726         * tests/test-posixtm.c (main): Don't assume wraparound semantics
8727         after signed integer overflow.  Inspired by (though it may not
8728         fix) Bruno Haible's bug report in
8729         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
8730
8731         Spell out "Windows 9x" and "Windows XP".
8732         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
8733         "Windows 9x" and "WinXP" with "Windows XP".
8734
8735 2012-01-04  Jim Meyering  <meyering@redhat.com>
8736
8737         test-vc-list-files-cvs.sh: remove obsolete comment
8738         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
8739         double exit.  Now that's all encapsulated via skip_ and Exit.
8740
8741 2012-01-04  Bruno Haible  <bruno@clisp.org>
8742
8743         Talk about "native Windows API", not "Win32".
8744         * lib/classpath.c: Update comments to mention native Windows.
8745         * lib/csharpexec.c: Likewise.
8746         * lib/dup2.c: Likewise.
8747         * lib/error.c: Likewise.
8748         * lib/fcntl.c: Likewise.
8749         * lib/filename.h: Likewise.
8750         * lib/findprog.c: Likewise.
8751         * lib/get-rusage-as.c: Likewise.
8752         * lib/get-rusage-data.c: Likewise.
8753         * lib/getpagesize.c: Likewise.
8754         * lib/javaexec.c: Likewise.
8755         * lib/msvc-inval.c: Likewise.
8756         * lib/msvc-nothrow.c: Likewise.
8757         * lib/nanosleep.c: Likewise.
8758         * lib/nonblocking.c: Likewise.
8759         * lib/printf-parse.c: Likewise.
8760         * lib/setlocale.c: Likewise.
8761         * lib/sigaction.c: Likewise.
8762         * lib/strerror_r.c: Likewise.
8763         * lib/tmpdir.c: Likewise.
8764         * lib/vasnprintf.c: Likewise.
8765         * lib/w32spawn.h: Likewise.
8766         * lib/waitpid.c: Likewise.
8767         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
8768         * m4/locale-ar.m4: Likewise.
8769         * m4/locale-fr.m4: Likewise.
8770         * m4/locale-ja.m4: Likewise.
8771         * m4/locale-tr.m4: Likewise.
8772         * m4/locale-zh.m4: Likewise.
8773         * m4/printf.m4: Likewise.
8774         * tests/test-cloexec.c: Likewise.
8775         * tests/test-copy-acl.sh: Likewise.
8776         * tests/test-copy-file.sh: Likewise.
8777         * tests/test-file-has-acl.sh: Likewise.
8778         * tests/test-set-mode-acl.sh: Likewise.
8779         * tests/test-dup-safer.c: Likewise.
8780         * tests/test-dup2.c: Likewise.
8781         * tests/test-dup3.c: Likewise.
8782         * tests/test-fcntl.c: Likewise.
8783         * tests/test-nonblocking-pipe.h: Likewise.
8784         * tests/test-nonblocking-socket.h: Likewise.
8785         * tests/test-pipe.c: Likewise.
8786         * tests/test-pipe2.c: Likewise.
8787         * tests/test-spawn-pipe-child.c: Likewise.
8788         * doc/acl-resources.txt: Likewise.
8789         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8790         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
8791         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
8792         * lib/localcharset.c: Update comments to mention native Windows.
8793         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8794         * lib/localename.c: Likewise.
8795         * lib/progreloc.c: Likewise.
8796         * lib/relocatable.c: Likewise.
8797         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
8798         (windows_compute_revents): Renamed from win32_compute_revents.
8799         (windows_compute_revents_socket): Renamed from
8800         win32_compute_revents_socket.
8801         * lib/select.c: Update comments to mention native Windows.
8802         (windows_poll_handle): Renamed from win32_poll_handle.
8803         * m4/threadlib.m4: Update comments to mention native Windows.
8804         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
8805         --enable-threads=windows instead of --enable-threads=win32. Set
8806         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
8807         * lib/glthread/lock.h: Update comments to mention native Windows.
8808         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
8809         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
8810         USE_WIN32_THREADS.
8811         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8812         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8813         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8814         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8815         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8816         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8817         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8818         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8819         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8820         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8821         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8822         * tests/test-tls.c: Likewise.
8823         Rationale:
8824         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8825         on both 32-bit and 64-bit Windows systems.
8826         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8827         line of distinction is between "native Windows" on one side and Unix/
8828         POSIX systems on the other side. More details in
8829         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8830         Suggested by Paul Eggert.
8831
8832 2012-01-03  Bruno Haible  <bruno@clisp.org>
8833
8834         isatty: Support for MSVC 9.
8835         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8836         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8837         (_isatty_nothrow): New function.
8838         (isatty): Use it instead of _isatty.
8839         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8840         * lib/poll.c (IsConsoleHandle): Likewise.
8841         * lib/select.c (IsConsoleHandle): Likewise.
8842         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8843         (gl_PREREQ_ISATTY): New macro.
8844         * modules/isatty (Depends-on): Add msvc-inval.
8845         (configure.ac): Invoke gl_PREREQ_ISATTY.
8846
8847 2012-01-03  Jim Meyering  <meyering@redhat.com>
8848
8849         maint.mk: remove temporary transition aid from over 1.5 years ago
8850         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8851         purpose was to aid in the transition (avoiding silent malfunction)
8852         from that old name to the new _sc_search_regexp.  This shim was
8853         added by commit 219c504b.
8854
8855         init.sh: do not try to accommodate compare arguments starting with "-"
8856         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8857         compare arguments that start with "-".  Besides, we do not worry
8858         about this when invoking diff or cmp; why start now with sed?
8859         Using "--" to separate options from argument would trigger sed
8860         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8861         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8862
8863 2012-01-02  Bruno Haible  <bruno@clisp.org>
8864
8865         Enhance tests for module 'isatty'.
8866         * modules/isatty-tests (Depends-on): Add pipe-posix.
8867         * tests/test-isatty.c: Include <fcntl.h>.
8868         (DEV_NULL): New macro.
8869         (main): Test the resut of isatty() also on regular files, pipes, and
8870         /dev/null.
8871
8872         New module 'isatty'.
8873         * lib/unistd.in.h (isatty): New declaration.
8874         * lib/isatty.c: New file, based on an idea of
8875         Bastien Roucariès <roucaries.bastien@gmail.com>.
8876         * m4/isatty.m4: New file.
8877         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8878         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8879         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8880         REPLACE_ISATTY.
8881         * modules/isatty: New file.
8882         * doc/posix-functions/isatty.texi: Mention the new module.
8883         Suggested by Paolo Bonzini.
8884
8885 2012-01-02  Bruno Haible  <bruno@clisp.org>
8886
8887         canonicalize: Tweak 2011-12-29 commit.
8888         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8889         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8890
8891 2012-01-02  Jim Meyering  <meyering@redhat.com>
8892
8893         gitlog-to-changelog: describe input syntax in --help output
8894         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8895
8896         gitlog-to-changelog: fix typo in --help: show backslash before email @
8897         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8898         in sources, but not in actual output.
8899
8900 2011-12-30  Jim Meyering  <meyering@redhat.com>
8901
8902         gitlog-to-changelog: don't malfunction when name contains %-directive
8903         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8904         in a name string cause trouble.  E.g., with a user name of "%s",
8905         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8906
8907 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8908
8909         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8910         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8911         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8912         the "  (tiny change)" notation that is appended to the standard
8913         ChangeLog "date  name  email" header line.
8914
8915 2012-01-01  Jim Meyering  <meyering@redhat.com>
8916
8917         test-framework-sh: init.sh: fix "make dist" failure
8918         When using gnulib-tool's --with-tests option and any module that
8919         depends on test-framework-sh, "make dist" would fail due to the
8920         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8921         in the gltests directory, and not in the gllib/ directory.
8922         One way to work around that is to move the EXTRA_DIST += init.sh
8923         from the primary module to the -tests one:
8924         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8925         * modules/test-framework-sh (Makefile.am): ...not here.
8926         Reported by Tom G. Christensen in
8927         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8928
8929         version-etc: update copyright year reported by --version
8930         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8931
8932 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8933
8934         canonicalize: only stat() if required
8935         * lib/canonicalize.c (canonicalize_filename_mode):
8936         Avoid calling l?stat() when both CAN_MISSING,
8937         and CAN_NOLINKS are set, as we neither need
8938         to resolve symlinks or test component existence.
8939
8940 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8941
8942         doc: cover st_ino issues once; add OpenVMS etc.
8943         * doc/posix-functions/stat.texi (stat):
8944         * doc/posix-functions/lstat.texi (lstat):
8945         * doc/posix-functions/fstatat.texi (fstatat):
8946         * doc/posix-functions/fstat.texi (fstat):
8947         Move general 'struct stat' stuff to sys_stat.texi,
8948         leaving behind a pointer.
8949         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8950         Merge duplicate info about 'struct stat' problems into here.
8951         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8952         and suggest partial workarounds.
8953
8954         same-inode: port to OpenVMS
8955         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8956         three st_ino values.
8957
8958 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8959
8960         canonicalize: fix references to stat() and lstat()
8961         * lib/canonicalize.c (canonicalize_filename_mode):
8962         Ensure references always resolve to a replacement
8963         function if required (even via a macro).
8964
8965 2011-12-30  Jim Meyering  <meyering@redhat.com>
8966
8967         gitlog-to-changelog: remove a little duplication
8968         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8969         rather than twice.
8970
8971 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8972
8973         canonicalize: add support for not resolving symlinks
8974         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8975         indicate we don't want to follow symlinks.  Also
8976         provide CAN_MODE_MASK to aid setting these existing
8977         mutually exclusive values.
8978         * lib/canonicalize.c (canonicalize_filename_mode):
8979         Extract the flags from can_mode parameter, which
8980         are currently just used to select between stat()
8981         and lstat().  Also ensure that mutually exclusive
8982         values are flagged immediately as invalid.
8983         * tests/test-canonicalize.c: Verify symlinks are
8984         not followed, and that invalid flag combinations
8985         are diagnosed.
8986
8987 2011-12-25  Jim Meyering  <meyering@redhat.com>
8988
8989         gitlog-to-changelog: do not clump multi-paragraph entries
8990         Identical header lines (date,name,email+coauthors) are suppressed,
8991         thus putting all entries with those same characteristics under
8992         a single header.  However, when a log entry consists of two or
8993         more paragraphs, it may not be clear where it starts and ends.
8994         This change makes it so that such an entry is always separated
8995         from others by a header line, even when that header would
8996         otherwise be suppressed.
8997         * build-aux/gitlog-to-changelog: Implement the above.
8998         Inspired by a related request from Stefano Lattarini in
8999         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
9000
9001 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
9002
9003         announce-gen: fix `cmd' typo in diagnostic
9004         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
9005         diagnostic: a missing '$' meant that the command was not output.
9006
9007 2011-12-23  Jim Meyering  <meyering@redhat.com>
9008
9009         test-framework-sh: distribute init.sh
9010         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
9011         Otherwise, "make -C gnulib-tests check" (at least in grep) would
9012         fail due to the lack of init.sh.
9013
9014         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
9015         * modules/atexit-tests: Rather than listing tests/init.sh,
9016         now that there's a module for it, simply depend on that new module.
9017         * modules/closein-tests: Likewise.
9018         * modules/exclude-tests: Likewise.
9019         * modules/getcwd-tests: Likewise.
9020         * modules/perror-tests: Likewise.
9021         * modules/pread-tests: Likewise.
9022         * modules/pwrite-tests: Likewise.
9023         * modules/vc-list-files-tests: Likewise.
9024         * modules/verify-tests: Likewise.
9025         * modules/xalloc-die-tests: Likewise.
9026         * modules/xstrtoimax-tests: Likewise.
9027         * modules/xstrtol-tests: Likewise.
9028         * modules/xstrtoll-tests: Likewise.
9029         * modules/xstrtoumax-tests: Likewise.
9030         * modules/yesno-tests: Likewise.
9031
9032 2011-12-22  Jim Meyering  <meyering@redhat.com>
9033
9034         test-framework-sh: add minimal tests of init.sh's compare function
9035         * modules/test-framework-sh-tests: New file.
9036         * tests/test-init.sh: New file.
9037
9038         test-framework-sh: new module
9039         * modules/test-framework-sh: New file.
9040         * MODULES.html.sh (Support for maintaining and releasing projects):
9041         List it.
9042
9043         init.sh: do not emit simulated diff output to stderr
9044         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
9045
9046 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
9047
9048         .gitignore: ignore gnulib.dvi and regex.info
9049         * doc/.gitignore:add gnulib.dvi and regex.info
9050
9051 2011-12-22  Jim Meyering  <meyering@redhat.com>
9052
9053         init.sh: correct previous change
9054         * tests/init.sh (compare): My previous change was wrong.
9055         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
9056
9057         init.sh: avoid unwarranted test failure when using "set -e"
9058         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
9059         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
9060         a use like "compare exp out" would get evoke an unconditional failure.
9061
9062 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
9063
9064         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
9065         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
9066         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
9067         autoreconf that did not.
9068         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
9069         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
9070
9071 2011-12-17  Jim Meyering  <meyering@redhat.com>
9072
9073         bootstrap: remove some now-unneeded code
9074         This script arose back when gnulib-tool was young.
9075         Since then, it has seen improvements that render much of this
9076         script unnecessary.  In particular, it can now make symlinks
9077         to the files it uses.  Also, I no longer see as much value in
9078         marking files as read-only via comments.
9079         If you relied on the symlink-creation feature of the preceding
9080         version of this script, you can get most of that functionality
9081         by adding the --symlink option to the definition of
9082         gnulib_tool_option_extras in your bootstrap.conf file.
9083         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
9084         Run autopoint and libtoolize *before* gnulib-tool.
9085         After it, run an abbreviated autoreconf, rather than a loop around
9086         all tools.
9087         (slirp, bt_mark_as_generated): Remove functions.
9088
9089 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
9090
9091         ftoastr: fix typo
9092         * lib/ftoastr.h: Fix misspelling in comment.
9093
9094 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
9095
9096         * top/README-release: fix punctuation.
9097
9098 2011-12-17  Jim Meyering  <meyering@redhat.com>
9099
9100         bootstrap: correct the recent buildreq change
9101         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
9102         had no effect.
9103         * build-aux/bootstrap (buildreq): Bracket each search term with
9104         "*...*", so that the shell "case" statement works as intended.
9105         Add comments.
9106
9107 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
9108
9109         build: let bootstrap resort to wget when downloading .po files
9110         * build-aux/bootstrap (download_po_files): Fallback to wget when
9111         downloading the .po files via rsync fails.  This is necessary to
9112         bootstrap from behind a strict firewall.
9113
9114 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9115
9116         stdint: don't assume C++11 when compiling with g++
9117         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
9118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
9119         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
9120         work also in C++ before C++11, as that improperly inhibits
9121         generating a substitute stdint.h for that case.
9122
9123 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
9124
9125         alloca: protect comment from gnulib-tool
9126         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
9127         that gnulib-tool doesn't think it's a license, and munge it to
9128         say "GCC version 3".
9129
9130 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
9131
9132         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
9133         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
9134         $(abs_top_builddir) instead of $(top_builddir).
9135
9136 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
9137
9138         strftime-tests: also test nanoseconds
9139         * tests/test-strftime.c (T): Add a test of %N.
9140
9141 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
9142
9143         inttypes, stdint: add C++11 support
9144         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
9145         when including inttypes.h and stdint.h.  Support this change to
9146         the standard.
9147         * doc/posix-headers/inttypes.texi (inttypes.h):
9148         * doc/posix-headers/stdint.texi (stdint.h): Document this.
9149         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
9150         Define if not defined already, for the benefit of pre-C++11 hosts.
9151         Define the standard format macros (e.g., PRId8) always.
9152         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
9153         Likewise, if __cpluspus.  Define the standard constant and limit
9154         macros (e.g., INT8_C, INT8_MAX) always.
9155         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
9156         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
9157         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
9158         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
9159         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
9160         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
9161         Likewise.
9162
9163 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
9164
9165         nonblocking tests: Fix test failure on Linux/PPC.
9166         Suggested by Prerna Saxena in
9167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
9168         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
9169         Set to 1100000.
9170
9171 2011-12-12  Jim Meyering  <meyering@redhat.com>
9172
9173         argmatch: don't hard-code `' when listing valid option arguments
9174         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
9175         use the quote function to add quotes.  Use fputs rather than
9176         fprintf for the format string with no format directive.
9177
9178 2011-12-07  Eric Blake  <eblake@redhat.com>
9179
9180         bootstrap: detect tools required by gnulib-tool
9181         * build-aux/bootstrap (buildreq): Provide minimum implicit
9182         dependencies.
9183         * DEPENDENCIES: Mention patch as a prereq.
9184
9185 2011-12-04  Bruno Haible  <bruno@clisp.org>
9186
9187         sethostname: Port to Windows platforms.
9188         * lib/sethostname.c: Provide an alternate implementation for Windows
9189         platforms.
9190         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
9191         (main): Skip the test if sethostname() fails with EPERM. On Windows
9192         platforms, don't check the result of gethostname().
9193
9194 2011-12-04  Bruno Haible  <bruno@clisp.org>
9195             Jim Meyering  <meyering@redhat.com>
9196
9197         tests: Avoid spurious error message on platforms without mktemp program.
9198         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
9199
9200 2011-12-04  Bruno Haible  <bruno@clisp.org>
9201
9202         sethostname: Fix documentation.
9203         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
9204         "not fixed" section.
9205
9206 2011-12-03  Bruno Haible  <bruno@clisp.org>
9207
9208         gnulib-tool: Verify that the License field is present and non-empty.
9209         * gnulib-tool (func_get_license_raw): New function, extracted from
9210         func_get_license.
9211         (func_get_license): Use it. Warn if the module is not a test module and
9212         has no license.
9213         Suggested by Jim Meyering.
9214
9215 2011-12-03  Bruno Haible  <bruno@clisp.org>
9216
9217         sethostname tests: Fix link error on mingw.
9218         * tests/test-sethostname1.c: New file, extracted from
9219         tests/test-sethostname.c.
9220         * tests/test-sethostname2.c: New file, extracted from
9221         tests/test-sethostname.c.
9222         * tests/test-sethostname.c: Remove file.
9223         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
9224         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
9225         (Depends-on): Add gethostname.
9226         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
9227         Link the latter with $(GETHOSTNAME_LIB).
9228
9229         sethostname tests: Fix compilation error on mingw.
9230         * tests/test-sethostname.c: Don't include <sys/types.h>.
9231         (geteuid): Use a dummy value without uid_t.
9232         * modules/sethostname-tests (Depends-on): Remove sys_types.
9233
9234         sethostname tests: Avoid a gcc warning.
9235         * tests/test-sethostname.c (main): Remove an unused variable.
9236
9237         Tweak last commit.
9238         * modules/sethostname-tests (Files): Sort by decreasing importance.
9239         (configure.ac): Check for geteuid.
9240         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
9241         the test when there's nothing to test. Drop an unnecessary cast.
9242         Improve an error message. Verify that the final sethostname() call
9243         succeeds.
9244
9245 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9246
9247         Add a test suite for the sethostname module.
9248         * modules/sethostname-tests: New file.  A test program
9249         for the sethostname module.
9250         * tests/test-sethostname.c: Likewise.
9251
9252 2011-12-03  Bruno Haible  <bruno@clisp.org>
9253
9254         Tweak last commit.
9255         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
9256         Fix preprocessor directives indentation. Fix typos.
9257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
9258         * modules/unistd (Makefile): Likewise.
9259
9260 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9261
9262         Integrate the sethostname module into unistd.
9263         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
9264         into the unistd.h header.
9265         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
9266         preprocessor directives.
9267         * modules/unistd: Setup the Makefile substitutions of the
9268         SETHOSTNAME preprocessor directives.
9269
9270 2011-12-03  Bruno Haible  <bruno@clisp.org>
9271
9272         Tweak last commit.
9273         * lib/sethostname.c: Don't include <string.h>.
9274         (sethostname): No need to copy the argument string to the stack. Don't
9275         call clearerr. Preserve errno when fprintf failed.
9276         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
9277         Don't invoke AC_REPLACE_FUNCS.
9278         * modules/sethostname (Link): Remove empty section.
9279         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
9280         failure problem.
9281
9282 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9283
9284         New module 'sethostname'.
9285         * lib/sethostname.c (sethostname): New file.  Provide sethostname
9286         for systems that lack it.
9287         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
9288         sethostname declaration and function.
9289         * modules/sethostname: New file.  Define the sethostname module.
9290
9291 2011-12-03  Bruno Haible  <bruno@clisp.org>
9292
9293         Tweak last commit.
9294         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
9295
9296 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
9297
9298         Split the HOST_NAME_MAX detection into a separate m4 macro.
9299         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
9300         macro so it can be used by the pending sethostname module.
9301
9302 2011-12-03  Bruno Haible  <bruno@clisp.org>
9303
9304         Fix module descriptions syntax.
9305         * modules/argv-iter (License): Fix syntax.
9306         * modules/di-set (License): Likewise.
9307         * modules/ino-map (License): Likewise.
9308         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
9309
9310 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
9311
9312         stdalign: port to Clang 3.0
9313         Problem reported by Simon Josefsson in
9314         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
9315         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
9316         which has <stdalign.h> but which does not define alignof.
9317         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
9318
9319 2011-12-01  Eric Blake  <eblake@redhat.com>
9320
9321         mktempd: silence dd usage
9322         * build-aux/mktempd (rand_bytes): Silence dd.
9323
9324 2011-11-30  Simon Josefsson  <simon@josefsson.org>
9325
9326         manywarnings: Don't mention gcc version in docstring.
9327         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
9328         Jim Meyering <meyering@redhat.com>.
9329
9330 2011-11-30  Jim Meyering  <meyering@redhat.com>
9331
9332         hash: mark a few floating point constants with "f" suffix
9333         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
9334         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
9335         floating point constants with "f", since they're destined to be
9336         saved/used as "float"s.
9337
9338 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
9339
9340         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
9341         * tests/test-float.c (test_long_double): Correct and re-enable the
9342         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
9343
9344 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
9345
9346         Avoid subtracting two pointers that don't point into the same block.
9347         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
9348         only pointers into the same memory block are subtracted. We cannot
9349         assume that sizeof (ptrdiff_t) == sizeof (void *).
9350
9351 2011-11-29  Eric Blake  <eblake@redhat.com>
9352
9353         maint.mk: add syntax check for use of compare from init.sh
9354         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
9355         moved here from coreutils.
9356
9357         manywarnings: drop -Wunsuffixed-float-constants
9358         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
9359         '1.0D', which is the only way to silence this warning for 'double'.
9360
9361 2011-11-29  Jim Meyering  <meyering@redhat.com>
9362
9363         hash: mark compute_bucket_size with the pure attribute
9364         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
9365
9366         quotearg, propername: correct pragma guard expression
9367         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
9368         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
9369
9370 2011-11-28  Jim Meyering  <meyering@redhat.com>
9371
9372         propername: do not mark proper_name with the const attribute
9373         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
9374         since it examines data pointed to by its parameter.
9375         * lib/propername.c (proper_name): Instead, add a pragma to suppress
9376         the suggestion from -Wsuggest-attribute=const.
9377
9378         propername: mark one more function as const
9379         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
9380
9381 2011-11-27  Jim Meyering  <meyering@redhat.com>
9382
9383         mark functions with const and pure attributes
9384
9385         Mark functions per suggestions from gcc-4.6 when using these options:
9386         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
9387         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
9388         Follow these guidelines: when possible, apply the attribute to
9389         an extern declaration, not to its definition.  Apply it to the
9390         definition only when the definition is static.
9391         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
9392         * lib/argv-iter.h (argv_iter_n_args): Likewise.
9393         * lib/base64.h (isbase64): Likewise.
9394         * lib/basename-lgpl.c (last_component, base_len): Likewise.
9395         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
9396         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
9397         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
9398         (c_tolower, c_toupper): Likewise.
9399         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
9400         * lib/chdir-long.c (find_non_slash): Likewise.
9401         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
9402         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
9403         * lib/file-type.h (file_type): Likewise.
9404         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
9405         * lib/filevercmp.c (verrevcmp): Likewise.
9406         * lib/freadahead.h (freadahead): Likewise.
9407         * lib/fts.c (fts_maxarglen): Likewise.
9408         * lib/hash-pjw.h (hash_pjw): Likewise.
9409         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
9410         * lib/hash.c (is_prime, next_prime): Likewise.
9411         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
9412         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
9413         (hash_table_ok, hash_get_first, hash_string): Likewise.
9414         (compute_bucket_size): Likewise.
9415         * lib/i-ring.h (i_ring_empty): Likewise.
9416         * lib/isnan.c (isnanl): Likewise.
9417         * lib/math.h (isnanl, rpl_isnanl): Likewise.
9418         * lib/memcasecmp.h (memcasecmp): Likewise.
9419         * lib/memchr2.h (memchr2): Likewise.
9420         * lib/memcmp2.h (memcmp2): Likewise.
9421         * lib/parse-datetime.y (lookup_zone): Likewise.
9422         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
9423         [!WINDOWS_SOCKETS]: Likewise.
9424         * lib/strnlen1.h (strnlen1): Likewise.
9425         * lib/uniwidth.in.h (uc_width): Likewise.
9426         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
9427         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
9428         (quoting_options_from_style): Add a comment.
9429         * lib/propername.h (proper_name): Add a comment.
9430
9431 2011-11-27  Bruno Haible  <bruno@clisp.org>
9432
9433         Remove unused macros from !_LIBC code in glibc-borrowed files.
9434         * lib/fnmatch.c (STRCOLL): Remove macro.
9435         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
9436         * lib/glob.c (__stat, __readdir64): Remove macros.
9437         * lib/tempname.c (__open64, __xstat64): Remove macros.
9438         Suggested by Paul Eggert.
9439
9440 2011-11-27  Bruno Haible  <bruno@clisp.org>
9441
9442         getcwd: Fix link error on MSVC 9.
9443         * modules/getcwd (Depends-on): Add readdir, rewinddir.
9444
9445 2011-11-27  Bruno Haible  <bruno@clisp.org>
9446
9447         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
9448         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
9449         HAVE_OPENDIR is 0.
9450         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
9451         HAVE_CLOSEDIR is 0.
9452         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
9453         is 0.
9454         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
9455
9456 2011-11-27  Bruno Haible  <bruno@clisp.org>
9457
9458         getcwd: Fix bug from 2011-08-17.
9459         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
9460         platforms that need it.
9461         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
9462         code of 4 to be a failure, not a success. This ensures that
9463         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
9464
9465 2011-11-27  Bruno Haible  <bruno@clisp.org>
9466
9467         binary-io tests: Avoid test failure on mingw when libtool is used.
9468         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
9469         Don't verify the size of t-bin-out1.tmp here.
9470         * tests/test-binary-io.sh: Verify it here.
9471         Reported by Simon Josefsson.
9472
9473 2011-11-26  Bruno Haible  <bruno@clisp.org>
9474
9475         Fix conflict between two instantiations of module 'unistd'.
9476         * gnulib-tool (func_emit_autoconf_snippet): Substitute
9477         ${include_guard_prefix} also in the autoconf snippet.
9478         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
9479         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
9480         GNULIB_UNISTD_H_GETOPT.
9481         * modules/getopt-posix (configure.ac): Set the
9482         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
9483         * modules/getopt-gnu (configure.ac): Likewise.
9484         * modules/unistd (Makefile.am): Change the substitution value of
9485         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
9486         Reported by Simon Josefsson.
9487
9488 2011-11-25  Bruno Haible  <bruno@clisp.org>
9489
9490         pagealign_alloc: Doc and comments.
9491         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
9492         module.
9493         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
9494
9495 2011-11-25  Jim Meyering  <meyering@redhat.com>
9496
9497         test-update-copyright.sh: avoid false-positive failure
9498         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
9499         around false positive failure on Cygwin/Windows.  The latter was
9500         matching erroneously-created files with names like
9501         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
9502
9503 2011-11-25  Simon Josefsson  <simon@josefsson.org>
9504
9505         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
9506         * m4/valgrind-tests.m4: Check that the parameters that will be
9507         used works, not just a subset of them.  Reported by Bruno Haible
9508         <bruno@clisp.org>.
9509
9510 2011-11-24  Jim Meyering  <meyering@redhat.com>
9511
9512         test-stdalign.c: comment out long double tests
9513         * tests/test-stdalign.c: Don't try to reduce alignment of long double
9514         variables.  That provokes errors like this from gcc-4.7.0 20111124:
9515         error: '_Alignas' specifiers cannot reduce alignment of \
9516         'static_longdouble_alignas'.
9517
9518 2011-11-22  Jim Meyering  <meyering@redhat.com>
9519
9520         init.sh: make "compare /dev/null FILE" output more readable
9521         * tests/init.sh (compare_): Document the preferred order of arguments.
9522         (emit_diff_u_header_): New function.
9523         (compare_dev_null_): Emit a simulated diff, rather than just the
9524         contents of the unexpected file.  Suggestion from Bruno Haible.
9525
9526 2011-11-21  Jim Meyering  <meyering@redhat.com>
9527             Eric Blake  <eblake@redhat.com>
9528
9529         init.sh: work around OSF/1 5.1's mishandling of /dev/null
9530         * tests/init.sh: Make our compare function slightly more portable.
9531         Reported by Bruno Haible in
9532         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
9533
9534 2011-11-21  Simon Josefsson  <simon@josefsson.org>
9535
9536         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
9537         before using it, in code that ends up in config.h.
9538
9539 2011-11-20  Bruno Haible  <bruno@clisp.org>
9540
9541         getcwd: Work around getcwd bug on AIX 5..7.
9542         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
9543         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
9544         Use a different value for gl_cv_func_getcwd_path_max. Move the
9545         definition of HAVE_PARTLY_WORKING_GETCWD from here...
9546         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
9547         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
9548         Define HAVE_MINIMALLY_WORKING_GETCWD.
9549         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
9550         where it is not even minimally working, that is, on AIX.
9551         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
9552         m4/getcwd-path-max.m4.
9553         (main): Update exit code computation.
9554         * doc/posix-functions/getcwd.texi: Mention list of platforms where
9555         getcwd does not handle long file names.
9556
9557 2011-11-20  Bruno Haible  <bruno@clisp.org>
9558
9559         getcwd: Fix bug from 2009-09-10.
9560         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
9561         like "no".
9562
9563 2011-11-20  Simon Josefsson  <simon@josefsson.org>
9564
9565         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
9566
9567 2011-11-20  Bruno Haible  <bruno@clisp.org>
9568
9569         fma tests: Avoid shadowing local variables.
9570         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
9571         expected.
9572
9573 2011-11-20  Bruno Haible  <bruno@clisp.org>
9574
9575         copysignf tests: Fix.
9576         * tests/test-copysignf.c: Fix signature check.
9577
9578 2011-11-20  Bruno Haible  <bruno@clisp.org>
9579
9580         fma: Remove unused code.
9581         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
9582         unused macros.
9583
9584 2011-11-20  Bruno Haible  <bruno@clisp.org>
9585
9586         sethostname: Fix doc about AIX.
9587         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
9588         sethostname; it has it.
9589
9590         sethostname: Mention more portability problems.
9591         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
9592         problem.
9593         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9594
9595 2011-11-19  Bruno Haible  <bruno@clisp.org>
9596
9597         Depend on module fcntl-h when AT_FDCWD is used.
9598         * modules/utimens (Depends-on): Add fcntl-h.
9599         * modules/areadlinkat (Depends-on): Likewise.
9600         * modules/areadlinkat-with-size (Depends-on): Likewise.
9601         * modules/faccessat (Depends-on): Likewise.
9602         * modules/fchmodat (Depends-on): Likewise.
9603         * modules/fchownat (Depends-on): Likewise.
9604         * modules/getcwd (Depends-on): Likewise.
9605         * modules/mkdirat (Depends-on): Likewise.
9606         * modules/mkfifoat (Depends-on): Likewise.
9607         * modules/readlinkat (Depends-on): Likewise.
9608         * modules/symlinkat (Depends-on): Likewise.
9609         * modules/dup2-tests (Depends-on): Likewise.
9610         * modules/fdutimensat-tests (Depends-on): Likewise.
9611         * modules/futimens-tests (Depends-on): Likewise.
9612
9613 2011-11-19  Bruno Haible  <bruno@clisp.org>
9614
9615         euidaccess: Update a comment.
9616         * lib/euidaccess.c: Update comment about platforms with faccessat.
9617
9618 2011-11-19  Bruno Haible  <bruno@clisp.org>
9619
9620         openat: Fix file list.
9621         * modules/openat (Files): Remove lib/at-func.c.
9622
9623 2011-11-19  Bruno Haible  <bruno@clisp.org>
9624
9625         fstatat: Simplify.
9626         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
9627         gnulib should define rpl_fstatat, there is a
9628         "#define fstatat rpl_fstatat" in <sys/stat.h>.
9629
9630 2011-11-19  Bruno Haible  <bruno@clisp.org>
9631
9632         Ensure 'inline' can be used in tests/test-utimens-common.h.
9633         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
9634         * modules/futimens-tests (configure.ac): Likewise.
9635         * modules/utimens-tests (configure.ac): Likewise.
9636         * modules/utimensat-tests (configure.ac): Likewise.
9637
9638 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9639
9640         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
9641         not hash_insert0.
9642         (hash_insert_if_absent): Doc fix.
9643
9644 2011-11-19  Simon Josefsson  <simon@josefsson.org>
9645
9646         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
9647
9648 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
9649
9650         test-getcwd: disambiguate exit status
9651         * tests/test-getcwd.c (test_long_name): Return 0..7.
9652         (main): Exit with an unambiguous exit status.  The old
9653         code yielded a mysterious mixture of two failure codes.
9654
9655         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
9656         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
9657         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
9658         rpl_fstatat or fstatat.  This should fix the other problem
9659         reported by Kai Habel in
9660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9661         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
9662         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
9663         and I reproduced it on a Solaris 8 host we still have in production.
9664
9665 2011-11-18  Jim Meyering  <meyering@redhat.com>
9666
9667         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
9668         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
9669         Add a sentence to the comment.
9670         (hash_insert0): New function that simply calls hash_insert_if_absent.
9671         * lib/hash.h (hash_insert_if_absent): Declare it.
9672         (hash_insert0): Add deprecation attribute.
9673         (_GL_ATTRIBUTE_DEPRECATED): Define.
9674         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
9675         not hash_insert0.
9676         * NEWS: Mention it, even though it's not really an incompatible change.
9677
9678 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
9679
9680         openat: avoid compilation failure due to lack of <errno.h> inclusion
9681         * lib/openat.c: Include <errno.h>.
9682
9683 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
9684
9685         * modules/getcwd (Depends-on): Add fdopendir.
9686         This fixes one of the two problems reported by Kai Habel in
9687         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
9688
9689         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
9690         stdalign problem reported by Ian Beckwith in
9691         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
9692         * modules/crypto/gc-arcfour (Depends-on):
9693         Depend conditionally on crypto/arcfour.
9694         * modules/crypto/gc-arctwo (Depends-on):
9695         Depend conditionally on crypto/arctwo.
9696         * modules/crypto/gc-des (Depends-on):
9697         Depend conditionally on crypto/des.
9698         * modules/crypto/gc-hmac-md5 (Depends-on):
9699         Depend conditionally on crypto/hmac-md5.
9700         * modules/crypto/gc-hmac-sha1 (Depends-on):
9701         Depend conditionally on crypto/hmac-sha1.
9702         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
9703         * modules/crypto/gc-md4 (Depends-on):
9704         Depend conditionally on crypto/md4.
9705         * modules/crypto/gc-md5 (Depends-on):
9706         Depend conditionally on crypto/md5.
9707         * modules/crypto/gc-rijndael (Depends-on):
9708         Depend conditionally on crypto/rijndael.
9709         * modules/crypto/gc-sha1 (Depends-on):
9710         Depend conditionally on crypto/sha1.
9711         * modules/crypto/gc-arcfour:
9712         * modules/crypto/gc-arctwo:
9713         * modules/crypto/gc-des:
9714         * modules/crypto/gc-hmac-md5:
9715         * modules/crypto/gc-hmac-sha1:
9716         * modules/crypto/gc-md2:
9717         * modules/crypto/gc-md4:
9718         * modules/crypto/gc-md5:
9719         * modules/crypto/gc-rijndael:
9720         * modules/crypto/gc-sha1:
9721         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
9722         now that the conditional dependencies do the work for us.
9723
9724 2011-11-17  Jim Meyering  <meyering@redhat.com>
9725
9726         tests: factor st_ctime-comparison out of two headers
9727         * tests/test-utimens-common.h (ctime_compare): Define.
9728         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
9729         * tests/test-lutimens.h (test_lutimens): Likewise.
9730         * tests/test-utimens.h (test_utimens): Likewise.
9731
9732         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
9733         Invoke the test program via an init.sh-using wrapper.
9734         * tests/test-getcwd.sh: New file.
9735         * modules/getcwd-tests (Files): Add it.
9736         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
9737
9738 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
9739
9740         gitlog-to-changelog: support multi-author commits.
9741         The FSF cares about keeping track of all authors of patches to its
9742         projects, but Git doesn't provide obvious support for multi-author
9743         changesets. Consensus seems to be forming around the use of extra
9744         Signed-off-by inspired lines in the log message formatted as
9745         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
9746         multi-author commits between version control systems.
9747         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
9748         log message and output in standard ChangeLog multi-author format.
9749         Reported by Peter Rosin <peda@lysator.liu.se>
9750
9751 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
9752             Bruno Haible  <bruno@clisp.org>
9753
9754         Fix some modules' file list.
9755         * modules/fstatat (Files): Add m4/lstat.m4.
9756         * modules/openat (Files): Likewise.
9757         * modules/unlinkat (Files): Likewise.
9758
9759 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
9760
9761         maint.mk: fix tight-scope.mk generation in VPATH builds.
9762         * top/maint.mk (tight-scope.mk): Make sure to prefix file
9763         reference with $(srcdir) so that the file is found correctly even
9764         when running `make syntax-check' in a VPATH build.
9765
9766 2011-11-13  Bruno Haible  <bruno@clisp.org>
9767             Jim Meyering  <meyering@redhat.com>
9768
9769         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
9770         * tests/init.sh (compare): Remove "No differences encountered" or
9771         synonymous output from the 'diff' program.
9772
9773 2011-11-13  Bruno Haible  <bruno@clisp.org>
9774
9775         Makefile: Tweak indentation.
9776         * Makefile: Use tab as first character in every line that contains rule
9777         commands.
9778
9779 2011-11-13  Bruno Haible  <bruno@clisp.org>
9780
9781         Syntax check for copyright statements.
9782         * check-copyright: New file.
9783         * Makefile (sc_check_copyright): New rule.
9784
9785 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9786
9787         * build-aux/git-version-gen: Add --prefix to configure the tag
9788         match string.
9789
9790 2011-11-13  Simon Josefsson  <simon@josefsson.org>
9791
9792         * build-aux/git-version-gen: Add --help and --version.
9793
9794 2011-11-12  Jim Meyering  <meyering@redhat.com>
9795
9796         revamp the other test-exclude?.sh scripts to use init.sh, too
9797         * tests/test-exclude1.sh: Use init.sh.
9798         * tests/test-exclude2.sh: Likewise.
9799         * tests/test-exclude3.sh: Likewise.
9800         * tests/test-exclude4.sh: Likewise.
9801         * tests/test-exclude5.sh: Likewise.
9802         * tests/test-exclude6.sh: Likewise.
9803         * tests/test-exclude7.sh: Likewise.
9804         * tests/test-exclude8.sh: Likewise.
9805         * modules/exclude-tests (Files): List init.sh.
9806
9807         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
9808         These shell scripts ignored failure of the binary test-exclude,
9809         so making the latter return 77 didn't cause them to be skipped.
9810         * tests/test-exclude5.sh: Exit with test-exclude's error status
9811         when that program fails.  Revamp to use init.sh.
9812         * tests/test-exclude2.sh: Likewise.
9813
9814         test-exclude: fix a typo
9815         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9816
9817 2011-11-11  Bruno Haible  <bruno@clisp.org>
9818
9819         obstack: Fix compilation error on MSVC 9.
9820         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9821
9822 2011-11-11  Jim Meyering  <meyering@redhat.com>
9823
9824         test-exclude: skip tests rather than failing on deficient systems
9825         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9826         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9827         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9828         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9829
9830 2011-11-10  Bruno Haible  <bruno@clisp.org>
9831
9832         ptsname_r test: Avoid gcc warning on glibc systems.
9833         * tests/test-ptsname_r.c (null_ptr): New function.
9834         (test_errors): Use it.
9835
9836 2011-11-10  Bruno Haible  <bruno@clisp.org>
9837
9838         ptsname_r: Avoid compilation error on OSF/1 5.1.
9839         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9841         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9842         function is not declared or incompatibly declared.
9843         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9844         * modules/ptsname_r (Depends-on, configure.ac): Update.
9845         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9846
9847 2011-11-10  Bruno Haible  <bruno@clisp.org>
9848
9849         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9850         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9851         When cross-compiling, guess yes on all platforms except AIX.
9852         Reported by Ludovic Courtès <ludo@gnu.org>.
9853
9854 2011-11-09  Bruno Haible  <bruno@clisp.org>
9855
9856         ptsname_r tests: Fix bugs.
9857         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9858         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9859
9860 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9861
9862         fstatat: work with cross-compilation
9863         Problem reported by Ludovic Courtès in
9864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9865         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9866         "cross-compiling" and assume the bug is present.  Replace
9867         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9868         an inverted sense, to be more conservative about our assumptions.
9869         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9870
9871 2011-11-09  Bruno Haible  <bruno@clisp.org>
9872
9873         Improve MODULES.html output.
9874         * modules/mkfifoat (Description): Use the word "function".
9875         * modules/readlinkat (Description): Likewise.
9876         * modules/symlinkat (Description): Likewise.
9877
9878 2011-11-09  Eric Blake  <eblake@redhat.com>
9879
9880         ptsname_r-tests: new test module
9881         * modules/ptsname_r-tests: New module.
9882         * tests/test-ptsname_r.c: New file.
9883
9884         ptsname_r: new module
9885         * modules/ptsname_r: New module.
9886         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9887         * lib/ptsname.c (__ptsname_r): Split...
9888         * lib/ptsname_r.c: ...into new file.
9889         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9890         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9891         * modules/stdlib (Makefile.am): Substitute witnesses.
9892         * lib/stdlib.in.h (ptsname_r): Declare it.
9893         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9894         * MODULES.html.sh (Misc): Likewise.
9895         * modules/ptsname (Depends-on): Alter dependency.
9896         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9897
9898 2011-11-09  Jim Meyering  <meyering@redhat.com>
9899
9900         announce-gen: be more concise when there's only one URL+tarball
9901         * build-aux/announce-gen (get_tool_versions): When you distribute
9902         only one type of tarball, combine the first two "Here are..."
9903         sections and make the key-checking grammar independent of
9904         how many tarballs there are.
9905
9906 2011-11-09  Eric Blake  <eblake@redhat.com>
9907
9908         openpty: provide a stub on mingw
9909         * lib/pty.in.h (includes): Provide forward declarations.
9910         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9911
9912         raise: fix mingw handling of SIGPIPE
9913         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9914
9915 2011-11-08  Bruno Haible  <bruno@clisp.org>
9916
9917         More conditional dependencies.
9918         * modules/faccessat (Depends-on): Add conditions.
9919         * modules/fchmodat (Depends-on): Likewise.
9920         * modules/fchownat (Depends-on): Likewise.
9921         * modules/fstatat (Depends-on): Likewise.
9922         * modules/mkfifoat (Depends-on): Likewise.
9923         * modules/readlinkat (Depends-on): Likewise.
9924         * modules/symlinkat (Depends-on): Likewise.
9925         * modules/unlinkat (Depends-on): Likewise.
9926         * modules/utimensat (Depends-on): Likewise.
9927         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9928         * modules/linkat (Depends-on): Refine the conditions.
9929         * modules/renameat (Depends-on): Likewise.
9930
9931 2011-11-08  Bruno Haible  <bruno@clisp.org>
9932
9933         faccessat: Move AC_LIBOBJ invocation to module description.
9934         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9935         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9936         invocation from here...
9937         * modules/faccessat (configure.ac): ... to here. Invoke
9938         gl_PREREQ_FACCESSAT.
9939
9940 2011-11-08  Bruno Haible  <bruno@clisp.org>
9941
9942         faccessat: Simplify autoconf macro.
9943         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9944         gl_FUNC_EUIDACCESS.
9945
9946 2011-11-08  Bruno Haible  <bruno@clisp.org>
9947
9948         renameat: Fix dependencies.
9949         * modules/renameat (Depends-on): Add stdbool.
9950
9951 2011-11-08  Bruno Haible  <bruno@clisp.org>
9952
9953         mkfifoat: Fix module description.
9954         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9955         not gl_UNISTD_MODULE_INDICATOR.
9956
9957 2011-11-08  Bruno Haible  <bruno@clisp.org>
9958
9959         fstatat: Remove unused dependency.
9960         * modules/fstatat (Depends-on): Remove fstat.
9961
9962 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9963
9964         GNUmakefile: behave when Makefile is missing.
9965         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9966
9967 2011-11-08  Bruno Haible  <bruno@clisp.org>
9968
9969         openat: Conditionalize dependencies.
9970         * lib/openat.c: Reduce the scope of some #includes.
9971         * modules/openat (Depends-on): Add conditions.
9972
9973 2011-11-07  Jim Meyering  <meyering@redhat.com>
9974
9975         maint.mk: extract GPG key ID without using a temporary file
9976         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9977         without using a temporary file.  Based on a suggestion from Werner Koch
9978         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9979
9980 2011-11-07  Eric Blake  <eblake@redhat.com>
9981
9982         grantpt: fix typo
9983         * lib/stdlib.in.h (grantpt): Check correct function.
9984
9985         maint.mk: silence new syntax check
9986         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9987
9988 2011-11-06  Bruno Haible  <bruno@clisp.org>
9989
9990         Doc about floating-point and math API.
9991         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9992         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9993
9994 2011-11-06  Bruno Haible  <bruno@clisp.org>
9995
9996         stdalign tests: Skip the test when compiled by Sun C.
9997         * tests/test-stdalign.c (main): Skip the test on Sun C.
9998
9999 2011-11-06  Bruno Haible  <bruno@clisp.org>
10000
10001         ansi-c++-opt: Complete the 2011-06-05 change.
10002         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
10003         does not support namespaces, set the variable to "no", not to ":".
10004
10005 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
10006
10007         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
10008
10009 2011-11-06  Bruno Haible  <bruno@clisp.org>
10010
10011         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
10012         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
10013         (minus_zerol) [HP-UX]: New macro.
10014         (unary_minus) [HP-UX]: New function.
10015         (copysignl) [HP-UX]: Use unary_minus function.
10016
10017 2011-11-06  Bruno Haible  <bruno@clisp.org>
10018
10019         ldexp, ldexpf, ldexpl: Enhance tests.
10020         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
10021         and tests/test-ldexpl.c.
10022         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
10023         LDEXP, MIN_EXP, MAX_EXP): New macros.
10024         Include test-ldexp.h.
10025         (main): Just call test_function.
10026         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
10027         infinity.h, nan.h.
10028         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10029         MAX_EXP): New macros.
10030         Include test-ldexp.h.
10031         (x, y): Remove variables.
10032         (main): Just call test_function.
10033         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
10034         infinity.h, nan.h.
10035         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
10036         MAX_EXP): New macros.
10037         Include test-ldexp.h.
10038         (x, y): Remove variables.
10039         (main): Just call test_function.
10040         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
10041         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
10042         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10043         (Depends-on): Add isnand-nolibm, signbit, float.
10044         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
10045         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
10046         (Depends-on): Add isnanf-nolibm, signbit, float.
10047
10048 2011-11-06  Bruno Haible  <bruno@clisp.org>
10049
10050         math tests: Cosmetics.
10051         * tests/test-math-c++.cc: Reorder declarations.
10052
10053 2011-11-05  Bruno Haible  <bruno@clisp.org>
10054
10055         fma*: Simplify test.
10056         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
10057         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
10058
10059         Tests for module 'fmal'.
10060         * modules/fmal-tests: New file.
10061         * tests/test-fmal1.c: New file.
10062         * tests/test-fmal2.c: New file.
10063
10064         New module 'fmal'.
10065         * lib/math.in.h (fmal): New declaration.
10066         * lib/fmal.c: New file.
10067         * m4/fmal.m4: New file.
10068         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
10069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
10070         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
10071         REPLACE_FMAL.
10072         * modules/fmal: New file.
10073         * doc/posix-functions/fmal.texi: Mention the new module and the various
10074         bugs.
10075
10076         Tests for module 'fmaf'.
10077         * modules/fmaf-tests: New file.
10078         * tests/test-fmaf1.c: New file.
10079         * tests/test-fmaf2.c: New file.
10080
10081         New module 'fmaf'.
10082         * lib/math.in.h (fmaf): New declaration.
10083         * lib/fmaf.c: New file.
10084         * m4/fmaf.m4: New file.
10085         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
10086         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
10087         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
10088         REPLACE_FMAF.
10089         * modules/fmaf: New file.
10090         * doc/posix-functions/fmaf.texi: Mention the new module and the various
10091         bugs.
10092
10093         Tests for module 'fma'.
10094         * modules/fma-tests: New file.
10095         * tests/test-fma1.c: New file.
10096         * tests/test-fma1.h: New file.
10097         * tests/test-fma2.c: New file.
10098         * tests/test-fma2.h: New file.
10099
10100         New module 'fma'.
10101         * lib/math.in.h (fma): New declaration.
10102         * lib/fma.c: New file.
10103         * m4/fma.m4: New file.
10104         * m4/fegetround.m4: New file.
10105         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
10106         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
10107         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
10108         REPLACE_FMA.
10109         * modules/fma: New file.
10110         * doc/posix-functions/fma.texi: Mention the new module and the various
10111         bugs.
10112
10113         Extend gl_MATHFUNC.
10114         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
10115         Support 'void' as argument type.
10116         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
10117
10118 2011-11-05  Jim Meyering  <meyering@redhat.com>
10119
10120         maint.mk: also prohibit inclusion of dirent.h without use
10121         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
10122
10123 2011-11-05  Bruno Haible  <bruno@clisp.org>
10124
10125         ldexpl tests: Avoid test failure on MSVC 9.
10126         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
10127         value. Needed in order to enforce the conversion from a value greater
10128         than LDBL_MAX to Infinity.
10129
10130 2011-11-05  Bruno Haible  <bruno@clisp.org>
10131
10132         New modules 'at-internal', 'openat-h', split off from module 'openat'.
10133         * modules/at-internal: New file, extracted from modules/openat.
10134         * modules/openat-h: New file.
10135         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
10136         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
10137         * modules/openat (Description): Add reference to POSIX function.
10138         (Files): Remove lib/openat.h, lib/openat-proc.c.
10139         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
10140         intprops, unistd.
10141         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
10142         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
10143         gl_FCNTL_MODULE_INDICATOR.
10144         (Include): Remove unistd.h, openat.h.
10145         * modules/areadlinkat (Files): Add lib/at-func.c.
10146         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10147         openat-die, openat-h, save-cwd.
10148         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
10149         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10150         openat-die, openat-h, save-cwd, unistd.
10151         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
10152         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10153         openat-h, save-cwd. Remove fcntl-h, openat.
10154         * modules/fchmodat (Files): Remove lib/openat.h.
10155         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10156         openat, stdbool, unistd.
10157         * modules/fchownat (Files): Remove lib/openat.h.
10158         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10159         openat, stdbool, sys_stat.
10160         * modules/fdopendir (Files): Remove lib/openat-priv.h,
10161         lib/openat-proc.c.
10162         (Depends-on): Add at-internal.
10163         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
10164         * modules/fstatat (Files): Remove lib/openat.h.
10165         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10166         stdbool, unistd.
10167         * modules/fts (Depends-on): Add openat-h.
10168         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
10169         openat.
10170         * modules/mkdirat (Files): Remove lib/openat.h.
10171         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
10172         openat, stdbool, sys_stat.
10173         * modules/mkfifoat (Files): Add lib/at-func.c.
10174         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10175         openat-h, save-cwd. Remove fcntl-h, openat.
10176         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
10177         * modules/readlinkat (Files): Add lib/at-func.c.
10178         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10179         openat-h, save-cwd. Remove fcntl-h, openat.
10180         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
10181         openat.
10182         * modules/selinux-at (Files): Add lib/at-func.c.
10183         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
10184         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
10185         * modules/symlinkat (Files): Add lib/at-func.c.
10186         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
10187         openat-h, save-cwd. Remove fcntl-h, openat.
10188         * modules/unlinkat (Files): Remove lib/openat.h.
10189         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
10190         stdbool.
10191         * modules/utimensat (Files): Add lib/at-func.c.
10192         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
10193         openat-die, openat-h, save-cwd.
10194         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
10195         * modules/fdutimensat-tests (Depends-on): Add openat.
10196         * modules/fstatat-tests (Depends-on): Add openat-h.
10197         * modules/readlinkat-tests (Depends-on): Add openat.
10198         * modules/symlinkat-tests (Depends-on): Add openat.
10199
10200 2011-11-05  Bruno Haible  <bruno@clisp.org>
10201
10202         openat: Include <stdbool.h>.
10203         * lib/openat.c: Include <stdbool.h>.
10204
10205 2011-11-04  Bruno Haible  <bruno@clisp.org>
10206
10207         fchownat, renameat, unlinkat: Fix dependencies.
10208         * modules/fchownat (Depends-on): Add fstatat.
10209         * modules/renameat (Depends-on): Likewise.
10210         * modules/unlinkat (Depends-on): Likewise.
10211
10212 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
10213
10214         openat: remove direct dependency on dirent
10215         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
10216         and hasn't been needed ever since fdopendir was split into its own
10217         module on 2009-08-31.
10218         * modules/openat (Depends-on): Remove dirent.
10219
10220 2011-11-04  Bruno Haible  <bruno@clisp.org>
10221
10222         renameat: Optimize code size.
10223         * modules/renameat (configure.ac): Don't compile at-func2.c if
10224         REPLACE_RENAMEAT is 1.
10225
10226 2011-11-04  Bruno Haible  <bruno@clisp.org>
10227
10228         openat tests: Fix file list.
10229         * modules/openat-tests (Files): Add tests/test-open.h.
10230
10231 2011-11-04  Bruno Haible  <bruno@clisp.org>
10232
10233         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
10234         * modules/fchmodat (Depends-on): Add openat-die.
10235         * modules/fchownat (Depends-on): Likewise.
10236         * modules/linkat (Depends-on): Likewise.
10237         * modules/renameat (Depends-on): Likewise.
10238         * modules/openat (Depends-on): Add dirent.
10239
10240 2011-11-04  Jim Meyering  <meyering@redhat.com>
10241
10242         at-func*.c: fix comments
10243         * lib/at-func2.c: Correct/improve first-line comment.
10244         * lib/at-func.c: Correct grammar in first-line comment.
10245
10246 2011-11-04  Bruno Haible  <bruno@clisp.org>
10247
10248         New module 'mkdirat', split off from module 'openat'.
10249         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
10250         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
10251         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
10252         * modules/mkdirat: New file, extracted from modules/openat.
10253         * modules/openat (Files): Remove lib/mkdirat.c.
10254         (Depends-on): Remove mkdir.
10255         (configure.ac): Remove AC_LIBOBJ of mkdirat.
10256         (Include): Remove <sys/stat.h>.
10257         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
10258         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
10259         tests/test-mkdir.h.
10260         (Depends-on): Remove ignore-value.
10261         (Makefile.am): Remove rules for test-mkdirat.
10262         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
10263         of module 'openat'.
10264         * NEWS: Mention the change.
10265
10266 2011-11-04  Bruno Haible  <bruno@clisp.org>
10267
10268         closedir: Avoid warning on mingw.
10269         * lib/closedir.c: Include <unistd.h>.
10270
10271 2011-11-04  Bruno Haible  <bruno@clisp.org>
10272
10273         New module 'fstatat', split off from module 'openat'.
10274         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
10275         defined.
10276         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
10277         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
10278         gl_FUNC_FSTATAT.
10279         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
10280         * modules/fstatat: New file, extracted from modules/openat.
10281         * modules/openat (Files): Remove lib/fstatat.c.
10282         (Depends-on): Remove lstat.
10283         (configure.ac): Remove AC_LIBOBJ of fstatat.
10284         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
10285         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
10286         tests/test-lstat.h, tests/test-stat.h.
10287         (Depends-on): Remove getcwd-lgpl.
10288         (Makefile.am): Remove rules for test-fstatat.
10289         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
10290         of module 'openat'.
10291         * NEWS: Mention the change.
10292         * modules/getcwd (Depends-on): Add fstatat.
10293         * modules/linkat (Depends-on): Likewise.
10294         * modules/mkfifoat-tests (Depends-on): Likewise.
10295         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
10296
10297 2011-11-03  Bruno Haible  <bruno@clisp.org>
10298
10299         New module 'unlinkat', split off from module 'openat'.
10300         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
10301         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
10302         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
10303         * modules/unlinkat: New file, extracted from modules/openat. Correct
10304         the dependency conditions.
10305         * modules/openat (Files): Remove lib/unlinkat.c.
10306         (Depends-on): Remove rmdir, unlink.
10307         (configure.ac): Remove AC_LIBOBJ of unlinkat.
10308         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
10309         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
10310         tests/test-rmdir.h, tests/test-unlink.h.
10311         (Depends-on): Remove unlinkdir.
10312         (Makefile.am): Remove rules for test-unlinkat.
10313         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
10314         of module 'openat'.
10315         * NEWS: Mention the change.
10316         * modules/linkat-tests (Depends-on): Add unlinkat.
10317         * modules/mkfifoat-tests (Depends-on): Likewise.
10318         * modules/readlinkat-tests (Depends-on): Likewise.
10319
10320 2011-11-02  Bruno Haible  <bruno@clisp.org>
10321
10322         New module 'fchmodat', split off from module 'openat'.
10323         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
10324         defined.
10325         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
10326         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
10327         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
10328         * modules/fchmodat: New file, extracted from modules/openat.
10329         * modules/openat (Files): Remove lib/fchmodat.c.
10330         (configure.ac): Remove AC_LIBOBJ of fchmodat.
10331         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
10332         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
10333         (Makefile.am): Remove rules for test-fchmodat.
10334         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
10335         of module 'openat'.
10336         * NEWS: Mention the change.
10337
10338 2011-11-02  Jim Meyering  <meyering@redhat.com>
10339
10340         putenv: indent #definition of "environ" to placate cppi
10341         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
10342
10343         gitlog-to-changelog: provide a ChangeLog-repair mechanism
10344         Git logs are often treated as immutable, because editing them
10345         changes the SHA1 checksums of all descendants.  Thus, errors in
10346         git logs tend to stay there forever.  However, when we generate
10347         a ChangeLog file -- typically for distribution -- from that git log,
10348         we can actually make corrections in the generated file.  The key
10349         lies in recording in machine-readable/applicable form the desired
10350         corrections.  See --help for description and an example.
10351         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
10352         (usage): Describe it; alphabetize option descriptions.
10353         (main): Honor the new option, carefully.
10354
10355 2011-11-01  Jim Meyering  <meyering@redhat.com>
10356
10357         gitlog-to-changelog: avoid an infloop
10358         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
10359         that ends up being empty.
10360
10361 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10362
10363         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
10364         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
10365         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
10366         contains (possibly-quoted) backslashes.  This should avoid
10367         all-too-common shell bugs if COMPLICATED contains backslashes in
10368         the "wrong" places.  Reported by David Evans in
10369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
10370         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
10371         because we want ASCII ranges.  Is there some reason we don't use
10372         the C locale everywhere in this script?
10373         (func_module, top level): Avoid unwanted pathname expansion when
10374         $repo_url_prefix or $repo_url_suffix_repl contain shell
10375         metacharacters like '?' and '*'.
10376
10377 2011-11-01  Bruno Haible  <bruno@clisp.org>
10378
10379         fchownat: Improve description.
10380         * modules/fchownat (Description): Add link to function.
10381
10382 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10383
10384         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
10385         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
10386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
10387         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
10388
10389 2011-11-01  Bruno Haible  <bruno@clisp.org>
10390
10391         alignof: Avoid collision with stdalign module.
10392         * lib/alignof.h (alignof): Remove macro.
10393         * NEWS: Mention the change.
10394         Reported by Paul Eggert.
10395
10396 2011-11-01  Bruno Haible  <bruno@clisp.org>
10397
10398         New module 'fchownat', split off from module 'openat'.
10399         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
10400         defined.
10401         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
10402         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
10403         invoke gl_FUNC_FCHOWNAT.
10404         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
10405         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
10406         * modules/fchownat: New file, extracted from modules/openat.
10407         * modules/openat (Files): Remove lib/fchownat.c.
10408         (Depends-on): Remove lchown.
10409         (configure.ac): Remove AC_LIBOBJ of fchownat.
10410         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
10411         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
10412         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
10413         (Depends-on): Remove mgetgroups, usleep, stat-time.
10414         (configure.ac): Remove test for getegid.
10415         (Makefile.am): Remove rules for test-fchownat.
10416         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
10417         of module 'openat'.
10418         * NEWS: Mention the change.
10419
10420 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
10421
10422         stdalign: port better to MSVC and to Sun C 5.11
10423         This fixes some of the problems reported by Bruno Haible in
10424         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
10425         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
10426         shortcomings of MSVC and of Sun C 5.11.
10427         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
10428         around __declspec arg.
10429         * modules/stdalign-tests (Files): Add tests/macros.h.
10430         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
10431         Include macros.h, for ASSERT.
10432         (DECLARE_ALIGNED): Remove.
10433         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
10434         to catch bug), and to 1 if not (simplifies the rest of the code).
10435         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
10436         (CHECK_AUTO): Remove.
10437         (CHECK_ALIGNED): Check only the alignment of the static vars,
10438         since auto var alignment isn't supported by Sun C 5.11.
10439         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
10440         ASSERT failures are easier to diagnose.
10441
10442 2011-10-31  Bruno Haible  <bruno@clisp.org>
10443
10444         doc about some IRIX 5.3 problems.
10445         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
10446         on IRIX 5.3.
10447         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
10448         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
10449         5.3.
10450         * doc/posix-functions/grantpt.texi: Likewise.
10451         * doc/posix-functions/unlockpt.texi: Likewise.
10452         * doc/posix-functions/lgamma.texi: Likewise.
10453         * doc/posix-functions/nextafter.texi: Likewise.
10454         * doc/posix-functions/remainder.texi: Likewise.
10455         * doc/posix-functions/select.texi: Mention misplaced declaration on
10456         IRIX 5.3.
10457         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10458
10459 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
10460
10461         gitlog-to-changelog: fix git-log invocation.
10462         git-log mishandles date strings before 1970-01-01 UTC, and there is
10463         no use to specify --since=1970-01-01 by default anyway.
10464         * build-aux/gitlog-to-changelog: By default, when no --since option
10465         was given, do not specify explicit --since option to git-log.
10466
10467 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
10468
10469         gitlog-to-changelog: new option --append-dot.
10470         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
10471         first non-blank line of each commit message terminated with a dot.
10472
10473 2011-10-30  Bruno Haible  <bruno@clisp.org>
10474
10475         ffsl, ffsll: Avoid compilation error due to 'restrict'.
10476         * lib/ffsl.h: Include <config.h>.
10477         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
10478
10479 2011-10-30  Jim Meyering  <meyering@redhat.com>
10480
10481         GNUmakefile: reenable "make syntax-check" for most projects
10482         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
10483         build-aux variable", "syntax-check" would do nothing but succeed with
10484         the "No version control files detected..." diagnostic (unless you
10485         happened to override _build-aux via cfg.mk).
10486         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
10487         to precede inclusion of maint.mk.  Otherwise, these variables would
10488         be used undefined in any project that does not override the default.
10489
10490 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
10491
10492         gitlog-to-changelog: treat a message with only blank lines as empty.
10493         * build-aux/gitlog-to-changelog: Move the code that removes leading and
10494         trailing blank lines before the code that issues a warning about an
10495         empty commit message.
10496
10497 2011-10-30  Jim Meyering  <meyering@redhat.com>
10498
10499         test-parse-datetime.c: avoid new DST-related false positive test failure
10500         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
10501         based on the time/date we'll convert, not the current time.
10502         Otherwise, the moment we cross a DST boundary like today's in
10503         Europe, (CEST to CET), that offset ends up being one hour off.
10504
10505 2011-10-27  Bruno Haible  <bruno@clisp.org>
10506
10507         fstat: Tweak documentation.
10508         * modules/fstat (Description): More precise description.
10509
10510 2011-10-27  Bruno Haible  <bruno@clisp.org>
10511
10512         Update documentation regarding 'largefile' module.
10513         * doc/posix-functions/fstat.texi: Tweak wording.
10514         * doc/posix-functions/opendir.texi: Mention that the module fixes the
10515         problems with huge directories and/or small ino_t types.
10516         * doc/posix-functions/readdir.texi: Likewise.
10517         * doc/posix-functions/rewinddir.texi: Likewise.
10518
10519 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
10520
10521         maint.mk: don't maintain a second build-aux variable.
10522         * maint.mk (build_aux): Removed.  The maintainer-makefile module
10523         depends on GNUmakefile, which already maintains a cfg.mk
10524         overridable $(_build-aux) for projects with a non-standard
10525         build-aux directory location, although without the $(srcdir)
10526         prefix.  Use that variable consistently instead of introducing a
10527         second one.  Adjust all call sites.
10528
10529 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
10530
10531         Add stdalign module and use it in other modules.
10532         This is based on a previous proposal by Bruno Haible
10533         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
10534
10535         stdalign: new module
10536         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
10537         * modules/stdalign: New files.
10538         * MODULES.html.sh (c1x_core_properties): Add stdalign.
10539         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
10540
10541         stdalign-tests: new module
10542         * modules/stdalign-tests, tests/test-stdalign.c: New files.
10543
10544         argp: use stdalign
10545         * lib/argp-parse.c: Include <stdalign.h>.
10546         (alignof): Remove.
10547         * modules/argp (Depends-on): Add stdalign.
10548
10549         crypto libraries: use stdalign
10550         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
10551         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
10552         Do not include <stdlib.h> twice, in md4.c.
10553         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
10554         because we are accessing a pointer's bit-pattern, not a size.
10555         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
10556         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
10557         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
10558         * modules/crypto/sha512: Likewise.
10559
10560         sys_socket: use stdalign, not alignof
10561         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
10562         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
10563
10564 2011-10-27  Bruno Haible  <bruno@clisp.org>
10565
10566         raise test: Avoid a test failure on Linux/MIPS.
10567         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
10568         because 99 is a valid signal on Linux/MIPS.
10569
10570 2011-10-27  Bruno Haible  <bruno@clisp.org>
10571
10572         nonblocking tests: Fix test failure on Linux/MIPS.
10573         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
10574         Set to 270000.
10575
10576 2011-10-27  Bruno Haible  <bruno@clisp.org>
10577
10578         utimensat: Work around problem on Linux/hppa.
10579         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
10580         values.
10581         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
10582
10583 2011-10-25  Jim Meyering  <meyering@redhat.com>
10584
10585         maint.mk: fix a bug in sc_prohibit_stddef_without_use
10586         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
10587         after symbols like NULL, size_t, etc.
10588         Reported by Alfred M. Szmidt.
10589
10590         maint.mk: exempt ENODATA from a syntax-check rule
10591         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
10592         from the sc_prohibit_always-defined_macros syntax-check rule.
10593         Add a comment.  See this for more details:
10594         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
10595
10596 2011-10-23  Jim Meyering  <meyering@redhat.com>
10597
10598         fts: close parent dir FD before returning from post-traversal fts_read
10599         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
10600         unlink A, even though an FD open on A remained.  This is suboptimal
10601         (holding a file descriptor open longer than needed), but otherwise not
10602         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
10603         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
10604         that represents a real problem: it causes the removal of A to fail
10605         with e.g., "rm: cannot remove `A': Device or resource busy"
10606
10607         fts visits each directory twice and keeps a cache (fts_fd_ring) of
10608         directory file descriptors.  After completing the final, FTS_DP,
10609         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
10610         cache, but then proceeded to add a new FD to it via the subsequent
10611         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
10612         final file descriptor would be closed only via fts_close's call to
10613         fd_ring_clear.  Now, it is usually closed earlier, via the final
10614         FTS_DP-returning fts_read call.
10615         * lib/fts.c (restore_initial_cwd): New function, converted from
10616         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
10617         Update callers.
10618         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
10619         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
10620
10621 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
10622             Bruno Haible  <bruno@clisp.org>
10623             Jim Meyering  <jim@meyering.net>
10624
10625         readme-release: improve safety of release prep instructions.
10626         * README-release: Don't git pull all branches when only master
10627         is needed for the release process.
10628         Run make maintainer-clean before changing trees and merging.
10629         Don't try to run ./configure right after git pull in case files
10630         that influence the bootstrap process have changed, move the
10631         ./configure step to after running ./bootstrap.
10632         Don't bootstrap "one last time"... it's the first time!
10633
10634 2011-10-22  Bruno Haible  <bruno@clisp.org>
10635
10636         errno, strerror-override: Support for MSVC 10.
10637         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
10638         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
10639         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
10640         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
10641         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
10642         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
10643         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
10644         Assign values compatible with MSVC 10.
10645         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
10646         New macros.
10647         (GNULIB_defined_EWINSOCK): New macro.
10648         * lib/strerror-override.c (strerror_override): Update accordingly.
10649         * lib/strerror-override.h: Likewise.
10650         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
10651         longer equal to the corresponding errno value.
10652         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10653
10654 2011-10-22  Bruno Haible  <bruno@clisp.org>
10655
10656         perror: Recognize when test program crashes.
10657         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
10658         strerror, set gl_cv_func_perror_works to no.
10659         Reported by Daniel Richard G. <skunk@iskunk.org>.
10660
10661         perror: Fix indentation.
10662         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
10663
10664 2011-10-22  Bruno Haible  <bruno@clisp.org>
10665
10666         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
10667         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
10668         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
10669         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
10670         functions, not as a macro.
10671         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
10672         macros.
10673         (isfinite, isinf, isnan, signbit): Check overloaded functions and
10674         absence of macro.
10675         Suggested by Eric Blake.
10676         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
10677
10678 2011-10-21  Bruno Haible  <bruno@clisp.org>
10679
10680         relocatable-prog-wrapper: Don't leave object files behind.
10681         * build-aux/install-reloc: Re-synchronize list of .o files to be
10682         removed with list of compilation units.
10683
10684 2011-10-20  Bruno Haible  <bruno@clisp.org>
10685
10686         openpty, posix_openpt: Remove code duplication.
10687         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
10688         * lib/openpty.c: Include <stdlib.h>.
10689         (openpty): Use posix_openpt on all platforms except IRIX.
10690         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
10691
10692 2011-10-20  Bruno Haible  <bruno@clisp.org>
10693
10694         unlockpt: Detect invalid argument.
10695         * lib/unlockpt.c: Include <fcntl.h>.
10696         (unlockpt): Check whether fd is valid, using fcntl().
10697         * modules/unlockpt (Depends-on): Add fcntl-h.
10698
10699 2011-10-20  Bruno Haible  <bruno@clisp.org>
10700
10701         openpty: Avoid compilation error on AIX 6.1.
10702         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
10703
10704 2011-10-20  Bruno Haible  <bruno@clisp.org>
10705
10706         posix_openpt: Support for OpenBSD.
10707         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
10708         (posix_openpt) [OpenBSD]: New code.
10709         * lib/grantpt.c: Include <fcntl.h>.
10710         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
10711         * modules/grantpt (Depends-on): Add fcntl-h.
10712
10713 2011-10-20  Bruno Haible  <bruno@clisp.org>
10714
10715         posix_openpt test: Coding style.
10716         * tests/test-posix_openpt.c: Use GNU coding style.
10717
10718 2011-10-20  Bruno Haible  <bruno@clisp.org>
10719
10720         grantpt: Support --avoid=pt_chown.
10721         * modules/grantpt (Files): Add lib/pty-private.h.
10722
10723 2011-10-20  Bruno Haible  <bruno@clisp.org>
10724
10725         posix_openpt: Fix autoconf macro.
10726         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
10727         unneeded check for _getpty.
10728
10729 2011-10-20  Bruno Haible  <bruno@clisp.org>
10730
10731         openpty: Update comments.
10732         * lib/openpty.c: Add comments about Minix.
10733
10734 2011-10-19  Eric Blake  <eblake@redhat.com>
10735
10736         openpty: relax license
10737         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
10738
10739         pt_chown: use configmake to simplify build
10740         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
10741
10742         ptsname and others: relax license
10743         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
10744         * modules/unlockpt (License): Likewise.
10745         * modules/pt_chown (License): Likewise.
10746         * modules/ptsname (License): Likewise.
10747         * modules/ttyname_r (License): Likewise.
10748
10749 2011-10-19  Jim Meyering  <meyering@redhat.com>
10750
10751         posix_openpt: remove spurious #endif
10752         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
10753
10754 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
10755
10756         maint.mk: Respect $(build_aux) in web-manual rule.
10757         * top/maint.mk (web-manual): Find gen-announce script in user's
10758         $(build_aux) directory instead of hard-coding 'build-aux'.
10759
10760 2011-10-19  Bruno Haible  <bruno@clisp.org>
10761
10762         posix_openpt: Fix compilation error.
10763         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
10764         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
10765         Mention the openpty module as an alternative.
10766
10767 2011-10-19  Bruno Haible  <bruno@clisp.org>
10768
10769         Support for old NeXTstep 3.3 frexp().
10770         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
10771         execution time of the test to 5 seconds.
10772         Reported by Daniel Richard G. <skunk@iskunk.org>.
10773
10774 2011-10-19  Bruno Haible  <bruno@clisp.org>
10775
10776         Support for old NeXTstep 3.3 sed.
10777         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
10778         part, use /.../, not \|...|. Escape periods in the header file name.
10779         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
10780         Reported by Daniel Richard G. <skunk@iskunk.org>.
10781
10782 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10783
10784         Support for old NeXTstep 3.3 gcc.
10785         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
10786         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
10787         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
10788         * lib/spawn.in.h (_Restrict_arr_): Likewise.
10789         * lib/regex.h (_Restrict_arr_): Likewise.
10790         * lib/regex_internal.h (re_token_t): Likewise.
10791         * lib/regexec.c (check_node_accept_bytes): Likewise.
10792         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
10793
10794 2011-10-18  Eric Blake  <eblake@redhat.com>
10795
10796         posix_openpt: new module
10797         * modules/posix_openpt: New module.
10798         * m4/posix_openpt.m4: New file.
10799         * lib/posix_openpt.c: Likewise.
10800         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
10801         (gl_STDLIB_H_DEFAULTS): Set defaults.
10802         * modules/stdlib (Makefile.am): Substitute macros.
10803         * lib/stdlib.in.h (posix_openpt): Declare.
10804         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
10805         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
10806         * modules/posix_openpt-tests: New test module.
10807         * tests/test-posix_openpt.c: New test.
10808
10809 2011-10-15  Bruno Haible  <bruno@clisp.org>
10810
10811         xstrtoll: Fix compilation failure.
10812         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10813         from lib/strtol.c.
10814         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10815         some platforms.
10816         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10817
10818 2011-10-15  Bruno Haible  <bruno@clisp.org>
10819
10820         vasnprintf: Optimize bit search operation.
10821         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10822         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10823         gl_DOUBLE_EXPONENT_LOCATION.
10824         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10825         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10826         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10827         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10828         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10829         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10830         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10831         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10832         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10833
10834 2011-10-15  Bruno Haible  <bruno@clisp.org>
10835
10836         vasnprintf: Fix comments.
10837         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10838
10839 2011-10-14  Bruno Haible  <bruno@clisp.org>
10840
10841         Tests for module 'integer_length_ll'.
10842         * modules/integer_length_ll-tests: New file.
10843         * tests/test-integer_length_ll.c: New file.
10844
10845         New module 'integer_length_ll'.
10846         * lib/integer_length_ll.c: New file.
10847         * modules/integer_length_ll: New file.
10848
10849 2011-10-14  Bruno Haible  <bruno@clisp.org>
10850
10851         Tests for module 'integer_length_l'.
10852         * modules/integer_length_l-tests: New file.
10853         * tests/test-integer_length_l.c: New file.
10854
10855         New module 'integer_length_l'.
10856         * lib/integer_length_l.c: New file.
10857         * modules/integer_length_l: New file.
10858
10859 2011-10-14  Bruno Haible  <bruno@clisp.org>
10860
10861         Tests for module 'integer_length'.
10862         * modules/integer_length-tests: New file.
10863         * tests/test-integer_length.c: New file.
10864
10865         New module 'integer_length'.
10866         * lib/integer_length.h: New file.
10867         * lib/integer_length.c: New file.
10868         * modules/integer_length: New file.
10869
10870 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10871
10872         popen: Fix dependency conditions.
10873         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10874
10875 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10876
10877         perror: Fix autoconf test.
10878         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10879         <stdlib.h> and <string.h>.
10880
10881 2011-10-14  Bruno Haible  <bruno@clisp.org>
10882
10883         ffsl: Optimize on 64-bit platforms.
10884         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10885         unrolling.
10886
10887 2011-10-13  Bruno Haible  <bruno@clisp.org>
10888
10889         ffsl: Optimize on 32-bit platforms.
10890         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10891         use ffs() without a loop.
10892
10893         ffsl, ffsll: Optimize for GCC.
10894         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10895         * lib/ffsl.c (GCC_BUILTIN): New macro.
10896         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10897
10898 2011-10-13  Bruno Haible  <bruno@clisp.org>
10899
10900         ffs, bcopy, memset: Support symbol renaming via config.h.
10901         * lib/ffs.c: Include <config.h>.
10902         * lib/bcopy.c: Likewise.
10903         * lib/memset.c: Likewise.
10904
10905 2011-10-10  Bruno Haible  <bruno@clisp.org>
10906
10907         atanl: Simplify for platforms where 'long double' == 'double'.
10908         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10909         alternative implementation.
10910         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10911         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10912         * modules/atanl (Depends-on): Add atan. Update conditions.
10913
10914 2011-10-10  Bruno Haible  <bruno@clisp.org>
10915
10916         acosl: Simplify for platforms where 'long double' == 'double'.
10917         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10918         alternative implementation.
10919         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10920         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10921         * modules/acosl (Depends-on): Add acos. Update conditions.
10922
10923 2011-10-10  Bruno Haible  <bruno@clisp.org>
10924
10925         asinl: Simplify for platforms where 'long double' == 'double'.
10926         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10927         alternative implementation.
10928         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10929         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10930         * modules/asinl (Depends-on): Add asin. Update conditions.
10931
10932 2011-10-10  Bruno Haible  <bruno@clisp.org>
10933
10934         tanl: Simplify for platforms where 'long double' == 'double'.
10935         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10936         implementation.
10937         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10938         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10939         * modules/tanl (Depends-on): Add tan. Update conditions.
10940         (configure.ac): Don't compile trigl.c if
10941         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10942
10943 2011-10-10  Bruno Haible  <bruno@clisp.org>
10944
10945         cosl: Simplify for platforms where 'long double' == 'double'.
10946         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10947         implementation.
10948         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10949         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10950         * modules/cosl (Depends-on): Add cos. Update conditions.
10951         (configure.ac): Don't compile sincosl.c and trigl.c if
10952         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10953
10954 2011-10-10  Bruno Haible  <bruno@clisp.org>
10955
10956         sinl: Simplify for platforms where 'long double' == 'double'.
10957         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10958         implementation.
10959         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10960         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10961         * modules/sinl (Depends-on): Add sin. Update conditions.
10962         (configure.ac): Don't compile sincosl.c and trigl.c if
10963         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10964
10965 2011-10-10  Bruno Haible  <bruno@clisp.org>
10966
10967         logl: Simplify for platforms where 'long double' == 'double'.
10968         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10969         implementation.
10970         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10971         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10972         * modules/logl (Depends-on): Add log. Update conditions.
10973
10974 2011-10-10  Bruno Haible  <bruno@clisp.org>
10975
10976         expl: Simplify for platforms where 'long double' == 'double'.
10977         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10978         implementation.
10979         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10980         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10981         * modules/expl (Depends-on): Add exp. Update conditions.
10982
10983 2011-10-10  Bruno Haible  <bruno@clisp.org>
10984
10985         sqrtl: Simplify for platforms where 'long double' == 'double'.
10986         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10987         alternative implementation.
10988         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10989         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10990         * modules/sqrtl (Depends-on): Update conditions.
10991
10992 2011-10-10  Bruno Haible  <bruno@clisp.org>
10993
10994         ldexpl: Simplify for platforms where 'long double' == 'double'.
10995         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10996         alternative implementation.
10997         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10998         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10999         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
11000
11001 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
11002
11003         ffsll: set correct witness
11004         * modules/ffsll (configure.ac): Fix typo.
11005
11006 2011-10-10  Bruno Haible  <bruno@clisp.org>
11007
11008         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
11009         * lib/printf-frexpl.c: Include <config.h>.
11010         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11011         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
11012         second time.
11013         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
11014         gl_LONG_DOUBLE_VS_DOUBLE.
11015         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
11016         conditions.
11017
11018 2011-10-10  Bruno Haible  <bruno@clisp.org>
11019
11020         frexpl: Simplify for platforms where 'long double' == 'double'.
11021         * lib/frexpl.c: Include <config.h>.
11022         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11023         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11024         time.
11025         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11026         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11027         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
11028         * modules/frexpl (Depends-on): Add frexp. Update conditions.
11029         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
11030         conditions.
11031
11032 2011-10-10  Jim Meyering  <meyering@redhat.com>
11033
11034         test-renameat: don't leave behind a temporary file
11035         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
11036           ERROR: files left in build directory after distclean:
11037           ./gltests/test-renameat.too
11038           make[1]: *** [distcleancheck] Error 1
11039         Reported by Tom G. Christensen.
11040
11041 2011-10-09  Bruno Haible  <bruno@clisp.org>
11042
11043         rint: Determine RINT_LIBM correctly on AIX 7.
11044         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
11045         directly, not only through a function pointer. Also accept an optional
11046         4th argument with extra code.
11047         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
11048         rintf() call by gcc when optimizing.
11049
11050         mathfunc.m4: Refactor.
11051         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
11052         m4 variable.
11053
11054 2011-10-09  Bruno Haible  <bruno@clisp.org>
11055
11056         rintl: Simplify for platforms where 'long double' == 'double'.
11057         * lib/rintl.c: Include <config.h>.
11058         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11059         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11060         time.
11061         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11062         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11063         * modules/rintl (Depends-on): Add rint. Update conditions.
11064
11065 2011-10-09  Bruno Haible  <bruno@clisp.org>
11066
11067         roundl: Simplify for platforms where 'long double' == 'double'.
11068         * lib/roundl.c: Include <config.h>.
11069         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11070         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11071         time.
11072         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11073         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11074         * modules/roundl (Depends-on): Add round. Update conditions.
11075
11076 2011-10-09  Bruno Haible  <bruno@clisp.org>
11077
11078         truncl: Simplify for platforms where 'long double' == 'double'.
11079         * lib/truncl.c: Include <config.h>.
11080         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11081         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11082         time.
11083         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11084         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11085         * modules/truncl (Depends-on): Add trunc. Update conditions.
11086
11087 2011-10-09  Bruno Haible  <bruno@clisp.org>
11088
11089         ceill: Simplify for platforms where 'long double' == 'double'.
11090         * lib/ceill.c: Include <config.h>.
11091         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11092         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11093         time.
11094         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11095         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11096         * modules/ceill (Depends-on): Add ceil. Update conditions.
11097
11098 2011-10-09  Bruno Haible  <bruno@clisp.org>
11099
11100         floorl: Simplify for platforms where 'long double' == 'double'.
11101         * lib/floorl.c: Include <config.h>.
11102         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
11103         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
11104         time.
11105         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11106         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11107         * modules/floorl (Depends-on): Add floor. Update conditions.
11108
11109 2011-10-09  Bruno Haible  <bruno@clisp.org>
11110
11111         rint: Fix ordering constraints.
11112         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
11113         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
11114         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
11115
11116 2011-10-09  Bruno Haible  <bruno@clisp.org>
11117
11118         copysignl: Simplify for platforms where 'long double' == 'double'.
11119         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
11120         alternative.
11121         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11122         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
11123         * modules/copysignl (Depends-on): Add copysign. Update conditions.
11124
11125 2011-10-09  Bruno Haible  <bruno@clisp.org>
11126
11127         Tests for module 'rintl'.
11128         * modules/rintl-tests: New file.
11129         * tests/test-rintl.c: New file.
11130
11131         New module 'rintl'.
11132         * lib/math.in.h (rintl): New declaration.
11133         * lib/rintl.c: New file.
11134         * m4/rintl.m4: New file.
11135         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
11136         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
11137         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
11138         * modules/rintl: New file.
11139         * tests/test-math-c++.cc: Check the declaration of rintl.
11140         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11141         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
11142         * doc/posix-functions/rintl.texi: Mention the new module.
11143
11144 2011-10-09  Bruno Haible  <bruno@clisp.org>
11145
11146         Tests for module 'rintf'.
11147         * modules/rintf-tests: New file.
11148         * tests/test-rintf.c: New file.
11149
11150         New module 'rintf'.
11151         * lib/math.in.h (rintf): New declaration.
11152         * lib/rintf.c: New file.
11153         * m4/rintf.m4: New file.
11154         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
11155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
11156         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
11157         * modules/rintf: New file.
11158         * tests/test-math-c++.cc: Check the declaration of rintf.
11159         * doc/posix-functions/rintf.texi: Mention the new module.
11160
11161 2011-10-09  Bruno Haible  <bruno@clisp.org>
11162
11163         rint: Support for MSVC.
11164         * lib/math.in.h (rint): New declaration.
11165         * lib/rint.c: New file.
11166         * m4/rint.m4: New file.
11167         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
11168         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
11169         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
11170         * modules/rint (Description): Fix.
11171         (Files): Add lib/rint.c, m4/rint.m4.
11172         (Depends-on): Add math.
11173         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
11174         gl_MATH_MODULE_INDICATOR.
11175         * tests/test-math-c++.cc: Check the declaration of rint.
11176         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11177         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
11178         * doc/posix-functions/rint.texi: Mention the replacement provided by
11179         the module.
11180
11181         rint tests: More tests.
11182         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
11183         minus-zero.h, infinity.h, nan.h.
11184         (main): Skip the test if the current rounding mode is not standard. Add
11185         tests for negative numbers, minus zero, infinity, NaN.
11186         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
11187         tests/nan.h.
11188         (Depends-on): Add isnand-nolibm.
11189
11190 2011-10-09  Bruno Haible  <bruno@clisp.org>
11191
11192         Tests for module 'copysignl'.
11193         * modules/copysignl-tests: New file.
11194         * tests/test-copysignl.c: New file.
11195
11196         New module 'copysignl'.
11197         * lib/math.in.h (copysignl): New declaration.
11198         * lib/copysignl.c: New file.
11199         * m4/copysignl.m4: New file.
11200         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
11201         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
11202         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
11203         HAVE_COPYSIGNL.
11204         * modules/copysignl: New file.
11205         * tests/test-math-c++.cc: Check the declaration of copysignl.
11206         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
11207         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
11208         * doc/posix-functions/copysignl.texi: Mention the new module.
11209
11210 2011-10-09  Bruno Haible  <bruno@clisp.org>
11211
11212         Tests for module 'copysignf'.
11213         * modules/copysignf-tests: New file.
11214         * tests/test-copysignf.c: New file.
11215
11216         New module 'copysignf'.
11217         * lib/math.in.h (copysignf): New declaration.
11218         * lib/copysignf.c: New file.
11219         * m4/copysignf.m4: New file.
11220         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
11221         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
11222         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
11223         HAVE_COPYSIGNF.
11224         * modules/copysignf: New file.
11225         * tests/test-math-c++.cc: Check the declaration of copysignf.
11226         * doc/posix-functions/copysignf.texi: Mention the new module.
11227
11228 2011-10-09  Bruno Haible  <bruno@clisp.org>
11229
11230         Ensure that HAVE_* variables are set to 1 before they are set to 0.
11231         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
11232         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
11233         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11234         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
11235         gl_SIGNAL_H_DEFAULTS.
11236
11237 2011-10-09  Bruno Haible  <bruno@clisp.org>
11238
11239         poll: Make macro safer.
11240         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
11241         ac_cv_header_poll_h is not set.
11242
11243 2011-10-09  Bruno Haible  <bruno@clisp.org>
11244
11245         copysign: Provide replacement.
11246         * lib/math.in.h (copysign): New declaration.
11247         * lib/copysign.c: New file.
11248         * m4/copysign.m4: New file.
11249         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
11250         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
11251         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
11252         HAVE_COPYSIGN.
11253         * modules/copysign (Description): Clarify.
11254         (Files): Add lib/copysign.c, m4/copysign.m4.
11255         (Depends-on): Add math, signbit.
11256         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
11257         gl_MATH_MODULE_INDICATOR.
11258         * tests/test-math-c++.cc: Check the declaration of copysign.
11259         * doc/posix-functions/copysign.texi: Mention the effects of the module
11260         on Minix and MSVC.
11261
11262 2011-10-09  Bruno Haible  <bruno@clisp.org>
11263
11264         isinf: Ensure macro on AIX 5.1.
11265         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
11266         macro.
11267         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
11268
11269 2011-10-09  Bruno Haible  <bruno@clisp.org>
11270
11271         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
11272         * modules/snprintf-posix-tests (configure.ac): Require
11273         gl_LONG_DOUBLE_VS_DOUBLE.
11274         * modules/sprintf-posix-tests (configure.ac): Likewise.
11275         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
11276         * modules/vasprintf-posix-tests (configure.ac): Likewise.
11277         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
11278         * modules/vsprintf-posix-tests (configure.ac): Likewise.
11279         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
11280         tests on platforms where 'long double' is the same as 'double'.
11281         * tests/test-sprintf-posix.h (test_function): Likewise.
11282         * tests/test-vasnprintf-posix.c (test_function): Likewise.
11283         * tests/test-vasprintf-posix.c (test_function): Likewise.
11284
11285         *printf: Fix for platforms where 'long double' == 'double'.
11286         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
11287         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
11288         * modules/dprintf-posix (Files): Add m4/math_h.m4.
11289         * modules/fprintf-posix (Files): Likewise.
11290         * modules/obstack-printf-posix (Files): Likewise.
11291         * modules/snprintf-posix (Files): Likewise.
11292         * modules/sprintf-posix (Files): Likewise.
11293         * modules/vasnprintf (Files): Likewise.
11294         * modules/vasnprintf-posix (Files): Likewise.
11295         * modules/vasprintf-posix (Files): Likewise.
11296         * modules/vdprintf-posix (Files): Likewise.
11297         * modules/vfprintf-posix (Files): Likewise.
11298         * modules/vsnprintf-posix (Files): Likewise.
11299         * modules/vsprintf-posix (Files): Likewise.
11300         * modules/unistdio/u8-vasnprintf (Files): Likewise.
11301         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
11302         * modules/unistdio/u16-vasnprintf (Files): Likewise.
11303         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
11304         * modules/unistdio/u32-vasnprintf (Files): Likewise.
11305         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
11306         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
11307
11308         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
11309         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
11310         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
11311         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
11312         'long double'.
11313         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
11314
11315         isinf: Fix for platforms where 'long double' == 'double'.
11316         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11317         Don't blindly assume 80-bit 'long double'.
11318
11319         isfinite: Fix for platforms where 'long double' == 'double'.
11320         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
11321         Don't blindly assume 80-bit 'long double'.
11322
11323         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
11324         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
11325         * modules/isfinite-tests (configure.ac): Require
11326         gl_LONG_DOUBLE_VS_DOUBLE.
11327         * modules/isinf-tests (configure.ac): Likewise.
11328         * modules/isnan-tests (configure.ac): Likewise.
11329         * modules/isnanl-tests (configure.ac): Likewise.
11330         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
11331         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
11332         tests on platforms where 'long double' is the same as 'double'.
11333         * tests/test-isinf.c (test_isinfl): Likewise.
11334         * tests/test-isnan.c (test_long_double): Likewise.
11335         * tests/test-isnanl.h (main): Likewise.
11336
11337 2011-10-08  Bruno Haible  <bruno@clisp.org>
11338
11339         Tests for module 'tanhf'.
11340         * modules/tanhf-tests: New file.
11341         * tests/test-tanhf.c: New file.
11342
11343         New module 'tanhf'.
11344         * lib/math.in.h (tanhf): New declaration.
11345         * lib/tanhf.c: New file.
11346         * m4/tanhf.m4: New file.
11347         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
11348         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
11349         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
11350         * modules/tanhf: New file.
11351         * tests/test-math-c++.cc: Check the declaration of tanhf.
11352         * doc/posix-functions/tanhf.texi: Mention the new module.
11353
11354         tanh: Use a .m4 file.
11355         * m4/tanh.m4: New file.
11356         * modules/tanh (Files): Add it.
11357         (configure.ac): Just invoke gl_FUNC_TANH.
11358
11359 2011-10-08  Bruno Haible  <bruno@clisp.org>
11360
11361         Tests for module 'coshf'.
11362         * modules/coshf-tests: New file.
11363         * tests/test-coshf.c: New file.
11364
11365         New module 'coshf'.
11366         * lib/math.in.h (coshf): New declaration.
11367         * lib/coshf.c: New file.
11368         * m4/coshf.m4: New file.
11369         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
11370         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
11371         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
11372         * modules/coshf: New file.
11373         * tests/test-math-c++.cc: Check the declaration of coshf.
11374         * doc/posix-functions/coshf.texi: Mention the new module.
11375
11376         cosh: Use a .m4 file.
11377         * m4/cosh.m4: New file.
11378         * modules/cosh (Files): Add it.
11379         (configure.ac): Just invoke gl_FUNC_COSH.
11380
11381 2011-10-08  Bruno Haible  <bruno@clisp.org>
11382
11383         Tests for module 'sinhf'.
11384         * modules/sinhf-tests: New file.
11385         * tests/test-sinhf.c: New file.
11386
11387         New module 'sinhf'.
11388         * lib/math.in.h (sinhf): New declaration.
11389         * lib/sinhf.c: New file.
11390         * m4/sinhf.m4: New file.
11391         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
11392         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
11393         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
11394         * modules/sinhf: New file.
11395         * tests/test-math-c++.cc: Check the declaration of sinhf.
11396         * doc/posix-functions/sinhf.texi: Mention the new module.
11397
11398         sinh: Use a .m4 file.
11399         * m4/sinh.m4: New file.
11400         * modules/sinh (Files): Add it.
11401         (configure.ac): Just invoke gl_FUNC_SINH.
11402
11403 2011-10-08  Bruno Haible  <bruno@clisp.org>
11404
11405         Tests for module 'atan2f'.
11406         * modules/atan2f-tests: New file.
11407         * tests/test-atan2f.c: New file.
11408
11409         New module 'atan2f'.
11410         * lib/math.in.h (atan2f): New declaration.
11411         * lib/atan2f.c: New file.
11412         * m4/atan2f.m4: New file.
11413         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
11414         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
11415         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
11416         * modules/atan2f: New file.
11417         * tests/test-math-c++.cc: Check the declaration of atan2f.
11418         * doc/posix-functions/atan2f.texi: Mention the new module.
11419
11420         atan2: Use a .m4 file.
11421         * m4/atan2.m4: New file.
11422         * modules/atan2 (Files): Add it.
11423         (configure.ac): Just invoke gl_FUNC_ATAN2.
11424
11425 2011-10-08  Bruno Haible  <bruno@clisp.org>
11426
11427         Tests for module 'atanf'.
11428         * modules/atanf-tests: New file.
11429         * tests/test-atanf.c: New file.
11430
11431         New module 'atanf'.
11432         * lib/math.in.h (atanf): New declaration.
11433         * lib/atanf.c: New file.
11434         * m4/atanf.m4: New file.
11435         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
11436         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
11437         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
11438         * modules/atanf: New file.
11439         * tests/test-math-c++.cc: Check the declaration of atanf.
11440         * doc/posix-functions/atanf.texi: Mention the new module.
11441
11442         atan: Use a .m4 file.
11443         * m4/atan.m4: New file.
11444         * modules/atan (Files): Add it.
11445         (configure.ac): Just invoke gl_FUNC_ATAN.
11446
11447 2011-10-08  Bruno Haible  <bruno@clisp.org>
11448
11449         Tests for module 'acosf'.
11450         * modules/acosf-tests: New file.
11451         * tests/test-acosf.c: New file.
11452
11453         New module 'acosf'.
11454         * lib/math.in.h (acosf): New declaration.
11455         * lib/acosf.c: New file.
11456         * m4/acosf.m4: New file.
11457         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
11458         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
11459         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
11460         * modules/acosf: New file.
11461         * tests/test-math-c++.cc: Check the declaration of acosf.
11462         * doc/posix-functions/acosf.texi: Mention the new module.
11463
11464         acos: Use a .m4 file.
11465         * m4/acos.m4: New file.
11466         * modules/acos (Files): Add it.
11467         (configure.ac): Just invoke gl_FUNC_ACOS.
11468
11469 2011-10-08  Bruno Haible  <bruno@clisp.org>
11470
11471         Tests for module 'asinf'.
11472         * modules/asinf-tests: New file.
11473         * tests/test-asinf.c: New file.
11474
11475         New module 'asinf'.
11476         * lib/math.in.h (asinf): New declaration.
11477         * lib/asinf.c: New file.
11478         * m4/asinf.m4: New file.
11479         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
11480         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
11481         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
11482         * modules/asinf: New file.
11483         * tests/test-math-c++.cc: Check the declaration of asinf.
11484         * doc/posix-functions/asinf.texi: Mention the new module.
11485
11486         asin: Use a .m4 file.
11487         * m4/asin.m4: New file.
11488         * modules/asin (Files): Add it.
11489         (configure.ac): Just invoke gl_FUNC_ASIN.
11490
11491 2011-10-08  Bruno Haible  <bruno@clisp.org>
11492
11493         Tests for module 'tanf'.
11494         * modules/tanf-tests: New file.
11495         * tests/test-tanf.c: New file.
11496
11497         New module 'tanf'.
11498         * lib/math.in.h (tanf): New declaration.
11499         * lib/tanf.c: New file.
11500         * m4/tanf.m4: New file.
11501         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
11502         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
11503         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
11504         * modules/tanf: New file.
11505         * tests/test-math-c++.cc: Check the declaration of tanf.
11506         * doc/posix-functions/tanf.texi: Mention the new module.
11507
11508         tan: Use a .m4 file.
11509         * m4/tan.m4: New file.
11510         * modules/tan (Files): Add it.
11511         (configure.ac): Just invoke gl_FUNC_TAN.
11512
11513 2011-10-08  Bruno Haible  <bruno@clisp.org>
11514
11515         Tests for module 'cosf'.
11516         * modules/cosf-tests: New file.
11517         * tests/test-cosf.c: New file.
11518
11519         New module 'cosf'.
11520         * lib/math.in.h (cosf): New declaration.
11521         * lib/cosf.c: New file.
11522         * m4/cosf.m4: New file.
11523         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
11524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
11525         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
11526         * modules/cosf: New file.
11527         * tests/test-math-c++.cc: Check the declaration of cosf.
11528         * doc/posix-functions/cosf.texi: Mention the new module.
11529
11530         cos: Use a .m4 file.
11531         * m4/cos.m4: New file.
11532         * modules/cos (Files): Add it.
11533         (configure.ac): Just invoke gl_FUNC_COS.
11534
11535 2011-10-08  Bruno Haible  <bruno@clisp.org>
11536
11537         Tests for module 'sinf'.
11538         * modules/sinf-tests: New file.
11539         * tests/test-sinf.c: New file.
11540
11541         New module 'sinf'.
11542         * lib/math.in.h (sinf): New declaration.
11543         * lib/sinf.c: New file.
11544         * m4/sinf.m4: New file.
11545         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
11546         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
11547         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
11548         * modules/sinf: New file.
11549         * tests/test-math-c++.cc: Check the declaration of sinf.
11550         * doc/posix-functions/sinf.texi: Mention the new module.
11551
11552         sin: Use a .m4 file.
11553         * m4/sin.m4: New file.
11554         * modules/sin (Files): Add it.
11555         (configure.ac): Just invoke gl_FUNC_SIN.
11556
11557 2011-10-08  Bruno Haible  <bruno@clisp.org>
11558
11559         Tests for module 'powf'.
11560         * modules/powf-tests: New file.
11561         * tests/test-powf.c: New file.
11562
11563         New module 'powf'.
11564         * lib/math.in.h (powf): New declaration.
11565         * lib/powf.c: New file.
11566         * m4/powf.m4: New file.
11567         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
11568         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
11569         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
11570         * modules/powf: New file.
11571         * tests/test-math-c++.cc: Check the declaration of powf.
11572         * doc/posix-functions/powf.texi: Mention the new module.
11573
11574         pow: Use a .m4 file.
11575         * m4/pow.m4: New file.
11576         * modules/pow (Files): Add it.
11577         (configure.ac): Just invoke gl_FUNC_POW.
11578
11579 2011-10-08  Bruno Haible  <bruno@clisp.org>
11580
11581         Tests for module 'log10f'.
11582         * modules/log10f-tests: New file.
11583         * tests/test-log10f.c: New file.
11584
11585         New module 'log10f'.
11586         * lib/math.in.h (log10f): New declaration.
11587         * lib/log10f.c: New file.
11588         * m4/log10f.m4: New file.
11589         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
11590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
11591         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
11592         * modules/log10f: New file.
11593         * tests/test-math-c++.cc: Check the declaration of log10f.
11594         * doc/posix-functions/log10f.texi: Mention the new module.
11595
11596         log10: Use a .m4 file.
11597         * m4/log10.m4: New file.
11598         * modules/log10 (Files): Add it.
11599         (configure.ac): Just invoke gl_FUNC_LOG10.
11600
11601 2011-10-08  Bruno Haible  <bruno@clisp.org>
11602
11603         Tests for module 'logf'.
11604         * modules/logf-tests: New file.
11605         * tests/test-logf.c: New file.
11606
11607         New module 'logf'.
11608         * lib/math.in.h (logf): New declaration.
11609         * lib/logf.c: New file.
11610         * m4/logf.m4: New file.
11611         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
11612         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
11613         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
11614         * modules/logf: New file.
11615         * tests/test-math-c++.cc: Check the declaration of logf.
11616         * doc/posix-functions/logf.texi: Mention the new module.
11617
11618         log: Use a .m4 file.
11619         * m4/log.m4: New file.
11620         * modules/log (Files): Add it.
11621         (configure.ac): Just invoke gl_FUNC_LOG.
11622
11623 2011-10-08  Bruno Haible  <bruno@clisp.org>
11624
11625         Tests for module 'expf'.
11626         * modules/expf-tests: New file.
11627         * tests/test-expf.c: New file.
11628
11629         New module 'expf'.
11630         * lib/math.in.h (expf): New declaration.
11631         * lib/expf.c: New file.
11632         * m4/expf.m4: New file.
11633         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
11634         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
11635         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
11636         * modules/expf: New file.
11637         * tests/test-math-c++.cc: Check the declaration of expf.
11638         * doc/posix-functions/expf.texi: Mention the new module.
11639
11640         exp: Use a .m4 file.
11641         * m4/exp.m4: New file.
11642         * modules/exp (Files): Add it.
11643         (configure.ac): Just invoke gl_FUNC_EXP.
11644
11645 2011-10-08  Bruno Haible  <bruno@clisp.org>
11646
11647         Tests for module 'sqrtf'.
11648         * modules/sqrtf-tests: New file.
11649         * tests/test-sqrtf.c: New file.
11650
11651         New module 'sqrtf'.
11652         * lib/math.in.h (sqrtf): New declaration.
11653         * lib/sqrtf.c: New file.
11654         * m4/sqrtf.m4: New file.
11655         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
11656         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
11657         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
11658         * modules/sqrtf: New file.
11659         * tests/test-math-c++.cc: Check the declaration of sqrtf.
11660         * doc/posix-functions/sqrtf.texi: Mention the new module.
11661
11662 2011-10-08  Bruno Haible  <bruno@clisp.org>
11663
11664         Tests: Avoid link failures w.r.t. libintl.
11665         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
11666         $(LIBINTL).
11667         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
11668         $(LIBINTL).
11669         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
11670         against $(LIBINTL).
11671         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
11672         $(LIBINTL).
11673         * modules/openat-tests (Makefile.am): Link test-fchmodat against
11674         $(LIBINTL).
11675         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
11676
11677 2011-10-08  Bruno Haible  <bruno@clisp.org>
11678
11679         pow tests: Defeat compiler optimizations.
11680         * tests/test-pow.c (main): Assign arguments to x and y before use.
11681
11682 2011-10-08  Bruno Haible  <bruno@clisp.org>
11683
11684         gnulib-tool: Improve last commit.
11685         * gnulib-tool (func_modules_transitive_closure): Simplify code.
11686         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
11687         ignore dependencies that are not among the modules list.
11688
11689 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
11690
11691         gnulib-tool: don't follow dependencies to avoided modules
11692         This fixes a bug that is related to the previous one.
11693         * gnulib-tool (func_modules_transitive_closure)
11694         (func_emit_autoconf_snippets):
11695         Check whether a dependency is acceptable before using it.
11696         (--extract-dependencies): Report an error if --avoid is also used,
11697         since this combination of options is not yet supported.
11698
11699         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
11700         Problem reported by Peter Dyballa in
11701         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
11702         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
11703         when echoing "$condition".
11704
11705 2011-10-07  Bruno Haible  <bruno@clisp.org>
11706
11707         Fix documentation about math functions on MacOS X.
11708         * doc/posix-functions/exp2.texi: Don't say the function is missing on
11709         MacOS X 10.5.
11710         * doc/posix-functions/fdim.texi: Likewise.
11711         * doc/posix-functions/feclearexcept.texi: Likewise.
11712         * doc/posix-functions/fegetenv.texi: Likewise.
11713         * doc/posix-functions/fegetround.texi: Likewise.
11714         * doc/posix-functions/feholdexcept.texi: Likewise.
11715         * doc/posix-functions/feraiseexcept.texi: Likewise.
11716         * doc/posix-functions/fesetenv.texi: Likewise.
11717         * doc/posix-functions/fesetround.texi: Likewise.
11718         * doc/posix-functions/fetestexcept.texi: Likewise.
11719         * doc/posix-functions/feupdateenv.texi: Likewise.
11720         * doc/posix-functions/fmax.texi: Likewise.
11721         * doc/posix-functions/fmin.texi: Likewise.
11722         * doc/posix-functions/log2.texi: Likewise.
11723         * doc/posix-functions/modff.texi: Likewise.
11724         * doc/posix-functions/nan.texi: Likewise.
11725         * doc/posix-functions/nanf.texi: Likewise.
11726         * doc/posix-functions/nextafterf.texi: Likewise.
11727         * doc/posix-functions/remquo.texi: Likewise.
11728
11729 2011-10-07  Bruno Haible  <bruno@clisp.org>
11730
11731         modff: Drop assumption about library that defines modff.
11732         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
11733         AC_CHECK_FUNCS.
11734         * modules/modff (Files): Add m4/mathfunc.m4.
11735
11736 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
11737
11738         raise tests: Avoid a GCC warning.
11739         * tests/test-raise.c (handler): Use _Noreturn.
11740
11741 2011-10-07  Bruno Haible  <bruno@clisp.org>
11742
11743         Tests for module 'ldexpf'.
11744         * modules/ldexpf-tests: New file.
11745         * tests/test-ldexpf.c: New file.
11746
11747         New module 'ldexpf'.
11748         * lib/math.in.h (ldexpf): New declaration.
11749         * lib/ldexpf.c: New file.
11750         * m4/ldexpf.m4: New file.
11751         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
11752         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
11753         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
11754         * modules/ldexpf: New file.
11755         * tests/test-math-c++.cc: Check the declaration of ldexpf.
11756         * doc/posix-functions/ldexpf.texi: Mention the new module.
11757
11758 2011-10-06  Bruno Haible  <bruno@clisp.org>
11759
11760         frexpf: Work around problems on IRIX and mingw.
11761         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
11762         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
11763         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
11764         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
11765         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
11766         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
11767         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
11768
11769 2011-10-06  Bruno Haible  <bruno@clisp.org>
11770
11771         fabsf: Drop assumption about library that defines fabsf.
11772         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
11773         AC_CHECK_FUNCS.
11774         * modules/fabsf (Files): Add m4/mathfunc.m4.
11775
11776 2011-10-06  Bruno Haible  <bruno@clisp.org>
11777
11778         frexpf: Drop assumption about library that defines frexpf.
11779         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
11780         'int *', 'float *', 'long double *', 'float', 'long double'.
11781         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
11782         AC_CHECK_FUNCS.
11783         * modules/frexpf (Files): Add m4/mathfunc.m4.
11784
11785         Tests for module 'frexpf'.
11786         * modules/frexpf-tests: New file.
11787         * tests/test-frexpf.c: New file.
11788
11789         New module 'frexpf'.
11790         * lib/math.in.h (frexpf): New declaration.
11791         * lib/frexpf.c: New file.
11792         * m4/frexpf.m4: New file.
11793         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
11794         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
11795         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
11796         * modules/frexpf: New file.
11797         * tests/test-math-c++.cc: Check the declaration of frexpf.
11798         * doc/posix-functions/frexpf.texi: Mention the new module.
11799
11800 2011-10-06  Bruno Haible  <bruno@clisp.org>
11801
11802         math: Sort function declarations of math.in.h.
11803         * lib/math.in.h (frexp, logb): Move declarations.
11804
11805 2011-10-05  Bruno Haible  <bruno@clisp.org>
11806
11807         Tests for module 'modff'.
11808         * modules/modff-tests: New file.
11809         * tests/test-modff.c: New file.
11810
11811         New module 'modff'.
11812         * lib/math.in.h (modff): New declaration.
11813         * lib/modff.c: New file.
11814         * m4/modff.m4: New file.
11815         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11817         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11818         * modules/modff: New file.
11819         * tests/test-math-c++.cc: Check the declaration of modff.
11820         * doc/posix-functions/modff.texi: Mention the new module.
11821
11822         modf tests: Make test sharper.
11823         * tests/test-modf.c (main): Strengthen upper bound.
11824
11825         modf: Use a .m4 file.
11826         * m4/modf.m4: New file.
11827         * modules/modf (Files): Add it.
11828         (configure.ac): Just invoke gl_FUNC_MODF.
11829
11830 2011-10-05  Bruno Haible  <bruno@clisp.org>
11831
11832         Tests for module 'fmodf'.
11833         * modules/fmodf-tests: New file.
11834         * tests/test-fmodf.c: New file.
11835
11836         New module 'fmodf'.
11837         * lib/math.in.h (fmodf): New declaration.
11838         * lib/fmodf.c: New file.
11839         * m4/fmodf.m4: New file.
11840         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11841         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11842         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11843         * modules/fmodf: New file.
11844         * tests/test-math-c++.cc: Check the declaration of fmodf.
11845         * doc/posix-functions/fmodf.texi: Mention the new module.
11846
11847         fmod: Use a .m4 file.
11848         * m4/fmod.m4: New file.
11849         * modules/fmod (Files): Add it.
11850         (configure.ac): Just invoke gl_FUNC_FMOD.
11851
11852 2011-10-05  Bruno Haible  <bruno@clisp.org>
11853
11854         Tests for module 'fabsf'.
11855         * modules/fabsf-tests: New file.
11856         * tests/test-fabsf.c: New file.
11857
11858         New module 'fabsf'.
11859         * lib/math.in.h (fabsf): New declaration.
11860         * lib/fabsf.c: New file.
11861         * m4/fabsf.m4: New file.
11862         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11863         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11864         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11865         * modules/fabsf: New file.
11866         * tests/test-math-c++.cc: Check the declaration of fabsf.
11867         * doc/posix-functions/fabsf.texi: Mention the new module.
11868
11869         fabs: Use a .m4 file.
11870         * m4/fabs.m4: New file.
11871         * modules/fabs (Files): Add it.
11872         (configure.ac): Just invoke gl_FUNC_FABS.
11873
11874 2011-10-05  Jim Meyering  <meyering@redhat.com>
11875
11876         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11877         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11878         ls -lL regression introduced in coreutils-8.12, it does so at the
11879         cost of an additional stat call in the common case.  Besides, now
11880         that the kernel change that prompted commit 95f7c57f has been reverted
11881         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11882         we have no use for commit 95f7c57f, "file-has-acl: use
11883         acl_extended_file_nofollow if available".
11884
11885 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11886
11887         file-has-acl: revert unintended change in behavior of ls -L
11888         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11889         derived from...
11890         (file_has_acl): ...code here.  Call it.
11891         This problem was introduced with 2011-07-22 commit 95f7c57f,
11892         "file-has-acl: use acl_extended_file_nofollow if available".
11893         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11894
11895 2011-10-03  Bruno Haible  <bruno@clisp.org>
11896
11897         poll: Avoid link errors on MSVC.
11898         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11899         * modules/poll (Depends-on): Add sockets.
11900         (Link): New section.
11901         * NEWS: Mention the change.
11902         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11903         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11904         $(LIB_POLL) instead of $(LIBSOCKET).
11905
11906 2011-10-03  Bruno Haible  <bruno@clisp.org>
11907
11908         sys_select tests: Fix link error on MSVC 9.
11909         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11910         with $(LIB_SELECT) instead of $(LIBSOCKET).
11911
11912 2011-10-03  Bruno Haible  <bruno@clisp.org>
11913
11914         sys_select: Fix compilation error on mingw.
11915         * lib/sys_select.in.h: On native Windows, include <io.h>.
11916
11917 2011-10-03  Bruno Haible  <bruno@clisp.org>
11918
11919         wmemset: Support for MSVC.
11920         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11921         whether wmemset() exists.
11922
11923 2011-10-03  Bruno Haible  <bruno@clisp.org>
11924
11925         wmemmove: Support for MSVC.
11926         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11927         whether wmemmove() exists.
11928
11929 2011-10-03  Bruno Haible  <bruno@clisp.org>
11930
11931         wmemcpy: Support for MSVC.
11932         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11933         whether wmemcpy() exists.
11934
11935 2011-10-03  Bruno Haible  <bruno@clisp.org>
11936
11937         wmemcmp: Support for MSVC.
11938         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11939         whether wmemcmp() exists.
11940
11941 2011-10-03  Bruno Haible  <bruno@clisp.org>
11942
11943         wmemchr: Support for MSVC.
11944         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11945         whether wmemchr() exists.
11946
11947 2011-10-03  Bruno Haible  <bruno@clisp.org>
11948
11949         glthread/*, strsignal: Support for MSVC.
11950         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11951         including <winsock.h> on MSVC 9.
11952         * lib/glthread/lock.h: Likewise.
11953         * lib/glthread/thread.h: Likewise.
11954         * lib/glthread/tls.h: Likewise.
11955         * lib/glthread/yield.h: Likewise.
11956         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11957         if HAVE_UNISTD_H is false.
11958         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11959
11960 2011-10-03  Bruno Haible  <bruno@clisp.org>
11961
11962         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11963         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11964         Set to 100000.
11965
11966 2011-10-03  Bruno Haible  <bruno@clisp.org>
11967
11968         acl: Fix specification.
11969         * lib/file-has-acl.c (file_has_acl): Fix specification.
11970
11971 2011-10-03  Bruno Haible  <bruno@clisp.org>
11972
11973         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11974         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11975         (compute_curr_prefix, shared_library_fullname,
11976         find_shared_library_fullname, get_shared_library_fullname, relocate):
11977         Use it together with PIC && INSTALLDIR.
11978         Reported by <jojelino@gmail.com>
11979         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11980
11981 2011-10-01  Jim Meyering  <meyering@redhat.com>
11982
11983         maint.mk: adjust a release-related rule not to require use of gzip
11984         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11985         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11986         projects that build only .tar.xz files.  Also fix an erroneous test.
11987
11988         test-linkat: don't leave behind a temporary file
11989         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11990         Otherwise, coreutils' "make distcheck" would fail with this:
11991           Only in /c/cu/tests/torture/coreutils/test/\
11992             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11993           make[2]: *** [my-distcheck] Error 1
11994
11995         float, math: add omitted file
11996         * lib/itold.c: Add file, required for yesterday's float change.
11997
11998 2011-10-01  Bruno Haible  <bruno@clisp.org>
11999
12000         isinf: Fix for OpenBSD/x86.
12001         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
12002         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
12003         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
12004
12005 2011-10-01  Bruno Haible  <bruno@clisp.org>
12006
12007         isfinite: Fix syntax error in configure test.
12008         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
12009
12010         isfinite: Fix typo.
12011         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
12012         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
12013
12014 2011-10-01  Bruno Haible  <bruno@clisp.org>
12015
12016         nonblocking tests: Fix test failure on Linux/IA-64.
12017         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
12018         Set to 270000.
12019
12020 2011-10-01  Bruno Haible  <bruno@clisp.org>
12021
12022         mkfifoat tests: Fix a test failure on mingw.
12023         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
12024         with error ENOSYS.
12025
12026 2011-09-30  Bruno Haible  <bruno@clisp.org>
12027
12028         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
12029         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
12030         'long double'. Set REPLACE_ITOLD.
12031         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
12032         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
12033         * lib/itold.c: New file.
12034         * modules/float (Files): Add lib/itold.c.
12035         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
12036         (Makefile.am): Substitute REPLACE_ITOLD.
12037         * modules/math (Depends-on): Add float.
12038         (Makefile.am): Substitute REPLACE_ITOLD.
12039         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
12040         * doc/posix-headers/math.texi: Likewise.
12041         * doc/posix-functions/logl.texi: Likewise.
12042
12043 2011-09-30  Bruno Haible  <bruno@clisp.org>
12044
12045         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
12046         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
12047         Set to 140000.
12048
12049 2011-09-30  Bruno Haible  <bruno@clisp.org>
12050
12051         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
12052         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
12053         invocation, say "right after AC_PROG_CC_STDC", not "right after
12054         AC_PROG_CC".
12055         Reported by Gary V. Vaughan <gary@gnu.org>.
12056
12057 2011-09-30  Bruno Haible  <bruno@clisp.org>
12058
12059         Centralize C99 requirement.
12060         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
12061         * modules/stdarg (configure.ac-early): Invoke it instead of
12062         AC_PROG_CC_STDC.
12063         Reported by Gary V. Vaughan and Paul Eggert.
12064
12065 2011-09-29  Bruno Haible  <bruno@clisp.org>
12066
12067         float: Fix LDBL_MAX value on Linux/PowerPC.
12068         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
12069         on Linux/PowerPC.
12070         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
12071         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
12072         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
12073         platform.
12074         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
12075
12076 2011-09-29  Bruno Haible  <bruno@clisp.org>
12077
12078         doc: Improve doc about gl_EARLY.
12079         * doc/gnulib-tool.texi (Initial import): Mention where to place an
12080         AC_PROG_CC_STDC invocation.
12081         Reported by Gary V. Vaughan <gary@gnu.org>.
12082
12083 2011-09-28  Bruno Haible  <bruno@clisp.org>
12084
12085         fgetc, fputc, fread, fwrite tests: Fix link error.
12086         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
12087         on non-MSVC platforms.
12088         * tests/test-fputc.c (main): Likewise.
12089         * tests/test-fread.c (main): Likewise.
12090         * tests/test-fwrite.c (main): Likewise.
12091         Reported by Jim Meyering.
12092
12093 2011-09-27  Bruno Haible  <bruno@clisp.org>
12094
12095         fputc, fwrite tests: Avoid test failure on MSVC.
12096         * tests/test-fgetc.c: Include msvc-inval.h.
12097         (main): Invoke gl_msvc_inval_ensure_handler.
12098         * tests/test-fputc.c: Include msvc-inval.h.
12099         (main): Invoke gl_msvc_inval_ensure_handler.
12100         * tests/test-fread.c: Include msvc-inval.h.
12101         (main): Invoke gl_msvc_inval_ensure_handler.
12102         * tests/test-fwrite.c: Include msvc-inval.h.
12103         (main): Invoke gl_msvc_inval_ensure_handler.
12104         * modules/fgetc-tests (Depends-on): Add msvc-inval.
12105         * modules/fputc-tests (Depends-on): Likewise.
12106         * modules/fread-tests (Depends-on): Likewise.
12107         * modules/fwrite-tests (Depends-on): Likewise.
12108
12109 2011-09-27  Bruno Haible  <bruno@clisp.org>
12110
12111         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
12112         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
12113         (raise): Remove older, duplicated declaration.
12114         (_gl_raise_SIGPIPE): New declaration.
12115         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
12116         (rpl_raise): Remove function.
12117         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
12118         a gnulib-defined SIGPIPE here.
12119         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
12120         'sigprocmask' has detected missing signal-blocking and the module
12121         'sigpipe' is enabled.
12122         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
12123
12124 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
12125
12126         base64-tests: avoid memory leak
12127         * tests/test-base64.c (main): Plug memory leak.
12128
12129         base32: new module
12130         * modules/base32: New module.
12131         * lib/base32.c: New file.
12132         * lib/base32.h: Likewise.
12133         * m4/base32.m4: Likewise.
12134         * modules/base32-tests: New test.
12135         * tests/test-base32.c: Likewise.
12136         * MODULES.html.sh (Misc): Mention it.
12137
12138 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
12139
12140         gnulib: use more-standard license notice wording
12141         * gnulib-tool (func_emit_copyright_notice): When emitting a
12142         license notice into a file, use the standard wording as suggested
12143         by the current information for GNU maintainers, except say "file"
12144         rather than "program".  The new wording gives a license version
12145         number, which addresses an issue raised by Glenn Morris in
12146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
12147         * m4/onceonly.m4: Use that same wording here, too.
12148
12149         dup2: minor simplification
12150         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
12151         as lib/dup2.c no longer uses 'inline'.
12152
12153 2011-09-25  Bruno Haible  <bruno@clisp.org>
12154
12155         strings: Fix compilation error on MSVC.
12156         * lib/strings.in.h: Include <stddef.h> for size_t.
12157
12158 2011-09-25  Bruno Haible  <bruno@clisp.org>
12159
12160         fflush et al.: Document limitation on MSVC.
12161         * doc/posix-functions/fflush.texi: Document possible crash in handling
12162         mode other than DEFAULT_HANDLING.
12163         * doc/posix-functions/fgetc.texi: Likewise.
12164         * doc/posix-functions/fputc.texi: Likewise.
12165         * doc/posix-functions/fread.texi: Likewise.
12166         * doc/posix-functions/fwrite.texi: Likewise.
12167
12168 2011-09-25  Bruno Haible  <bruno@clisp.org>
12169
12170         msvc-inval: Allow three invalid parameter handling modes.
12171         * lib/msvc-inval.h: Don't include <stdlib.h> here.
12172         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
12173         macros.
12174         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
12175         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
12176         SANE_LIBRARY_HANDLING as a no-op.
12177         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
12178         <stdlib.h>.
12179         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
12180
12181 2011-09-25  Bruno Haible  <bruno@clisp.org>
12182
12183         msvc-inval: Make handler multithread-safe.
12184         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
12185         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
12186         declarations.
12187         (gl_msvc_inval_current): New declaration.
12188         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12189         Operate on the structure returned by gl_msvc_inval_current().
12190         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
12191         Remove varaiables.
12192         (tls_index, tls_initialized): New variables.
12193         (not_per_thread): New variable.
12194         (gl_msvc_inval_current): New function.
12195         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
12196         returned by gl_msvc_inval_current().
12197
12198 2011-09-25  Bruno Haible  <bruno@clisp.org>
12199
12200         msvc-inval: Install handler globally.
12201         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
12202         !_MSC_VER.
12203         (gl_msvc_invalid_parameter_handler): Remove declaration.
12204         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
12205         declarations.
12206         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
12207         Install the handler globally, don't uninstall it.
12208         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
12209         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
12210         currently valid, call RaiseException instead.
12211         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
12212         for !_MSC_VER.
12213
12214 2011-09-25  Bruno Haible  <bruno@clisp.org>
12215
12216         strerror_r-posix: Fix for MSVC 9.
12217         * lib/strerror_r.c (local_snprintf): New function.
12218         (snprintf): Define to local_snprintf, not to _snprintf.
12219
12220 2011-09-25  Bruno Haible  <bruno@clisp.org>
12221
12222         ftruncate: Support for MSVC 9.
12223         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
12224         (chsize_nothrow): New function.
12225         (chsize): Redefine as a macro.
12226         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
12227         * modules/ftruncate (Depends-on): Add msvc-inval.
12228
12229 2011-09-25  Bruno Haible  <bruno@clisp.org>
12230
12231         New module 'fstat'.
12232         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
12233         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
12234         * lib/fchdir.c (rpl_fstat): Remove function.
12235         * m4/fstat.m4: New file.
12236         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
12237         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
12238         declared.
12239         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
12240         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
12241         * modules/fstat: New file.
12242         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
12243         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
12244         is set.
12245         * doc/posix-functions/fstat.texi: Mention the new module and the
12246         problem on MSVC.
12247         * NEWS: Mention the change.
12248         * modules/acl (Depends-on): Add fstat.
12249         * modules/chdir-safer (Depends-on): Likewise.
12250         * modules/chown (Depends-on): Likewise.
12251         * modules/copy-file (Depends-on): Likewise.
12252         * modules/fchdir (Depends-on): Likewise.
12253         * modules/fdopendir (Depends-on): Likewise.
12254         * modules/fopen (Depends-on): Likewise.
12255         * modules/fts (Depends-on): Likewise.
12256         * modules/getcwd (Depends-on): Likewise.
12257         * modules/isapipe (Depends-on): Likewise.
12258         * modules/linkat (Depends-on): Likewise.
12259         * modules/lseek (Depends-on): Likewise.
12260         * modules/mkdir-p (Depends-on): Likewise.
12261         * modules/open (Depends-on): Likewise.
12262         * modules/openat (Depends-on): Likewise.
12263         * modules/read-file (Depends-on): Likewise.
12264         * modules/renameat (Depends-on): Likewise.
12265         * modules/utimens (Depends-on): Likewise.
12266
12267 2011-09-25  Bruno Haible  <bruno@clisp.org>
12268
12269         linkat: Fix compilation on MSVC 9.
12270         * lib/linkat.c: Don't include <stdint.h>.
12271
12272 2011-09-25  Bruno Haible  <bruno@clisp.org>
12273
12274         fclose: Support for MSVC 9.
12275         * lib/fclose.c: Include msvc-inval.h.
12276         (fclose_nothrow): New function.
12277         (rpl_fclose): Use it.
12278         * modules/fclose (Depends-on): Add msvc-inval.
12279         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
12280
12281 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
12282
12283         dup2: minor simplifications
12284         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
12285         that it's a performance win.
12286         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
12287         ! defined __CYGWIN__)" to "ifdef F_GETFL".
12288
12289 2011-09-24  Jim Meyering  <meyering@redhat.com>
12290
12291         test-futimens: avoid a warning from gcc -Wshadow
12292         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
12293         to avoid a shadowing warning.
12294
12295 2011-09-24  Bruno Haible  <bruno@clisp.org>
12296
12297         fdopen: Support for MSVC 9.
12298         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
12299         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
12300         * lib/fdopen.c: Include msvc-inval.h.
12301         (fdopen_nothrow): New function.
12302         (rpl_fdopen): Use it.
12303         * modules/fdopen (Depends-on): Add msvc-inval.
12304         * modules/fclose-tests (Depends-on): Add fdopen.
12305         * modules/fflush-tests (Depends-on): Likewise.
12306         * modules/fgetc-tests (Depends-on): Likewise.
12307         * modules/fputc-tests (Depends-on): Likewise.
12308         * modules/fread-tests (Depends-on): Likewise.
12309         * modules/freopen-tests (Depends-on): Likewise.
12310         * modules/fseeko-tests (Depends-on): Likewise.
12311         * modules/ftello-tests (Depends-on): Likewise.
12312         * modules/fwrite-tests  (Depends-on): Likewise.
12313         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
12314
12315 2011-09-24  Bruno Haible  <bruno@clisp.org>
12316
12317         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
12318         * modules/fgetc-tests (Depends-on): Add unistd.
12319         * modules/fputc-tests (Depends-on): Likewise.
12320         * modules/fread-tests (Depends-on): Likewise.
12321         * modules/fwrite-tests (Depends-on): Likewise.
12322
12323 2011-09-24  Bruno Haible  <bruno@clisp.org>
12324
12325         dup: Simplify autoconf test.
12326         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
12327         on gl_MSVC_INVAL's result.
12328
12329 2011-09-24  Bruno Haible  <bruno@clisp.org>
12330
12331         Tests for function fwrite().
12332         * modules/fwrite-tests: New file.
12333         * tests/test-fwrite.c: New file.
12334         * modules/stdio-tests (Depends-on): Add fwrite-tests.
12335
12336         Tests for function fread().
12337         * modules/fread-tests: New file.
12338         * tests/test-fread.c: New file.
12339         * modules/stdio-tests (Depends-on): Add fread-tests.
12340
12341         Activate fputc tests.
12342         * modules/stdio-tests (Depends-on): Add fputc-tests.
12343
12344         Enhance fgetc, fputc tests.
12345         * tests/test-fgetc.c (main): Also test the stream's error indicator.
12346         * tests/test-fputc.c (main): Likewise.
12347
12348 2011-09-24  Bruno Haible  <bruno@clisp.org>
12349
12350         write: Support for MSVC 9.
12351         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12352         is not 1.
12353         * lib/write.c (write_nothrow): New function.
12354         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
12355         not 1. Use write_nothrow.
12356         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
12357         invalid parameter handler.
12358         (gl_PREREQ_WRITE): New macro.
12359         * modules/write (Depends-on): Add msvc-inval.
12360         (configure.ac): Invoke gl_PREREQ_WRITE.
12361         * doc/posix-functions/write.texi: Mention the problem on MSVC.
12362
12363 2011-09-24  Bruno Haible  <bruno@clisp.org>
12364
12365         read: Fix last commit.
12366         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
12367
12368 2011-09-24  Bruno Haible  <bruno@clisp.org>
12369
12370         dup2: Fix last commit.
12371         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
12372         (rpl_dup2): Disable fcntl workaround on native Windows.
12373
12374         sigprocmask: Make code safer.
12375         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
12376         section that changes macro definitions for this compilation unit.
12377
12378 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12379
12380         dup2: clarify by coalescing Windows-specific material
12381         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
12382         "msvc-nothrow.h"' to the Windows-specific section, so that the
12383         Emacs source need not contain these include files.
12384         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
12385         Windows-specific fixes into this function rather than just the
12386         nothrow fix, as this shortens and clarifies the code.  Always
12387         define as a function, as that's a bit cleaner than having it be
12388         sometimes a function and sometimes a macro.
12389         (rpl_dup2): Move the Windows-specific stuff out of here and into
12390         ms_windows_dup2.  Don't protect the Haiku-related fix with
12391         "#if !defined __linux__", as the same code also works around
12392         a Linux kernel bug, and it doesn't add any system calls on any
12393         platform.  Add comment about FreeBSD 6.1.
12394
12395         sigprocmask: move #include directive
12396         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
12397         Windows-specific section, so that the Emacs source need not
12398         contain msvc-inval.h.
12399
12400 2011-09-23  Bruno Haible  <bruno@clisp.org>
12401
12402         read: Support for MSVC 9.
12403         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
12404         is not 1.
12405         * lib/read.c (read_nothrow): New function.
12406         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
12407         read_nothrow.
12408         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
12409         invalid parameter handler.
12410         (gl_PREREQ_READ): New macro.
12411         * modules/read (Depends-on): Add msvc-inval.
12412         (configure.ac): Invoke gl_PREREQ_READ.
12413         * doc/posix-functions/read.texi: Mention the problem on MSVC.
12414
12415 2011-09-23  Bruno Haible  <bruno@clisp.org>
12416
12417         close: Support for MSVC 9.
12418         * lib/close.c: Include <errno.h>, msvc-inval.h.
12419         (close_nothrow): New function.
12420         (rpl_close): Use it.
12421         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
12422         invalid parameter handler.
12423         * modules/close (Depends-on): Add msvc-inval.
12424         * modules/dup2-tests (Depends-on): Add close.
12425         * modules/dup3-tests (Depends-on): Likewise.
12426         * modules/fcntl-tests (Depends-on): Likewise.
12427         * modules/spawn-pipe-tests (Depends-on): Likewise.
12428         * modules/unistd-safer-tests (Depends-on): Likewise.
12429         * doc/posix-functions/close.texi: Mention the problem on MSVC.
12430
12431 2011-09-23  Bruno Haible  <bruno@clisp.org>
12432
12433         New module 'dup'.
12434         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
12435         Allow replacement.
12436         * lib/dup.c: New file.
12437         * lib/fchdir.c (rpl_dup): Remove function.
12438         * m4/dup.m4: New file.
12439         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
12440         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
12441         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
12442         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
12443         * modules/dup: New file.
12444         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
12445         'dup' module is in use.
12446         * modules/fdopendir (Depends-on): Add dup.
12447         * modules/fdutimensat-tests (Depends-on): Likewise.
12448         * modules/fts (Depends-on): Likewise.
12449         * modules/futimens-tests (Depends-on): Likewise.
12450         * modules/posix_spawnp-tests (Depends-on): Likewise.
12451         * modules/unistd-safer-tests (Depends-on): Likewise.
12452         * modules/utimens-tests (Depends-on): Likewise.
12453         * doc/posix-functions/dup.texi: Mention the new module and the problem
12454         on MSVC.
12455
12456 2011-09-23  Bruno Haible  <bruno@clisp.org>
12457
12458         getdtablesize: Support for MSVC 9.
12459         * lib/getdtablesize.c: Include msvc-inval.h.
12460         (_setmaxstdio_nothrow): New function.
12461         (_setmaxstdio): Redefine it.
12462         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
12463         * modules/getdtablesize (Depends-on): Add msvc-inval.
12464         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
12465
12466 2011-09-23  Bruno Haible  <bruno@clisp.org>
12467
12468         signal-h: Rename from signal.
12469         * modules/signal-h: Renamed from modules/signal.
12470         * modules/pthread_sigmask (Depends-on): Update.
12471         * modules/raise (Depends-on): Likewise.
12472         * modules/sigaction (Depends-on): Likewise.
12473         * modules/sigpipe (Depends-on): Likewise.
12474         * modules/sigprocmask (Depends-on): Likewise.
12475         * modules/sys_select (Depends-on): Likewise.
12476         * modules/signal-h-tests: Renamed from modules/signal-tests.
12477         (Files, Depends-on, Makefile.am): Update.
12478         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
12479         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
12480         (Files, Makefile.am): Update.
12481         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
12482         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
12483         * modules/signal: New placeholder file.
12484         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
12485         * doc/posix-headers/signal.texi: Update.
12486         * NEWS: Mention the change.
12487
12488 2011-09-23  Bruno Haible  <bruno@clisp.org>
12489
12490         sigprocmask: Avoid crashes through signal() on MSVC 9.
12491         * lib/sigprocmask.c: Include msvc-inval.h.
12492         (signal_nothrow): New function.
12493         (signal): Redefine it.
12494         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
12495         * modules/sigprocmask (Depends-on): Add msvc-inval.
12496         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
12497
12498 2011-09-23  Bruno Haible  <bruno@clisp.org>
12499
12500         Tests for module 'raise'.
12501         * modules/raise-tests: New file.
12502         * tests/test-raise.c: New file.
12503
12504         raise: Support for MSVC.
12505         * lib/signal.in.h (raise): New declaration.
12506         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
12507         for native Windows platforms.
12508         * m4/raise.m4: New file.
12509         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
12510         HAVE_RAISE, REPLACE_RAISE.
12511         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
12512         REPLACE_RAISE.
12513         * modules/raise (Status, Notice): Remove fields.
12514         (Files): Add m4/raise.m4.
12515         (Depends-on): Add signal, msvc-inval.
12516         (configure.ac): Use the common idioms.
12517         (Maintainer): Add me.
12518         * tests/test-signal-c++.cc: Check the signature of raise.
12519         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
12520
12521 2011-09-23  Bruno Haible  <bruno@clisp.org>
12522
12523         pipe2: Fix compilation on pre-C99 compilers.
12524         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
12525
12526 2011-09-23  Bruno Haible  <bruno@clisp.org>
12527
12528         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
12529         * lib/msvc-nothrow.h: New file.
12530         * lib/msvc-nothrow.c: New file.
12531         * m4/msvc-nothrow.m4: New file.
12532         * modules/msvc-nothrow: New file.
12533         * lib/dup2.c: Include msvc-nothrow.h.
12534         (rpl_dup2): No need to protect _get_osfhandle call here.
12535         * lib/accept4.c: Include msvc-nothrow.h.
12536         * lib/error.c: Likewise.
12537         * lib/fcntl.c: Likewise.
12538         * lib/lseek.c: Likewise.
12539         * lib/nonblocking.c: Likewise.
12540         * lib/poll.c: Likewise.
12541         * lib/read.c: Likewise.
12542         * lib/select.c: Likewise.
12543         * lib/sockets.h: Likewise.
12544         * lib/sockets.c: Likewise.
12545         * lib/stdio-read.c: Likewise.
12546         * lib/stdio-write.c: Likewise.
12547         * lib/write.c: Likewise.
12548         * lib/w32sock.h: Likewise.
12549         * lib/w32spawn.h: Likewise.
12550         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
12551         * lib/fsync.c: Likewise.
12552         * lib/isapipe.c: Likewise.
12553         * modules/dup2 (Depends-on): Add msvc-nothrow.
12554         * modules/accept4 (Depends-on): Likewise.
12555         * modules/error (Depends-on): Likewise.
12556         * modules/fcntl (Depends-on): Likewise.
12557         * modules/lseek (Depends-on): Likewise.
12558         * modules/nonblocking (Depends-on): Likewise.
12559         * modules/poll (Depends-on): Likewise.
12560         * modules/read (Depends-on): Likewise.
12561         * modules/select (Depends-on): Likewise.
12562         * modules/sockets (Depends-on): Likewise.
12563         * modules/sigpipe (Depends-on): Likewise.
12564         * modules/write (Depends-on): Likewise.
12565         * modules/accept (Depends-on): Likewise.
12566         * modules/bind (Depends-on): Likewise.
12567         * modules/connect (Depends-on): Likewise.
12568         * modules/gethostname (Depends-on): Likewise.
12569         * modules/getpeername (Depends-on): Likewise.
12570         * modules/getsockname (Depends-on): Likewise.
12571         * modules/getsockopt (Depends-on): Likewise.
12572         * modules/ioctl (Depends-on): Likewise.
12573         * modules/listen (Depends-on): Likewise.
12574         * modules/recv (Depends-on): Likewise.
12575         * modules/recvfrom (Depends-on): Likewise.
12576         * modules/send (Depends-on): Likewise.
12577         * modules/sendto (Depends-on): Likewise.
12578         * modules/setsockopt (Depends-on): Likewise.
12579         * modules/shutdown (Depends-on): Likewise.
12580         * modules/socket (Depends-on): Likewise.
12581         * modules/execute (Depends-on): Likewise.
12582         * modules/spawn-pipe (Depends-on): Likewise.
12583         * modules/flock (Depends-on): Likewise.
12584         * modules/fsync (Depends-on): Likewise.
12585         * modules/isapipe (Depends-on): Likewise.
12586         * tests/test-cloexec.c: Include msvc-nothrow.h.
12587         * tests/test-dup-safer.c: Likewise.
12588         * tests/test-dup2.c: Likewise.
12589         * tests/test-dup3.c: Likewise.
12590         * tests/test-fcntl.c: Likewise.
12591         * tests/test-pipe.c: Likewise.
12592         * tests/test-pipe2.c: Likewise.
12593         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
12594         * modules/unistd-safer-tests (Depends-on): Likewise.
12595         * modules/dup2-tests (Depends-on): Likewise.
12596         * modules/dup3-tests (Depends-on): Likewise.
12597         * modules/fcntl-tests (Depends-on): Likewise.
12598         * modules/pipe-posix-tests (Depends-on): Likewise.
12599         * modules/pipe2-tests (Depends-on): Likewise.
12600
12601 2011-09-23  Bruno Haible  <bruno@clisp.org>
12602
12603         dup2: Make code more maintainable.
12604         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
12605         (rpl_dup2): Use it.
12606         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
12607         * modules/dup2 (configure.ac): Invoke it.
12608         Reported by Paul Eggert.
12609
12610 2011-09-23  Bruno Haible  <bruno@clisp.org>
12611
12612         msvc-inval: Fix compilation error.
12613         * lib/msvc-inval.h: Include <excpt.h>.
12614
12615 2011-09-23  Bruno Haible  <bruno@clisp.org>
12616
12617         mkdir: Tweak for MSVC 9.
12618         * lib/sys_stat.in.h: Update comments.
12619         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
12620
12621         Tests for module 'chdir'.
12622         * modules/chdir-tests: New file.
12623         * tests/test-chdir.c: New file.
12624
12625         New module 'chdir'.
12626         * modules/chdir: New file.
12627         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
12628         (chdir): New declaration.
12629         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
12630         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
12631         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
12632         * tests/test-unistd-c++.cc: Check signature of chdir.
12633         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
12634         * modules/chdir-long (Depends-on): Add chdir.
12635         * modules/fchdir (Depends-on): Likewise.
12636         * modules/rename (Depends-on): Likewise.
12637         * modules/savewd (Depends-on): Likewise.
12638
12639         rmdir: Support for mingw, MSVC 9.
12640         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
12641         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
12642
12643         getcwd: Tweak for MSVC 9.
12644         * lib/unistd.in.h: Update comments.
12645         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
12646
12647 2011-09-22  Bruno Haible  <bruno@clisp.org>
12648
12649         strerror_r-posix: Avoid a link error on MSVC.
12650         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
12651         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
12652
12653 2011-09-22  Bruno Haible  <bruno@clisp.org>
12654
12655         select: Avoid link errors on MSVC.
12656         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
12657         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
12658         * modules/pselect (Link): Likewise.
12659         * NEWS: Mention the change.
12660         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
12661         test-select-stdin against $(LIB_SELECT).
12662         * modules/pselect-tests (Makefile.am): Link test-pselect against
12663         $(LIB_SELECT).
12664
12665 2011-09-22  Bruno Haible  <bruno@clisp.org>
12666
12667         select: Avoid compilation error on MSVC.
12668         * lib/select.c: Don't include <stdbool.h>.
12669
12670 2011-09-21  Bruno Haible  <bruno@clisp.org>
12671
12672         Consolidate all uses of PATH_MAX in *.m4 files.
12673         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
12674         macros.
12675         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
12676         and gl_PATHMAX_SNIPPET.
12677         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12678         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12679         * modules/chdir-long (Files): Add m4/pathmax.m4.
12680         * modules/getcwd (Files): Likewise.
12681
12682 2011-09-21  Bruno Haible  <bruno@clisp.org>
12683
12684         ftruncate: Un-deprecate, concentrate on Win32 support.
12685         * modules/ftruncate (Status, Notice): Remove sections.
12686         (Depends-on): Add largefile.
12687         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
12688         non-mingw platforms.
12689         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
12690         include <io.h>.
12691         * modules/perror-tests (Depends-on): Add ftruncate.
12692         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
12693         'ftruncate' module.
12694
12695 2011-09-21  Bruno Haible  <bruno@clisp.org>
12696
12697         Add dependencies to new dirent related modules.
12698         * modules/opendir (Depends-on): Add closedir.
12699         * modules/getcwd (Depends-on): Add opendir, closedir.
12700         * modules/dirent-safer-tests (Depends-on): Likewise.
12701         * modules/fdopendir-tests (Depends-on): Likewise.
12702         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
12703         * modules/renameat-tests (Depends-on): Likewise.
12704
12705 2011-09-21  Bruno Haible  <bruno@clisp.org>
12706
12707         opendir: Avoid compilation error on mingw.
12708         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
12709         * modules/opendir (Depends-on): Add unistd.
12710
12711 2011-09-21  Bruno Haible  <bruno@clisp.org>
12712
12713         ftruncate tests: Avoid a test failure on mingw.
12714         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
12715
12716 2011-09-21  Bruno Haible  <bruno@clisp.org>
12717
12718         select tests: Avoid test failures on OSF/1 5.1 and mingw.
12719         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
12720         native Windows.
12721
12722 2011-09-21  Bruno Haible  <bruno@clisp.org>
12723
12724         New module 'fdopen'.
12725         * lib/stdio.in.h (fdopen): New declaration.
12726         * lib/fdopen.c: New file.
12727         * m4/fdopen.m4: New file.
12728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
12729         REPLACE_FDOPEN.
12730         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
12731         REPLACE_FDOPEN.
12732         * modules/fdopen: New file.
12733         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
12734         * tests/test-stdio-c++.cc: Check signature of fdopen.
12735         * doc/posix-functions/fdopen.texi: Mention the new module.
12736
12737 2011-09-21  Bruno Haible  <bruno@clisp.org>
12738
12739         unlockpt tests: Avoid test failure on NetBSD 5.1.
12740         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
12741         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
12742
12743 2011-09-21  Bruno Haible  <bruno@clisp.org>
12744
12745         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
12746         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
12747         * tests/test-getlogin_r.c (main): Likewise.
12748
12749 2011-09-20  Bruno Haible  <bruno@clisp.org>
12750
12751         time tests: Don't require pid_t.
12752         * doc/posix-headers/time.texi: Revert last change.
12753         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
12754         * tests/test-time.c: Comment out the check for pid_t.
12755
12756 2011-09-20  Bruno Haible  <bruno@clisp.org>
12757
12758         fsync tests: Avoid a test failure on mingw.
12759         * tests/test-fsync.c (main): Allow a failure with EIO.
12760
12761 2011-09-20  Bruno Haible  <bruno@clisp.org>
12762
12763         euidaccess: Update comments.
12764         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
12765
12766 2011-09-20  Bruno Haible  <bruno@clisp.org>
12767
12768         Ensure EBADF returns for socket functions on mingw.
12769         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
12770         descriptor is invalid.
12771         * lib/bind.c (rpl_bind): Likewise.
12772         * lib/connect.c (rpl_connect): Likewise.
12773         * lib/getpeername.c (rpl_getpeername): Likewise.
12774         * lib/getsockname.c (rpl_getsockname): Likewise.
12775         * lib/getsockopt.c (rpl_getsockopt): Likewise.
12776         * lib/listen.c (rpl_listen): Likewise.
12777         * lib/recv.c (rpl_recv): Likewise.
12778         * lib/recvfrom.c (rpl_recvfrom): Likewise.
12779         * lib/send.c (rpl_send): Likewise.
12780         * lib/sendto.c (rpl_sendto): Likewise.
12781         * lib/setsockopt.c (rpl_setsockopt): Likewise.
12782         * lib/shutdown.c (rpl_shutdown): Likewise.
12783
12784 2011-09-20  Bruno Haible  <bruno@clisp.org>
12785
12786         select tests: EBADF tests.
12787         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
12788         test_bad_fd): New functions.
12789         (test_function): Invoke also test_bad_fd.
12790
12791 2011-09-20  Bruno Haible  <bruno@clisp.org>
12792
12793         Tests for module 'posix_spawn_file_actions_addopen.
12794         * modules/posix_spawn_file_actions_addopen-tests: New file.
12795         * tests/test-posix_spawn_file_actions_addopen.c: New file.
12796
12797         Tests for module 'posix_spawn_file_actions_adddup2'.
12798         * modules/posix_spawn_file_actions_adddup2-tests: New file.
12799         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
12800
12801         Tests for module 'posix_spawn_file_actions_addclose'.
12802         * modules/posix_spawn_file_actions_addclose-tests: New file.
12803         * tests/test-posix_spawn_file_actions_addclose.c: New file.
12804
12805 2011-09-20  Bruno Haible  <bruno@clisp.org>
12806
12807         Tests for module 'unlockpt'.
12808         * modules/unlockpt-tests: New file.
12809         * tests/test-unlockpt.c: New file.
12810         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12811
12812         Tests for module 'grantpt'.
12813         * modules/grantpt-tests: New file.
12814         * tests/test-grantpt.c: New file.
12815         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12816
12817 2011-09-20  Bruno Haible  <bruno@clisp.org>
12818
12819         freopen tests: EBADF tests.
12820         * tests/test-freopen.c: Include errno.h, unistd.h.
12821         (main): Add tests for EBADF, commented out for the moment.
12822
12823         fclose tests: EBADF tests.
12824         * tests/test-fclose.c (main): Add tests for EBADF.
12825
12826         fflush tests: EBADF tests.
12827         * tests/test-fflush.c: Include errno.h, macros.h.
12828         (main): Add tests for EBADF.
12829
12830         ftello tests: EBADF tests.
12831         * tests/test-ftello4.sh: New file.
12832         * tests/test-ftello4.c: New file.
12833         * modules/ftello-tests (Files): Add them.
12834         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12835
12836         fseeko tests: EBADF tests.
12837         * tests/test-fseeko4.sh: New file.
12838         * tests/test-fseeko4.c: New file.
12839         * modules/fseeko-tests (Files): Add them.
12840         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12841
12842         Tests for function fputc().
12843         * modules/fputc-tests: New file.
12844         * tests/test-fputc.c: New file.
12845         * modules/stdio-tests (Depends-on): Add fputc-tests.
12846
12847         Tests for function fgetc().
12848         * modules/fgetc-tests: New file.
12849         * tests/test-fgetc.c: New file.
12850         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12851
12852         Tests for function fdopen().
12853         * modules/fdopen-tests: New file.
12854         * tests/test-fdopen.c: New file.
12855         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12856
12857         Tests for module 'vdprintf'.
12858         * modules/vdprintf-tests: New file.
12859         * tests/test-vdprintf.c: New file.
12860
12861         Tests for module 'dprintf'.
12862         * modules/dprintf-tests: New file.
12863         * tests/test-dprintf.c: New file.
12864
12865 2011-09-20  Bruno Haible  <bruno@clisp.org>
12866
12867         Tests for module 'ioctl'.
12868         * modules/ioctl-tests: New file.
12869         * tests/test-ioctl.c: New file.
12870
12871 2011-09-20  Bruno Haible  <bruno@clisp.org>
12872
12873         fcntl tests: EBADF tests.
12874         * tests/test-fcntl.c (main): Add more tests for EBADF.
12875
12876 2011-09-20  Bruno Haible  <bruno@clisp.org>
12877
12878         utimensat tests: EBADF tests.
12879         * tests/test-utimensat.c (main): Add tests for EBADF.
12880
12881         renameat tests: EBADF tests.
12882         * tests/test-renameat.c (main): Add tests for EBADF.
12883
12884         mkfifoat tests: EBADF tests.
12885         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12886
12887         readlinkat tests: EBADF tests.
12888         * tests/test-readlinkat.c (main): Add tests for EBADF.
12889
12890         symlinkat tests: EBADF tests.
12891         * tests/test-symlinkat.c (main): Add tests for EBADF.
12892
12893         linkat tests: EBADF tests.
12894         * tests/test-linkat.c (main): Add tests for EBADF.
12895
12896         Tests for module 'faccessat'.
12897         * modules/faccessat-tests: New file.
12898         * tests/test-faccessat.c: New file.
12899
12900         fdopendir tests: EBADF tests.
12901         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12902
12903         openat tests: EBADF tests.
12904         * tests/test-fchownat.c (main): Add tests for EBADF.
12905         * tests/test-fstatat.c (main): Likewise.
12906         * tests/test-mkdirat.c (main): Likewise.
12907         * tests/test-openat.c (main): Likewise.
12908         * tests/test-unlinkat.c (main): Likewise.
12909         * tests/test-fchmodat.c: New file.
12910         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12911         (Makefile.am): Also run 'test-fchmodat'.
12912
12913 2011-09-20  Bruno Haible  <bruno@clisp.org>
12914
12915         utimens, futimens, fdutimensat tests: EBADF tests.
12916         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12917
12918         Tests for function fstat().
12919         * modules/fstat-tests: New file.
12920         * tests/test-fstat.c: New file.
12921         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12922
12923 2011-09-20  Bruno Haible  <bruno@clisp.org>
12924
12925         test-ttyname_r tests: EBADF tests.
12926         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12927
12928         Tests for module 'isatty'.
12929         * modules/isatty-tests: New file.
12930         * tests/test-isatty.c: New file.
12931
12932         Tests for module 'write'.
12933         * modules/write-tests: New file.
12934         * tests/test-write.c: New file.
12935
12936         Tests for module 'read'.
12937         * modules/read-tests: New file.
12938         * tests/test-read.c: New file.
12939
12940         pwrite tests: EBADF tests.
12941         * tests/test-pwrite.c (main): Add tests for EBADF.
12942
12943         pread tests: EBADF tests.
12944         * tests/test-pread.c (main): Add tests for EBADF.
12945
12946         lseek tests: EBADF tests.
12947         * tests/test-lseek.c (main): Add more tests for EBADF.
12948
12949         Tests for module 'ftruncate'.
12950         * modules/ftruncate-tests: New file.
12951         * tests/test-ftruncate.sh: New file.
12952         * tests/test-ftruncate.c: New file.
12953
12954         fsync tests: EBADF tests.
12955         * tests/test-fsync.c (main): Add more tests for EBADF.
12956
12957         fdatasync tests: EBADF tests.
12958         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12959
12960         Tests for module 'fchown'.
12961         * modules/fchown-tests: New file.
12962         * tests/test-fchown.c: New file.
12963
12964         Tests for module 'fchmod'.
12965         * modules/fchmod-tests: New file.
12966         * tests/test-fchmod.c: New file.
12967
12968         fchdir tests: EBADF tests.
12969         * tests/test-fchdir.c (main): Add more tests for EBADF.
12970
12971         dup2 tests: EBADF tests.
12972         * tests/test-dup2.c (main): Add more tests for EBADF.
12973
12974         Tests for module 'dup'.
12975         * modules/dup-tests: New file.
12976         * tests/test-dup.c: New file.
12977
12978         Tests for module 'close'.
12979         * modules/close-tests: New file.
12980         * tests/test-close.c: New file.
12981
12982 2011-09-20  Bruno Haible  <bruno@clisp.org>
12983
12984         Tests for module 'shutdown'.
12985         * modules/shutdown-tests: New file.
12986         * tests/test-shutdown.c: New file.
12987
12988         Tests for module 'setsockopt'.
12989         * modules/setsockopt-tests: New file.
12990         * tests/test-setsockopt.c: New file.
12991
12992         Tests for module 'sendto'.
12993         * modules/sendto-tests: New file.
12994         * tests/test-sendto.c: New file.
12995
12996         Tests for module 'send'.
12997         * modules/send-tests: New file.
12998         * tests/test-send.c: New file.
12999
13000         Tests for module 'recvfrom'.
13001         * modules/recvfrom-tests: New file.
13002         * tests/test-recvfrom.c: New file.
13003
13004         Tests for module 'recv'.
13005         * modules/recv-tests: New file.
13006         * tests/test-recv.c: New file.
13007
13008         Tests for module 'listen'.
13009         * modules/listen-tests: New file.
13010         * tests/test-listen.c: New file.
13011
13012         Tests for module 'getsockopt'.
13013         * modules/getsockopt-tests: New file.
13014         * tests/test-getsockopt.c: New file.
13015
13016         Tests for module 'getsockname'.
13017         * modules/getsockname-tests: New file.
13018         * tests/test-getsockname.c: New file.
13019
13020         Tests for module 'getpeername'.
13021         * modules/getpeername-tests: New file.
13022         * tests/test-getpeername.c: New file.
13023
13024         Tests for module 'connect'.
13025         * modules/connect-tests: New file.
13026         * tests/test-connect.c: New file.
13027
13028         Tests for module 'bind'.
13029         * modules/bind-tests: New file.
13030         * tests/test-bind.c: New file.
13031
13032         accept4 tests: Fix for native Windows.
13033         * tests/test-accept4.c: Include sockets.h.
13034         (main): Invoke gl_sockets_startup.
13035         * modules/accept4-tests (Depends-on): Add sockets.
13036
13037         accept tests: Fix for native Windows.
13038         * tests/test-accept.c: Include sockets.h.
13039         (main): Invoke gl_sockets_startup.
13040         * modules/accept-tests (Depends-on): Add sockets.
13041
13042 2011-09-19  Bruno Haible  <bruno@clisp.org>
13043
13044         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
13045         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
13046         do...while(0).
13047         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
13048         Suggested by Paul Eggert.
13049
13050 2011-09-19  Bruno Haible  <bruno@clisp.org>
13051
13052         sched: Ensure pid_t is defined.
13053         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
13054         not define pid_t.
13055         * lib/sched.in.h: Include <sys/types.h>.
13056         * doc/posix-headers/sched.texi: Mention the pid_t problem.
13057         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13058
13059 2011-09-19  Bruno Haible  <bruno@clisp.org>
13060
13061         msvc-inval: Ensure the entire expansion is a single statement.
13062         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
13063         of braces.
13064
13065 2011-09-19  Jim Meyering  <meyering@redhat.com>
13066
13067         tests: use printf, not echo in init.sh's warn_ function
13068         * tests/init.sh (warn_): Use printf, not echo.  The latter would
13069         misbehave when given strings containing a backslash or starting
13070         with e.g., -n.  James Youngman suggested setting IFS.
13071
13072 2011-09-19  Eric Blake  <eblake@redhat.com>
13073
13074         futimens: enhance test
13075         * tests/test-futimens.h (test_futimens): Also check for EBADF on
13076         closed non-negative fd.
13077
13078         date: accept 'hence' as opposite of 'ago'
13079         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
13080         * tests/test-parse-datetime.c (main): Enhance test.
13081         Suggested by Jesse Wilson.
13082
13083 2011-09-19  Jim Meyering  <meyering@redhat.com>
13084
13085         getcwd: don't fail in a deep directory on a system without openat
13086         Before this change, getcwd would fail when called from a directory
13087         of depth PATH_MAX / 3 or greater.  That was due to the fact that
13088         the non-openat implementation used "..", "../..", "../../..", etc.
13089         to access ancestor directories.  With too many, that string would
13090         be longer than PATH_MAX.
13091         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
13092         using gnulib's openat replacement.
13093         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
13094         we're using the replacement function.
13095
13096 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
13097
13098         maint.mk: avoid warnings from perl about missing files
13099         * top/maint.mk (def_sym_regex): Ignore files listed in
13100         $(gl_other_headers_) that do not exist, say because a project
13101         does not use a corresponding module.
13102
13103 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
13104
13105         stat: use pathmax.h only if needed
13106         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
13107         This is better for Emacs, which does not have a mingw port and
13108         therefore can avoid the pathmax module.
13109
13110         utimens: remove dependency on dup2
13111         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
13112         to work around the Linux kernel bug.
13113         * modules/utimens (Depends-on): Remove dup2.
13114
13115 2011-09-18  Bruno Haible  <bruno@clisp.org>
13116
13117         inet_ntop, inet_pton: Look for it also in libresolv.
13118         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
13119         libnsl, search for it in libresolv.
13120         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13121         Needed on Solaris 7.
13122
13123 2011-09-18  Bruno Haible  <bruno@clisp.org>
13124
13125         accept, accept4 tests: Avoid link error on Solaris.
13126         * modules/accept-tests (Makefile.am): Link test-accept against
13127         $(LIBSOCKET).
13128         * modules/accept4-tests (Makefile.am): Link test-accept4 against
13129         $(LIBSOCKET).
13130
13131         accept4: Avoid link error on Solaris.
13132         * modules/accept4 (Link): New section.
13133
13134         socket functions: Avoid link errors on Solaris.
13135         * modules/accept (Depends-on): Add socketlib.
13136         (Link): New section.
13137         * modules/bind (Depends-on): Add socketlib.
13138         (Link): New section.
13139         * modules/connect (Depends-on): Add socketlib.
13140         (Link): New section.
13141         * modules/getpeername (Depends-on): Add socketlib.
13142         (Link): New section.
13143         * modules/getsockname (Depends-on): Add socketlib.
13144         (Link): New section.
13145         * modules/getsockopt (Depends-on): Add socketlib.
13146         (Link): New section.
13147         * modules/listen (Depends-on): Add socketlib.
13148         (Link): New section.
13149         * modules/recv (Depends-on): Add socketlib.
13150         (Link): New section.
13151         * modules/recvfrom (Depends-on): Add socketlib.
13152         (Link): New section.
13153         * modules/send (Depends-on): Add socketlib.
13154         (Link): New section.
13155         * modules/sendto (Depends-on): Add socketlib.
13156         (Link): New section.
13157         * modules/setsockopt (Depends-on): Add socketlib.
13158         (Link): New section.
13159         * modules/shutdown (Depends-on): Add socketlib.
13160         (Link): New section.
13161         * modules/socket (Depends-on): Add socketlib.
13162         (Link): New section.
13163
13164 2011-09-18  Bruno Haible  <bruno@clisp.org>
13165
13166         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
13167         * tests/test-ptsname.c (main): Terminate the test if it takes longer
13168         than 5 seconds.
13169         * modules/ptsname-tests (configure.ac): Test for alarm.
13170
13171 2011-09-18  Bruno Haible  <bruno@clisp.org>
13172
13173         posix_spawn_file_actions_add*: Fix module dependencies.
13174         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
13175         posix_spawn_file_actions_init.
13176         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
13177         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
13178
13179 2011-09-18  Bruno Haible  <bruno@clisp.org>
13180
13181         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
13182         * tests/test-rename.h (test_rename): Allow error code EEXIST.
13183         * tests/test-renameat.c (main): Likewise.
13184
13185 2011-09-18  Bruno Haible  <bruno@clisp.org>
13186
13187         Tests for module 'accept4'.
13188         * modules/accept4-tests: New file.
13189         * tests/test-accept4.c: New file.
13190
13191 2011-09-18  Bruno Haible  <bruno@clisp.org>
13192
13193         Tests for module 'accept'.
13194         * modules/accept-tests: New file.
13195         * tests/test-accept.c: New file.
13196
13197 2011-09-18  Bruno Haible  <bruno@clisp.org>
13198
13199         dup2: Support for MSVC.
13200         * lib/dup2.c: Include msvc-inval.h.
13201         (rpl_dup2): Handle invalid parameter notifications during dup2 and
13202         _get_osfhandle calls.
13203         * modules/dup2 (Depends-on): Add msvc-inval.
13204         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
13205
13206         New module 'msvc-inval'.
13207         * lib/msvc-inval.h: New file.
13208         * lib/msvc-inval.c: New file.
13209         * m4/msvc-inval.m4: New file.
13210         * modules/msvc-inval: New file.
13211
13212 2011-09-17  Bruno Haible  <bruno@clisp.org>
13213
13214         Tests for module 'pclose'.
13215         * modules/pclose-tests: New file.
13216
13217         New module 'pclose'.
13218         * lib/stdio.in.h (pclose): New declaration.
13219         * lib/pclose.c: New file.
13220         * m4/pclose.m4: New file.
13221         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
13222         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
13223         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
13224         * modules/pclose: New file.
13225         * modules/popen-tests (Depends-on): Add pclose.
13226         * modules/popen-safer-tests (Depends-on): Likewise.
13227         * doc/posix-functions/pclose.texi: Mention the new module.
13228
13229 2011-09-17  Bruno Haible  <bruno@clisp.org>
13230
13231         popen: Support for MSVC.
13232         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
13233         * lib/popen.c (popen): Provide alternate definition for native Windows.
13234         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
13235         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
13236         * modules/popen (Depends-on, configure.ac): Update condition.
13237         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
13238         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
13239         fixed.
13240
13241 2011-09-17  Bruno Haible  <bruno@clisp.org>
13242
13243         isnanl, isnand, isnanf: Work around MSVC bug.
13244         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
13245
13246 2011-09-17  Bruno Haible  <bruno@clisp.org>
13247
13248         sys_socket tests: Fix recent mistake.
13249         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
13250
13251 2011-09-17  Bruno Haible  <bruno@clisp.org>
13252
13253         putenv: Support for MSVC.
13254         * modules/putenv (Depends-on): Add environ.
13255         * lib/putenv.c (environ): Disable declaration.
13256         * lib/unistd.in.h: Update comment.
13257
13258 2011-09-17  Bruno Haible  <bruno@clisp.org>
13259
13260         math: Avoid macro redefinition warnings on MSVC.
13261         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
13262         Undefine before redefining.
13263
13264 2011-09-17  Bruno Haible  <bruno@clisp.org>
13265
13266         doc: Mention functions which are declared as macros.
13267         * doc/posix-functions/*[fl].texi: Mention that some functions are
13268         defined as macros with arguments only.
13269
13270 2011-09-17  Bruno Haible  <bruno@clisp.org>
13271
13272         Add dependencies to new dirent related modules.
13273         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
13274         * modules/fts (Depends-on): Likewise.
13275         * modules/glob (Depends-on): Likewise.
13276         * modules/savedir (Depends-on): Likewise.
13277         * modules/scandir (Depends-on): Likewise.
13278         * modules/dirent-safer (Depends-on): Add opendir, closedir.
13279         * modules/fdopendir (Depends-on): Add opendir.
13280
13281 2011-09-17  Bruno Haible  <bruno@clisp.org>
13282
13283         inet_pton: Support for MSVC on Windows Vista or newer.
13284         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
13285         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
13286         HAVE_DECL_INET_PTON is defined.
13287         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13288         On platforms with <winsock2.h>, test whether inet_pton is declared in
13289         <ws2tcpip.h>. If so, arrange to replace it.
13290         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13291         REPLACE_INET_PTON.
13292         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
13293         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
13294         (Depends-on, configure.ac): Update condition.
13295         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
13296
13297 2011-09-17  Bruno Haible  <bruno@clisp.org>
13298
13299         inet_ntop: Support for MSVC on Windows Vista or newer.
13300         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
13301         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
13302         HAVE_DECL_INET_NTOP is defined.
13303         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13304         On platforms with <winsock2.h>, test whether inet_ntop is declared in
13305         <ws2tcpip.h>. If so, arrange to replace it.
13306         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
13307         REPLACE_INET_NTOP.
13308         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
13309         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
13310         (Depends-on, configure.ac): Update condition.
13311         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
13312
13313 2011-09-16  Eric Blake  <eblake@redhat.com>
13314
13315         test-fsync: yet another enhancement
13316         * tests/test-fsync.c (main): Also test behavior on read-only text
13317         file.
13318
13319 2011-09-16  Bruno Haible  <bruno@clisp.org>
13320
13321         Enhance fsync, fdatasync tests.
13322         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
13323         * tests/test-fdatasync.c (main): Likewise.
13324
13325 2011-09-16  Bruno Haible  <bruno@clisp.org>
13326
13327         Support for MSVC compiler: Ensure mode_t gets defined.
13328         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
13329         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13330         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
13331         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
13332         * tests/test-fcntl-h.c: Check that mode_t is defined.
13333         * tests/test-sys_stat.c: Likewise.
13334         * tests/test-sys_types.c: Likewise.
13335         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
13336         * doc/posix-headers/sys_stat.texi: Likewise.
13337         * doc/posix-headers/sys_types.texi: Likewise.
13338
13339 2011-09-16  Bruno Haible  <bruno@clisp.org>
13340
13341         sys_stat: Support for MSVC.
13342         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
13343         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
13344         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
13345         MSVC.
13346
13347 2011-09-16  Bruno Haible  <bruno@clisp.org>
13348
13349         Support for MSVC compiler: Ensure off_t gets defined.
13350         * lib/unistd.in.h: Include <sys/types.h>.
13351         * tests/test-fcntl-h.c: Check that off_t is defined.
13352         * tests/test-sys_stat.c: Likewise.
13353         * tests/test-sys_types.c: Likewise.
13354
13355 2011-09-16  Eric Blake  <eblake@redhat.com>
13356
13357         fdatasync: port to Solaris
13358         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
13359         * modules/fdatasync (Link): Document it.
13360         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
13361
13362         fdatasync: port to MacOS X 10.7
13363         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
13364         declared.
13365         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
13366         * modules/unistd (Makefile.am): Substitute it.
13367         * lib/unistd.in.h (fdatasync): Declare on MacOS.
13368         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
13369
13370         fdatasync: minor improvements
13371         * modules/fdatasync (Depends-on): Add condition for fsync.
13372         * lib/fdatasync.c (fdatasync): Add comment.
13373         * tests/test-unistd-c++.cc: Test fdatasync.
13374
13375         unistd: update refs to newer POSIX
13376         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
13377         Suggested by Bruno Haible.
13378
13379         fdatasync: new module
13380         * modules/fsync (Description): Document difference to fdatasync.
13381         * modules/fdatasync: New module.
13382         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
13383         * lib/fdatasync.c (fdatasync): Likewise.
13384         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
13385         defaults.
13386         * modules/unistd (Makefile.am): Set witnesses.
13387         * lib/unistd.in.h (fdatasync): Declare.
13388         * MODULES.html.sh: Document it.
13389         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
13390         * modules/fdatasync-tests: New test.
13391         * tests/test-fdatasync.c: Likewise.
13392
13393 2011-09-16  Eric Blake  <eblake@redhat.com>
13394
13395         test-fsync: enhance tests
13396         * modules/fsync-tests (Depends-on): Add errno, for mingw.
13397         * tests/test-fsync.c (main): Enhance test.
13398
13399 2011-09-15  Bruno Haible  <bruno@clisp.org>
13400
13401         Support for MSVC compiler: Ensure ssize_t gets defined.
13402         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
13403         * doc/posix-headers/stdio.texi: Likewise.
13404         * modules/stdio (Depends-on): Add ssize_t.
13405         * modules/sys_socket (Depends-on): Likewise.
13406         * modules/sys_types (Depends-on): Likewise.
13407         * modules/sys_uio (Depends-on): Likewise.
13408         * modules/unistd (Depends-on): Likewise.
13409         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
13410         * tests/test-sys_types.c: Check that ssize_t is defined.
13411
13412 2011-09-14  Bruno Haible  <bruno@clisp.org>
13413
13414         Avoid using #, the m4 comment starter character, near brackets.
13415         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
13416         delimiter character in sed expressions.
13417         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
13418         Suggested by Eric Blake.
13419
13420         Properly quote AC_CHECK_DECLS' 4th argument.
13421         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
13422         argument.
13423         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13424         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13425         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
13426         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
13427         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
13428         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
13429         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
13430         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
13431         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
13432         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
13433         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
13434         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
13435         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
13436         * m4/isinf.m4 (gl_ISINF): Likewise.
13437         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
13438         * m4/readutmp.m4 (gl_READUTMP): Likewise.
13439         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
13440         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13441         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13442         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13443         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
13444         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13445         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
13446         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13447         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13448         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13449         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
13450         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13451         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13452         Reported by Eric Blake.
13453
13454         Properly quote AC_CHECK_DECL's 4th argument.
13455         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
13456         argument.
13457         * m4/argp.m4 (gl_ARGP): Likewise.
13458         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
13459         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
13460         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
13461         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
13462         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
13463         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
13464         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
13465         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
13466         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
13467         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
13468         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
13469         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
13470         Reported by Eric Blake.
13471
13472 2011-09-14  Eric Blake  <eblake@redhat.com>
13473
13474         opendir: avoid compile warning
13475         * lib/opendir.c (includes): Always include errno.h.
13476         Reported by Tatsuro MATSUOKA.
13477
13478 2011-09-14  Jim Meyering  <meyering@redhat.com>
13479
13480         maint.mk: sc_tight_scope: propagate failure from sub-make
13481         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
13482         Reported by Martin von Gagern.
13483
13484 2011-09-13  Bruno Haible  <bruno@clisp.org>
13485
13486         tempname: Support for MSVC.
13487         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
13488         MSVC.
13489         * modules/tempname (Depends-on): Add fcntl-h.
13490
13491 2011-09-13  Bruno Haible  <bruno@clisp.org>
13492
13493         sys_time: Support for MSVC.
13494         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
13495         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
13496         include <winsock2.h>.
13497         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
13498         function declarations that collide with POSIX.
13499         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
13500         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13501
13502 2011-09-13  Bruno Haible  <bruno@clisp.org>
13503
13504         stat: Support for MSVC.
13505         * lib/stat.c: Include pathmax.h.
13506         * modules/stat (Depends-on): Add pathmax.
13507
13508         pathmax: Support for native Windows.
13509         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
13510
13511 2011-09-12  Bruno Haible  <bruno@clisp.org>
13512
13513         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
13514         * lib/dirent.in.h (struct dirent): New type.
13515         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
13516         DT_WHT): New macros.
13517         (DIR): New type.
13518         (opendir, closedir): Declare only if the module 'opendir' is enabled.
13519         (readdir, rewinddir): New declarations.
13520         * lib/dirent-private.h: New file.
13521         * lib/opendir.c: New file.
13522         * lib/readdir.c: New file.
13523         * lib/rewinddir.c: New file.
13524         * lib/closedir.c: New file.
13525         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
13526         * m4/opendir.m4: New file.
13527         * m4/readdir.m4: New file.
13528         * m4/rewinddir.m4: New file.
13529         * m4/closedir.m4: New file.
13530         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
13531         REPLACE_CLOSEDIR here.
13532         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
13533         readdir, rewinddir are declared.
13534         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
13535         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
13536         HAVE_REWINDDIR, HAVE_CLOSEDIR.
13537         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
13538         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
13539         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
13540         * modules/opendir: New file.
13541         * modules/readdir: New file.
13542         * modules/rewinddir: New file.
13543         * modules/closedir: New file.
13544         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
13545         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
13546         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
13547         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
13548         * NEWS: Mention the 'fchdir' change.
13549
13550 2011-09-11  Bruno Haible  <bruno@clisp.org>
13551
13552         asm-underscore.m4: Support for MSVC.
13553         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
13554         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
13555
13556 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
13557
13558         Doc about crypt functions.
13559         * doc/posix-functions/crypt.texi: Expand range of glibc versions
13560         needing for _GNU_SOURCE to get crypt.
13561         * doc/posix-functions/encrypt.texi: Likewise.
13562         * doc/posix-functions/setkey.texi: Likewise.
13563
13564 2011-09-11  Bruno Haible  <bruno@clisp.org>
13565
13566         doc: Update regarding MSVC 9.
13567         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13568         tested".
13569         * doc/posix-functions/*.texi: Update with info about MSVC 9.
13570         * doc/posix-headers/*.texi: Likewise.
13571         * doc/pastposix-functions/*.texi: Likewise.
13572         * doc/glibc-functions/*.texi: Likewise.
13573         * doc/glibc-headers/*.texi: Likewise.
13574
13575 2011-09-11  Bruno Haible  <bruno@clisp.org>
13576
13577         unistd et al.: Don't assume <unistd.h> exists.
13578         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
13579         does not exist.
13580         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
13581         exist. But include <stdlib.h>.
13582         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
13583         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
13584         symlink() does not exist.
13585         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
13586         include <io.h> instead.
13587         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
13588         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
13589         include <direct.h> instead.
13590         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
13591         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13592         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
13593         <io.h> instead.
13594         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
13595         correctly if the system does not have hard links.
13596         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
13597         <direct.h> instead.
13598         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
13599         it when looking for function declarations.
13600         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
13601         <direct.h> and <io.h> instead.
13602         * doc/posix-headers/unistd.texi: More details about MSVC problem.
13603
13604 2011-09-11  Bruno Haible  <bruno@clisp.org>
13605
13606         strcase: Support for MSVC.
13607         * modules/strcase (Status, Notice): Remove obsoletion mark.
13608         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
13609         * doc/posix-functions/strncasecmp.texi: Likewise.
13610
13611         strings: Don't assume <strings.h> exists.
13612         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
13613         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
13614         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
13615         * doc/posix-headers/strings.texi: Mention the MSVC problem.
13616
13617 2011-09-11  Bruno Haible  <bruno@clisp.org>
13618
13619         dirent: Don't assume <dirent.h> exists.
13620         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13621         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
13622         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
13623         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
13624
13625 2011-09-11  Bruno Haible  <bruno@clisp.org>
13626
13627         Fix wint_t on MSVC.
13628         * lib/wchar.in.h (wint_t): On MSVC, override it.
13629         * lib/wctype.in.h (wint_t): Likewise.
13630         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
13631         MSVC.
13632         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
13633         * doc/posix-headers/wctype.texi: Likewise.
13634
13635 2011-09-11  Bruno Haible  <bruno@clisp.org>
13636
13637         sys_types: Fix typo.
13638         * lib/sys_types.in.h: Fix typo in comment.
13639         Reported by Paul Eggert.
13640
13641         Support for MSVC compiler: Ensure size_t gets defined.
13642         * modules/strings (Depends-on): Add 'sys_types'.
13643         * modules/sys_uio (Depends-on): Likewise.
13644         * lib/sys_uio.in.h: Update comment.
13645
13646         C++ tests for module 'sys_types'.
13647         * modules/sys_types-c++-tests: New file.
13648         * tests/test-sys_types-c++.cc: New file.
13649
13650         Tests for module 'sys_types'.
13651         * modules/sys_types-tests: New file.
13652         * tests/test-sys_types.c: New file.
13653
13654         New module 'sys_types'.
13655         * lib/sys_types.in.h: New file.
13656         * m4/sys_types_h.m4: New file.
13657         * modules/sys_types: New file.
13658         * doc/posix-headers/sys_types.texi: Mention the new module and the
13659         size_t problem on MSVC 9.
13660
13661 2011-09-11  Bruno Haible  <bruno@clisp.org>
13662
13663         Support for MSVC compiler: Avoid division by a literal 0.
13664         * lib/math.in.h (NAN): Define through a function call also on MSVC.
13665         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
13666         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
13667         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
13668         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
13669         * tests/infinity.h: New file.
13670         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
13671         on MSVC.
13672         * tests/test-ceilf1.c: Include infinity.h.
13673         (main): Use Infinityf.
13674         * tests/test-ceil1.c: Include infinity.h.
13675         (main): Use Infinityd.
13676         * tests/test-ceill.c: Include infinity.h.
13677         (main): Use Infinityl.
13678         * tests/test-dprintf-posix.c: Include infinity.h.
13679         (test_function): Use Infinityd.
13680         * tests/test-floorf1.c: Include infinity.h.
13681         (main): Use Infinityf.
13682         * tests/test-floor1.c: Include infinity.h.
13683         (main): Use Infinityd.
13684         * tests/test-floorl.c: Include infinity.h.
13685         (main): Use Infinityl.
13686         * tests/test-fprintf-posix.c: Include infinity.h.
13687         (test_function): Use Infinityd.
13688         * tests/test-frexp.c: Include infinity.h.
13689         (main): Use Infinityd.
13690         * tests/test-frexpl.c: Include infinity.h.
13691         (main): Use Infinityl.
13692         * tests/test-isfinite.c: Include infinity.h.
13693         (test_isfinitef): Use Infinityf.
13694         (test_isfinited): Use Infinityd.
13695         (test_isfinitel): Use Infinityl.
13696         * tests/test-isinf.c: Include infinity.h.
13697         (test_isinff): Use Infinityf.
13698         (test_isinfd): Use Infinityd.
13699         (test_isinfl): Use Infinityl.
13700         * tests/test-isnan.c: Include infinity.h.
13701         (test_float): Use Infinityf.
13702         (test_double): Use Infinityd.
13703         (test_long_double): Use Infinityl.
13704         * tests/test-isnanf.h: Include infinity.h.
13705         (main): Use Infinityf.
13706         * tests/test-isnand.h: Include infinity.h.
13707         (main): Use Infinityd.
13708         * tests/test-isnanl.h: Include infinity.h.
13709         (main): Use Infinityl.
13710         * tests/test-ldexpl.c: Include infinity.h.
13711         (main): Use Infinityl.
13712         * tests/test-printf-posix.h: Include infinity.h.
13713         (test_function): Use Infinityd.
13714         * tests/test-roundf1.c: Include infinity.h.
13715         (main): Use Infinityf.
13716         * tests/test-round1.c: Include infinity.h.
13717         (main): Use Infinityd.
13718         * tests/test-roundl.c: Include infinity.h.
13719         (main): Use Infinityl.
13720         * tests/test-signbit.c: Include infinity.h.
13721         (test_signbitf): Use Infinityf.
13722         (test_signbitd): Use Infinityd.
13723         (test_signbitl): Use Infinityl.
13724         * tests/test-snprintf-posix.h: Include infinity.h.
13725         (test_function): Use Infinityd, Infinityl.
13726         * tests/test-sprintf-posix.h: Include infinity.h.
13727         (test_function): Use Infinityd, Infinityl.
13728         * tests/test-truncf1.c: Include infinity.h.
13729         (main): Use Infinityf.
13730         * tests/test-trunc1.c: Include infinity.h.
13731         (main): Use Infinityd.
13732         * tests/test-truncl.c: Include infinity.h.
13733         (main): Use Infinityl.
13734         * tests/test-vasnprintf-posix.c: Include infinity.h.
13735         (test_function): Use Infinityd, Infinityl.
13736         * tests/test-vasprintf-posix.c: Include infinity.h.
13737         (test_function): Use Infinityd, Infinityl.
13738         * modules/ceilf-tests (Files): Add tests/infinity.h.
13739         * modules/ceil-tests (Files): Likewise.
13740         * modules/ceill-tests (Files): Likewise.
13741         * modules/dprintf-posix-tests (Files): Likewise.
13742         * modules/floorf-tests (Files): Likewise.
13743         * modules/floor-tests (Files): Likewise.
13744         * modules/floorl-tests (Files): Likewise.
13745         * modules/fprintf-posix-tests (Files): Likewise.
13746         * modules/frexp-tests (Files): Likewise.
13747         * modules/frexp-nolibm-tests (Files): Likewise.
13748         * modules/frexpl-tests (Files): Likewise.
13749         * modules/frexpl-nolibm-tests (Files): Likewise.
13750         * modules/isfinite-tests (Files): Likewise.
13751         * modules/isinf-tests (Files): Likewise.
13752         * modules/isnan-tests (Files): Likewise.
13753         * modules/isnanf-tests (Files): Likewise.
13754         * modules/isnanf-nolibm-tests (Files): Likewise.
13755         * modules/isnand-tests (Files): Likewise.
13756         * modules/isnand-nolibm-tests (Files): Likewise.
13757         * modules/isnanl-tests (Files): Likewise.
13758         * modules/isnanl-nolibm-tests (Files): Likewise.
13759         * modules/ldexpl-tests (Files): Likewise.
13760         * modules/printf-posix-tests (Files): Likewise.
13761         * modules/roundf-tests (Files): Likewise.
13762         * modules/round-tests (Files): Likewise.
13763         * modules/roundl-tests (Files): Likewise.
13764         * modules/signbit-tests (Files): Likewise.
13765         * modules/snprintf-posix-tests (Files): Likewise.
13766         * modules/sprintf-posix-tests (Files): Likewise.
13767         * modules/truncf-tests (Files): Likewise.
13768         * modules/trunc-tests (Files): Likewise.
13769         * modules/truncl-tests (Files): Likewise.
13770         * modules/vasnprintf-posix-tests (Files): Likewise.
13771         * modules/vasprintf-posix-tests (Files): Likewise.
13772         * modules/vdprintf-posix-tests (Files): Likewise.
13773         * modules/vfprintf-posix-tests (Files): Likewise.
13774         * modules/vprintf-posix-tests (Files): Likewise.
13775         * modules/vsnprintf-posix-tests (Files): Likewise.
13776         * modules/vsprintf-posix-tests (Files): Likewise.
13777         * modules/xprintf-posix-tests (Files): Likewise.
13778
13779 2011-09-11  Bruno Haible  <bruno@clisp.org>
13780
13781         Ensure pid_t gets defined.
13782         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
13783         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
13784         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
13785         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13786         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
13787         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
13788         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
13789         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
13790         * tests/test-fcntl-h.c: Check that pid_t is defined.
13791         * tests/test-sched.c: Likewise.
13792         * tests/test-termios.c: Likewise.
13793         * tests/test-time.c: Likewise.
13794         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
13795         * doc/posix-headers/signal.texi: Likewise.
13796         * doc/posix-headers/sys_types.texi: Likewise.
13797         * doc/posix-headers/time.texi: Likewise.
13798
13799 2011-09-11  Bruno Haible  <bruno@clisp.org>
13800
13801         acl: Fix compilation on Solaris 10 (older version).
13802         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
13803         of ACE_EVERYONE.
13804         * lib/set-mode-acl.c (qset_acl): Likewise.
13805         Reported by Christian Jullien <eligis@orange.fr>.
13806
13807 2011-09-10  Bruno Haible  <bruno@clisp.org>
13808
13809         iconv, unsetenv: Add support for MSVC compiler.
13810         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13811         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13812
13813 2011-09-10  Bruno Haible  <bruno@clisp.org>
13814
13815         *printf: Add support for MSVC compiler.
13816         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13817         handles the exception caused by the %n directive. When cross-compiling,
13818         guess no on native Windows.
13819         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13820         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13821         emulate it through vsnprintf.
13822         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13823         * doc/posix-functions/dprintf.texi: Update documentation regarding
13824         MSVC 9.
13825         * doc/posix-functions/fprintf.texi: Likewise.
13826         * doc/posix-functions/printf.texi: Likewise.
13827         * doc/posix-functions/snprintf.texi: Likewise.
13828         * doc/posix-functions/sprintf.texi: Likewise.
13829         * doc/posix-functions/swprintf.texi: Likewise.
13830         * doc/posix-functions/vdprintf.texi: Likewise.
13831         * doc/posix-functions/vfprintf.texi: Likewise.
13832         * doc/posix-functions/vprintf.texi: Likewise.
13833         * doc/posix-functions/vsnprintf.texi: Likewise.
13834         * doc/posix-functions/vsprintf.texi: Likewise.
13835         * doc/glibc-functions/asprintf.texi: Likewise.
13836         * doc/glibc-functions/obstack_printf.texi: Likewise.
13837         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13838         * doc/glibc-functions/vasprintf.texi: Likewise.
13839
13840 2011-09-10  Bruno Haible  <bruno@clisp.org>
13841
13842         nocrash: Add support for native Windows.
13843         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13844
13845 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13846             Bruno Haible  <bruno@clisp.org>
13847
13848         absolute-header, include-next: Add support for MSVC compiler.
13849         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13850         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13851         directory separator in #line directives.
13852         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13853         recognize also backslash as directory separator in #line directives.
13854
13855 2011-09-08  Jim Meyering  <meyering@redhat.com>
13856
13857         maint.mk: mark the post-release commit log with "maint: " prefix
13858         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13859         one-line commit-log summary.
13860
13861 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13862             Bruno Haible  <bruno@clisp.org>
13863
13864         Doc about crypt functions.
13865         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13866         systems.
13867         * doc/posix-functions/encrypt.texi: Likewise.
13868         * doc/posix-functions/setkey.texi: Likewise.
13869
13870 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13871
13872         * lib/gc.h: Fix copyright header.
13873
13874 2011-09-07  Bruno Haible  <bruno@clisp.org>
13875
13876         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13877         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13878         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13879
13880 2011-09-07  Bruno Haible  <bruno@clisp.org>
13881
13882         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13883         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13884         * lib/freopen.c: Likewise.
13885         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13886         * lib/lstat.c: Likewise.
13887         * lib/stat.c: Likewise.
13888         * lib/open.c: Use different syntax for include of <fcntl.h>.
13889         * lib/openat.c: Include fcntl.h again, explicitly.
13890
13891 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13892
13893         parse-datetime: document the newly accepted format
13894         * doc/parse-datetime.texi (Combined date and time of day items):
13895         New section.
13896
13897 2011-09-06  Bruno Haible  <bruno@clisp.org>
13898
13899         acl: Fix a test failure on newer Solaris 10 with ZFS.
13900         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13901         ENOSYS as no ACL.
13902         Reported by Jim Meyering.
13903
13904 2011-09-06  Bruno Haible  <bruno@clisp.org>
13905
13906         acl: Update for AIX >= 5.3 with NFS.
13907         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13908         ENOSYS as no ACL.
13909
13910         acl: Fix a test failure on AIX >= 5.3 with NFS.
13911         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13912         as no ACL.
13913
13914 2011-09-06  Bruno Haible  <bruno@clisp.org>
13915
13916         acl: Fix a test failure on IRIX 6.5 with NFS.
13917         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13918         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13919         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13920         * lib/copy-acl.c (qcopy_acl): Likewise.
13921
13922 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13923
13924         openat: port to AIX 7.1 with large files
13925         AIX 7.1 does a "#define openat open64at" if large files are in use,
13926         so we can't simply #undef openat.  Use the orig_openat trick (similar
13927         to orig_open in lib/open.c) to work around the problem.  Problem
13928         reported by Kevin Brott for GNU tar, in the thread containing
13929         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13930         * lib/openat.c (__need_system_fcntl_h): Define first.
13931         Include <fcntl.h> and <sys/types.h> before undefining.
13932         (orig_openat) [HAVE_OPENAT]: New inline function.
13933         (openat) [HAVE_OPENAT]: Do not undef.
13934         (rpl_openat): Use orig_openat, not openat.
13935
13936 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13937             Bruno Haible  <bruno@clisp.org>
13938
13939         acl: Avoid errors on NonStop Kernel.
13940         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13941         ENOTSUP errors.
13942
13943 2011-09-05  Bruno Haible  <bruno@clisp.org>
13944
13945         acl: Clean up Solaris code.
13946         * lib/acl-internal.h: Remove no-op #if.
13947         * lib/file-has-acl.c: Likewise.
13948         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13949         * lib/copy-acl.c (qcopy_acl): Likewise.
13950
13951 2011-09-05  Bruno Haible  <bruno@clisp.org>
13952
13953         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13954         binaries built on the original Solaris 10.
13955         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13956         trivial.
13957
13958 2011-09-05  Bruno Haible  <bruno@clisp.org>
13959
13960         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13961         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13962         10.
13963         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13964         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13965         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13966         instead of acl_get, facl_get, acl_set, facl_set.
13967
13968 2011-09-05  Bruno Haible  <bruno@clisp.org>
13969
13970         copy-file: Try unit tests on more file systems.
13971         * tests/test-copy-file-1.sh: New file.
13972         * tests/test-copy-file-2.sh: New file.
13973         * modules/copy-file-tests (Files): Add them.
13974         (Makefile.am): Add them to TESTS.
13975
13976         acl: Try unit tests on more file systems.
13977         * tests/test-file-has-acl-1.sh: New file.
13978         * tests/test-file-has-acl-2.sh: New file.
13979         * tests/test-set-mode-acl-1.sh: New file.
13980         * tests/test-set-mode-acl-2.sh: New file.
13981         * tests/test-copy-acl-1.sh: New file.
13982         * tests/test-copy-acl-2.sh: New file.
13983         * modules/acl-tests (Files): Add them.
13984         (Makefile.am): Add them to TESTS.
13985
13986 2011-09-04  Bruno Haible  <bruno@clisp.org>
13987
13988         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13989         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13990         10.
13991         (OLD_ALLOW, OLD_DENY): New macros.
13992         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13993         ACE_ACCESS_ALLOWED_ACE_TYPE.
13994         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13995         ACE_ACCESS_DENIED_ACE_TYPE.
13996         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13997         (NEW_ACE_EXECUTE): Fix value.
13998         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13999         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
14000         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
14001         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
14002         NEW_ACE_SYNCHRONIZE): New macros.
14003         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
14004         instead of acl_fromtext, acl_set, facl_set.
14005         Fixes a coreutils/tests/cp/perm failure.
14006
14007 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
14008
14009         openat: test for fstatat (..., 0) bug
14010         Further testing with tar suggests that fstatat (..., 0)
14011         does not work in general, on AIX 7.1; see
14012         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
14013         So, give up entirely on AIX 7.1's fstatat, and fall back on our
14014         replacement fstatat (which is what older AIX releases were using
14015         anyway).
14016         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
14017         use is now changed to orig_fstatat.  This was probably the right
14018         thing to do anyway.
14019         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
14020         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
14021         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
14022         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
14023         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
14024         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
14025         if the bug is found.
14026
14027         openat: test for fstatat (AT_FDCWD, ..., 0) bug
14028         This tests for another fstatat bug on AIX 7.1:
14029         fstatat (AT_FDCWD, ..., 0) does not work.  See
14030         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
14031         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
14032         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
14033         (rpl_fstatat): Adjust so that it works around either (or both)
14034         bugs if present.
14035         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
14036
14037 2011-09-03  Karl Berry  <karl@gnu.org>
14038
14039         * doc/regex.texi (Character Class Operators): Avoid literal ":"
14040         in index entries.
14041
14042 2011-09-02  Bruno Haible  <bruno@clisp.org>
14043
14044         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
14045         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
14046         values of AR, ARFLAGS, RANLIB.
14047         Reported by John W. Eaton <jwe@gnu.org> for Octave.
14048
14049 2011-09-02  Bruno Haible  <bruno@clisp.org>
14050
14051         Find 'ar' program that fits with --host argument.
14052         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
14053
14054 2011-09-02  Bruno Haible  <bruno@clisp.org>
14055
14056         tests: init.sh: Support any non-GNU diff.
14057         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
14058         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
14059         Solaris 8.
14060
14061 2011-09-02  Bruno Haible  <bruno@clisp.org>
14062
14063         tests: init.sh: work also with any non-GNU diff that supports -u
14064         * tests/init.sh: Relax check for diff -u support.
14065         Rather than checking for GNU diff via --version, simply check
14066         for support for -u itself.  Useful at least on OpenBSD 4.9,
14067         AIX 7.1, IRIX 6.5, and Solaris 10.
14068
14069 2011-09-01  Bruno Haible  <bruno@clisp.org>
14070
14071         strtoimax, strtoumax: Document problem on HP-UX 11.
14072         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
14073         * doc/posix-functions/strtoumax.texi: Likewise.
14074
14075 2011-09-01  Bruno Haible  <bruno@clisp.org>
14076
14077         strtoumax: Avoid link error on OSF/1 with DTK cc.
14078         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
14079         defined as a function.
14080         * modules/strtoumax (Depends-on, configure.ac): Test only whether
14081         strtoumax is defined, not whether it is declared.
14082
14083 2011-09-01  Bruno Haible  <bruno@clisp.org>
14084
14085         strtoimax: Avoid link error on OSF/1 with DTK cc.
14086         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
14087         defined as a function.
14088         * modules/strtoimax (Depends-on, configure.ac): Test only whether
14089         strtoimax is defined, not whether it is declared.
14090
14091 2011-09-01  Bruno Haible  <bruno@clisp.org>
14092
14093         imaxdiv: Avoid link error on OSF/1 with DTK cc.
14094         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
14095         as a function.
14096         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
14097         whether it is declared.
14098
14099 2011-09-01  Bruno Haible  <bruno@clisp.org>
14100
14101         imaxabs: Avoid link error on OSF/1 with DTK cc.
14102         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
14103         as a function.
14104         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
14105         whether it is declared.
14106
14107 2011-09-01  Bruno Haible  <bruno@clisp.org>
14108
14109         Tests for module 'strtoumax'.
14110         * modules/strtoumax-tests: New file.
14111         * tests/test-strtoumax.c: New file.
14112
14113         Tests for module 'strtoimax'.
14114         * modules/strtoimax-tests: New file.
14115         * tests/test-strtoimax.c: New file.
14116
14117         Tests for module 'imaxdiv'.
14118         * modules/imaxdiv-tests: New file.
14119         * tests/test-imaxdiv.c: New file.
14120
14121         Tests for module 'imaxabs'.
14122         * modules/imaxabs-tests: New file.
14123         * tests/test-imaxabs.c: New file.
14124
14125 2011-09-01  Bruno Haible  <bruno@clisp.org>
14126
14127         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
14128         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
14129         pthread_create.
14130
14131 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
14132
14133         openat: work around AIX 7.1 fstatat issue
14134         This should fix the problem that was not properly fixed
14135         in the previous change, dated 2011-08-30.
14136         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
14137         __need_system_stat_h defined.
14138         (orig_fstatat) [HAVE_FSTATAT]: New function.
14139         (rpl_fstatat): Go back to the old way of doing things,
14140         except call orig_fstatat instead of fstatat.
14141         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
14142         Remove unnecessary check whether fstatat fills in st_size etc.
14143
14144 2011-09-01  Bruno Haible  <bruno@clisp.org>
14145
14146         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
14147         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
14148         just include the system's header.
14149
14150 2011-08-31  Jim Meyering  <meyering@redhat.com>
14151
14152         tests: avoid spurious assertion failure in test-float.c on ppc64
14153         * tests/test-float.c (test_long_double): Comment out an assertion,
14154         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
14155         with gcc-4.4.4.
14156
14157         maint: indent with spaces, not TABs
14158         I need to get in the habit of running gnulib's "make check".
14159         Both of these would have been caught.
14160         * m4/largefile.m4: Indent with spaces, not TABs.
14161         * lib/parse-datetime.y (iso_8601_time): Likewise.
14162         Spotted by Pádraig Brady.
14163
14164         test-parse-datetime.c: accommodate a relatively strict gcc warning
14165         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
14166         to avoid a warning from gcc's -Werror=missing-declarations.
14167         Insert a few spaces-before-funcall-parenthesis.
14168
14169 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
14170
14171         parse-datetime: accept ISO 8601 date and time rep with "T" separator
14172         The parser now accepts ISO 8601 date-time strings with "T" as the
14173         separator.  It has long parsed dates like "2004-02-29 16:21:42"
14174         with a space between the date and time strings.  Now it also parses
14175         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
14176         variants like "2004-02-29T16:21:42.333-07:00"
14177         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
14178         of day representation using the 'T' separator character.
14179         * doc/parse-datetime.texi (General date syntax): replace use of
14180         deprecated --iso-8601 option with --rfc-3339 in example of date
14181         command output formats that can be parsed.
14182         * tests/test-parse-datetime.c (tm_diff): New function, taken from
14183         lib/parse-datetime.y.
14184         (gmt_offset): New function.
14185         (main): Add additional test cases to validate ISO8601 extended
14186         date and time of day parsing.
14187
14188 2011-08-31  Bruno Haible  <bruno@clisp.org>
14189
14190         freopen: Documentation.
14191         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
14192         name.
14193         Reported by Claudio Bley <claudio.bley@gmail.com>.
14194
14195 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
14196
14197         freopen: Don't crash if the filename argument is NULL.
14198         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
14199         NULL.
14200
14201 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
14202
14203         openat: work around AIX 7.1 fstatat bug
14204         Problem reported by Kevin Brott for GNU tar, in the thread containing
14205         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
14206         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
14207         FSTATAT_ST_SIZE_ETC_BROKEN.
14208         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
14209         rpl_fstatat.
14210         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
14211         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
14212         AC_CHECK_FUNCS_ONCE for fstatat.
14213         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
14214         fchmodat, mkdirat, openat and unlinkat.
14215
14216 2011-08-30  Bruno Haible  <bruno@clisp.org>
14217
14218         Avoid endless recursions if config.h includes some header files.
14219         * lib/fopen.c (__need_FILE): Define already before including config.h.
14220         * lib/freopen.c (__need_FILE): Likewise.
14221         * lib/open.c (__need_system_fcntl_h): Likewise.
14222         * lib/stat.c (__need_system_sys_stat_h): Likewise.
14223         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
14224         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
14225
14226 2011-08-25  Karl Berry  <karl@gnu.org>
14227
14228         * config/srclist.txt (ylwrap): new try.
14229         * build-aux/ylwrap: new file.
14230
14231 2011-08-23  Bruno Haible  <bruno@clisp.org>
14232
14233         tmpdir: Use a good default directory on native Windows.
14234         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
14235         (P_tmpdir): Default to _P_tmpdir on native Windows.
14236         (path_search): On native Windows, try the value returned by GetTempPath
14237         before trying P_tmpdir.
14238         * modules/tmpdir (Depends-on): Add pathmax.
14239         Suggested by John Darrington <john@darrington.wattle.id.au>.
14240
14241 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
14242
14243         doc: fix typo in README-release
14244         * top/README-release: Capitalize first word of a sentence.
14245
14246 2011-08-19  Jim Meyering  <meyering@redhat.com>
14247
14248         fts: do not exhaust memory when processing million-entry directories
14249         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
14250         directory would require about 256*N bytes of memory.  Thus, it was
14251         easy to construct a directory too large to be processed by any of
14252         those tools.  With this change, fts' maximum memory utilization is
14253         now limited to around 30MB.
14254         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
14255         (fts_read): When we've processed the final entry (i.e., when
14256         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
14257         using the parent entry to read any remaining entries.  Dispatch
14258         depending on what fts_build returns:
14259         - NULL+stop, aka failure: stop
14260         - NULL otherwise: move up in the dir hierarchy
14261         - non-NULL: handle this new entry
14262         (fts_build): Declare and use new local, continue_readdir.
14263         Prepare to be called from fts_read, when the entries
14264         from a partially-read directory have just been exhausted.
14265         In that case, we'll skip the opendir and instead use the parent's
14266         fts_dirp and derive dir_fd from that.
14267         Finally, in the readdir loop, if we read max_entries entries,
14268         exit the loop ensuring *not* to call closedir.  This is required
14269         so that fts_dirp can be reused on a subsequent call.
14270         Prompted by Ben England's report of memory exhaustion in find
14271         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
14272
14273         maint: fts: move decl of `dp' down into while loop; split a long line
14274         * lib/fts.c (fts_build): No semantic change.
14275
14276         fts: add/use new struct member, fts_dirp
14277         We are about to use this to manage any directory with
14278         too many entries to read all of them into memory at once.
14279         To do that, we'll need to save the DIR* pointer in each
14280         affected FTSENT struct.
14281         * lib/fts_.h: Include <dirent.h>.
14282         (struct FTSENT) [fts_dirp]: New member.
14283         * lib/fts.c (closedir_and_clear): Define.
14284         Use it in place of closedir so that we are sure to
14285         clear the new fts_dirp member when done with it.
14286         (fts_alloc): Initialize the new member.
14287         (fts_lfree): Free, if needed.
14288
14289         maint: fts: give __opendir2 a new parameter and rename
14290         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
14291         than surreptitiously using sole caller's "dir_fd".
14292         (fts_opendir): Rename from __opendir2.
14293
14294         maint: fts.c: remove __opendir2's now-unused parameter, oflag
14295         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
14296
14297         maint: fts.c: correct off-by-one indentation
14298         * lib/fts.c (fts_build): Correct indentation, change style
14299         of a couple of block comments, and bracing style.
14300
14301         maint: fts.c: move __opendir2 #define "up" out of function body
14302         * lib/fts.c (__opendir2): Move "up".  No semantic change.
14303
14304         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
14305         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
14306         out for a long time and besides was useful only on BSD systems.
14307
14308 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
14309
14310         regex: port to Stratus OpenVOS
14311         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
14312         define to empty, rather than attempting nonportable optimizations.
14313         Problem reported by Paul Green in:
14314         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
14315         and fix suggested by Eric Blake in:
14316         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
14317
14318 2011-08-17  Eric Blake  <eblake@redhat.com>
14319
14320         getcwd: fix test failures on mingw
14321         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
14322         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
14323         test if long directory cannot be created, and allow mingw errno.
14324
14325         getcwd-lgpl: fix m4 to match relaxed test for BSD
14326         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
14327         (gl_FUNC_GETCWD_SIGNATURE): New macro.
14328         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
14329         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
14330         signature problem.
14331
14332         getcwd: fix compilation on mingw64
14333         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
14334         getcwd.
14335         Reported by Marc-André Lureau.
14336
14337         pipe2: silence compiler warning
14338         * lib/pipe2.c (pipe2): Hide label if it is not used.
14339
14340 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
14341
14342         relocatable-prog: fix link error
14343         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
14344         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
14345         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
14346         into modules/relocatable-lib without noticing that
14347         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
14348         also needs to build relocatable.c.
14349
14350 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
14351
14352         getaddrinfo: fix sh typo in gai_strerrorA decl checking
14353         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
14354         shell code: it contained a 'break' that was not in a loop.
14355         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
14356         via a shell-language loop; this may have been true in old Autoconf
14357         versions, but it's not true in Autoconf 2.68.  I found this bug
14358         when testing coreutils git on Solaris 8, whose shell complains
14359         about the syntax error.
14360
14361 2011-08-12  Simon Josefsson  <simon@josefsson.org>
14362
14363         * lib/base64.c: Fix comment to reference RFC 4648.
14364         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
14365         <gvtulder@gmail.com>.
14366
14367 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
14368
14369         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
14370
14371         po/Makefile.in.in: fix make -q problem
14372         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
14373         rule, since there's no file named 'check-macro-version' and its
14374         use as a file breaks make -q.
14375         (all): Don't depend on check-macro-version.
14376         (CHECK_MACRO_VERSION): New macro.
14377         (stamp-po): Use it.
14378
14379         configmake: fix make -q problem
14380         * modules/configmake (configmake.h): Update configmake.h's time stamp
14381         even if the file does not change.  Otherwise, 'make -q' fails.
14382         Problem reported by Simon Josefsson in
14383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
14384
14385 2011-08-11  Jim Meyering  <meyering@redhat.com>
14386
14387         git-version-gen: correct the advice in a comment
14388         * build-aux/git-version-gen: Correct comment.
14389         Don't recommend to list .tarball-version in .gitignore.
14390
14391 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
14392
14393         base64: fix off-by-one buffer size bug
14394         Problem and (trivial) fix reported by Gijs van Tulder in
14395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
14396         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
14397         * tests/test-base64.c (main): Catch the bug.
14398
14399 2011-08-10  Eric Blake  <eblake@redhat.com>
14400
14401         closein: correct comments
14402         * lib/closein.c (close_stdin): Improve comments.
14403
14404 2011-08-09  Bruno Haible  <bruno@clisp.org>
14405
14406         More tests for 'fseeko'.
14407         * tests/test-fseeko3.c: New file, from Eric Blake.
14408         * tests/test-fseeko3.sh: New file.
14409         * modules/fseeko-tests (Files): Add them.
14410         (TESTS): Add test-fseeko3.sh.
14411         (check_PROGRAMS): Add test-fseeko3.
14412
14413 2011-08-09  Eric Blake  <eblake@redhat.com>
14414
14415         fseeko: remove unneeded hack
14416         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
14417
14418         fseeko: fix bug on glibc
14419         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
14420         Reported by John W. Eaton.
14421
14422 2011-08-08  Bruno Haible  <bruno@clisp.org>
14423
14424         unictype/base: Fix interoperability with preinstalled libunistring.
14425         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
14426         Reported by Simon Josefsson.
14427
14428 2011-08-08  Bruno Haible  <bruno@clisp.org>
14429
14430         iswblank: Detect declaration correctly.
14431         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
14432         AC_CHECK_DECLS invocation.
14433
14434 2011-08-08  Bruno Haible  <bruno@clisp.org>
14435
14436         tcgetsid: Detect declaration correctly.
14437         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
14438         AC_CHECK_DECLS invocation.
14439         Reported by Simon Josefsson.
14440
14441 2011-08-08  Eric Blake  <eblake@redhat.com>
14442
14443         largefile: fix typo that regressed large file support
14444         * modules/largefile (configure.ac-early): Fix section name.
14445
14446 2011-08-06  Karl Berry  <karl@gnu.org>
14447
14448         * MODULES.html.sh (func_all_files): _Noreturn is no longer
14449         a separate module.
14450
14451 2011-08-05  Simon Josefsson  <simon@josefsson.org>
14452
14453         openat: Fix warnings and commens when building unlinkat.c on Hurd.
14454         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
14455         get prototype for free.
14456
14457 2011-08-04  Bruno Haible  <bruno@clisp.org>
14458
14459         Tests for module 'pathmax'.
14460         * modules/pathmax-tests: New file.
14461         * tests/test-pathmax.c: New file.
14462
14463         canonicalize-lgpl: Support larger filenames on the Hurd.
14464         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
14465         Reported by Paul Eggert.
14466
14467         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
14468         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
14469         * lib/chdir-long.h: Include pathmax.h.
14470         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
14471         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
14472         (PATH_MAX): Remove code that is done by pathmax.h.
14473         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
14474         * lib/tmpfile.c: Add a comment.
14475         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
14476         * modules/chdir-long (Depends-on): Add pathmax.
14477         * modules/getcwd (Depends-on): Add pathmax.
14478         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
14479         is not defined.
14480         * doc/posix-headers/limits.texi: Mention the pathmax module.
14481         * NEWS: Mention the change.
14482
14483 2011-08-02  Bruno Haible  <bruno@clisp.org>
14484
14485         pthread_sigmask: Actually use results of gl_THREADLIB.
14486         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
14487         gl_THREADLIB, not gl_[]THREADLIB.
14488         Reported by Eric Blake.
14489
14490 2011-08-02  Jim Meyering  <meyering@redhat.com>
14491
14492         maint.mk: relax the default _gl_TS_function_match regexp
14493         * top/maint.mk (_gl_TS_function_match): Don't require at least one
14494         space between function name and "(" in an "extern" declaration.
14495         That would fail to match a decl with no space there: extern void foo();
14496
14497 2011-07-31  Iain Nicol  <iain@thenicols.net>
14498
14499         git-version-gen: document that EXTRA_DIST must include .version
14500         * build-aux/git-version-gen: In the how-to-use comment, document
14501         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
14502         will fail when run from an unpacked distribution tarball.
14503
14504 2011-08-01  Bruno Haible  <bruno@clisp.org>
14505
14506         wctype-h: Fix last change.
14507         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
14508         REPLACE_TOWLOWER to 0.
14509         Reported by Sam Steingold <sds@gnu.org>.
14510
14511 2011-07-31  Bruno Haible  <bruno@clisp.org>
14512
14513         frexpl: Update autoconf test.
14514         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
14515         according to changes of 2011-06-20.
14516
14517 2011-07-31  Bruno Haible  <bruno@clisp.org>
14518
14519         sys_utsname: Add support for Minix.
14520         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
14521         <sys/utsname.h>.
14522         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
14523         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
14524
14525 2011-07-31  Bruno Haible  <bruno@clisp.org>
14526
14527         strings: Add support for Minix.
14528         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
14529         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
14530         * doc/posix-headers/strings.texi: Document the Minix problem.
14531
14532 2011-07-31  Bruno Haible  <bruno@clisp.org>
14533
14534         wctype-h: Add support for Minix.
14535         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
14536         REPLACE_TOWLOWER.
14537         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
14538         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
14539         REPLACE_ISWCNTRL.
14540
14541 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
14542
14543         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
14544         This is a performance improvement for 64-bit hosts: it causes the
14545         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
14546
14547 2011-07-31  Bruno Haible  <bruno@clisp.org>
14548
14549         stdioext: Add support for Minix.
14550         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
14551         * lib/fpurge.c (fpurge): Likewise.
14552         * lib/freadahead.c (freadahead): Likewise.
14553         * lib/freadable.c (freadable): Likewise.
14554         * lib/freading.c (freading): Likewise.
14555         * lib/freadptr.c (freadptr): Likewise.
14556         * lib/freadseek.c (freadptrinc): Likewise.
14557         * lib/fseeko.c (rpl_fseeko): Likewise.
14558         * lib/fseterr.c (fseterr): Likewise.
14559         * lib/fwritable.c (fwritable): Likewise.
14560         * lib/fwriting.c (fwriting): Likewise.
14561         * lib/fflush.c (clear_ungetc_buffer): Update comment.
14562         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
14563
14564 2011-07-31  Bruno Haible  <bruno@clisp.org>
14565
14566         errno: Port to Minix.
14567         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
14568         ECONNABORTED are defined.
14569         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
14570         GNULIB_defined_ECONNABORTED): New macros.
14571         * lib/strerror-override.h (strerror_override): Test also
14572         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
14573         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
14574         ECONNABORTED.
14575         * doc/posix-headers/errno.texi: Mention the Minix problem.
14576
14577 2011-07-31  Bruno Haible  <bruno@clisp.org>
14578
14579         Work around declaration collisions on Minix.
14580         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
14581         defined, set REPLACE_MBSINIT.
14582         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
14583         defined, set REPLACE_MBRTOWC.
14584         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
14585         set REPLACE_MBRLEN.
14586         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
14587         defined, set REPLACE_MBSRTOWCS.
14588         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
14589         defined, set REPLACE_WCRTOMB.
14590         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
14591         defined, set REPLACE_WCSRTOMBS.
14592
14593 2011-07-31  Bruno Haible  <bruno@clisp.org>
14594
14595         Add support for Minix with ACK compiler.
14596         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
14597         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
14598         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
14599
14600 2011-07-31  Bruno Haible  <bruno@clisp.org>
14601
14602         Documentation about Minix.
14603         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
14604         * doc/glibc-headers/*.texi: Likewise.
14605         * doc/posix-functions/*.texi: Likewise.
14606         * doc/glibc-functions/*.texi: Likewise.
14607
14608 2011-07-31  Bruno Haible  <bruno@clisp.org>
14609
14610         snippet/warn-on-use: Fix indentation.
14611         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
14612
14613 2011-07-25  Jim Meyering  <meyering@redhat.com>
14614
14615         tests: test-update-copyright.sh: remove unnecessary "rm" commands
14616         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
14617         commands.
14618
14619 2011-07-27  Jim Meyering  <meyering@redhat.com>
14620
14621         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
14622         * top/maint.mk (gl_extract_significant_defines_): Now that
14623         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
14624         gnulib/lib/signal.in.h, and now that we recommend to
14625         define-if-undefined those two symbols in application code,
14626         we must filter them out of the "significant" list.
14627         This avoids a "make syntax-check" failure in coreutils.
14628
14629 2011-07-26  Eric Blake  <eblake@redhat.com>
14630
14631         warnings: add comments about previous patch
14632         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
14633         * m4/include_next.m4: Likewise.
14634         * m4/warn-on-use.m4: Likewise.
14635         * m4/warnings.m4: Likewise, and simplify use.
14636         Suggested by Stefano Lattarini.
14637
14638         include-next, warnings: support older autoconf
14639         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
14640         AS_VAR_PUSHDEF in a way that works with older autoconf.
14641         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
14642         Reported by Daniel P. Berrange.
14643
14644 2011-07-25  Bruno Haible  <bruno@clisp.org>
14645
14646         fseek, ftell: Fix doc.
14647         * doc/posix-functions/fseek.texi: Reword statement about
14648         AC_SYS_LARGEFILE.
14649         * doc/posix-functions/ftell.texi: Likewise.
14650
14651 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14652             Bruno Haible  <bruno@clisp.org>
14653
14654         Add dependencies to the 'largefile' module.
14655         * modules/fopen (Depends-on): Add 'largefile'.
14656         * modules/freopen (Depends-on): Likewise.
14657         * modules/fseeko (Depends-on): Likewise.
14658         * modules/ftello (Depends-on): Likewise.
14659         * modules/glob (Depends-on): Likewise.
14660         * modules/lseek (Depends-on): Likewise.
14661         * modules/lstat (Depends-on): Likewise.
14662         * modules/mkostemp (Depends-on): Likewise.
14663         * modules/mkostemps (Depends-on): Likewise.
14664         * modules/mkstemp (Depends-on): Likewise.
14665         * modules/mkstemps (Depends-on): Likewise.
14666         * modules/open (Depends-on): Likewise.
14667         * modules/openat (Depends-on): Likewise.
14668         * modules/pread (Depends-on): Likewise.
14669         * modules/pwrite (Depends-on): Likewise.
14670         * modules/scandir (Depends-on): Likewise.
14671         * modules/stat (Depends-on): Likewise.
14672         * modules/tmpfile (Depends-on): Likewise.
14673         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
14674         since the containing module now depends on the largefile module.
14675         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
14676         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
14677         off_t is fixed by gnulib.
14678         * doc/posix-functions/freopen.texi: Likewise.
14679         * doc/posix-functions/fseeko.texi: Likewise.
14680         * doc/posix-functions/fstatat.texi: Likewise.
14681         * doc/posix-functions/ftello.texi: Likewise.
14682         * doc/posix-functions/glob.texi: Likewise.
14683         * doc/posix-functions/lseek.texi: Likewise.
14684         * doc/posix-functions/lstat.texi: Likewise.
14685         * doc/posix-functions/mkstemp.texi: Likewise.
14686         * doc/posix-functions/open.texi: Likewise.
14687         * doc/posix-functions/openat.texi: Likewise.
14688         * doc/posix-functions/pread.texi: Likewise.
14689         * doc/posix-functions/pwrite.texi: Likewise.
14690         * doc/posix-functions/scandir.texi: Likewise.
14691         * doc/posix-functions/stat.texi: Likewise.
14692         * doc/posix-functions/tmpfile.texi: Likewise.
14693         * doc/glibc-functions/mkostemp.texi: Likewise.
14694         * doc/glibc-functions/mkostemps.texi: Likewise.
14695         * doc/glibc-functions/mkstemps.texi: Likewise.
14696
14697 2011-07-25  Bruno Haible  <bruno@clisp.org>
14698
14699         fcntl: Move AC_LIBOBJ invocation to module description.
14700         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
14701         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
14702
14703         fcntl: Remove call-in from fchdir.m4.
14704         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
14705         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
14706
14707         dup3: Remove potential call-in from fchdir.m4.
14708         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
14709         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
14710
14711         dup2: Move AC_LIBOBJ invocation to module description.
14712         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
14713         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
14714         Don't invoke AC_LIBOBJ.
14715         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
14716
14717         dup2: Remove call-in from fchdir.m4.
14718         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
14719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
14720
14721         fclose: Move AC_LIBOBJ invocation to module description.
14722         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
14723         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
14724         to 1.
14725         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
14726
14727         fclose: Remove call-in from close.m4.
14728         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
14729         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
14730
14731         close: Move AC_LIBOBJ invocation to module description.
14732         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
14733         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
14734         1.
14735         * modules/close (configure.ac): Invoke AC_LIBOBJ.
14736
14737         close: Remove call-in from fchdir.m4.
14738         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
14739         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
14740
14741         open: Move AC_LIBOBJ invocation to module description.
14742         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
14743         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
14744         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
14745
14746         open: Remove call-in from fchdir.m4.
14747         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
14748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
14749
14750         fchdir: Start to remove gl_REPLACE_* idiom.
14751         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
14752         (gl_FUNC_FCHDIR): Invoke it.
14753
14754 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
14755
14756         * lib/ftell.c (ftell): Comment out cast.
14757
14758         close: use gl_REPLACE_FCLOSE only if defined
14759         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
14760         is defined.  The close module doesn't depend on the fclose module
14761         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
14762         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
14763         I reproduced the problem with "./gnulib-tool --test close sys_socket".
14764
14765 2011-07-24  Jim Meyering  <meyering@redhat.com>
14766
14767         test-select.h: avoid warning when using gcc's -Wmissing-declarations
14768         * tests/test-select.h (test_function): Declare as "static".
14769
14770 2011-07-24  Bruno Haible  <bruno@clisp.org>
14771
14772         doc: Mention the effects of AC_SYS_LARGEFILE.
14773         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
14774         on this function.
14775         * doc/posix-functions/aio_error.texi: Likewise.
14776         * doc/posix-functions/aio_fsync.texi: Likewise.
14777         * doc/posix-functions/aio_read.texi: Likewise.
14778         * doc/posix-functions/aio_return.texi: Likewise.
14779         * doc/posix-functions/aio_suspend.texi: Likewise.
14780         * doc/posix-functions/aio_write.texi: Likewise.
14781         * doc/posix-functions/fgetpos.texi: Likewise.
14782         * doc/posix-functions/fopen.texi: Likewise.
14783         * doc/posix-functions/freopen.texi: Likewise.
14784         * doc/posix-functions/fsetpos.texi: Likewise.
14785         * doc/posix-functions/fstatvfs.texi: Likewise.
14786         * doc/posix-functions/ftruncate.texi: Likewise.
14787         * doc/posix-functions/ftw.texi: Likewise.
14788         * doc/posix-functions/getrlimit.texi: Likewise.
14789         * doc/posix-functions/glob.texi: Likewise.
14790         * doc/posix-functions/lio_listio.texi: Likewise.
14791         * doc/posix-functions/lockf.texi: Likewise.
14792         * doc/posix-functions/mkstemp.texi: Likewise.
14793         * doc/posix-functions/mmap.texi: Likewise.
14794         * doc/posix-functions/nftw.texi: Likewise.
14795         * doc/posix-functions/openat.texi: Likewise.
14796         * doc/posix-functions/opendir.texi: Likewise.
14797         * doc/posix-functions/posix_fadvise.texi: Likewise.
14798         * doc/posix-functions/posix_fallocate.texi: Likewise.
14799         * doc/posix-functions/pread.texi: Likewise.
14800         * doc/posix-functions/pwrite.texi: Likewise.
14801         * doc/posix-functions/readdir.texi: Likewise.
14802         * doc/posix-functions/readdir_r.texi: Likewise.
14803         * doc/posix-functions/rewinddir.texi: Likewise.
14804         * doc/posix-functions/scandir.texi: Likewise.
14805         * doc/posix-functions/seekdir.texi: Likewise.
14806         * doc/posix-functions/setrlimit.texi: Likewise.
14807         * doc/posix-functions/statvfs.texi: Likewise.
14808         * doc/posix-functions/telldir.texi: Likewise.
14809         * doc/posix-functions/tmpfile.texi: Likewise.
14810         * doc/posix-functions/truncate.texi: Likewise.
14811         * doc/glibc-functions/fallocate.texi: Likewise.
14812         * doc/glibc-functions/fstatfs.texi: Likewise.
14813         * doc/glibc-functions/fts_children.texi: Likewise.
14814         * doc/glibc-functions/fts_read.texi: Likewise.
14815         * doc/glibc-functions/getdirentries.texi: Likewise.
14816         * doc/glibc-functions/mkostemp.texi: Likewise.
14817         * doc/glibc-functions/mkostemps.texi: Likewise.
14818         * doc/glibc-functions/mkstemps.texi: Likewise.
14819         * doc/glibc-functions/preadv.texi: Likewise.
14820         * doc/glibc-functions/pwritev.texi: Likewise.
14821         * doc/glibc-functions/sendfile.texi: Likewise.
14822         * doc/glibc-functions/statfs.texi: Likewise.
14823
14824 2011-07-24  Bruno Haible  <bruno@clisp.org>
14825
14826         doc: Fix typo.
14827         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14828
14829 2011-07-24  Bruno Haible  <bruno@clisp.org>
14830
14831         doc: Mention fsusage.
14832         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14833
14834 2011-07-24  Bruno Haible  <bruno@clisp.org>
14835
14836         doc: Mention new glibc headers and functions.
14837         * doc/glibc-headers/gshadow.texi: New file.
14838         * doc/glibc-functions/endsgent.texi: New file.
14839         * doc/glibc-functions/fgetsgent.texi: New file.
14840         * doc/glibc-functions/fgetsgent_r.texi: New file.
14841         * doc/glibc-functions/getsgent.texi: New file.
14842         * doc/glibc-functions/getsgent_r.texi: New file.
14843         * doc/glibc-functions/getsgnam.texi: New file.
14844         * doc/glibc-functions/getsgnam_r.texi: New file.
14845         * doc/glibc-functions/putsgent.texi: New file.
14846         * doc/glibc-functions/setsgent.texi: New file.
14847         * doc/glibc-functions/sgetsgent.texi: New file.
14848         * doc/glibc-functions/sgetsgent_r.texi: New file.
14849         * doc/glibc-functions/malloc_info.texi: New file.
14850         * doc/glibc-functions/preadv.texi: New file.
14851         * doc/glibc-functions/pwritev.texi: New file.
14852         * doc/glibc-functions/register_printf_modifier.texi: New file.
14853         * doc/glibc-functions/register_printf_specifier.texi: New file.
14854         * doc/glibc-functions/register_printf_type.texi: New file.
14855         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14856         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14857         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14858         * doc/glibc-functions/pthread_getname_np.texi: New file.
14859         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14860         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14861         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14862         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14863         * doc/glibc-functions/pthread_setname_np.texi: New file.
14864         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14865         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14866         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14867         * doc/glibc-functions/qsort_r.texi: New file.
14868         * doc/glibc-functions/quick_exit.texi: New file.
14869         * doc/glibc-functions/syncfs.texi: New file.
14870         * doc/gnulib.texi: Include them.
14871         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14872         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14873         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14874         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14875         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14876         * doc/glibc-functions/execvpe.texi: Likewise.
14877
14878 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14879
14880         ftell: don't include <unistd.h>
14881         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14882         guaranteed to define off_t, and the ftell module depends on the
14883         stdio module.
14884
14885         ftell: do not assume wraparound signed arithmetic
14886         * lib/ftell.c: Include <limits.h>.
14887         (ftell): Don't assume wraparound signed arithmetic.
14888
14889 2011-07-24  Bruno Haible  <bruno@clisp.org>
14890
14891         close: No longer depend on module 'fclose'.
14892         * modules/close (Depends-on): Remove fclose.
14893         * NEWS: Mention the change.
14894         Suggested by Sam Steingold <sds@gnu.org>.
14895
14896 2011-07-24  Bruno Haible  <bruno@clisp.org>
14897
14898         fsusage: Enable large volume support on AIX >= 5.2.
14899         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14900         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14901         instead of STAT_STATVFS.
14902         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14903
14904         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14905         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14906         f_blocks field only on MacOS X.
14907
14908         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14909         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14910         * modules/fsusage (Depends-on): Add largefile.
14911
14912 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14913
14914         * README: Modernize discussion of signed integers.
14915         Assuming overflow wraparound is no longer safe.
14916         Mention ones' complement and signed magnitude.
14917
14918 2011-07-22  Bruno Haible  <bruno@clisp.org>
14919
14920         select tests, pselect tests: Refactor.
14921         * tests/test-select.h: New file, extracted from tests/test-select.c.
14922         (select_fn): New type.
14923         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14924         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14925         test_pipe): Add my_select argument.
14926         (test_function): Renamed from main. Add my_select argument.
14927         * tests/test-select.c: Move most code to tests/test-select.h. Include
14928         test-select.h.
14929         * modules/select-tests (Files): Add tests/test-select.h.
14930         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14931         (my_select, main): New functions.
14932         * modules/pselect-tests (Files): Add tests/test-select.h,
14933         tests/macros.h, tests/signature.h.
14934         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14935         (configure.ac): Check for <sys/wait.h>.
14936
14937 2011-07-22  Bruno Haible  <bruno@clisp.org>
14938
14939         sys_select tests: Check the signature of FD_*.
14940         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14941         signature tests from here...
14942         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14943         here.
14944         * modules/sys_select-tests (Files): Add tests/signature.h.
14945
14946 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14947
14948         largefile: new module, replacing large-inode
14949         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14950         * MODULES.html.sh: Add largefile, remove large-inode.
14951         * modules/largefile, m4/largefile.m4: New files.
14952         * modules/large-inode, m4/large-inode.m4: Remove.
14953
14954         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14955         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14956         implementations that use only 32 bits to count blocks.
14957         On typical hosts with 1024-byte blocks, this fails with file
14958         systems as small as 4 TiB.  Problem reported by Herb Wartens
14959         <http://debbugs.gnu.org/9140> and this should also fix a similar
14960         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14961
14962         large-inode: New module
14963         * MODULES.html.sh: Add it.
14964         * modules/large-inode, m4/large-inode.m4: New files.
14965
14966         extensions: Enable extensions on MacOS X 10.5 and later.
14967         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14968
14969 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14970
14971         file-has-acl: use acl_extended_file_nofollow if available
14972         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14973         (acl_extended_file): New macro.
14974         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14975         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14976
14977 2011-07-21  Bruno Haible  <bruno@clisp.org>
14978
14979         Declare system functions in a way that works with C++.
14980         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14981         declare fdopendir as extern "C".
14982         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14983         declare frexpl as extern "C".
14984         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14985         declare gai_strerror as extern "C".
14986         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14987         programs, declare gai_strerror as extern "C".
14988         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14989         declare getlogin_r as extern "C".
14990         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14991         as extern "C".
14992         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14993         declare ldexpl as extern "C".
14994         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14995         as extern "C".
14996         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14997         program, declare getmntinfo as extern "C".
14998         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14999         stpncpy as extern "C".
15000         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
15001         program, declare __xpg_strerror_r as extern "C".
15002         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
15003         strndup as extern "C".
15004         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
15005         declare memset and bzero as extern "C".
15006         Reported by Sam Steingold <sds@gnu.org>.
15007
15008 2011-07-12  Jim Meyering  <meyering@redhat.com>
15009
15010         maint.mk: prohibit inclusion of "verify.h" without use
15011         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
15012
15013 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15014
15015         timer-time: A new module to check for timer_settime()
15016         * m4/timer_time.m4: Check for the posix function.
15017         * modules/timer-time: Add the new module.
15018         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
15019         Mention it.
15020
15021 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
15022             Bruno Haible  <bruno@clisp.org>
15023
15024         pthread_sigmask: assume POSIX threads if --avoid=threadlib
15025         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
15026         not defined, assume POSIX threads and look for pthread_sigmask in
15027         $LIBS, without changing $CPPFLAGS.
15028
15029 2011-07-19  Bruno Haible  <bruno@clisp.org>
15030
15031         strstr: Update cross-compilation guess.
15032         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
15033         CPUs, guess no, in view of glibc
15034         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
15035         Suggested by Eric Blake. Reported by Reuben Thomas.
15036
15037 2011-07-19  Pádraig Brady  <P@draigBrady.com>
15038
15039         getopt-gnu: suppress core dumps from detection code
15040         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
15041         to suppress core dumps that may well occur on glibc systems.
15042         * modules/getopt-gnu: Depend on nocrash.
15043
15044 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
15045
15046         pthread_sigmask: ensure usleep is declared
15047         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
15048         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
15049
15050 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
15051
15052         doc: Document NonStop portability issues.
15053         * doc/posix-functions/sigaction.texi (sigaction):
15054         * doc/posix-headers/signal.texi (signal.h):
15055         Document NonStop.  See Joachim Schmitz in
15056         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
15057
15058 2011-07-15  Bruno Haible  <bruno@clisp.org>
15059
15060         ffsl, ffsll: Avoid unportable behaviour.
15061         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
15062
15063 2011-07-15  Bruno Haible  <bruno@clisp.org>
15064
15065         ffs: More tests.
15066         * tests/test-ffs.c (NBITS): New macro.
15067         (main): Add more tests.
15068         * tests/test-ffsl.c (NBITS): New macro.
15069         (main): Add more tests.
15070         * tests/test-ffsll.c (NBITS): New macro.
15071         (main): Add more tests.
15072
15073 2011-07-15  Eric Blake  <eblake@redhat.com>
15074
15075         ffsl, ffsll: new modules
15076         * modules/ffsl: New file.
15077         * modules/ffsll: Likewise.
15078         * m4/ffsl.m4: Likewise.
15079         * m4/ffsll.m4: Likewise.
15080         * lib/ffsl.c: Likewise.
15081         * lib/ffsl.h: Likewise.
15082         * lib/ffsll.c: Likewise.
15083         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
15084         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
15085         * modules/string (Makefile.am): Substitute witnesses.
15086         * lib/strings.in.h (ffsl, ffsll): Declare.
15087         * modules/ffsl-tests: New test file.
15088         * modules/ffsll-tests: Likewise.
15089         * tests/test-ffsl.c: Likewise.
15090         * tests/test-ffsll.c: Likewise.
15091         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15092         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
15093         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
15094
15095         ffs: fix m4 prerequisite
15096         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
15097
15098         ffs: avoid undefined behavior
15099         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
15100         * tests/test-ffs.c (naive, main): Avoid signed shifts.
15101         Reported by Bruno Haible.
15102
15103 2011-07-12  Bruno Haible  <bruno@clisp.org>
15104
15105         pthread_sigmask: Rely on module 'threadlib'.
15106         * modules/pthread_sigmask (Depends-on): Add threadlib.
15107         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
15108         is defined.
15109
15110 2011-07-12  Bruno Haible  <bruno@clisp.org>
15111
15112         regex: Depend on module 'strcase'.
15113         * modules/regex (Depends-on): Add strcase, for strcasecmp().
15114
15115 2011-07-12  Jim Meyering  <meyering@redhat.com>
15116
15117         warn-on-use: fix typo in file name
15118         * modules/snippet/warn-on-use (Files): Correct file name:
15119         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
15120
15121 2011-07-12  Bruno Haible  <bruno@clisp.org>
15122
15123         strings: Document module.
15124         * doc/posix-headers/strings.texi: Mention module 'strings'.
15125
15126 2011-07-12  Bruno Haible  <bruno@clisp.org>
15127
15128         Rename module '_Noreturn' to 'snippet/_Noreturn'.
15129         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
15130         (Files, Makefile.am): Update.
15131         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
15132         * modules/stdlib (Depends-on): Update.
15133
15134 2011-07-12  Bruno Haible  <bruno@clisp.org>
15135
15136         * NEWS: Mention the changes.
15137
15138         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
15139         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
15140         (Files, Makefile.am): Update.
15141         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
15142         * modules/arpa_inet (Depends-on): Update.
15143         * modules/ctype (Depends-on): Update.
15144         * modules/dirent (Depends-on): Update.
15145         * modules/fcntl-h (Depends-on): Update.
15146         * modules/glob (Depends-on): Update.
15147         * modules/iconv-h (Depends-on): Update.
15148         * modules/inttypes-incomplete (Depends-on): Update.
15149         * modules/langinfo (Depends-on): Update.
15150         * modules/locale (Depends-on): Update.
15151         * modules/math (Depends-on): Update.
15152         * modules/netdb (Depends-on): Update.
15153         * modules/poll-h (Depends-on): Update.
15154         * modules/pty (Depends-on): Update.
15155         * modules/search (Depends-on): Update.
15156         * modules/signal (Depends-on): Update.
15157         * modules/spawn (Depends-on): Update.
15158         * modules/stdio (Depends-on): Update.
15159         * modules/stdlib (Depends-on): Update.
15160         * modules/string (Depends-on): Update.
15161         * modules/strings (Depends-on): Update.
15162         * modules/sys_file (Depends-on): Update.
15163         * modules/sys_ioctl (Depends-on): Update.
15164         * modules/sys_select (Depends-on): Update.
15165         * modules/sys_socket (Depends-on): Update.
15166         * modules/sys_stat (Depends-on): Update.
15167         * modules/sys_time (Depends-on): Update.
15168         * modules/sys_times (Depends-on): Update.
15169         * modules/sys_utsname (Depends-on): Update.
15170         * modules/sys_wait (Depends-on): Update.
15171         * modules/termios (Depends-on): Update.
15172         * modules/time (Depends-on): Update.
15173         * modules/unistd (Depends-on): Update.
15174         * modules/wchar (Depends-on): Update.
15175         * modules/wctype-h (Depends-on): Update.
15176         * MODULES.html.sh (Support for building libraries and executables):
15177         Update.
15178
15179         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
15180         * modules/snippet/unused-parameter: Renamed from
15181         modules/unused-parameter.
15182         (Files, Makefile.am): Update.
15183         * build-aux/snippet/unused-parameter.h: Renamed from
15184         build-aux/unused-parameter.h.
15185         * modules/selinux-h (Depends-on): Update.
15186         * modules/unistr/base (Depends-on): Update.
15187         * MODULES.html.sh (Core language properties): Update.
15188
15189         Rename module 'link-warning' to 'snippet/link-warning'.
15190         * modules/snippet/link-warning: Renamed from modules/link-warning.
15191         (Files, Makefile.am): Update.
15192         * build-aux/snippet/link-warning.h: Renamed from
15193         build-aux/link-warning.h.
15194         * MODULES.html.sh (Support for building libraries and executables):
15195         Update.
15196
15197         Rename module 'c++defs' to 'snippet/c++defs'.
15198         * modules/snippet/c++defs: Renamed from modules/c++defs.
15199         (Files, Makefile.am): Update.
15200         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
15201         * modules/arpa_inet (Depends-on): Update.
15202         * modules/ctype (Depends-on): Update.
15203         * modules/dirent (Depends-on): Update.
15204         * modules/fcntl-h (Depends-on): Update.
15205         * modules/glob (Depends-on): Update.
15206         * modules/iconv-h (Depends-on): Update.
15207         * modules/langinfo (Depends-on): Update.
15208         * modules/locale (Depends-on): Update.
15209         * modules/math (Depends-on): Update.
15210         * modules/netdb (Depends-on): Update.
15211         * modules/poll-h (Depends-on): Update.
15212         * modules/pty (Depends-on): Update.
15213         * modules/search (Depends-on): Update.
15214         * modules/signal (Depends-on): Update.
15215         * modules/spawn (Depends-on): Update.
15216         * modules/stdio (Depends-on): Update.
15217         * modules/stdlib (Depends-on): Update.
15218         * modules/string (Depends-on): Update.
15219         * modules/strings (Depends-on): Update.
15220         * modules/sys_ioctl (Depends-on): Update.
15221         * modules/sys_select (Depends-on): Update.
15222         * modules/sys_socket (Depends-on): Update.
15223         * modules/sys_stat (Depends-on): Update.
15224         * modules/sys_time (Depends-on): Update.
15225         * modules/sys_wait (Depends-on): Update.
15226         * modules/termios (Depends-on): Update.
15227         * modules/time (Depends-on): Update.
15228         * modules/unistd (Depends-on): Update.
15229         * modules/wchar (Depends-on): Update.
15230         * modules/wctype-h (Depends-on): Update.
15231
15232         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
15233         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
15234         (Files, Makefile.am): Update.
15235         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
15236         * modules/argv-iter (Depends-on): Update.
15237         * modules/arpa_inet (Depends-on): Update.
15238         * modules/dirent (Depends-on): Update.
15239         * modules/fcntl-h (Depends-on): Update.
15240         * modules/fnmatch (Depends-on): Update.
15241         * modules/getopt-posix (Depends-on): Update.
15242         * modules/glob (Depends-on): Update.
15243         * modules/iconv-h (Depends-on): Update.
15244         * modules/inttypes-incomplete (Depends-on): Update.
15245         * modules/locale (Depends-on): Update.
15246         * modules/math (Depends-on): Update.
15247         * modules/netdb (Depends-on): Update.
15248         * modules/search (Depends-on): Update.
15249         * modules/signal (Depends-on): Update.
15250         * modules/spawn (Depends-on): Update.
15251         * modules/stdio (Depends-on): Update.
15252         * modules/stdlib (Depends-on): Update.
15253         * modules/string (Depends-on): Update.
15254         * modules/strings (Depends-on): Update.
15255         * modules/sys_socket (Depends-on): Update.
15256         * modules/sys_stat (Depends-on): Update.
15257         * modules/sys_time (Depends-on): Update.
15258         * modules/sys_times (Depends-on): Update.
15259         * modules/sys_utsname (Depends-on): Update.
15260         * modules/time (Depends-on): Update.
15261         * modules/unistd (Depends-on): Update.
15262         * modules/wchar (Depends-on): Update.
15263         * MODULES.html.sh (Support for building libraries and executables):
15264         Update.
15265
15266 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15267
15268         Improvements on _Noreturn and related modules.
15269
15270         modules/_Exit-tests: test _Noreturn too
15271         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
15272         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
15273         (main): Use them.
15274
15275         stdnoreturn, stdnoreturn-tests: remove modules
15276         They're not needed here and a bit premature for use elsewhere.  See
15277         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
15278         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
15279         * tests/test-stdnoreturn.c: Remove files.
15280         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
15281         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
15282         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
15283         and using noreturn.
15284         * modules/openat, modules/sigpipe-die, modules/xalloc:
15285         * modules/xmemdup0, modules/xstrtol:
15286         Remove dependency on stdnoreturn.
15287
15288         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
15289         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
15290         Reparenthesize to avoid GCC warning.
15291         Support Microsoft's syntax.
15292         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
15293
15294         _Noreturn-tests: remove module
15295         * modules/_Noreturn-tests: Remove.
15296         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
15297         * tests/test-_Noreturn.c: Remove.
15298         * tests/test-stdnoreturn.c: Merge from the old
15299         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
15300
15301 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
15302
15303         _Noreturn, stdnoreturn, and related modules.
15304
15305         * top/maint.mk: Adjust to new noreturn support.
15306         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
15307         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
15308
15309         xalloc: use stdnoreturn.h
15310         * lib/xalloc.h: Include <stdnoreturn.h>.
15311         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15312         * modules/xalloc (Depends-on): Add stdnoreturn.
15313
15314         xstrtol: use stdnoreturn.h
15315         * lib/xstrtol.h: Include <stdnoreturn.h>.
15316         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15317         * modules/xstrtol (Depends-on): Add stdnoreturn.
15318
15319         xmemdup0: use stdnoreturn.h
15320         * lib/xmemdup0.h: Include <stdnoreturn.h>.
15321         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15322         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
15323
15324         sigpipe-die: use stdnoreturn.h
15325         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
15326         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15327         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
15328
15329         openat: use stdnoreturn.h
15330         * lib/openat.h: Include <stdnoreturn.h>.
15331         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
15332         * modules/openat (Depends-on): Add stdnoreturn.
15333
15334         * lib/openat-die.c (openat_save_fail): Modernize comment.
15335
15336         * lib/xalloc-die.c (xalloc_die): Modernize comment.
15337
15338         * lib/glthread/thread.h: Modernize comment.
15339
15340         obstack: use _Noreturn
15341         * lib/obstack.c (__attribute__): Remove macro.
15342         (print_and_abort): Use _Noreturn.
15343
15344         c-stack: use _Noreturn
15345         * lib/c-stack.c (die, overflow_handler, segv_handler):
15346         Use _Noreturn rather than __attribute__((noreturn)).
15347
15348         argmatch-tests, exclude_tests: use _Noreturn
15349         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
15350         Remove.
15351         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
15352
15353         stdlib: use _Noreturn
15354         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
15355         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
15356         * modules/stdlib (Depends-on): Add _Noreturn.
15357         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
15358
15359         stdnoreturn-tests: new module
15360         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
15361
15362         stdnoreturn: new module
15363         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
15364         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
15365
15366         _Noreturn-tests: new module
15367         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
15368
15369         _Noreturn: new module
15370         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
15371         New section, mentioning it.
15372         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
15373
15374         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
15375
15376 2011-07-11  Eric Blake  <eblake@redhat.com>
15377
15378         ffs: new module
15379         * modules/ffs: New file.
15380         * m4/ffs.m4: Likewise.
15381         * lib/ffs.c: Likewise.
15382         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
15383         * modules/strings (Makefile.am): Substitute witness.
15384         (Depends-on): Add c++defs.
15385         * lib/strings.in.h (ffs): Declare.
15386         * modules/ffs-tests: New test file.
15387         * tests/test-ffs.c: Test new module.
15388         * MODULES.html.sh (Integer arithmetic functions): Mention it.
15389         * doc/posix-functions/ffs.texi (ffs): Likewise.
15390
15391         regex: avoid compiler warning
15392         * lib/regex.c (includes): Include <strings.h>, for use of
15393         strcasecmp in regcomp.c.
15394         Reported by Joachim Schmitz.
15395
15396 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
15397
15398         stdint: respect system's intmax_t if INTMAX_MAX
15399         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
15400         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
15401         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
15402         long but int64_t is long long, and where we will clash with the
15403         system intmax_t if we override it.  See
15404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
15405         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
15406         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
15407         similarly for UINTMAX_C.
15408
15409 2011-07-08  Bruno Haible  <bruno@clisp.org>
15410
15411         pthread_sigmask tests: Avoid a compiler warning.
15412         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
15413         non-zero.
15414
15415         sigprocmask tests: A better way to avoid a compiler warning.
15416         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
15417         (main): Complain if system() returns non-zero.
15418         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
15419
15420 2011-07-08  Bruno Haible  <bruno@clisp.org>
15421
15422         pthread_sigmask: Work around IRIX bug.
15423         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
15424         bug.
15425         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
15426         there may be unblocked pending signals.
15427         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
15428
15429 2011-07-08  Bruno Haible  <bruno@clisp.org>
15430
15431         pthread_sigmask: Work around Cygwin bug.
15432         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
15433         bug.
15434         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
15435         the system's pthread_sigmask function.
15436         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
15437
15438 2011-07-08  Bruno Haible  <bruno@clisp.org>
15439
15440         pthread_sigmask: Work around bug in single-threaded implementation.
15441         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
15442         FreeBSD, HP-UX, Solaris bug.
15443         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
15444         * lib/pthread_sigmask.c: Include <stddef.h>.
15445         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
15446         the system's pthread_sigmask function.
15447         * modules/pthread_sigmask (configure.ac): Invoke
15448         gl_PREREQ_PTHREAD_SIGMASK.
15449         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
15450         HP-UX, Solaris.
15451
15452 2011-07-08  Eric Blake  <eblake@redhat.com>
15453
15454         test-sigprocmask: avoid compiler warning
15455         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
15456         * tests/test-sigprocmask.c (main): Use it to silence warning.
15457         Reported by Jim Meyering.
15458
15459         test-snprintf: avoid compiler warning
15460         * tests/test-snprintf.c (main): Avoid shadowed declaration.
15461         * tests/test-vsnprintf.c (main): Likewise.
15462         Reported by Jim Meyering.
15463
15464 2011-07-08  Bruno Haible  <bruno@clisp.org>
15465
15466         Tests for module 'pthread_sigmask'.
15467         * modules/pthread_sigmask-tests: New file.
15468         * tests/test-pthread_sigmask1.c: New file, based on
15469         tests/test-sigprocmask.c.
15470         * tests/test-pthread_sigmask2.c: New file.
15471
15472 2011-07-08  Jim Meyering  <meyering@redhat.com>
15473
15474         test-getopt.h: avoid warning about an unused variable
15475         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
15476
15477 2011-07-07  Jim Meyering  <meyering@redhat.com>
15478
15479         maint: reduce list of files exempt from sc_prohibit_leading_TABs
15480         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
15481         now that it no longer contains leading TABs.
15482         Remove unused "url=FIXME" statement.
15483
15484 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
15485
15486         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
15487         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15488         When gl_THREADLIB is not in use, assume that the POSIX sematics
15489         are desired.  This is better for Emacs, which uses POSIX semantics
15490         on GNUish and/or POSIXish platforms, and does not use threads at
15491         all otherwise.
15492
15493         pthread_sigmask: fix typo when testing for libraries
15494         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
15495         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
15496
15497 2011-07-08  Eric Blake  <eblake@redhat.com>
15498
15499         fts: introduce FTS_NOATIME
15500         * lib/fts_.h (FTS_NOATIME): New bit flag.
15501         (FTS_OPTIONMASK): Adjust.
15502         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
15503         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
15504
15505 2011-07-08  Bruno Haible  <bruno@clisp.org>
15506
15507         Tests for module 'thread'.
15508         * modules/thread-tests: New file.
15509         * tests/test-thread_self.c: New file.
15510         * tests/test-thread_create.cc: New file.
15511
15512 2011-07-08  Bruno Haible  <bruno@clisp.org>
15513
15514         thread: Avoid gcc warnings when using gl_thread_self().
15515         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
15516         'void *'.
15517         (gl_thread_self_pointer): Update.
15518
15519 2011-07-07  Bruno Haible  <bruno@clisp.org>
15520
15521         signal-c++-tests: Check declaration of pthread_sigmask.
15522         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
15523         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
15524         $(LIB_PTHREAD_SIGMASK).
15525
15526 2011-07-07  Bruno Haible  <bruno@clisp.org>
15527
15528         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
15529         * lib/signal.in.h (pthread_sigmask): Override if
15530         REPLACE_PTHREAD_SIGMASK is 1.
15531         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15532         REPLACE_PTHREAD_SIGMASK.
15533         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
15534         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
15535         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
15536         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15537         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
15538
15539 2011-07-07  Bruno Haible  <bruno@clisp.org>
15540
15541         pthread_sigmask: Ensure declaration in <signal.h>.
15542         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
15543         include <pthread.h>.
15544         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
15545         problem.
15546
15547 2011-07-07  Bruno Haible  <bruno@clisp.org>
15548
15549         pthread_sigmask: Document the module.
15550         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
15551
15552 2011-07-07  Bruno Haible  <bruno@clisp.org>
15553
15554         pthread_sigmask: Follow gnulib conventions.
15555         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
15556         gl_PTHREAD_SIGMASK.
15557         * modules/pthread_sigmask (configure.ac): Update.
15558
15559 2011-07-07  Bruno Haible  <bruno@clisp.org>
15560
15561         pthread_sigmask: Make declaration C++ safe.
15562         * lib/signal.in.h: In two special conditions, just do an #include_next.
15563         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15564         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
15565         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
15566         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
15567         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
15568         not REPLACE_PTHREAD_MASK.
15569         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
15570         not REPLACE_PTHREAD_MASK.
15571         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
15572
15573 2011-07-07  Bruno Haible  <bruno@clisp.org>
15574
15575         pthread_sigmask: Fix return value.
15576         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
15577         * lib/pthread_sigmask.c: New file.
15578         * modules/pthread_sigmask (Files): Add it.
15579         (configure.ac): Invoke AC_LIBOBJ.
15580
15581 2011-07-07  Eric Blake  <eblake@redhat.com>
15582
15583         getopt: more portable argv creation
15584         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
15585         const, use char arrays rather than strings.
15586         Suggested by Paul Eggert.
15587
15588 2011-07-07  Bruno Haible  <bruno@clisp.org>
15589
15590         Tests for module 'sigprocmask'.
15591         * modules/sigprocmask-tests: New file.
15592         * tests/test-sigprocmask.c: New file.
15593
15594 2011-07-07  Bruno Haible  <bruno@clisp.org>
15595
15596         float tests: Tweak.
15597         * tests/test-float.c (main): Tweak skip message.
15598
15599 2011-07-07  Eric Blake  <eblake@redhat.com>
15600
15601         getopt: avoid compiler warning during configure
15602         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
15603         assigning string literals to non-const pointer.
15604
15605         getopt-gnu: avoid crash in glibc getopt
15606         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
15607         * tests/test-getopt.h (test_getopt): Enhance test.
15608         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15609         * doc/posix-functions/getopt.texi (getopt): Document it.
15610         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
15611         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15612         Likewise.
15613
15614 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15615
15616         getopt: handle W; without long options in getopt [BZ #12922]
15617         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
15618         but no long options are defined, just return 'W'.
15619
15620 2011-07-07  Bruno Haible  <bruno@clisp.org>
15621
15622         Avoid literal tabs.
15623         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
15624         variable containing a tab instead of a literal tab.
15625         Reported by Jim Meyering.
15626
15627 2011-07-07  Bruno Haible  <bruno@clisp.org>
15628
15629         Comments.
15630         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
15631
15632 2011-07-06  Bruno Haible  <bruno@clisp.org>
15633
15634         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
15635         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
15636         <winsock2.h>.
15637         (rpl_fd_isset, FD_ISSET): New definitions, copied from
15638         lib/sys_socket.in.h.
15639         (close, gethostname): Hide declarations from <winsock2.h>.
15640         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
15641         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
15642         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
15643         (select): Don't override if gnulib's <sys/select.h> was already
15644         included.
15645         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
15646         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
15647         setsockopt, shutdown, select): Tweak indentation.
15648
15649 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15650
15651         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
15652         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
15653         in an application that does not use the sys_select module.
15654
15655 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
15656
15657         poll: do not return 0 on timeout=-1
15658         * lib/poll.c: Loop with yield if no events occurred.
15659
15660 2011-07-06  Eric Blake  <eblake@redhat.com>
15661
15662         pthread_sigmask: always replace when not using pthread
15663         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
15664         replacement when using some threading other than pthread.  Fix
15665         logic bug.
15666
15667 2011-07-06  Bruno Haible  <bruno@clisp.org>
15668
15669         Comments.
15670         * m4/printf.m4: Update comments about mingw.
15671
15672 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
15673
15674         sys_select: define sigset_t more portably
15675         * lib/sys_select.in.h: Always include <sys/types.h>, since
15676         we now need sigset_t and mingw defines it there.
15677         Include <signal.h> before split inclusion guard, to avoid
15678         mishaps on Solaris, whose <signal.h> eventually includes us.
15679         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
15680         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
15681         which come from ...
15682         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15683         gl_CHECK_TYPE_SIGSET_T.
15684         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
15685         does the real work.
15686         * modules/sys_select (Depends-on): Add 'signal'.
15687
15688         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
15689         Suggested by Bruno Haible.
15690
15691         pselect: Use pthread_sigmask, not sigprocmask.
15692         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
15693         multithreaded apps better than sigprocmask does.
15694         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
15695         sigprocmask directly.
15696
15697 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
15698
15699         * lib/pselect.c (pselect): Use plain name, without "rpl_".
15700         Don't #undef,  since we don't need any underlying pselect.
15701         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
15702         (Depends-on): Add select.
15703         (Link): Add $(LIBSOCKET).
15704         These changes suggested by Bruno Haible.
15705
15706         pselect: document better
15707         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15708         * doc/posix-functions/pselect.texi (pselect): Document new module.
15709
15710         pthread_sigmask: new module
15711         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
15712         * doc/posix-functions/pthread_sigmask.texi: Document new module.
15713         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
15714         This is done only as a macro; I don't know how well that'll
15715         work for C++.  Move <sys/types.h> include before the include_next,
15716         to avoid mishap on Solaris.
15717         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
15718         * modules/signal (Makefile.am): Substitute the check's results.
15719         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
15720
15721         test-pselect: new module
15722         * modules/pselect-tests, tests/test-pselect.c: New files.
15723         * tests/test-select.c, tests/test-sys_select-c++.cc:
15724         If TEST_PSELECT is defined, test pselect instead of testing select.
15725
15726         * tests/test-sys_select.c (sigset_t): Test for it, too.
15727         Suggested by Bruno Haible.
15728
15729 2011-07-05  Eric Blake  <eblake@redhat.com>
15730
15731         snprintf: guarantee %1$d, for libintl
15732         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
15733         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15734         * doc/posix-functions/snprintf.texi (snprintf): Update.
15735         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15736         * tests/test-snprintf.c (main): Enhance test.
15737         * tests/test-vsnprintf.c (main): Likewise.
15738
15739 2011-07-05  Jim Meyering  <meyering@redhat.com>
15740
15741         maint: exempt stdio-read.c and stdio-write.c from the cppi check
15742         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
15743         per Bruno's request, to accommodate this idiom (no space after "#")
15744         even when the function is inside an #if block:
15745         char *
15746         gets (char *s)
15747         #undef gets
15748         {
15749           ...
15750         }
15751
15752 2011-07-04  Jim Meyering  <meyering@redhat.com>
15753
15754         maint: indent with spaces, not TABs, and add a rule to check this
15755         * tests/test-userspec.c: Indent with spaces, not TABs.
15756         * tests/test-argp.c: Likewise.
15757         * tests/test-c-stack2.sh: Likewise.
15758         * tests/test-parse-duration.sh: Likewise
15759         * m4/strtod.m4: Likewise.
15760         * m4/alloca.m4: Likewise.
15761         * m4/pselect.m4: Likewise.
15762         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
15763
15764 2011-07-03  Jim Meyering  <meyering@redhat.com>
15765
15766         maint.mk: correct omissions in prohibit_argmatch_without_use check
15767         This rule would mistakenly report that argmatch.h is included without
15768         use even when both the argmatch and invalid_arg macro were used.
15769         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
15770         of argmatch and invalid_arg.
15771
15772 2011-07-03  Bruno Haible  <bruno@clisp.org>
15773
15774         Comments about EINTR.
15775         * lib/safe-read.h: Explain the purpose of this module.
15776         * lib/safe-write.h: Likewise.
15777         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
15778         module.
15779         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
15780         module.
15781         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15782
15783 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
15784
15785         xnanosleep: Rewrite to use new dtotimespec module.
15786         It has the conversion code that used to be in xnanosleep.
15787         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
15788         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
15789         (TIME_T_MAX): Remove.
15790         (xnanosleep): Rewrite in terms of dtotimespec.
15791         * modules/xnanosleep (Depends-on): Add dtotimespec.
15792         Remove intprops, stdbool.
15793
15794         timespec-add, timespec-sub: new modules
15795         * lib/timespec.h (timespec_add, timespec_sub): New decls.
15796         * lib/timespec-add.c, lib/timespec-sub.c:
15797         * modules/timespec-add, modules/timespec-sub: New files.
15798
15799         dtotimespec: new module
15800         * lib/timespec.h (dtotimespec): New decl.
15801         * lib/dtotimespec.c, modules/dtotimespec: New files.
15802
15803         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
15804
15805         pselect: new module
15806         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
15807         (pselect): New decls.
15808         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
15809         since the standard pselect decl uses 'restrict'.
15810         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15811         HAVE_PSELECT, REPLACE_PSELECT.
15812         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15813         HAVE_PSELECT, REPLACE_PSELECT.
15814         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15815
15816         sys_select: don't depend on sys_socket
15817         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15818         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15819         This fix works on GNU and GNU-like platforms, but has not been tested
15820         on native Windows.
15821         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15822         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15823         gl_HEADER_SYS_SOCKET.
15824         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15825         gl_PREREQ_SYS_H_WINSOCK2.
15826
15827 2011-06-29  Eric Blake  <eblake@redhat.com>
15828
15829         pipe2: fix C89 compile problem
15830         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15831         Reported by Bruno Haible.
15832
15833         pipe, pipe2: don't corrupt fd on error
15834         * lib/pipe.c (pipe): Leave fd unchanged on error.
15835         * lib/pipe2.c (pipe2): Likewise.
15836         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15837         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15838
15839 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15840
15841         mmap-anon: do not use regular expressions inadvertently
15842         * m4/mmap-anon.m4: Remove trailing period from strings sought
15843         in the output.
15844
15845 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15846
15847         nanosleep: fix integer overflow problem
15848         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15849         arithmetic wraps around on overflow.
15850
15851         nanosleep: simplify carrying
15852         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15853         first call to the underyling nanosleep, not for the last one.
15854         This doesn't fix any bugs, but it simplifies the computation of
15855         the remaining delay.  Found while auditing integer overflow issues.
15856
15857         dup2: remove test for existence of fcntl
15858         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15859         "#if HAVE_FCNTL", in the configure-time test program.
15860         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15861         and therefore speeds up "configure" a bit.  Found while
15862         adding the dup2 module to Emacs.
15863
15864 2011-06-24  Eric Blake  <eblake@redhat.com>
15865
15866         maint.mk: enhance useless header checks
15867         * top/maint.mk (_sc_header_without_use): Check both include
15868         styles.
15869         (sc_prohibit_assert_without_use)
15870         (sc_prohibit_close_stream_without_use)
15871         (sc_prohibit_getopt_without_use)
15872         (sc_prohibit_quotearg_without_use)
15873         (sc_prohibit_quote_without_use)
15874         (sc_prohibit_long_options_without_use)
15875         (sc_prohibit_inttostr_without_use)
15876         (sc_prohibit_ignore_value_without_use)
15877         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15878         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15879         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15880         (sc_prohibit_hash_pjw_without_use)
15881         (sc_prohibit_safe_read_without_use)
15882         (sc_prohibit_argmatch_without_use)
15883         (sc_prohibit_canonicalize_without_use)
15884         (sc_prohibit_root_dev_ino_without_use)
15885         (sc_prohibit_openat_without_use)
15886         (sc_prohibit_c_ctype_without_use)
15887         (sc_prohibit_signal_without_use)
15888         (sc_prohibit_stdio--_without_use)
15889         (sc_prohibit_stdio-safer_without_use)
15890         (sc_prohibit_strings_without_use)
15891         (sc_prohibit_intprops_without_use)
15892         (sc_prohibit_stddef_without_use)
15893         (sc_prohibit_xfreopen_without_use): Update clients.
15894
15895 2011-06-24  Jim Meyering  <meyering@redhat.com>
15896
15897         syntax-check: keep one maint.mk rule in sync with its header
15898         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15899         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15900         I prefer to avoid temporary files here, so use <(...), but that
15901         is not supported by /bin/sh, so...
15902         (SHELL): Define to /bin/bash.
15903
15904 2011-06-24  Eric Blake  <eblake@redhat.com>
15905
15906         maint.mk: update sc_prohibit_intprops_without_use
15907         * top/maint.mk (_intprops_names): Match recent changes.
15908
15909 2011-06-24  Bruno Haible  <bruno@clisp.org>
15910
15911         strerror-override: No-op tweak.
15912         * lib/strerror-override.h (strerror_override): Reorder conditions,
15913         for consistency with lib/strerror-override.c.
15914
15915 2011-06-23  Eric Blake  <eblake@redhat.com>
15916
15917         maint.mk: test further PATH_MAX issues
15918         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15919         (sc_prohibit_path_max_allocation): ...and also test alloca.
15920         Suggested by Jim Meyering.
15921
15922 2011-06-22  Eric Blake  <eblake@redhat.com>
15923
15924         maint.mk: add syntax-check to avoid char[PATH_MAX]
15925         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15926
15927         stat: be robust to PATH_MAX definition
15928         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15929         * modules/stat (Depends-on): Add verify.
15930
15931         link: work around IRIX bug
15932         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15933         * lib/link.c (rpl_link): Work around it.
15934         * tests/test-link.h (test_link): Enhance test.
15935         * doc/posix-functions/link.texi (link): Document the bug.
15936
15937         getopt: silence clang warning
15938         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15939         dereference.
15940         Reported by Gustavo Martin Domato.
15941
15942 2011-06-22  Jim Meyering  <meyering@redhat.com>
15943
15944         bootstrap: do not insert a blank line into each .gitignore file
15945         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15946
15947 2011-06-21  Eric Blake  <eblake@redhat.com>
15948
15949         perror: test for output mismatch
15950         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15951         perror on IRIX.
15952
15953         strerror_r: fix OpenBSD behavior on out-of-range
15954         * lib/strerror_r.c (strerror_r): Always use maximal string.
15955         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15956
15957         strerror_r: fix OpenBSD behavior on 0
15958         * lib/strerror-override.c (strerror_override): Also override 0
15959         when needed.
15960         * lib/strerror-override.h (strerror_override): Likewise.
15961         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15962         earlier.
15963         * lib/strerror_r.c (strerror_r): Likewise.
15964         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15965         behavior...
15966         (gl_FUNC_STRERROR_0): ...into new macro.
15967         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15968         is overridden.
15969         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15970         * modules/strerror-override (Files): Add strerror.m4.
15971         (configure.ac): Also provide override for 0 when needed.
15972         * doc/posix-functions/strerror.texi (strerror): Document this.
15973         * doc/posix-functions/perror.texi (perror): Likewise.
15974
15975         perror: adjust array size
15976         * modules/perror (Depends-on): Add strerror-override.
15977         * lib/perror.c (perror): Use it to avoid magic number.
15978
15979         strerror-override: reduce size
15980         * lib/strerror-override.c (strerror_override): Use fewer lines.
15981
15982 2011-06-20  Bruno Haible  <bruno@clisp.org>
15983
15984         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15985         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15986
15987 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15988
15989         alloca: port to compilers that can optimize like GCC 4.6.0
15990         * lib/alloca.c (find_stack_direction): New signature, taken from
15991         Autoconf git.  This works with GCC 4.6.0.  This code should never
15992         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15993         be used with other compilers that optimize as well as GCC 4.6.0 does.
15994         (alloca): Adjust to new signature.
15995         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15996         New macro, which patches Autoconf in a similar way.
15997
15998         c-stack: stop worrying about stack direction
15999         * lib/c-stack.c (find_stack_direction): Remove.
16000         (segv_handler): Don't worry about stack direction growth, as it's
16001         too much of a pain to configure this correctly, given how compilers
16002         are optimizing-away our stack-growth detection code.  Instead, assume
16003         that any access to just before or just after the stack is OK.
16004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
16005         Don't require AC_FUNC_ALLOCA; no longer needed.
16006
16007 2011-06-20  Eric Blake  <eblake@redhat.com>
16008
16009         test-stat: don't allocate PATH_MAX bytes
16010         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
16011         PATH_MAX-sized buffer.
16012         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
16013         * modules/stat-tests (Depends-on): Likewise.
16014         * tests/test-fstatat.c (includes): Drop pathmax.h.
16015         * tests/test-stat.c (includes): Likewise.
16016         Reported by Bruno Haible.
16017
16018 2011-06-20  Bruno Haible  <bruno@clisp.org>
16019
16020         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
16021         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
16022         * lib/float.c: New file.
16023         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
16024         REPLACE_FLOAT_LDBL.
16025         * modules/float (Files): Add lib/float.c.
16026         (configure.ac): Invoke AC_LIBOBJ.
16027         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
16028
16029 2011-06-20  Bruno Haible  <bruno@clisp.org>
16030
16031         Tests for module 'float'.
16032         * modules/float-tests: New file.
16033         * tests/test-float.c: New file.
16034
16035 2011-06-19  Bruno Haible  <bruno@clisp.org>
16036
16037         isinf: Coding style.
16038         * lib/isinf.c: Use GNU coding style.
16039
16040 2011-06-19  Bruno Haible  <bruno@clisp.org>
16041
16042         linkat test: Avoid test failure on AIX 7.1.
16043         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
16044         * tests/test-link.h (test_link): Likewise.
16045
16046 2011-06-19  Bruno Haible  <bruno@clisp.org>
16047
16048         pread test: Avoid test failure on OpenBSD 4.9.
16049         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
16050
16051 2011-06-19  Bruno Haible  <bruno@clisp.org>
16052
16053         sprintf-posix: Fix test failure on AIX 7.1.
16054         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
16055         * doc/posix-functions/dprintf.texi: Mention limited precision problem
16056         on AIX.
16057         * doc/posix-functions/fprintf.texi: Likewise.
16058         * doc/posix-functions/printf.texi: Likewise.
16059         * doc/posix-functions/snprintf.texi: Likewise.
16060         * doc/posix-functions/sprintf.texi: Likewise.
16061         * doc/posix-functions/vdprintf.texi: Likewise.
16062         * doc/posix-functions/vfprintf.texi: Likewise.
16063         * doc/posix-functions/vprintf.texi: Likewise.
16064         * doc/posix-functions/vsnprintf.texi: Likewise.
16065         * doc/posix-functions/vsprintf.texi: Likewise.
16066
16067 2011-06-19  Bruno Haible  <bruno@clisp.org>
16068
16069         roundl-ieee: Fix test failure on AIX 7.1.
16070         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
16071         * doc/posix-functions/roundl.texi: Mention problem with negative
16072         arguments.
16073
16074 2011-06-19  Bruno Haible  <bruno@clisp.org>
16075
16076         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16077         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
16078         * doc/posix-functions/round.texi: Mention problem with negative
16079         arguments.
16080         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
16081
16082 2011-06-19  Bruno Haible  <bruno@clisp.org>
16083
16084         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
16085         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
16086         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
16087         * doc/posix-functions/roundf.texi: Mention problem with negative
16088         arguments.
16089         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
16090
16091 2011-06-19  Bruno Haible  <bruno@clisp.org>
16092
16093         ceilf-ieee: Work around bug on MacOS X 10.5.
16094         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
16095
16096         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
16097         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
16098         IEEE compliant, avoid compiler optimizations.
16099         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16100         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16101         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16102         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16103         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16104         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16105         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16106         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16107         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16108         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16109
16110 2011-06-19  Bruno Haible  <bruno@clisp.org>
16111
16112         ceilf-ieee: Work around bug on AIX 7.1.
16113         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
16114         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
16115
16116 2011-06-19  Bruno Haible  <bruno@clisp.org>
16117
16118         ceil-ieee: Work around bug on AIX 7.1.
16119         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
16120         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
16121
16122 2011-06-18  Bruno Haible  <bruno@clisp.org>
16123
16124         fsync test: Avoid test failure on MacOS X and AIX.
16125         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
16126         EINVAL.
16127
16128 2011-06-18  Bruno Haible  <bruno@clisp.org>
16129
16130         openat, fdopendir tests: Fix link errors.
16131         * modules/openat-tests (Depends-on): Add progname.
16132         * modules/fdopendir-tests (Depends-on): Likewise.
16133         * tests/test-fchownat.c: Include progname.h.
16134         (main): Call set_program_name.
16135         * tests/test-fstatat.c: Include progname.h.
16136         (main): Call set_program_name.
16137         * tests/test-mkdirat.c: Include progname.h.
16138         (main): Call set_program_name.
16139         * tests/test-openat.c: Include progname.h.
16140         (main): Call set_program_name.
16141         * tests/test-unlinkat.c: Include progname.h.
16142         (main): Call set_program_name.
16143         * tests/test-fdopendir.c: Include progname.h.
16144         (main): Call set_program_name.
16145
16146 2011-06-18  Bruno Haible  <bruno@clisp.org>
16147
16148         Doc update.
16149         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
16150         HP-UX.
16151         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
16152
16153 2011-06-18  Bruno Haible  <bruno@clisp.org>
16154
16155         getcwd tests: Avoid compilation error on HP-UX 11.31.
16156         * modules/getcwd-tests (Depends-on): Add pathmax.
16157         * tests/test-getcwd.c: Include pathmax.h.
16158
16159 2011-06-18  Bruno Haible  <bruno@clisp.org>
16160
16161         isfinite, isinf: Fix link error on AIX 6 and 7.
16162         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
16163         needed, also test the macro with a 'float' argument.
16164         * m4/isinf.m4 (gl_ISINF): Likewise.
16165
16166 2011-06-18  Bruno Haible  <bruno@clisp.org>
16167
16168         getloadavg: Don't clobber LIBS. Regression from previous commit.
16169         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
16170         AC_CHECK_LIB from here...
16171         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
16172         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
16173         gl_func_getloadavg_done.
16174         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16175
16176 2011-06-18  Bruno Haible  <bruno@clisp.org>
16177
16178         clean-temp: Improve documentation.
16179         * lib/clean-temp.h: Explain better how to use this module.
16180         Reported by John Darrington <john@darrington.wattle.id.au>.
16181
16182 2011-06-17  Bruno Haible  <bruno@clisp.org>
16183
16184         pread, pwrite: Avoid cc warning on AIX.
16185         * lib/unistd.in.h (pread): Undefine before defining as a macro.
16186         (pwrite): Likewise.
16187
16188 2011-06-17  Bruno Haible  <bruno@clisp.org>
16189
16190         spawn-pipe tests: Fix link error.
16191         * tests/test-spawn-pipe-child.c: Undefine fprintf.
16192         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16193
16194 2011-06-17  Bruno Haible  <bruno@clisp.org>
16195
16196         Tests: Remove unnecessary dependency.
16197         * modules/canonicalize-tests (Depends-on): Remove progname.
16198         * modules/chown-tests (Depends-on): Likewise.
16199         * modules/dirname-tests (Depends-on): Likewise.
16200         * modules/fdopendir-tests (Depends-on): Likewise.
16201         * modules/fdutimensat-tests (Depends-on): Likewise.
16202         * modules/hash-tests (Depends-on): Likewise.
16203         * modules/lchown-tests (Depends-on): Likewise.
16204         * modules/linkat-tests (Depends-on): Likewise.
16205         * modules/renameat-tests (Depends-on): Likewise.
16206         * modules/spawn-pipe-tests (Depends-on): Likewise.
16207         * modules/utimensat-tests (Depends-on): Likewise.
16208
16209 2011-06-17  Bruno Haible  <bruno@clisp.org>
16210
16211         spawn-pipe tests: Fix link error.
16212         * tests/test-spawn-pipe-child.c: Undefine fflush.
16213
16214 2011-06-17  Bruno Haible  <bruno@clisp.org>
16215
16216         Fix tests link errors.
16217         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
16218         * modules/chown-tests (Makefile.am): Don't link test-chown with
16219         LIBINTL.
16220         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
16221         LIBINTL.
16222         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
16223         LIBINTL.
16224         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
16225         LIBINTL.
16226
16227 2011-06-16  Bruno Haible  <bruno@clisp.org>
16228
16229         crypto/gc-sha1: Fix recent regression.
16230         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
16231         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
16232
16233         crypto/gc-md5: Fix recent regression.
16234         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
16235
16236         crypto/gc-md4: Fix recent regression.
16237         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
16238         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
16239
16240         crypto/gc-arctwo: Fix recent regression.
16241         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
16242         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
16243
16244         crypto/gc-rijndael: Fix recent regression.
16245         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
16246         (configure.ac): Invoke AC_LIBOBJ here.
16247         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
16248         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16249
16250         crypto/gc-hmac-sha1: Fix recent regression.
16251         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
16252         (configure.ac): Invoke AC_LIBOBJ here.
16253         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
16254         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16255
16256         crypto/gc-hmac-md5: Fix recent regression.
16257         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
16258         (configure.ac): Invoke AC_LIBOBJ here.
16259         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
16260         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16261
16262         crypto/gc-des: Fix recent regression.
16263         * modules/crypto/gc-des (Files): Remove m4/des.m4.
16264         (configure.ac): Invoke AC_LIBOBJ here.
16265         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
16266         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16267
16268         crypto/gc-arcfour: Fix recent regression.
16269         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
16270         (configure.ac): Invoke AC_LIBOBJ here.
16271         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
16272         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16273
16274 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
16275
16276         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
16277         After the 2011-05-21 change, this macro requires
16278         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
16279         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
16280
16281 2011-06-16  Bruno Haible  <bruno@clisp.org>
16282
16283         fprintftime: Move AC_LIBOBJ invocations to module description.
16284         * m4/fprintftime.m4: Remove file.
16285         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
16286         (configure.ac): Remove gl_FPRINTFTIME call.
16287         (Makefile.am): Augment lib_SOURCES.
16288         Reported by Jim Meyering.
16289
16290 2011-06-16  Bruno Haible  <bruno@clisp.org>
16291
16292         tmpfile-safer: Finish 2011-05-23 commit.
16293         * m4/stdio-safer.m4: Really remove file.
16294         Reported by Jim Meyering.
16295
16296 2011-06-16  Bruno Haible  <bruno@clisp.org>
16297
16298         syntax-check: Fix typo.
16299         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
16300         printf-posix.m4.
16301         Reported by Jim Meyering.
16302
16303 2011-06-13  Jim Meyering  <meyering@redhat.com>
16304
16305         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
16306         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
16307
16308 2011-05-23  Bruno Haible  <bruno@clisp.org>
16309
16310         yesno: Move AC_LIBOBJ invocations to module description.
16311         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
16312         * modules/yesno (Makefile.am): Augment lib_SOURCES.
16313
16314 2011-05-23  Bruno Haible  <bruno@clisp.org>
16315
16316         xstrtol: Move AC_LIBOBJ invocations to module description.
16317         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
16318         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
16319
16320 2011-05-23  Bruno Haible  <bruno@clisp.org>
16321
16322         xstrtold: Move AC_LIBOBJ invocations to module description.
16323         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
16324         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
16325
16326 2011-05-23  Bruno Haible  <bruno@clisp.org>
16327
16328         xstrtod: Move AC_LIBOBJ invocations to module description.
16329         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
16330         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
16331
16332 2011-05-23  Bruno Haible  <bruno@clisp.org>
16333
16334         xnanosleep: Move AC_LIBOBJ invocations to module description.
16335         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
16336         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
16337
16338 2011-05-23  Bruno Haible  <bruno@clisp.org>
16339
16340         xgetcwd: Move AC_LIBOBJ invocations to module description.
16341         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
16342         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
16343
16344 2011-05-23  Bruno Haible  <bruno@clisp.org>
16345
16346         xalloc: Move AC_LIBOBJ invocations to module description.
16347         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
16348         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
16349
16350 2011-05-23  Bruno Haible  <bruno@clisp.org>
16351
16352         write-any-file: Move AC_LIBOBJ invocations to module description.
16353         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
16354         invocation.
16355         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
16356
16357 2011-05-23  Bruno Haible  <bruno@clisp.org>
16358
16359         utimens: Move AC_LIBOBJ invocations to module description.
16360         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
16361         * modules/utimens (Makefile.am): Augment lib_SOURCES.
16362
16363 2011-05-23  Bruno Haible  <bruno@clisp.org>
16364
16365         utimecmp: Move AC_LIBOBJ invocations to module description.
16366         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
16367         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
16368
16369 2011-05-23  Bruno Haible  <bruno@clisp.org>
16370
16371         userspec: Move AC_LIBOBJ invocations to module description.
16372         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
16373         * modules/userspec (Makefile.am): Augment lib_SOURCES.
16374
16375 2011-05-23  Bruno Haible  <bruno@clisp.org>
16376
16377         unlinkdir: Move AC_LIBOBJ invocations to module description.
16378         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
16379         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
16380
16381 2011-05-23  Bruno Haible  <bruno@clisp.org>
16382
16383         unistd-safer: Move AC_LIBOBJ invocations to module description.
16384         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
16385         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
16386
16387 2011-05-23  Bruno Haible  <bruno@clisp.org>
16388
16389         tempname: Move AC_LIBOBJ invocations to module description.
16390         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
16391         * modules/tempname (Makefile.am): Augment lib_SOURCES.
16392
16393 2011-05-23  Bruno Haible  <bruno@clisp.org>
16394
16395         strftime: Move AC_LIBOBJ invocations to module description.
16396         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
16397         * modules/strftime (Makefile.am): Augment lib_SOURCES.
16398
16399 2011-05-23  Bruno Haible  <bruno@clisp.org>
16400
16401         stdlib-safer: Move AC_LIBOBJ invocations to module description.
16402         * m4/stdlib-safer.m4: Remove file.
16403         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
16404         (configure.ac): Remove gl_STDLIB_SAFER call.
16405         (Makefile.am): Augment lib_SOURCES.
16406
16407 2011-05-23  Bruno Haible  <bruno@clisp.org>
16408
16409         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
16410         * m4/stdio-safer.m4: Remove file.
16411         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
16412         (configure.ac): Remove gl_TMPFILE_SAFER call.
16413         (Makefile.am): Augment lib_SOURCES.
16414
16415 2011-05-23  Bruno Haible  <bruno@clisp.org>
16416
16417         popen-safer: Move AC_LIBOBJ invocations to module description.
16418         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
16419         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
16420         (configure.ac): Remove gl_POPEN_SAFER call.
16421         (Makefile.am): Augment lib_SOURCES.
16422
16423 2011-05-23  Bruno Haible  <bruno@clisp.org>
16424
16425         freopen-safer: Move AC_LIBOBJ invocations to module description.
16426         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
16427         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
16428         (configure.ac): Remove gl_FREOPEN_SAFER call.
16429         (Makefile.am): Augment lib_SOURCES.
16430
16431 2011-05-23  Bruno Haible  <bruno@clisp.org>
16432
16433         fopen-safer: Move AC_LIBOBJ invocations to module description.
16434         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
16435         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
16436         (configure.ac): Remove gl_FOPEN_SAFER call.
16437         (Makefile.am): Augment lib_SOURCES.
16438
16439 2011-05-23  Bruno Haible  <bruno@clisp.org>
16440
16441         crypto/sha512: Move AC_LIBOBJ invocations to module description.
16442         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
16443         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
16444
16445 2011-05-23  Bruno Haible  <bruno@clisp.org>
16446
16447         crypto/sha256: Move AC_LIBOBJ invocations to module description.
16448         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
16449         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
16450
16451 2011-05-23  Bruno Haible  <bruno@clisp.org>
16452
16453         crypto/sha1: Move AC_LIBOBJ invocations to module description.
16454         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
16455         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
16456
16457 2011-05-23  Bruno Haible  <bruno@clisp.org>
16458
16459         settime: Move AC_LIBOBJ invocations to module description.
16460         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
16461         * modules/settime (Makefile.am): Augment lib_SOURCES.
16462
16463 2011-05-23  Bruno Haible  <bruno@clisp.org>
16464
16465         savedir: Move AC_LIBOBJ invocations to module description.
16466         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
16467         * modules/savedir (Makefile.am): Augment lib_SOURCES.
16468
16469 2011-05-23  Bruno Haible  <bruno@clisp.org>
16470
16471         save-cwd: Move AC_LIBOBJ invocations to module description.
16472         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
16473         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
16474
16475 2011-05-23  Bruno Haible  <bruno@clisp.org>
16476
16477         same: Move AC_LIBOBJ invocations to module description.
16478         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
16479         * modules/same (Makefile.am): Augment lib_SOURCES.
16480
16481 2011-05-23  Bruno Haible  <bruno@clisp.org>
16482
16483         safe-write: Move AC_LIBOBJ invocations to module description.
16484         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
16485         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
16486         instead of gl_SAFE_WRITE.
16487         (Makefile.am): Augment lib_SOURCES.
16488
16489 2011-05-23  Bruno Haible  <bruno@clisp.org>
16490
16491         safe-read: Move AC_LIBOBJ invocations to module description.
16492         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
16493         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
16494         of gl_SAFE_READ.
16495         (Makefile.am): Augment lib_SOURCES.
16496
16497 2011-05-23  Bruno Haible  <bruno@clisp.org>
16498
16499         safe-alloc: Move AC_LIBOBJ invocations to module description.
16500         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
16501         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
16502
16503 2011-05-23  Bruno Haible  <bruno@clisp.org>
16504
16505         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
16506         * m4/rijndael.m4: Remove file.
16507         * modules/crypto/rijndael (Files): Remove it.
16508         (configure.ac): Remove gl_RIJNDAEL call.
16509         (Makefile.am): Augment lib_SOURCES.
16510
16511 2011-05-23  Bruno Haible  <bruno@clisp.org>
16512
16513         readtokens: Move AC_LIBOBJ invocations to module description.
16514         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
16515         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
16516
16517 2011-05-23  Bruno Haible  <bruno@clisp.org>
16518
16519         read-file: Move AC_LIBOBJ invocations to module description.
16520         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
16521         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
16522         of gl_FUNC_READ_FILE.
16523         (Makefile.am): Augment lib_SOURCES.
16524
16525 2011-05-23  Bruno Haible  <bruno@clisp.org>
16526
16527         quotearg: Move AC_LIBOBJ invocations to module description.
16528         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
16529         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
16530
16531 2011-05-23  Bruno Haible  <bruno@clisp.org>
16532
16533         quote: Move AC_LIBOBJ invocations to module description.
16534         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
16535         * modules/quote (Makefile.am): Augment lib_SOURCES.
16536
16537 2011-05-23  Bruno Haible  <bruno@clisp.org>
16538
16539         posixver: Move AC_LIBOBJ invocations to module description.
16540         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
16541         * modules/posixver (Makefile.am): Augment lib_SOURCES.
16542
16543 2011-05-23  Bruno Haible  <bruno@clisp.org>
16544
16545         posixtm: Move AC_LIBOBJ invocations to module description.
16546         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
16547         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
16548
16549 2011-05-23  Bruno Haible  <bruno@clisp.org>
16550
16551         physmem: Move AC_LIBOBJ invocations to module description.
16552         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
16553         * modules/physmem (Makefile.am): Augment lib_SOURCES.
16554
16555 2011-05-23  Bruno Haible  <bruno@clisp.org>
16556
16557         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
16558         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
16559         invocation.
16560         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
16561
16562 2011-05-23  Bruno Haible  <bruno@clisp.org>
16563
16564         mpsort: Move AC_LIBOBJ invocations to module description.
16565         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
16566         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
16567
16568 2011-05-23  Bruno Haible  <bruno@clisp.org>
16569
16570         modechange: Move AC_LIBOBJ invocations to module description.
16571         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
16572         * modules/modechange (Makefile.am): Augment lib_SOURCES.
16573
16574 2011-05-23  Bruno Haible  <bruno@clisp.org>
16575
16576         mkdir-p: Move AC_LIBOBJ invocations to module description.
16577         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
16578         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
16579
16580 2011-05-23  Bruno Haible  <bruno@clisp.org>
16581
16582         mkancesdirs: Move AC_LIBOBJ invocations to module description.
16583         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
16584         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
16585
16586 2011-05-23  Bruno Haible  <bruno@clisp.org>
16587
16588         mgetgroups: Move AC_LIBOBJ invocations to module description.
16589         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
16590         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
16591
16592 2011-05-23  Bruno Haible  <bruno@clisp.org>
16593
16594         memxor: Move AC_LIBOBJ invocations to module description.
16595         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
16596         * modules/memxor (Makefile.am): Augment lib_SOURCES.
16597
16598 2011-05-23  Bruno Haible  <bruno@clisp.org>
16599
16600         memcoll: Move AC_LIBOBJ invocations to module description.
16601         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
16602         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
16603
16604 2011-05-23  Bruno Haible  <bruno@clisp.org>
16605
16606         memcasecmp: Move AC_LIBOBJ invocations to module description.
16607         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
16608         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
16609
16610 2011-05-23  Bruno Haible  <bruno@clisp.org>
16611
16612         crypto/md5: Move AC_LIBOBJ invocations to module description.
16613         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
16614         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
16615
16616 2011-05-23  Bruno Haible  <bruno@clisp.org>
16617
16618         crypto/md4: Move AC_LIBOBJ invocations to module description.
16619         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
16620         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
16621
16622 2011-05-23  Bruno Haible  <bruno@clisp.org>
16623
16624         crypto/md2: Move AC_LIBOBJ invocations to module description.
16625         * m4/md2.m4: Remove file.
16626         * modules/crypto/md2 (Files): Remove it.
16627         (configure.ac): Remove gl_MD2 call.
16628         (Makefile.am): Augment lib_SOURCES.
16629
16630 2011-05-23  Bruno Haible  <bruno@clisp.org>
16631
16632         long-options: Move AC_LIBOBJ invocations to module description.
16633         * m4/long-options.m4: Remove file.
16634         * modules/long-options (Files): Remove it.
16635         (configure.ac): Remove gl_LONG_OPTIONS call.
16636         (Makefile.am): Augment lib_SOURCES.
16637
16638 2011-05-23  Bruno Haible  <bruno@clisp.org>
16639
16640         i-ring: Move AC_LIBOBJ invocations to module description.
16641         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
16642         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
16643
16644 2011-05-23  Bruno Haible  <bruno@clisp.org>
16645
16646         idcache: Move AC_LIBOBJ invocations to module description.
16647         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
16648         * modules/idcache (Makefile.am): Augment lib_SOURCES.
16649
16650 2011-05-23  Bruno Haible  <bruno@clisp.org>
16651
16652         human: Move AC_LIBOBJ invocations to module description.
16653         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
16654         * modules/human (Makefile.am): Augment lib_SOURCES.
16655
16656 2011-05-23  Bruno Haible  <bruno@clisp.org>
16657
16658         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
16659         * m4/hmac-sha1.m4: Remove file.
16660         * modules/crypto/hmac-sha1 (Files): Remove it.
16661         (configure.ac): Remove gl_HMAC_SHA1 call.
16662         (Makefile.am): Augment lib_SOURCES.
16663
16664 2011-05-23  Bruno Haible  <bruno@clisp.org>
16665
16666         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
16667         * m4/hmac-md5.m4: Remove file.
16668         * modules/crypto/hmac-md5 (Files): Remove it.
16669         (configure.ac): Remove gl_HMAC_MD5 call.
16670         (Makefile.am): Augment lib_SOURCES.
16671
16672 2011-05-23  Bruno Haible  <bruno@clisp.org>
16673
16674         hash: Move AC_LIBOBJ invocations to module description.
16675         * m4/hash.m4: Remove file.
16676         * modules/hash (Files): Remove it.
16677         (configure.ac): Remove gl_HASH call.
16678         (Makefile.am): Augment lib_SOURCES.
16679
16680 2011-05-23  Bruno Haible  <bruno@clisp.org>
16681
16682         hard-locale: Move AC_LIBOBJ invocations to module description.
16683         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
16684         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
16685
16686 2011-05-23  Bruno Haible  <bruno@clisp.org>
16687
16688         getugroups: Move AC_LIBOBJ invocations to module description.
16689         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
16690         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
16691
16692 2011-05-23  Bruno Haible  <bruno@clisp.org>
16693
16694         gettime: Move AC_LIBOBJ invocations to module description.
16695         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
16696         * modules/gettime (Makefile.am): Augment lib_SOURCES.
16697
16698 2011-05-23  Bruno Haible  <bruno@clisp.org>
16699
16700         getndelim2: Move AC_LIBOBJ invocations to module description.
16701         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
16702         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
16703
16704 2011-05-23  Bruno Haible  <bruno@clisp.org>
16705
16706         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
16707         * m4/gc-pbkdf2-sha1.m4: Remove file.
16708         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
16709         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
16710         (Makefile.am): Augment lib_SOURCES.
16711
16712 2011-05-23  Bruno Haible  <bruno@clisp.org>
16713
16714         fts: Move AC_LIBOBJ invocations to module description.
16715         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
16716         * modules/fts (configure.ac): ... to here.
16717
16718 2011-05-23  Bruno Haible  <bruno@clisp.org>
16719
16720         file-type: Move AC_LIBOBJ invocations to module description.
16721         * m4/file-type.m4: Remove file.
16722         * modules/file-type (Files): Remove it.
16723         (configure.ac): Remove gl_FILE_TYPE call.
16724         (Makefile.am): Augment lib_SOURCES.
16725
16726 2011-05-23  Bruno Haible  <bruno@clisp.org>
16727
16728         filenamecat*: Respect rules for use of AC_LIBOBJ.
16729         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
16730         Remove AC_LIBOBJ invocation.
16731         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
16732         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
16733
16734 2011-05-23  Bruno Haible  <bruno@clisp.org>
16735
16736         filemode: Move AC_LIBOBJ invocations to module description.
16737         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
16738         * modules/filemode (Makefile.am): Augment lib_SOURCES.
16739
16740 2011-05-23  Bruno Haible  <bruno@clisp.org>
16741
16742         openat-safer: Move AC_LIBOBJ invocations to module description.
16743         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
16744         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
16745
16746 2011-05-23  Bruno Haible  <bruno@clisp.org>
16747
16748         fcntl-safer: Move AC_LIBOBJ invocations to module description.
16749         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
16750         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
16751
16752 2011-05-23  Bruno Haible  <bruno@clisp.org>
16753
16754         exclude: Move AC_LIBOBJ invocations to module description.
16755         * m4/exclude.m4: Remove file.
16756         * modules/exclude (Files): Remove it.
16757         (configure.ac): Remove gl_EXCLUDE call.
16758         (Makefile.am): Augment lib_SOURCES.
16759
16760 2011-05-23  Bruno Haible  <bruno@clisp.org>
16761
16762         dirname*: Respect rules for use of AC_LIBOBJ.
16763         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
16764         invocations.
16765         * modules/dirname (Makefile.am): Augment lib_SOURCES.
16766         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
16767
16768 2011-05-23  Bruno Haible  <bruno@clisp.org>
16769
16770         dirent-safer: Move AC_LIBOBJ invocations to module description.
16771         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
16772         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
16773
16774 2011-05-23  Bruno Haible  <bruno@clisp.org>
16775
16776         crypto/des: Move AC_LIBOBJ invocations to module description.
16777         * m4/des.m4: Remove file.
16778         * modules/crypto/des (Files): Remove it.
16779         (configure.ac): Remove gl_DES call.
16780         (Makefile.am): Augment lib_SOURCES.
16781
16782 2011-05-23  Bruno Haible  <bruno@clisp.org>
16783
16784         cycle-check: Move AC_LIBOBJ invocations to module description.
16785         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
16786         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
16787
16788 2011-05-23  Bruno Haible  <bruno@clisp.org>
16789
16790         c-strtold: Move AC_LIBOBJ invocations to module description.
16791         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
16792         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
16793
16794 2011-05-23  Bruno Haible  <bruno@clisp.org>
16795
16796         c-strtod: Move AC_LIBOBJ invocations to module description.
16797         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
16798         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
16799
16800 2011-05-23  Bruno Haible  <bruno@clisp.org>
16801
16802         crc: Move AC_LIBOBJ invocations to module description.
16803         * m4/crc.m4: Remove file.
16804         * modules/crc (Files): Remove it.
16805         (configure.ac): Remove gl_CRC call.
16806         (Makefile.am): Augment lib_SOURCES.
16807
16808 2011-05-23  Bruno Haible  <bruno@clisp.org>
16809
16810         close-stream: Move AC_LIBOBJ invocations to module description.
16811         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16812         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16813
16814 2011-05-23  Bruno Haible  <bruno@clisp.org>
16815
16816         closeout: Move AC_LIBOBJ invocations to module description.
16817         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16818         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16819
16820 2011-05-23  Bruno Haible  <bruno@clisp.org>
16821
16822         closein: Move AC_LIBOBJ invocations to module description.
16823         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16824         * modules/closein (Makefile.am): Augment lib_SOURCES.
16825
16826 2011-05-23  Bruno Haible  <bruno@clisp.org>
16827
16828         cloexec: Move AC_LIBOBJ invocations to module description.
16829         * m4/cloexec.m4: Remove file.
16830         * modules/cloexec (Files): Remove it.
16831         (configure.ac): Remove gl_CLOEXEC call.
16832         (Makefile.am): Augment lib_SOURCES.
16833
16834 2011-05-23  Bruno Haible  <bruno@clisp.org>
16835
16836         check-version: Move AC_LIBOBJ invocations to module description.
16837         * m4/check-version.m4: Remove file.
16838         * modules/check-version (Files): Remove it.
16839         (configure.ac): Remove gl_CHECK_VERSION call.
16840         (Makefile.am): Augment lib_SOURCES.
16841
16842 2011-05-23  Bruno Haible  <bruno@clisp.org>
16843
16844         chdir-safer: Move AC_LIBOBJ invocations to module description.
16845         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16846         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16847
16848 2011-05-23  Bruno Haible  <bruno@clisp.org>
16849
16850         canonicalize: Move AC_LIBOBJ invocations to module description.
16851         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16852         AC_LIBOBJ invocation.
16853         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16854
16855 2011-05-23  Bruno Haible  <bruno@clisp.org>
16856
16857         canon-host: Move AC_LIBOBJ invocations to module description.
16858         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16859         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16860         instead of gl_CANON_HOST.
16861         (Makefile.am): Augment lib_SOURCES.
16862
16863 2011-05-23  Bruno Haible  <bruno@clisp.org>
16864
16865         backupfile: Move AC_LIBOBJ invocations to module description.
16866         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16867         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16868
16869 2011-05-23  Bruno Haible  <bruno@clisp.org>
16870
16871         argmatch: Move AC_LIBOBJ invocations to module description.
16872         * m4/argmatch.m4: Remove file.
16873         * modules/argmatch (Files): Remove it.
16874         (configure.ac): Remove gl_ARGMATCH call.
16875         (Makefile.am): Augment lib_SOURCES.
16876
16877 2011-05-23  Bruno Haible  <bruno@clisp.org>
16878
16879         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16880         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16881         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16882
16883 2011-05-23  Bruno Haible  <bruno@clisp.org>
16884
16885         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16886         * m4/arcfour.m4: Remove file.
16887         * modules/crypto/arcfour (Files): Remove it.
16888         (configure.ac): Remove gl_ARCFOUR call.
16889         (Makefile.am): Augment lib_SOURCES.
16890
16891 2011-05-22  Bruno Haible  <bruno@clisp.org>
16892
16893         write: Move AC_LIBOBJ invocations to module description.
16894         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16895         * modules/write (configure.ac): ... to here.
16896
16897 2011-05-22  Bruno Haible  <bruno@clisp.org>
16898
16899         wmemset: Move AC_LIBOBJ invocations to module description.
16900         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16901         here...
16902         * modules/wmemset (configure.ac): ... to here.
16903
16904 2011-05-22  Bruno Haible  <bruno@clisp.org>
16905
16906         wmemmove: Move AC_LIBOBJ invocations to module description.
16907         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16908         here...
16909         * modules/wmemmove (configure.ac): ... to here.
16910
16911 2011-05-22  Bruno Haible  <bruno@clisp.org>
16912
16913         wmemcpy: Move AC_LIBOBJ invocations to module description.
16914         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16915         here...
16916         * modules/wmemcpy (configure.ac): ... to here.
16917
16918 2011-05-22  Bruno Haible  <bruno@clisp.org>
16919
16920         wmemcmp: Move AC_LIBOBJ invocations to module description.
16921         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16922         here...
16923         * modules/wmemcmp (configure.ac): ... to here.
16924
16925 2011-05-22  Bruno Haible  <bruno@clisp.org>
16926
16927         wmemchr: Move AC_LIBOBJ invocations to module description.
16928         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16929         here...
16930         * modules/wmemchr (configure.ac): ... to here.
16931
16932 2011-05-22  Bruno Haible  <bruno@clisp.org>
16933
16934         wcswidth: Move AC_LIBOBJ invocations to module description.
16935         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16936         here...
16937         * modules/wcswidth (configure.ac): ... to here.
16938
16939 2011-05-22  Bruno Haible  <bruno@clisp.org>
16940
16941         wcwidth: Respect rules for use of AC_LIBOBJ.
16942         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16943         invocation from here...
16944         * modules/wcwidth (configure.ac): ... to here.
16945         (Depends-on): Update conditions.
16946
16947 2011-05-22  Bruno Haible  <bruno@clisp.org>
16948
16949         wctype: Move AC_LIBOBJ invocations to module description.
16950         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16951         invocation from here...
16952         * modules/wctype (configure.ac): ... to here.
16953         (Depends-on): Update conditions.
16954
16955 2011-05-22  Bruno Haible  <bruno@clisp.org>
16956
16957         wctrans: Move AC_LIBOBJ invocations to module description.
16958         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16959         invocation from here...
16960         * modules/wctrans (configure.ac): ... to here.
16961
16962 2011-05-22  Bruno Haible  <bruno@clisp.org>
16963
16964         wctomb: Move AC_LIBOBJ invocations to module description.
16965         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16966         invocations from here...
16967         * modules/wctomb (configure.ac): ... to here.
16968
16969 2011-05-22  Bruno Haible  <bruno@clisp.org>
16970
16971         wctob: Move AC_LIBOBJ invocations to module description.
16972         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16973         gl_PREREQ_WCTOB invocations from here...
16974         * modules/wctob (configure.ac): ... to here.
16975         (Depends-on): Update conditions.
16976
16977 2011-05-22  Bruno Haible  <bruno@clisp.org>
16978
16979         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16980         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16981         here...
16982         * modules/wcsxfrm (configure.ac): ... to here.
16983
16984 2011-05-22  Bruno Haible  <bruno@clisp.org>
16985
16986         wcstok: Move AC_LIBOBJ invocations to module description.
16987         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16988         * modules/wcstok (configure.ac): ... to here.
16989
16990 2011-05-22  Bruno Haible  <bruno@clisp.org>
16991
16992         wcsstr: Move AC_LIBOBJ invocations to module description.
16993         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16994         * modules/wcsstr (configure.ac): ... to here.
16995
16996 2011-05-22  Bruno Haible  <bruno@clisp.org>
16997
16998         wcsspn: Move AC_LIBOBJ invocations to module description.
16999         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
17000         * modules/wcsspn (configure.ac): ... to here.
17001
17002 2011-05-22  Bruno Haible  <bruno@clisp.org>
17003
17004         wcsrtombs: Move AC_LIBOBJ invocations to module description.
17005         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
17006         gl_PREREQ_WCSRTOMBS invocations from here...
17007         * modules/wcsrtombs (configure.ac): ... to here.
17008
17009 2011-05-22  Bruno Haible  <bruno@clisp.org>
17010
17011         wcsrchr: Move AC_LIBOBJ invocations to module description.
17012         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
17013         here...
17014         * modules/wcsrchr (configure.ac): ... to here.
17015
17016 2011-05-22  Bruno Haible  <bruno@clisp.org>
17017
17018         wcspbrk: Move AC_LIBOBJ invocations to module description.
17019         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
17020         here...
17021         * modules/wcspbrk (configure.ac): ... to here.
17022
17023 2011-05-22  Bruno Haible  <bruno@clisp.org>
17024
17025         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
17026         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
17027         gl_PREREQ_WCSNRTOMBS invocations from here...
17028         * modules/wcsnrtombs (configure.ac): ... to here.
17029
17030 2011-05-22  Bruno Haible  <bruno@clisp.org>
17031
17032         wcsnlen: Move AC_LIBOBJ invocations to module description.
17033         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
17034         here...
17035         * modules/wcsnlen (configure.ac): ... to here.
17036
17037 2011-05-22  Bruno Haible  <bruno@clisp.org>
17038
17039         wcsncpy: Move AC_LIBOBJ invocations to module description.
17040         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
17041         here...
17042         * modules/wcsncpy (configure.ac): ... to here.
17043
17044 2011-05-22  Bruno Haible  <bruno@clisp.org>
17045
17046         wcsncmp: Move AC_LIBOBJ invocations to module description.
17047         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
17048         here...
17049         * modules/wcsncmp (configure.ac): ... to here.
17050
17051 2011-05-22  Bruno Haible  <bruno@clisp.org>
17052
17053         wcsncat: Move AC_LIBOBJ invocations to module description.
17054         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
17055         here...
17056         * modules/wcsncat (configure.ac): ... to here.
17057
17058 2011-05-22  Bruno Haible  <bruno@clisp.org>
17059
17060         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
17061         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
17062         from here...
17063         * modules/wcsncasecmp (configure.ac): ... to here.
17064
17065 2011-05-22  Bruno Haible  <bruno@clisp.org>
17066
17067         wcslen: Move AC_LIBOBJ invocations to module description.
17068         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
17069         * modules/wcslen (configure.ac): ... to here.
17070
17071 2011-05-22  Bruno Haible  <bruno@clisp.org>
17072
17073         wcsdup: Move AC_LIBOBJ invocations to module description.
17074         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
17075         * modules/wcsdup (configure.ac): ... to here.
17076
17077 2011-05-22  Bruno Haible  <bruno@clisp.org>
17078
17079         wcscspn: Move AC_LIBOBJ invocations to module description.
17080         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
17081         here...
17082         * modules/wcscspn (configure.ac): ... to here.
17083
17084 2011-05-22  Bruno Haible  <bruno@clisp.org>
17085
17086         wcscpy: Move AC_LIBOBJ invocations to module description.
17087         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
17088         * modules/wcscpy (configure.ac): ... to here.
17089
17090 2011-05-22  Bruno Haible  <bruno@clisp.org>
17091
17092         wcscoll: Move AC_LIBOBJ invocations to module description.
17093         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
17094         here...
17095         * modules/wcscoll (configure.ac): ... to here.
17096
17097 2011-05-22  Bruno Haible  <bruno@clisp.org>
17098
17099         wcscmp: Move AC_LIBOBJ invocations to module description.
17100         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
17101         * modules/wcscmp (configure.ac): ... to here.
17102
17103 2011-05-22  Bruno Haible  <bruno@clisp.org>
17104
17105         wcschr: Move AC_LIBOBJ invocations to module description.
17106         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
17107         * modules/wcschr (configure.ac): ... to here.
17108
17109 2011-05-22  Bruno Haible  <bruno@clisp.org>
17110
17111         wcscat: Move AC_LIBOBJ invocations to module description.
17112         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
17113         * modules/wcscat (configure.ac): ... to here.
17114
17115 2011-05-22  Bruno Haible  <bruno@clisp.org>
17116
17117         wcscasecmp: Move AC_LIBOBJ invocations to module description.
17118         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
17119         here...
17120         * modules/wcscasecmp (configure.ac): ... to here.
17121
17122 2011-05-22  Bruno Haible  <bruno@clisp.org>
17123
17124         wcrtomb: Move AC_LIBOBJ invocations to module description.
17125         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
17126         invocations from here...
17127         * modules/wcrtomb (configure.ac): ... to here.
17128
17129 2011-05-22  Bruno Haible  <bruno@clisp.org>
17130
17131         wcpncpy: Move AC_LIBOBJ invocations to module description.
17132         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
17133         here...
17134         * modules/wcpncpy (configure.ac): ... to here.
17135
17136 2011-05-22  Bruno Haible  <bruno@clisp.org>
17137
17138         wcpcpy: Move AC_LIBOBJ invocations to module description.
17139         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
17140         * modules/wcpcpy (configure.ac): ... to here.
17141
17142 2011-05-22  Bruno Haible  <bruno@clisp.org>
17143
17144         waitpid: Move AC_LIBOBJ invocations to module description.
17145         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
17146         invocation from here...
17147         * modules/waitpid (configure.ac): ... to here.
17148
17149 2011-05-22  Bruno Haible  <bruno@clisp.org>
17150
17151         utimensat: Move AC_LIBOBJ invocations to module description.
17152         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
17153         here...
17154         * modules/utimensat (configure.ac): ... to here.
17155
17156 2011-05-22  Bruno Haible  <bruno@clisp.org>
17157
17158         usleep: Move AC_LIBOBJ invocations to module description.
17159         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
17160         here...
17161         * modules/usleep (configure.ac): ... to here.
17162
17163 2011-05-22  Bruno Haible  <bruno@clisp.org>
17164
17165         unlockpt: Move AC_LIBOBJ invocations to module description.
17166         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
17167         gl_PREREQ_UNLOCKPT invocations from here...
17168         * modules/unlockpt (configure.ac): ... to here.
17169
17170 2011-05-22  Bruno Haible  <bruno@clisp.org>
17171
17172         unlink: Respect rules for use of AC_LIBOBJ.
17173         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
17174         * modules/unlink (configure.ac): ... to here.
17175
17176 2011-05-22  Bruno Haible  <bruno@clisp.org>
17177
17178         uname: Move AC_LIBOBJ invocations to module description.
17179         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
17180         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
17181         here...
17182         * modules/uname (configure.ac): ... to here.
17183
17184 2011-05-22  Bruno Haible  <bruno@clisp.org>
17185
17186         ttyname_r: Move AC_LIBOBJ invocations to module description.
17187         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
17188         gl_PREREQ_TTYNAME_R invocations from here...
17189         * modules/ttyname_r (configure.ac): ... to here.
17190
17191 2011-05-22  Bruno Haible  <bruno@clisp.org>
17192
17193         tsearch: Move AC_LIBOBJ invocations to module description.
17194         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
17195         invocations from here...
17196         * modules/tsearch (configure.ac): ... to here.
17197
17198 2011-05-22  Bruno Haible  <bruno@clisp.org>
17199
17200         towctrans: Move AC_LIBOBJ invocations to module description.
17201         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
17202         AC_LIBOBJ invocation from here...
17203         * modules/towctrans (configure.ac): ... to here.
17204
17205 2011-05-22  Bruno Haible  <bruno@clisp.org>
17206
17207         tmpfile: Move AC_LIBOBJ invocations to module description.
17208         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
17209         invocations from here...
17210         * modules/tmpfile (configure.ac): ... to here.
17211
17212 2011-05-22  Bruno Haible  <bruno@clisp.org>
17213
17214         times: Move AC_LIBOBJ invocations to module description.
17215         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
17216         * modules/times (configure.ac): ... to here.
17217
17218 2011-05-22  Bruno Haible  <bruno@clisp.org>
17219
17220         time_r: Move AC_LIBOBJ invocations to module description.
17221         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
17222         invocations from here...
17223         * modules/time_r (configure.ac): ... to here.
17224
17225 2011-05-22  Bruno Haible  <bruno@clisp.org>
17226
17227         timegm: Move AC_LIBOBJ invocations to module description.
17228         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
17229         invocations from here...
17230         * modules/timegm (configure.ac): ... to here.
17231
17232 2011-05-22  Bruno Haible  <bruno@clisp.org>
17233
17234         tcgetsid: Move AC_LIBOBJ invocations to module description.
17235         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
17236         and gl_PREREQ_TCGETSID invocations from here...
17237         * modules/tcgetsid (configure.ac): ... to here.
17238         (Depends-on): Update conditions.
17239
17240 2011-05-22  Bruno Haible  <bruno@clisp.org>
17241
17242         symlinkat: Move AC_LIBOBJ invocations to module description.
17243         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
17244         here...
17245         * modules/symlinkat (configure.ac): ... to here.
17246
17247 2011-05-22  Bruno Haible  <bruno@clisp.org>
17248
17249         symlink: Move AC_LIBOBJ invocations to module description.
17250         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
17251         here...
17252         * modules/symlink (configure.ac): ... to here.
17253
17254 2011-05-22  Bruno Haible  <bruno@clisp.org>
17255
17256         strverscmp: Move AC_LIBOBJ invocations to module description.
17257         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
17258         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
17259         from here...
17260         * modules/strverscmp (configure.ac): ... to here.
17261
17262 2011-05-22  Bruno Haible  <bruno@clisp.org>
17263
17264         strtok_r: Move AC_LIBOBJ invocations to module description.
17265         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
17266         and gl_PREREQ_STRTOK_R invocations from here...
17267         * modules/strtok_r (configure.ac): ... to here.
17268         (Depends-on): Update conditions.
17269
17270 2011-05-22  Bruno Haible  <bruno@clisp.org>
17271
17272         strtoumax: Move AC_LIBOBJ invocations to module description.
17273         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
17274         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
17275         from here...
17276         * modules/strtoumax (configure.ac): ... to here.
17277
17278 2011-05-22  Bruno Haible  <bruno@clisp.org>
17279
17280         strtoimax: Move AC_LIBOBJ invocations to module description.
17281         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
17282         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
17283         from here...
17284         * modules/strtoimax (configure.ac): ... to here.
17285
17286 2011-05-22  Bruno Haible  <bruno@clisp.org>
17287
17288         strtoull: Move AC_LIBOBJ invocations to module description.
17289         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
17290         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
17291         from here...
17292         * modules/strtoull (configure.ac): ... to here.
17293
17294 2011-05-22  Bruno Haible  <bruno@clisp.org>
17295
17296         strtoll: Move AC_LIBOBJ invocations to module description.
17297         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
17298         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
17299         here...
17300         * modules/strtoll (configure.ac): ... to here.
17301
17302 2011-05-22  Bruno Haible  <bruno@clisp.org>
17303
17304         strtoul: Move AC_LIBOBJ invocations to module description.
17305         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
17306         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17307         * modules/strtoul (configure.ac): ... to here.
17308
17309 2011-05-22  Bruno Haible  <bruno@clisp.org>
17310
17311         strtol: Move AC_LIBOBJ invocations to module description.
17312         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
17313         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
17314         * modules/strtol (configure.ac): ... to here.
17315
17316 2011-05-22  Bruno Haible  <bruno@clisp.org>
17317
17318         strtod: Move AC_LIBOBJ invocations to module description.
17319         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
17320         invocations from here...
17321         * modules/strtod (configure.ac): ... to here.
17322
17323 2011-05-22  Bruno Haible  <bruno@clisp.org>
17324
17325         strstr*: Move AC_LIBOBJ invocations to module description.
17326         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
17327         invocations from here...
17328         * modules/strstr-simple (configure.ac): ... to here.
17329         * modules/strstr (configure.ac): ... and here.
17330
17331 2011-05-22  Bruno Haible  <bruno@clisp.org>
17332
17333         strsignal: Move AC_LIBOBJ invocations to module description.
17334         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
17335         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
17336         * modules/strsignal (configure.ac): ... to here.
17337         (Depends-on): Update conditions.
17338
17339 2011-05-22  Bruno Haible  <bruno@clisp.org>
17340
17341         strsep: Move AC_LIBOBJ invocations to module description.
17342         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
17343         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
17344         here...
17345         * modules/strsep (configure.ac): ... to here.
17346
17347 2011-05-22  Bruno Haible  <bruno@clisp.org>
17348
17349         strptime: Move AC_LIBOBJ invocations to module description.
17350         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
17351         gl_PREREQ_STRPTIME invocations from here...
17352         * modules/strptime (configure.ac): ... to here.
17353
17354 2011-05-22  Bruno Haible  <bruno@clisp.org>
17355
17356         strpbrk: Move AC_LIBOBJ invocations to module description.
17357         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
17358         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
17359         here...
17360         * modules/strpbrk (configure.ac): ... to here.
17361
17362 2011-05-22  Bruno Haible  <bruno@clisp.org>
17363
17364         strnlen: Move AC_LIBOBJ invocations to module description.
17365         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
17366         invocations from here...
17367         * modules/strnlen (configure.ac): ... to here.
17368
17369 2011-05-22  Bruno Haible  <bruno@clisp.org>
17370
17371         strndup: Move AC_LIBOBJ invocations to module description.
17372         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
17373         invocations from here...
17374         * modules/strndup (configure.ac): ... to here.
17375         (Depends-on): Update conditions.
17376
17377 2011-05-22  Bruno Haible  <bruno@clisp.org>
17378
17379         strncat: Move AC_LIBOBJ invocations to module description.
17380         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
17381         invocations from here...
17382         * modules/strncat (configure.ac): ... to here.
17383
17384 2011-05-22  Bruno Haible  <bruno@clisp.org>
17385
17386         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
17387         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
17388         invocations from here...
17389         * modules/strdup (configure.ac): ... to here.
17390         * modules/strdup-posix (configure.ac): ... and here.
17391
17392 2011-05-22  Bruno Haible  <bruno@clisp.org>
17393
17394         strcspn: Move AC_LIBOBJ invocations to module description.
17395         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
17396         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
17397         here...
17398         * modules/strcspn (configure.ac): ... to here.
17399
17400 2011-05-22  Bruno Haible  <bruno@clisp.org>
17401
17402         strchrnul: Move AC_LIBOBJ invocations to module description.
17403         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
17404         gl_PREREQ_STRCHRNUL invocations from here...
17405         * modules/strchrnul (configure.ac): ... to here.
17406
17407 2011-05-22  Bruno Haible  <bruno@clisp.org>
17408
17409         strcasestr*: Move AC_LIBOBJ invocations to module description.
17410         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
17411         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
17412         * modules/strcasestr-simple (configure.ac): ... to here.
17413         * modules/strcasestr (configure.ac): ... and here.
17414
17415 2011-05-22  Bruno Haible  <bruno@clisp.org>
17416
17417         strcase: Move AC_LIBOBJ invocations to module description.
17418         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
17419         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
17420         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
17421         gl_PREREQ_STRNCASECMP invocations from here...
17422         * modules/strcase (configure.ac): ... to here.
17423
17424 2011-05-22  Bruno Haible  <bruno@clisp.org>
17425
17426         stpncpy: Move AC_LIBOBJ invocations to module description.
17427         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
17428         here...
17429         * modules/stpncpy (configure.ac): ... to here.
17430
17431 2011-05-22  Bruno Haible  <bruno@clisp.org>
17432
17433         stpcpy: Move AC_LIBOBJ invocations to module description.
17434         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
17435         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
17436         here...
17437         * modules/stpcpy (configure.ac): ... to here.
17438
17439 2011-05-21  Bruno Haible  <bruno@clisp.org>
17440
17441         stat: Move AC_LIBOBJ invocations to module description.
17442         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
17443         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
17444         here...
17445         * modules/stat (configure.ac): ... to here.
17446
17447 2011-05-21  Bruno Haible  <bruno@clisp.org>
17448
17449         sleep: Move AC_LIBOBJ invocations to module description.
17450         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
17451         * modules/sleep (configure.ac): ... to here.
17452
17453 2011-05-21  Bruno Haible  <bruno@clisp.org>
17454
17455         signbit: Move AC_LIBOBJ invocations to module description.
17456         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
17457         * modules/signbit (configure.ac): ... to here.
17458
17459 2011-05-21  Bruno Haible  <bruno@clisp.org>
17460
17461         sigprocmask: Move AC_LIBOBJ invocations to module description.
17462         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
17463         gl_PREREQ_SIGPROMASK invocations from here...
17464         * modules/sigprocmask (configure.ac): ... to here.
17465
17466 2011-05-21  Bruno Haible  <bruno@clisp.org>
17467
17468         sigaction: Move AC_LIBOBJ invocations to module description.
17469         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
17470         gl_PREREQ_SIGACTION invocations from here...
17471         * modules/sigaction (configure.ac): ... to here.
17472
17473 2011-05-21  Bruno Haible  <bruno@clisp.org>
17474
17475         sig2str: Move AC_LIBOBJ invocations to module description.
17476         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
17477         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
17478         here...
17479         * modules/sig2str (configure.ac): ... to here.
17480
17481 2011-05-21  Bruno Haible  <bruno@clisp.org>
17482
17483         setlocale: Move AC_LIBOBJ invocations to module description.
17484         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
17485         gl_PREREQ_SETLOCALE invocations from here...
17486         * modules/setlocale (configure.ac): ... to here.
17487
17488 2011-05-21  Bruno Haible  <bruno@clisp.org>
17489
17490         unsetenv: Move AC_LIBOBJ invocations to module description.
17491         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
17492         and gl_PREREQ_UNSETENV invocations from here...
17493         * modules/unsetenv (configure.ac): ... to here.
17494         (Depends-on): Update.
17495
17496 2011-05-21  Bruno Haible  <bruno@clisp.org>
17497
17498         setenv: Move AC_LIBOBJ invocations to module description.
17499         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
17500         here...
17501         * modules/setenv (configure.ac): ... to here.
17502
17503 2011-05-21  Bruno Haible  <bruno@clisp.org>
17504
17505         selinux-h: Move AC_LIBOBJ invocations to module description.
17506         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
17507         AC_LIBOBJ invocation from here...
17508         * modules/selinux-h (configure.ac): ... to here.
17509
17510 2011-05-21  Bruno Haible  <bruno@clisp.org>
17511
17512         select: Respect rules for use of AC_LIBOBJ.
17513         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
17514         here...
17515         * modules/select (configure.ac): ... to here.
17516
17517 2011-05-21  Bruno Haible  <bruno@clisp.org>
17518
17519         scandir: Move AC_LIBOBJ invocations to module description.
17520         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
17521         invocations from here...
17522         * modules/scandir (configure.ac): ... to here.
17523
17524 2011-05-21  Bruno Haible  <bruno@clisp.org>
17525
17526         rpmatch: Move AC_LIBOBJ invocations to module description.
17527         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
17528         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
17529         here...
17530         * modules/rpmatch (configure.ac): ... to here.
17531
17532 2011-05-21  Bruno Haible  <bruno@clisp.org>
17533
17534         rmdir: Respect rules for use of AC_LIBOBJ.
17535         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
17536         * modules/rmdir (configure.ac): ... to here.
17537
17538 2011-05-21  Bruno Haible  <bruno@clisp.org>
17539
17540         renameat: Move AC_LIBOBJ invocations to module description.
17541         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
17542         here...
17543         * modules/renameat (configure.ac): ... to here.
17544
17545 2011-05-21  Bruno Haible  <bruno@clisp.org>
17546
17547         rename: Respect rules for use of AC_LIBOBJ.
17548         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
17549         here...
17550         * modules/rename (configure.ac): ... to here.
17551
17552 2011-05-21  Bruno Haible  <bruno@clisp.org>
17553
17554         remove: Move AC_LIBOBJ invocations to module description.
17555         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
17556         here...
17557         * modules/remove (configure.ac): ... to here.
17558
17559 2011-05-21  Bruno Haible  <bruno@clisp.org>
17560
17561         relocatable-lib: Move AC_LIBOBJ invocations to module description.
17562         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
17563         macro.
17564         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
17565         * modules/relocatable-lib (configure.ac): ... to here.
17566         * modules/relocatable-prog-wrapper (configure.ac): Invoke
17567         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
17568
17569 2011-05-21  Bruno Haible  <bruno@clisp.org>
17570
17571         relocatable-prog: Move AC_LIBOBJ invocations to module description.
17572         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
17573         here...
17574         * modules/relocatable-prog (configure.ac): ... to here.
17575
17576 2011-05-21  Bruno Haible  <bruno@clisp.org>
17577
17578         regex: Move AC_LIBOBJ invocations to module description.
17579         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
17580         invocations from here...
17581         * modules/regex (configure.ac): ... to here.
17582
17583 2011-05-21  Bruno Haible  <bruno@clisp.org>
17584
17585         realloc-*: Move AC_LIBOBJ invocations to module description.
17586         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
17587         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
17588         AC_LIBOBJ invocations from here...
17589         * modules/realloc-gnu (configure.ac): ... to here.
17590         * modules/realloc-posix (configure.ac): ... and here.
17591
17592 2011-05-21  Bruno Haible  <bruno@clisp.org>
17593
17594         readutmp: Move AC_LIBOBJ invocations to module description.
17595         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
17596         * modules/readutmp (configure.ac): ... to here.
17597
17598 2011-05-21  Bruno Haible  <bruno@clisp.org>
17599
17600         readlinkat: Move AC_LIBOBJ invocations to module description.
17601         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
17602         here...
17603         * modules/readlinkat (configure.ac): ... to here.
17604
17605 2011-05-21  Bruno Haible  <bruno@clisp.org>
17606
17607         readlink: Move AC_LIBOBJ invocations to module description.
17608         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
17609         gl_PREREQ_READLINK invocations from here...
17610         * modules/readlink (configure.ac): ... to here.
17611
17612 2011-05-21  Bruno Haible  <bruno@clisp.org>
17613
17614         readline: Move AC_LIBOBJ invocations to module description.
17615         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
17616         gl_PREREQ_READLINE invocations from here...
17617         * modules/readline (configure.ac): ... to here.
17618
17619 2011-05-21  Bruno Haible  <bruno@clisp.org>
17620
17621         read: Move AC_LIBOBJ invocations to module description.
17622         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
17623         * modules/read (configure.ac): ... to here.
17624
17625 2011-05-21  Bruno Haible  <bruno@clisp.org>
17626
17627         rawmemchr: Move AC_LIBOBJ invocations to module description.
17628         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
17629         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
17630         from here...
17631         * modules/rawmemchr (configure.ac): ... to here.
17632
17633 2011-05-21  Bruno Haible  <bruno@clisp.org>
17634
17635         random_r: Move AC_LIBOBJ invocations to module description.
17636         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
17637         gl_PREREQ_RANDOM_R invocations from here...
17638         * modules/random_r (configure.ac): ... to here.
17639
17640 2011-05-21  Bruno Haible  <bruno@clisp.org>
17641
17642         pwrite: Move AC_LIBOBJ invocations to module description.
17643         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
17644         * modules/pwrite (configure.ac): ... to here.
17645
17646 2011-05-21  Bruno Haible  <bruno@clisp.org>
17647
17648         putenv: Move AC_LIBOBJ invocations to module description.
17649         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
17650         * modules/putenv (configure.ac): ... to here.
17651
17652 2011-05-21  Bruno Haible  <bruno@clisp.org>
17653
17654         login_tty: Move AC_LIBOBJ invocations to module description.
17655         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
17656         * modules/login_tty (configure.ac): ... to here.
17657
17658 2011-05-21  Bruno Haible  <bruno@clisp.org>
17659
17660         openpty: Move AC_LIBOBJ invocations to module description.
17661         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
17662         * modules/openpty (configure.ac): ... to here.
17663
17664 2011-05-21  Bruno Haible  <bruno@clisp.org>
17665
17666         forkpty: Move AC_LIBOBJ invocations to module description.
17667         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
17668         * modules/forkpty (configure.ac): ... to here.
17669
17670 2011-05-21  Bruno Haible  <bruno@clisp.org>
17671
17672         ptsname: Move AC_LIBOBJ invocations to module description.
17673         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
17674         invocations from here...
17675         * modules/ptsname (configure.ac): ... to here.
17676
17677 2011-05-21  Bruno Haible  <bruno@clisp.org>
17678
17679         pread: Move AC_LIBOBJ invocations to module description.
17680         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
17681         * modules/pread (configure.ac): ... to here.
17682
17683 2011-05-21  Bruno Haible  <bruno@clisp.org>
17684
17685         posix_spawn*: Move AC_LIBOBJ invocations to module description.
17686         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
17687         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
17688         * modules/posix_spawn (configure.ac): ... to here.
17689         * modules/posix_spawnp (configure.ac): ... and here.
17690
17691 2011-05-21  Bruno Haible  <bruno@clisp.org>
17692
17693         popen: Move AC_LIBOBJ invocations to module description.
17694         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
17695         invocations from here...
17696         * modules/popen (configure.ac): ... to here.
17697
17698 2011-05-21  Bruno Haible  <bruno@clisp.org>
17699
17700         poll: Move AC_LIBOBJ invocations to module description.
17701         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
17702         invocations from here...
17703         * modules/poll (configure.ac): ... to here.
17704
17705 2011-05-21  Bruno Haible  <bruno@clisp.org>
17706
17707         pipe-posix: Move AC_LIBOBJ invocations to module description.
17708         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
17709         * modules/pipe-posix (configure.ac): ... to here.
17710
17711 2011-05-21  Bruno Haible  <bruno@clisp.org>
17712
17713         openat: Respect rules for use of AC_LIBOBJ.
17714         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
17715         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17716         * modules/openat (configure.ac): ... to here.
17717
17718 2011-05-21  Bruno Haible  <bruno@clisp.org>
17719
17720         obstack-printf*: Move AC_LIBOBJ invocations to module description.
17721         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
17722         invocation from here...
17723         * modules/obstack-printf (configure.ac): ... to here.
17724         * modules/obstack-printf-posix (configure.ac): ... and here.
17725
17726 2011-05-21  Bruno Haible  <bruno@clisp.org>
17727
17728         nl_langinfo: Move AC_LIBOBJ invocations to module description.
17729         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
17730         from here...
17731         * modules/nl_langinfo (configure.ac): ... to here.
17732
17733 2011-05-21  Bruno Haible  <bruno@clisp.org>
17734
17735         nanosleep: Move AC_LIBOBJ invocations to module description.
17736         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
17737         gl_PREREQ_NANOSLEEP invocations from here...
17738         * modules/nanosleep (configure.ac): ... to here.
17739
17740 2011-05-21  Bruno Haible  <bruno@clisp.org>
17741
17742         mountlist: Move AC_LIBOBJ invocations to module description.
17743         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
17744         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
17745         * modules/mountlist (configure.ac): ... to here.
17746
17747 2011-05-21  Bruno Haible  <bruno@clisp.org>
17748
17749         mktime: Respect rules for use of AC_LIBOBJ.
17750         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
17751         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
17752         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
17753         (gl_FUNC_MKTIME_INTERNAL): ... and here...
17754         * modules/mktime (configure.ac): ... to here.
17755         * modules/mktime-internal (configure.ac): ... and here.
17756         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
17757
17758 2011-05-21  Bruno Haible  <bruno@clisp.org>
17759
17760         mkstemps: Move AC_LIBOBJ invocations to module description.
17761         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
17762         here...
17763         * modules/mkstemps (configure.ac): ... to here.
17764
17765 2011-05-21  Bruno Haible  <bruno@clisp.org>
17766
17767         mkstemp: Move AC_LIBOBJ invocations to module description.
17768         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
17769         gl_PREREQ_MKSTEMP invocations from here...
17770         * modules/mkstemp (configure.ac): ... to here.
17771
17772 2011-05-21  Bruno Haible  <bruno@clisp.org>
17773
17774         mkostemps: Move AC_LIBOBJ invocations to module description.
17775         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
17776         here...
17777         * modules/mkostemps (configure.ac): ... to here.
17778
17779 2011-05-21  Bruno Haible  <bruno@clisp.org>
17780
17781         mkostemp: Move AC_LIBOBJ invocations to module description.
17782         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
17783         gl_PREREQ_MKOSTEMP invocations from here...
17784         * modules/mkostemp (configure.ac): ... to here.
17785
17786 2011-05-21  Bruno Haible  <bruno@clisp.org>
17787
17788         mknod: Move AC_LIBOBJ invocations to module description.
17789         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
17790         * modules/mknod (configure.ac): ... to here.
17791
17792 2011-05-21  Bruno Haible  <bruno@clisp.org>
17793
17794         mkfifoat: Move AC_LIBOBJ invocations to module description.
17795         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
17796         here...
17797         * modules/mkfifoat (configure.ac): ... to here.
17798
17799 2011-05-21  Bruno Haible  <bruno@clisp.org>
17800
17801         mkfifo: Respect rules for use of AC_LIBOBJ.
17802         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
17803         here...
17804         * modules/mkfifo (configure.ac): ... to here.
17805
17806 2011-05-21  Bruno Haible  <bruno@clisp.org>
17807
17808         mkdtemp: Move AC_LIBOBJ invocations to module description.
17809         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
17810         invocations from here...
17811         * modules/mkdtemp (configure.ac): ... to here.
17812
17813 2011-05-21  Bruno Haible  <bruno@clisp.org>
17814
17815         mkdir: Move AC_LIBOBJ invocations to module description.
17816         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17817         * modules/mkdir (configure.ac): ... to here.
17818
17819 2011-05-21  Bruno Haible  <bruno@clisp.org>
17820
17821         memset: Move AC_LIBOBJ invocations to module description.
17822         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17823         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17824         here...
17825         * modules/memset (configure.ac): ... to here.
17826
17827 2011-05-21  Bruno Haible  <bruno@clisp.org>
17828
17829         memrchr: Move AC_LIBOBJ invocations to module description.
17830         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17831         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17832         here...
17833         * modules/memrchr (configure.ac): ... to here.
17834
17835 2011-05-21  Bruno Haible  <bruno@clisp.org>
17836
17837         mempcpy: Move AC_LIBOBJ invocations to module description.
17838         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17839         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17840         here...
17841         * modules/mempcpy (configure.ac): ... to here.
17842
17843 2011-05-21  Bruno Haible  <bruno@clisp.org>
17844
17845         memmove: Move AC_LIBOBJ invocations to module description.
17846         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17847         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17848         here...
17849         * modules/memmove (configure.ac): ... to here.
17850
17851 2011-05-21  Bruno Haible  <bruno@clisp.org>
17852
17853         memmem*: Move AC_LIBOBJ invocations to module description.
17854         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17855         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17856         here...
17857         (gl_FUNC_MEMMEM): ... and here...
17858         * modules/memmem-simple (configure.ac): ... to here.
17859         * modules/memmem (configure.ac): ... and here.
17860
17861 2011-05-21  Bruno Haible  <bruno@clisp.org>
17862
17863         memcpy: Move AC_LIBOBJ invocations to module description.
17864         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17865         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17866         here...
17867         * modules/memcpy (configure.ac): ... to here.
17868
17869 2011-05-21  Bruno Haible  <bruno@clisp.org>
17870
17871         memcmp: Simplify autoconf macro.
17872         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17873         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17874         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17875
17876 2011-05-21  Bruno Haible  <bruno@clisp.org>
17877
17878         memcmp: Move AC_LIBOBJ invocations to module description.
17879         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17880         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17881         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17882         * modules/memcmp (configure.ac): ... to here.
17883         (Depends-on): Update conditions.
17884
17885 2011-05-21  Bruno Haible  <bruno@clisp.org>
17886
17887         memchr: Respect rules for use of AC_LIBOBJ.
17888         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17889         invocations from here...
17890         * modules/memchr (configure.ac): ... to here.
17891
17892 2011-05-21  Bruno Haible  <bruno@clisp.org>
17893
17894         mbtowc: Move AC_LIBOBJ invocations to module description.
17895         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17896         invocations from here...
17897         * modules/mbtowc (configure.ac): ... to here.
17898
17899 2011-05-21  Bruno Haible  <bruno@clisp.org>
17900
17901         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17902         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17903         gl_PREREQ_MBSRTOWCS invocations from here...
17904         * modules/mbsrtowcs (configure.ac): ... to here.
17905
17906 2011-05-21  Bruno Haible  <bruno@clisp.org>
17907
17908         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17909         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17910         gl_PREREQ_MBSNRTOWCS invocations from here...
17911         * modules/mbsnrtowcs (configure.ac): ... to here.
17912
17913 2011-05-21  Bruno Haible  <bruno@clisp.org>
17914
17915         mbsinit: Move AC_LIBOBJ invocations to module description.
17916         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17917         invocations from here...
17918         * modules/mbsinit (configure.ac): ... to here.
17919
17920 2011-05-21  Bruno Haible  <bruno@clisp.org>
17921
17922         mbrlen: Move AC_LIBOBJ invocations to module description.
17923         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17924         invocations from here...
17925         * modules/mbrlen (configure.ac): ... to here.
17926
17927 2011-05-21  Bruno Haible  <bruno@clisp.org>
17928
17929         mbrtowc: Respect rules for use of AC_LIBOBJ.
17930         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17931         invocations from here...
17932         * modules/mbrtowc (configure.ac): ... to here.
17933
17934 2011-05-21  Bruno Haible  <bruno@clisp.org>
17935
17936         malloc-*: Move AC_LIBOBJ invocations to module description.
17937         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17938         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17939         AC_LIBOBJ invocations from here...
17940         * modules/malloc-gnu (configure.ac): ... to here.
17941         * modules/malloc-posix (configure.ac): ... and here.
17942
17943 2011-05-21  Bruno Haible  <bruno@clisp.org>
17944
17945         lstat, openat: Respect rules for use of AC_LIBOBJ.
17946         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17947         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17948         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17949         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17950         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17951         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17952         here.
17953         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17954
17955 2011-05-21  Bruno Haible  <bruno@clisp.org>
17956
17957         lseek: Move AC_LIBOBJ invocations to module description.
17958         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17959         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17960         * modules/lseek (configure.ac): ... to here.
17961
17962 2011-05-21  Bruno Haible  <bruno@clisp.org>
17963
17964         linkat: Move AC_LIBOBJ invocations to module description.
17965         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17966         here...
17967         * modules/linkat (configure.ac): ... to here.
17968
17969 2011-05-21  Bruno Haible  <bruno@clisp.org>
17970
17971         link: Respect rules for use of AC_LIBOBJ.
17972         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17973         * modules/link (configure.ac): ... to here.
17974
17975 2011-05-21  Bruno Haible  <bruno@clisp.org>
17976
17977         lchown: Move AC_LIBOBJ invocations to module description.
17978         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17979         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17980         * modules/lchown (configure.ac): ... to here.
17981
17982 2011-05-21  Bruno Haible  <bruno@clisp.org>
17983
17984         iswctype: Move AC_LIBOBJ invocations to module description.
17985         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17986         here...
17987         * modules/iswctype (configure.ac): ... to here.
17988
17989 2011-05-21  Bruno Haible  <bruno@clisp.org>
17990
17991         iswblank: Move AC_LIBOBJ invocations to module description.
17992         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17993         here...
17994         * modules/iswblank (configure.ac): ... to here.
17995
17996 2011-05-21  Bruno Haible  <bruno@clisp.org>
17997
17998         atanl: Move AC_LIBOBJ invocations to module description.
17999         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
18000         * modules/atanl (configure.ac): ... to here.
18001
18002 2011-05-21  Bruno Haible  <bruno@clisp.org>
18003
18004         acosl: Move AC_LIBOBJ invocations to module description.
18005         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
18006         * modules/acosl (configure.ac): ... to here.
18007
18008 2011-05-21  Bruno Haible  <bruno@clisp.org>
18009
18010         asinl: Respect rules for use of AC_LIBOBJ.
18011         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
18012         * modules/asinl (configure.ac): ... to here.
18013
18014 2011-05-21  Bruno Haible  <bruno@clisp.org>
18015
18016         tanl: Move AC_LIBOBJ invocations to module description.
18017         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
18018         * modules/tanl (configure.ac): ... to here.
18019
18020 2011-05-21  Bruno Haible  <bruno@clisp.org>
18021
18022         cosl: Move AC_LIBOBJ invocations to module description.
18023         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
18024         * modules/cosl (configure.ac): ... to here.
18025
18026 2011-05-21  Bruno Haible  <bruno@clisp.org>
18027
18028         sinl: Move AC_LIBOBJ invocations to module description.
18029         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
18030         * modules/sinl (configure.ac): ... to here.
18031
18032 2011-05-21  Bruno Haible  <bruno@clisp.org>
18033
18034         logl: Move AC_LIBOBJ invocations to module description.
18035         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
18036         * modules/logl (configure.ac): ... to here.
18037
18038 2011-05-21  Bruno Haible  <bruno@clisp.org>
18039
18040         expl: Move AC_LIBOBJ invocations to module description.
18041         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
18042         * modules/expl (configure.ac): ... to here.
18043
18044 2011-05-21  Bruno Haible  <bruno@clisp.org>
18045
18046         roundl: Move AC_LIBOBJ invocations to module description.
18047         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
18048         * modules/roundl (configure.ac): ... to here.
18049
18050 2011-05-21  Bruno Haible  <bruno@clisp.org>
18051
18052         round: Move AC_LIBOBJ invocations to module description.
18053         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
18054         * modules/round (configure.ac): ... to here.
18055
18056 2011-05-21  Bruno Haible  <bruno@clisp.org>
18057
18058         roundf: Move AC_LIBOBJ invocations to module description.
18059         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
18060         * modules/roundf (configure.ac): ... to here.
18061
18062 2011-05-21  Bruno Haible  <bruno@clisp.org>
18063
18064         truncl: Move AC_LIBOBJ invocations to module description.
18065         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
18066         * modules/truncl (configure.ac): ... to here.
18067
18068 2011-05-21  Bruno Haible  <bruno@clisp.org>
18069
18070         trunc: Move AC_LIBOBJ invocations to module description.
18071         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
18072         * modules/trunc (configure.ac): ... to here.
18073
18074 2011-05-21  Bruno Haible  <bruno@clisp.org>
18075
18076         truncf: Move AC_LIBOBJ invocations to module description.
18077         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
18078         * modules/truncf (configure.ac): ... to here.
18079
18080 2011-05-21  Bruno Haible  <bruno@clisp.org>
18081
18082         ceill: Move AC_LIBOBJ invocations to module description.
18083         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
18084         * modules/ceill (configure.ac): ... to here.
18085
18086 2011-05-21  Bruno Haible  <bruno@clisp.org>
18087
18088         ceil: Move AC_LIBOBJ invocations to module description.
18089         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
18090         * modules/ceil (configure.ac): ... to here.
18091
18092 2011-05-21  Bruno Haible  <bruno@clisp.org>
18093
18094         ceilf: Move AC_LIBOBJ invocations to module description.
18095         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
18096         * modules/ceilf (configure.ac): ... to here.
18097
18098 2011-05-21  Bruno Haible  <bruno@clisp.org>
18099
18100         floorl: Respect rules for use of AC_LIBOBJ.
18101         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
18102         * modules/floorl (configure.ac): ... to here.
18103
18104 2011-05-21  Bruno Haible  <bruno@clisp.org>
18105
18106         floor: Respect rules for use of AC_LIBOBJ.
18107         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
18108         * modules/floor (configure.ac): ... to here.
18109
18110 2011-05-21  Bruno Haible  <bruno@clisp.org>
18111
18112         floorf: Move AC_LIBOBJ invocations to module description.
18113         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
18114         * modules/floorf (configure.ac): ... to here.
18115
18116 2011-05-20  Bruno Haible  <bruno@clisp.org>
18117
18118         sqrtl: Respect rules for use of AC_LIBOBJ.
18119         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
18120         * modules/sqrtl (configure.ac): ... to here.
18121
18122 2011-05-20  Bruno Haible  <bruno@clisp.org>
18123
18124         ldexpl: Respect rules for use of AC_LIBOBJ.
18125         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
18126         * modules/ldexpl (configure.ac): ... to here.
18127
18128 2011-05-20  Bruno Haible  <bruno@clisp.org>
18129
18130         frexpl*: Respect rules for use of AC_LIBOBJ.
18131         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
18132         invocation from here...
18133         * modules/frexpl (configure.ac): ... to here.
18134         * modules/frexpl-nolibm (configure.ac): ... and here.
18135
18136 2011-05-20  Bruno Haible  <bruno@clisp.org>
18137
18138         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
18139         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
18140         invocation from here...
18141         * modules/frexp (configure.ac): ... to here.
18142         * modules/frexp-nolibm (configure.ac): ... and here.
18143
18144 2011-05-20  Bruno Haible  <bruno@clisp.org>
18145
18146         isnan: Respect rules for use of AC_LIBOBJ.
18147         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
18148         invocations here.
18149         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
18150         REPLACE_ISNAN.
18151         * modules/isnand (configure.ac): Likewise.
18152         * modules/isnanl (configure.ac): Likewise.
18153
18154 2011-05-20  Bruno Haible  <bruno@clisp.org>
18155
18156         isnanl*: Respect rules for use of AC_LIBOBJ.
18157         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
18158         invocation from here...
18159         * modules/isnanl (configure.ac): ... to here.
18160         * modules/isnanl-nolibm (configure.ac): ... and here.
18161
18162 2011-05-20  Bruno Haible  <bruno@clisp.org>
18163
18164         isnand*: Move AC_LIBOBJ invocations to module description.
18165         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
18166         invocation from here...
18167         * modules/isnand (configure.ac): ... to here.
18168         * modules/isnand-nolibm (configure.ac): ... and here.
18169
18170 2011-05-20  Bruno Haible  <bruno@clisp.org>
18171
18172         isnanf*: Move AC_LIBOBJ invocations to module description.
18173         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
18174         invocation from here...
18175         * modules/isnanf (configure.ac): ... to here.
18176         * modules/isnanf-nolibm (configure.ac): ... and here.
18177
18178 2011-05-20  Bruno Haible  <bruno@clisp.org>
18179
18180         isnan*: Separate the AC_LIBOBJ invocations.
18181         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
18182         AC_LIBOBJ invocation.
18183         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
18184         here.
18185         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
18186         AC_LIBOBJ invocation.
18187         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
18188         here.
18189         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
18190         AC_LIBOBJ invocation.
18191         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
18192         here.
18193         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
18194
18195 2011-05-08  Bruno Haible  <bruno@clisp.org>
18196
18197         isinf: Move AC_LIBOBJ invocations to module description.
18198         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
18199         * modules/isinf (configure.ac): ... to here.
18200
18201 2011-05-08  Bruno Haible  <bruno@clisp.org>
18202
18203         isfinite: Move AC_LIBOBJ invocations to module description.
18204         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
18205         * modules/isfinite (configure.ac): ... to here.
18206
18207 2011-05-08  Bruno Haible  <bruno@clisp.org>
18208
18209         isblank: Move AC_LIBOBJ invocations to module description.
18210         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
18211         here...
18212         * modules/isblank (configure.ac): ... to here.
18213
18214 2011-05-08  Bruno Haible  <bruno@clisp.org>
18215
18216         isapipe: Move AC_LIBOBJ invocations to module description.
18217         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
18218         gl_PREREQ_ISAPIPE invocations from here...
18219         * modules/isapipe (configure.ac): ... to here.
18220         (Depends-on): Update condition.
18221
18222 2011-05-08  Bruno Haible  <bruno@clisp.org>
18223
18224         ioctl: Move AC_LIBOBJ invocations to module description.
18225         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
18226         invocations from here...
18227         * modules/ioctl (configure.ac): ... to here.
18228         (Depends-on): Update condition.
18229
18230 2011-05-08  Bruno Haible  <bruno@clisp.org>
18231
18232         imaxdiv: Move AC_LIBOBJ invocations to module description.
18233         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
18234         invocations from here...
18235         * modules/imaxdiv (configure.ac): ... to here.
18236
18237 2011-05-08  Bruno Haible  <bruno@clisp.org>
18238
18239         imaxabs: Move AC_LIBOBJ invocations to module description.
18240         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
18241         invocations from here...
18242         * modules/imaxabs (configure.ac): ... to here.
18243
18244 2011-05-08  Bruno Haible  <bruno@clisp.org>
18245
18246         getaddrinfo: Move AC_LIBOBJ invocations to module description.
18247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
18248         AC_LIBOBJ invocations from here...
18249         * modules/getaddrinfo (configure.ac): ... to here.
18250         (Depends-on): Add conditions.
18251
18252 2011-05-08  Bruno Haible  <bruno@clisp.org>
18253
18254         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18255         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
18256         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18257         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
18258         (gl_PREREQ_INET_PTON): ... from here.
18259         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
18260         gl_PREREQ_INET_PTON here.
18261         (Depends-on): Update condition.
18262
18263 2011-05-08  Bruno Haible  <bruno@clisp.org>
18264
18265         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
18266         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
18267         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
18268         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
18269         (gl_PREREQ_INET_NTOP): ... from here.
18270         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
18271         gl_PREREQ_INET_NTOP here.
18272         (Depends-on): Update condition.
18273
18274 2011-05-08  Bruno Haible  <bruno@clisp.org>
18275
18276         iconv_open: Move AC_LIBOBJ invocations to module description.
18277         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
18278         AC_LIBOBJ invocations from here...
18279         * modules/iconv_open (configure.ac): ... to here.
18280
18281 2011-05-08  Bruno Haible  <bruno@clisp.org>
18282
18283         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
18284         If module 'iconv_open' is among the main modules and module
18285         'iconv_open-utf' is among the tests dependencies, then
18286         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
18287         return the special iconv_t values. Therefore iconv() and iconv_close()
18288         must support these special iconv_t values, already in lib, not only in
18289         tests.
18290         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
18291         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
18292         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
18293         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
18294         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
18295         (Depends-on): Add the dependencies of iconv_open-utf.
18296         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
18297         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
18298         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
18299
18300 2011-05-08  Bruno Haible  <bruno@clisp.org>
18301
18302         group-member: Move AC_LIBOBJ invocations to module description.
18303         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
18304         gl_PREREQ_GROUP_MEMBER invocations from here...
18305         * modules/group-member (configure.ac): ... to here.
18306
18307 2011-05-08  Bruno Haible  <bruno@clisp.org>
18308
18309         grantpt: Move AC_LIBOBJ invocations to module description.
18310         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
18311         invocations from here...
18312         * modules/grantpt (configure.ac): ... to here.
18313
18314 2011-05-08  Bruno Haible  <bruno@clisp.org>
18315
18316         glob: Move AC_LIBOBJ invocations to module description.
18317         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
18318         from here...
18319         * modules/glob (configure.ac): ... to here.
18320
18321 2011-05-08  Bruno Haible  <bruno@clisp.org>
18322
18323         getusershell: Move AC_LIBOBJ invocations to module description.
18324         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
18325         Move AC_LIBOBJ invocation from here...
18326         * modules/getusershell (configure.ac): ... to here.
18327         (Depends-on): Update condition.
18328
18329 2011-05-08  Bruno Haible  <bruno@clisp.org>
18330
18331         gettimeofday: Move AC_LIBOBJ invocations to module description.
18332         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
18333         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
18334         gl_PREREQ_GETTIMEOFDAY invocations from here...
18335         * modules/gettimeofday (configure.ac): ... to here.
18336
18337 2011-05-08  Bruno Haible  <bruno@clisp.org>
18338
18339         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
18340         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
18341         just gl_FUNC_TZSET.
18342         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
18343         (gl_FUNC_TZSET_CLOBBER): Remove actions.
18344         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
18345         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
18346
18347 2011-05-08  Bruno Haible  <bruno@clisp.org>
18348
18349         getsubopt: Move AC_LIBOBJ invocations to module description.
18350         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
18351         gl_PREREQ_GETSUBOPT invocations from here...
18352         * modules/getsubopt (configure.ac): ... to here.
18353
18354 2011-05-08  Bruno Haible  <bruno@clisp.org>
18355
18356         getpass-gnu: Move AC_LIBOBJ invocations to module description.
18357         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
18358         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
18359         * modules/getpass-gnu (configure.ac): ... to here.
18360
18361 2011-05-08  Bruno Haible  <bruno@clisp.org>
18362
18363         getpass: Move AC_LIBOBJ invocations to module description.
18364         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
18365         gl_PREREQ_GETPASS invocations from here...
18366         * modules/getpass (configure.ac): ... to here.
18367
18368 2011-05-08  Bruno Haible  <bruno@clisp.org>
18369
18370         getpagesize: Move AC_LIBOBJ invocations to module description.
18371         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
18372         from here...
18373         * modules/getpagesize (configure.ac): ... to here.
18374
18375 2011-05-08  Bruno Haible  <bruno@clisp.org>
18376
18377         getopt: Move AC_LIBOBJ invocations to module description.
18378         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
18379         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
18380         invocations from here...
18381         * modules/getopt-gnu (configure.ac): ... to here.
18382         * modules/getopt-posix (configure.ac): ... and here.
18383         (Depends-on): Update condition.
18384
18385 2011-05-08  Bruno Haible  <bruno@clisp.org>
18386
18387         getopt, argp: Respect rules for use of AC_LIBOBJ.
18388         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
18389         (gl_REPLACE_GETOPT_ALWAYS): New macro.
18390         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
18391         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
18392
18393 2011-05-08  Bruno Haible  <bruno@clisp.org>
18394
18395         getlogin_r: Move AC_LIBOBJ invocations to module description.
18396         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
18397         gl_PREREQ_GETLOGIN_R invocations from here...
18398         * modules/getlogin_r (configure.ac): ... to here.
18399
18400 2011-05-08  Bruno Haible  <bruno@clisp.org>
18401
18402         getlogin: Move AC_LIBOBJ invocations to module description.
18403         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
18404         here...
18405         * modules/getlogin (configure.ac): ... to here.
18406
18407 2011-05-08  Bruno Haible  <bruno@clisp.org>
18408
18409         getloadavg: Move AC_LIBOBJ invocations to module description.
18410         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
18411         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
18412         * modules/getloadavg (configure.ac): ... to here.
18413
18414 2011-05-08  Bruno Haible  <bruno@clisp.org>
18415
18416         gethrxtime: Move AC_LIBOBJ invocations to module description.
18417         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
18418         LIB_GETHRXTIME from here...
18419         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
18420         invocations from here...
18421         * modules/gethrxtime (configure.ac): ... to here.
18422
18423 2011-05-08  Bruno Haible  <bruno@clisp.org>
18424
18425         gethostname: Move AC_LIBOBJ invocations to module description.
18426         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
18427         gl_PREREQ_GETHOSTNAME invocations from here...
18428         * modules/gethostname (configure.ac): ... to here.
18429
18430 2011-05-08  Bruno Haible  <bruno@clisp.org>
18431
18432         getgroups: Move AC_LIBOBJ invocations to module description.
18433         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
18434         here...
18435         * modules/getgroups (configure.ac): ... to here.
18436
18437 2011-05-08  Bruno Haible  <bruno@clisp.org>
18438
18439         getdtablesize: Move AC_LIBOBJ invocations to module description.
18440         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
18441         invocation from here...
18442         * modules/getdtablesize (configure.ac): ... to here.
18443
18444 2011-05-08  Bruno Haible  <bruno@clisp.org>
18445
18446         getdomainname: Move AC_LIBOBJ invocations to module description.
18447         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
18448         gl_PREREQ_GETDOMAINNAME invocations from here...
18449         * modules/getdomainname (configure.ac): ... to here.
18450
18451 2011-05-08  Bruno Haible  <bruno@clisp.org>
18452
18453         getline: Move AC_LIBOBJ invocations to module description.
18454         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
18455         invocations from here...
18456         * modules/getline (configure.ac): ... to here.
18457
18458 2011-05-08  Bruno Haible  <bruno@clisp.org>
18459
18460         getline: Simplify.
18461         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
18462         It's already handled through the module dependency.
18463
18464 2011-05-08  Bruno Haible  <bruno@clisp.org>
18465
18466         getdelim: Move AC_LIBOBJ invocations to module description.
18467         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
18468         and gl_PREREQ_GETDELIM invocations from here...
18469         * modules/getdelim (configure.ac): ... to here.
18470         (Depends-on): Fix condition.
18471
18472 2011-05-08  Bruno Haible  <bruno@clisp.org>
18473
18474         getcwd: Move AC_LIBOBJ invocations to module description.
18475         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
18476         invocations from here...
18477         * modules/getcwd (configure.ac): ... to here.
18478
18479 2011-05-08  Bruno Haible  <bruno@clisp.org>
18480
18481         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
18482         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
18483         here...
18484         * modules/getcwd-lgpl (configure.ac): ... to here.
18485
18486 2011-05-07  Bruno Haible  <bruno@clisp.org>
18487
18488         crypto/gc: Move AC_LIBOBJ invocations to module description.
18489         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
18490         * modules/crypto/gc (configure.ac): ... to here.
18491
18492 2011-05-07  Bruno Haible  <bruno@clisp.org>
18493
18494         fwriting: Move AC_LIBOBJ invocations to module description.
18495         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
18496         here...
18497         * modules/fwriting (configure.ac): ... to here.
18498
18499 2011-05-07  Bruno Haible  <bruno@clisp.org>
18500
18501         fwritable: Move AC_LIBOBJ invocations to module description.
18502         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
18503         here...
18504         * modules/fwritable (configure.ac): ... to here.
18505
18506 2011-05-07  Bruno Haible  <bruno@clisp.org>
18507
18508         futimens: Move AC_LIBOBJ invocations to module description.
18509         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
18510         here...
18511         * modules/futimens (configure.ac): ... to here.
18512
18513 2011-05-07  Bruno Haible  <bruno@clisp.org>
18514
18515         ftruncate: Move AC_LIBOBJ invocations to module description.
18516         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
18517         gl_PREREQ_FTRUNCATE invocations from here...
18518         * modules/ftruncate (configure.ac): ... to here.
18519
18520 2011-05-07  Bruno Haible  <bruno@clisp.org>
18521
18522         fsync: Move AC_LIBOBJ invocations to module description.
18523         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
18524         invocations from here...
18525         * modules/fsync (configure.ac): ... to here.
18526
18527 2011-05-07  Bruno Haible  <bruno@clisp.org>
18528
18529         fsusage: Move AC_LIBOBJ invocations to module description.
18530         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
18531         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
18532         * modules/fsusage (configure.ac): ... to here.
18533
18534 2011-05-07  Bruno Haible  <bruno@clisp.org>
18535
18536         freopen: Move AC_LIBOBJ invocations to module description.
18537         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
18538         invocations from here...
18539         * modules/freopen (configure.ac): ... to here.
18540
18541 2011-05-07  Bruno Haible  <bruno@clisp.org>
18542
18543         free: Move AC_LIBOBJ invocations to module description.
18544         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
18545         invocations from here...
18546         * modules/free (configure.ac): ... to here.
18547
18548 2011-05-07  Bruno Haible  <bruno@clisp.org>
18549
18550         freadable: Move AC_LIBOBJ invocations to module description.
18551         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
18552         here...
18553         * modules/freadable (configure.ac): ... to here.
18554
18555 2011-05-07  Bruno Haible  <bruno@clisp.org>
18556
18557         fpurge: Move AC_LIBOBJ invocations to module description.
18558         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
18559         invocations from here...
18560         * modules/fpurge (configure.ac): ... to here.
18561
18562 2011-05-07  Bruno Haible  <bruno@clisp.org>
18563
18564         fpending: Move AC_LIBOBJ invocations to module description.
18565         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
18566         gl_FUNC_FPENDING.
18567         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
18568         invocations from here...
18569         * modules/fpending (configure.ac): ... to here.
18570
18571 2011-05-07  Bruno Haible  <bruno@clisp.org>
18572
18573         fopen: Move AC_LIBOBJ invocations to module description.
18574         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
18575         invocations from here...
18576         * modules/fopen (configure.ac): ... to here.
18577
18578 2011-05-07  Bruno Haible  <bruno@clisp.org>
18579
18580         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
18581         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
18582         gl_FUNC_FNMATCH_POSIX.
18583         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
18584         invocations from here...
18585         * modules/fnmatch (configure.ac): ... to here.
18586         * modules/fnmatch-gnu (configure.ac): ... and here.
18587
18588 2011-05-07  Bruno Haible  <bruno@clisp.org>
18589
18590         flock: Move AC_LIBOBJ invocations to module description.
18591         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
18592         invocations from here...
18593         * modules/flock (configure.ac): ... to here.
18594
18595 2011-05-07  Bruno Haible  <bruno@clisp.org>
18596
18597         fileblocks: Move AC_LIBOBJ invocations to module description.
18598         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
18599         gl_PREREQ_FILEBLOCKS invocations from here...
18600         * modules/fileblocks (configure.ac): ... to here.
18601
18602 2011-05-06  Bruno Haible  <bruno@clisp.org>
18603
18604         fflush: Move AC_LIBOBJ invocations to module description.
18605         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
18606         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
18607         invocations from here...
18608         * modules/fflush (configure.ac): ... to here.
18609
18610 2011-05-06  Bruno Haible  <bruno@clisp.org>
18611
18612         fdopendir: Move AC_LIBOBJ invocations to module description.
18613         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
18614         here...
18615         * modules/fdopendir (configure.ac): ... to here.
18616         (Depends-on): Improve conditions.
18617
18618 2011-05-06  Bruno Haible  <bruno@clisp.org>
18619
18620         _Exit: Move AC_LIBOBJ invocations to module description.
18621         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
18622         invocations from here...
18623         * modules/_Exit (configure.ac): ... to here.
18624
18625 2011-05-21  Bruno Haible  <bruno@clisp.org>
18626
18627         euidaccess: Respect rules for use of AC_LIBOBJ.
18628         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
18629         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
18630         from here...
18631         * modules/euidaccess (configure.ac): ... to here.
18632
18633 2011-05-06  Bruno Haible  <bruno@clisp.org>
18634
18635         error: Move AC_LIBOBJ invocations to module description.
18636         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
18637         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
18638         invocations from here...
18639         * modules/error (configure.ac): ... to here.
18640
18641 2011-05-06  Bruno Haible  <bruno@clisp.org>
18642
18643         duplocale: Move AC_LIBOBJ invocations to module description.
18644         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
18645         gl_PREREQ_DUPLOCALE invocations from here...
18646         * modules/duplocale (configure.ac): ... to here.
18647
18648 2011-05-05  Bruno Haible  <bruno@clisp.org>
18649
18650         dirfd: Move AC_LIBOBJ invocations to module description.
18651         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
18652         gl_FUNC_DIRFD.
18653         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
18654         here...
18655         * modules/dirfd (configure.ac): ... to here.
18656         (Depends-on): Fix condition.
18657
18658 2011-05-05  Bruno Haible  <bruno@clisp.org>
18659
18660         chown: Respect rules for use of AC_LIBOBJ.
18661         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
18662         * modules/chown (configure.ac): ... to here.
18663
18664 2011-05-05  Bruno Haible  <bruno@clisp.org>
18665
18666         chdir-long: Move AC_LIBOBJ invocations to module description.
18667         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
18668         gl_PREREQ_CHDIR_LONG invocations from here...
18669         * modules/chdir-long (configure.ac): ... to here.
18670
18671 2011-05-05  Bruno Haible  <bruno@clisp.org>
18672
18673         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
18674         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
18675         from here...
18676         * modules/canonicalize-lgpl (configure.ac): ... to here.
18677
18678 2011-05-05  Bruno Haible  <bruno@clisp.org>
18679
18680         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
18681         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
18682         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
18683         REPLACE_CALLOC.
18684         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
18685         * modules/calloc-gnu (configure.ac): Likewise.
18686
18687 2011-05-05  Bruno Haible  <bruno@clisp.org>
18688
18689         btowc: Move AC_LIBOBJ invocations to module description.
18690         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
18691         invocations from here...
18692         * modules/btowc (configure.ac): ... to here.
18693
18694 2011-05-21  Bruno Haible  <bruno@clisp.org>
18695
18696         atexit: Move AC_LIBOBJ invocations to module description.
18697         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
18698         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
18699         here...
18700         * modules/atexit (configure.ac): ... to here.
18701
18702 2011-05-05  Bruno Haible  <bruno@clisp.org>
18703
18704         atoll: Move AC_LIBOBJ invocations to module description.
18705         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
18706         invocations from here...
18707         * modules/atoll (configure.ac): ... to here.
18708
18709 2011-05-05  Bruno Haible  <bruno@clisp.org>
18710
18711         argz: Move AC_LIBOBJ invocations to module description.
18712         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
18713         * modules/argz (configure.ac): ... to here.
18714
18715 2011-05-05  Bruno Haible  <bruno@clisp.org>
18716
18717         alphasort: Move AC_LIBOBJ invocations to module description.
18718         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
18719         gl_PREREQ_ALPHASORT invocations from here...
18720         * modules/alphasort (configure.ac): ... to here.
18721
18722 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
18723
18724         verify: new macro verify_expr; verify_true deprecated
18725         * NEWS: Mention this.
18726         * doc/verify.texi (Compile-time Assertions): Document this.
18727         * lib/verify.h (verify_true): Deprecate.
18728         (verify_expr): New macro.
18729         * tests/test-verify.c (function): Test verify_expr.
18730
18731 2011-06-14  Jim Meyering  <meyering@redhat.com>
18732
18733         init.sh: give more portable redirection-related advice in a comment
18734         * tests/init.sh (stderr_fileno_): Update the advice in comments.
18735         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
18736         for lots of discussion.  Stefano Lattarini suggested the solution
18737         of putting "9>&2" after the command.  Reported by Bruno Haible.
18738
18739 2011-06-13  Bruno Haible  <bruno@clisp.org>
18740
18741         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
18742         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
18743         'none'.
18744
18745 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
18746
18747         ftoastr: use strtof only if HAVE_STRTOF
18748         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
18749         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
18750         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
18751         * modules/ftoastr (configure.ac): Check for strtof.
18752
18753 2011-06-13  Bruno Haible  <bruno@clisp.org>
18754
18755         gnulib-tool: Addendum to 2011-06-08 commit.
18756         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
18757         and --witness-c-macro have been given, augment AM_CPPFLAGS.
18758
18759 2011-06-13  Bruno Haible  <bruno@clisp.org>
18760
18761         fseeko: Provide a non-inline replacement of fseek().
18762         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
18763         * modules/fseeko (Depends-on): Add fseek.
18764         * modules/fseek (License): Change to LGPLv2+.
18765
18766 2011-06-13  Bruno Haible  <bruno@clisp.org>
18767
18768         ftello: Provide a non-inline replacement of ftell().
18769         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
18770         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
18771         not have ftello() (such as on mingw).
18772         * modules/ftello (Depends-on): Add ftell.
18773         * modules/ftell (License): Change to LGPLv2+.
18774
18775 2011-05-07  Bruno Haible  <bruno@clisp.org>
18776
18777         ftell: Move AC_LIBOBJ invocations to module description.
18778         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
18779         * modules/ftell (configure.ac): ... to here.
18780
18781 2011-05-07  Bruno Haible  <bruno@clisp.org>
18782
18783         ftello: Respect rules for use of AC_LIBOBJ.
18784         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
18785         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
18786         here...
18787         * modules/ftello (configure.ac): ... to here.
18788
18789 2011-05-07  Bruno Haible  <bruno@clisp.org>
18790
18791         fseeko: Simplify.
18792         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
18793         (gl_FUNC_FSEEKO): Inline it here.
18794
18795 2011-05-07  Bruno Haible  <bruno@clisp.org>
18796
18797         fseek: Move AC_LIBOBJ invocations to module description.
18798         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
18799         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
18800         * modules/fseek (configure.ac): ... to here.
18801
18802 2011-05-07  Bruno Haible  <bruno@clisp.org>
18803
18804         fseek: Respect rules for use of AC_LIBOBJ.
18805         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
18806         here...
18807         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
18808
18809 2011-05-07  Bruno Haible  <bruno@clisp.org>
18810
18811         fseeko: Respect rules for use of AC_LIBOBJ.
18812         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18813         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18814         here...
18815         * modules/fseeko (configure.ac): ... to here.
18816
18817 2011-06-13  Bruno Haible  <bruno@clisp.org>
18818
18819         gnulib-tool: Allow comments in the 'Depends-on' section.
18820         * doc/gnulib.texi (Module description): Mention comment syntax in the
18821         Depends-on section.
18822         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18823
18824 2011-06-13  Bruno Haible  <bruno@clisp.org>
18825
18826         file-set.h: guard __attibute__ use, now that it's not always defined
18827         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18828         versions that support it.  This fixes a coreutils build failure with
18829         the vendor cc on HP-UX 11.31.
18830
18831 2011-06-12  Bruno Haible  <bruno@clisp.org>
18832
18833         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18834         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18835         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18836         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18837         (acl, aclsort): New declarations.
18838         (aclv_nontrivial): New declaration.
18839         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18840         (file_has_acl): Read also the second kind of HP-UX ACLs.
18841         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18842         kind of HP-UX ACLs if the first kind fails.
18843         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18844         second kind of HP-UX ACLs.
18845         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18846         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18847         agree.
18848         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18849         hpuxjfs.
18850         Handle hpuxjfs.
18851         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18852         hpuxjfs.
18853         Handle hpuxjfs.
18854         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18855         (func_test_same_acls): Use both lsacl and getacl.
18856         Handle hpuxjfs.
18857         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18858         (func_test_same_acls): Use both lsacl and getacl.
18859         Handle hpuxjfs.
18860
18861 2011-06-12  Bruno Haible  <bruno@clisp.org>
18862
18863         acl: Complete the 2010-08-10 fix.
18864         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18865         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18866         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18867         explicitly.
18868         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18869         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18870
18871 2011-06-12  Bruno Haible  <bruno@clisp.org>
18872
18873         spawn-pipe tests: Comments.
18874         * tests/test-spawn-pipe-child.c (main): Update comment.
18875         Reported by James Youngman <jay@gnu.org>.
18876
18877 2011-06-11  James Youngman  <jay@gnu.org>
18878
18879         New module 'stat-size'.
18880         * modules/stat-size: New module.  Provides macros for accessing
18881         file size information in instances of struct stat.  Depends on the
18882         fileblocks module because it calls st_blocks.
18883         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18884         * doc/gnulib.texi: Include stat-size.texi.
18885         * doc/stat-size.texi: Documentation for this module.
18886         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18887         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18888         AC_STRUCT_ST_BLOCKS.
18889
18890 2011-06-09  Bruno Haible  <bruno@clisp.org>
18891
18892         thread: Support pthreads-win32.
18893         * lib/glthread/thread.h (gl_thread_self): Define differently on
18894         pthreads-win32.
18895         (gl_null_thread): New declaration.
18896         (gl_thread_self_pointer): New macro.
18897         * lib/glthread/thread.c (gl_null_thread): New constant.
18898         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18899         gl_thread_self.
18900         * tests/test-tls.c: Likewise.
18901         Suggested by Paul Eggert. Reported by Eric Blake.
18902
18903 2011-06-09  Bruno Haible  <bruno@clisp.org>
18904
18905         thread: Fix confusion between NULL and 0.
18906         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18907         Reported by Paul Eggert.
18908
18909 2011-06-09  Bruno Haible  <bruno@clisp.org>
18910
18911         spawn-pipe tests: Avoid test failure on HP-UX 11.
18912         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18913         is closed.
18914
18915 2011-06-09  Bruno Haible  <bruno@clisp.org>
18916
18917         acl tests: Fix compilation error on HP-UX 11.
18918         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18919
18920 2011-06-09  Bruno Haible  <bruno@clisp.org>
18921
18922         rmdir: Avoid test failure on HP-UX 10.20.
18923         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18924         EEXIST.
18925
18926 2011-06-08  Eric Blake  <eblake@redhat.com>
18927
18928         perror: fix test on mingw
18929         * modules/perror-tests (Depends-on): Add dup2.
18930
18931         strerror_r-posix: fix on MacOS
18932         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18933         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18934         logic bug.
18935         * lib/strerror_r.c (strerror_r): Fix the bug.
18936         * lib/strerror.c (strerror): Likewise.
18937         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18938         problem.
18939         * doc/posix-functions/strerror.texi (strerror): Likewise.
18940         * doc/posix-functions/perror.texi (perror): Likewise.
18941         * tests/test-strerror.c (main): Enhance test.
18942         * tests/test-strerror_r.c (main): Likewise.
18943
18944 2011-06-08  Bruno Haible  <bruno@clisp.org>
18945
18946         gnulib-tool: Better isolation between different gnulib-tool invocations.
18947         * gnulib-tool: New option --witness-c-macro.
18948         (witness_c_macro): New variable.
18949         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18950         AM_CPPFLAGS define it as a C macro.
18951         (func_emit_tests_Makefile_am): Likewise.
18952         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18953         read it from there.
18954         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18955         m4_define, not AC_DEFUN.
18956         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18957         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18958         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18959         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18960         s|...|...|, to substitute the values of the GNULIB_* module indicator
18961         variables.
18962         * modules/dirent (Makefile.am): Likewise.
18963         * modules/fcntl-h (Makefile.am): Likewise.
18964         * modules/iconv-h (Makefile.am): Likewise.
18965         * modules/langinfo (Makefile.am): Likewise.
18966         * modules/locale (Makefile.am): Likewise.
18967         * modules/math (Makefile.am): Likewise.
18968         * modules/netdb (Makefile.am): Likewise.
18969         * modules/poll-h (Makefile.am): Likewise.
18970         * modules/pty (Makefile.am): Likewise.
18971         * modules/search (Makefile.am): Likewise.
18972         * modules/signal (Makefile.am): Likewise.
18973         * modules/spawn (Makefile.am): Likewise.
18974         * modules/stdio (Makefile.am): Likewise.
18975         * modules/stdlib (Makefile.am): Likewise.
18976         * modules/string (Makefile.am): Likewise.
18977         * modules/sys_ioctl (Makefile.am): Likewise.
18978         * modules/sys_select (Makefile.am): Likewise.
18979         * modules/sys_socket (Makefile.am): Likewise.
18980         * modules/sys_stat (Makefile.am): Likewise.
18981         * modules/sys_times (Makefile.am): Likewise.
18982         * modules/sys_utsname (Makefile.am): Likewise.
18983         * modules/sys_wait (Makefile.am): Likewise.
18984         * modules/termios (Makefile.am): Likewise.
18985         * modules/time (Makefile.am): Likewise.
18986         * modules/unistd (Makefile.am): Likewise.
18987         * modules/wchar (Makefile.am): Likewise.
18988
18989 2011-06-08  Eric Blake  <eblake@redhat.com>
18990
18991         strerror: simplify replacement
18992         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18993         * modules/strerror (configure.ac): No prereqs needed here...
18994         * modules/strerror-override (configure.ac): ...but this needs it.
18995         (Files): Add file for needed prereq macro.
18996
18997 2011-06-08  Bruno Haible  <bruno@clisp.org>
18998
18999         strerror_r-posix: Tweaks.
19000         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
19001         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
19002         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
19003         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
19004         (gl_FUNC_STRERROR_R): ... to here.
19005         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
19006
19007 2011-06-07  Eric Blake  <eblake@redhat.com>
19008
19009         perror: document fixed bugs
19010         * doc/posix-functions/perror.texi (perror): Document recent
19011         patches.
19012
19013 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
19014
19015         stat-time: get_stat_birthtime failure is better-defined
19016         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
19017         return a timestamp whose tv_sec and tv_nsec values are both -1.
19018         Previously, the spec said only that the tv_nsec value was negative.
19019         This upward-compatible change simplifies GNU tar a bit.
19020
19021 2011-06-07  Eric Blake  <eblake@redhat.com>
19022
19023         strerror_r-posix: work around cygwin 1.7.9
19024         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
19025         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
19026         bug without replacing strerror_r.
19027         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
19028         strerror_r is buggy, but without requiring strerror_r compilation.
19029         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
19030
19031         test-perror: relax test to ignore cygwin bug
19032         * tests/test-perror2.c (main): Relax test on requiring detection
19033         of stream errors, and use unbuffered stream.
19034         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
19035         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
19036         * doc/posix-functions/fputc.texi (fputc): Likewise.
19037         * doc/posix-functions/fputs.texi (fputs): Likewise.
19038         * doc/posix-functions/fputws.texi (fputws): Likewise.
19039         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
19040         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
19041         * doc/posix-functions/getopt.texi (getopt): Likewise.
19042         * doc/posix-functions/perror.texi (perror): Likewise.
19043         * doc/posix-functions/printf.texi (printf): Likewise.
19044         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
19045         * doc/posix-functions/psignal.texi (psignal): Likewise.
19046         * doc/posix-functions/putc.texi (putc): Likewise.
19047         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
19048         Likewise.
19049         * doc/posix-functions/putchar.texi (putchar): Likewise.
19050         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
19051         Likewise.
19052         * doc/posix-functions/puts.texi (puts): Likewise.
19053         * doc/posix-functions/putwc.texi (putwc): Likewise.
19054         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
19055         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
19056         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19057         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
19058         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19059         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
19060         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19061         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
19062
19063 2011-05-22  Bruno Haible  <bruno@clisp.org>
19064
19065         strerror: Move AC_LIBOBJ invocations to module description.
19066         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
19067         gl_PREREQ_STRERROR invocations from here...
19068         * modules/strerror (configure.ac): ... to here.
19069
19070 2011-05-21  Bruno Haible  <bruno@clisp.org>
19071
19072         perror: Use common idiom.
19073         * modules/perror (configure.ac): Reorder statements.
19074
19075 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19076
19077         tests: fix usage message in 'mktempd_'
19078         * tests/init.sh (mktempd_): In the usage message, use literal
19079         'mktempd_', not '$ME' (which is even undefined), as the name of
19080         the subroutine.
19081
19082 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
19083
19084         tests init: new function 'fatal_', for hard errors
19085         Before this patch, the only way offered by tests/init.sh to
19086         properly signal a hard error was the `framework_failure_'
19087         function.  But the error message issued by that function,
19088         as its name would suggest, refers to a set-up failure in the
19089         testsuite, while hard errors can obviously also be due to
19090         other reasons.  The best way to fix this inconsistency is to
19091         introduce a new function with a more general error message.
19092         * tests/init.sh (fatal_): New function.
19093
19094 2011-06-06  Eric Blake  <eblake@redhat.com>
19095
19096         canonicalize-lgpl: use common idiom
19097         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
19098         over newer POSIX -Rf.
19099         Reported by Bruno Haible.
19100
19101         canonicalize-lgpl: work around AIX realpath bug
19102         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
19103         * doc/posix-functions/realpath.texi (realpath): Document it.
19104         Reported by Bruno Haible.
19105
19106         strerror: work around FreeBSD bug
19107         * lib/strerror.c (strerror): Special case 0.
19108         Reported by Bruno Haible.
19109
19110         strerror-override: avoid bloating errno module
19111         * modules/errno (Files, configure.ac): Move replacement strings...
19112         * modules/strerror-override: ...to new module.
19113         * modules/strerror (Depends-on): Add strerror-override.
19114         * modules/strerror_r-posix (Depends-on): Likewise.
19115         * MODULES.html.sh: Document new module.
19116         Reported by Bruno Haible.
19117
19118 2011-06-06  Bruno Haible  <bruno@clisp.org>
19119
19120         spawn-pipe tests: Rename program.
19121         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
19122         * tests/test-spawn-pipe-child.c: Update comment.
19123         * tests/test-spawn-pipe.sh: Update.
19124         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
19125
19126         spawn-pipe tests: Link the child program only against libc.
19127         * tests/test-spawn-pipe-child.c: New file, extracted from
19128         tests/test-spawn-pipe.c.
19129         (main): Expect only one argument.
19130         (is_open): New function, copied from tests/test-pipe.c.
19131         * tests/test-spawn-pipe.c: Don't include <errno.h>.
19132         (child_main): Remove function.
19133         (test_pipe): Pass only one argument to the child program.
19134         (main): Remove child process code. Expect the child program's name as
19135         first argument.
19136         * tests/test-spawn-pipe.sh: Pass the child program's name as first
19137         argument.
19138         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
19139         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
19140         test-spawn-pipe-child against no libraries.
19141
19142 2011-06-06  Bruno Haible  <bruno@clisp.org>
19143
19144         careadlinkat: Avoid mismatch between ssize_t and int.
19145         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
19146         * lib/careadlinkat.c (careadlinkatcwd): Define always.
19147
19148 2011-06-06  Jim Meyering  <meyering@redhat.com>
19149
19150         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
19151         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
19152         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
19153
19154 2011-06-05  Bruno Haible  <bruno@clisp.org>
19155
19156         ansi-c++-opt: Interoperability with libtool.
19157         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
19158         set the variable to "no", not to ":".
19159         * NEWS: Mention the change.
19160
19161 2011-06-05  Bruno Haible  <bruno@clisp.org>
19162
19163         acl: Fix test failure on AIX 7.
19164         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
19165         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
19166
19167 2011-06-05  Bruno Haible  <bruno@clisp.org>
19168
19169         pipe-filter-ii: Fix test failure on AIX and IRIX.
19170         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
19171         with EAGAIN, retry with a smaller buffer size.
19172
19173 2011-06-05  Bruno Haible  <bruno@clisp.org>
19174
19175         localename: Fix link dependencies.
19176         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
19177         * modules/localename-tests (Makefile.am): Link test-localename with
19178         $(LIBTHREAD).
19179
19180 2011-06-05  Bruno Haible  <bruno@clisp.org>
19181
19182         error: Avoid gcc warning.
19183         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
19184
19185 2011-06-05  Bruno Haible  <bruno@clisp.org>
19186
19187         unsetenv: Avoid gcc warning.
19188         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
19189
19190 2011-06-05  Bruno Haible  <bruno@clisp.org>
19191
19192         setenv: Avoid gcc warning.
19193         * lib/setenv.c (setenv): Provide declaration if system lacks it.
19194
19195 2011-06-05  Bruno Haible  <bruno@clisp.org>
19196
19197         sys_select: Ensure memset is declared also on AIX 7.
19198         * lib/sys_select.in.h: Include <string.h> also on AIX.
19199         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
19200         self-contained also on AIX 7.1.
19201
19202 2011-06-04  Jim Meyering  <meyering@redhat.com>
19203
19204         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
19205         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
19206         function name, "error".
19207         (_gl_translatable_diag_func_re): New configurable variable.
19208
19209 2011-06-04  Bruno Haible  <bruno@clisp.org>
19210
19211         getopt: Avoid gcc warning.
19212         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
19213
19214 2011-06-04  Bruno Haible  <bruno@clisp.org>
19215
19216         strerror_r: Fix comments.
19217         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
19218         commit.
19219
19220 2011-06-04  Bruno Haible  <bruno@clisp.org>
19221
19222         perror: Fix compilation error.
19223         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
19224         Undefine fprintf, not sprintf.
19225         * modules/perror (Depends-on): Remove intprops, verify.
19226
19227 2011-06-04  Bruno Haible  <bruno@clisp.org>
19228
19229         setlocale: Enable replacement on Cygwin 1.5.
19230         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
19231         Cygwin 1.5.x.
19232         * doc/posix-functions/setlocale.texi: Mention that the problem with the
19233         LC_CTYPE category also exists on Cygwin 1.5.x.
19234
19235 2011-06-04  Bruno Haible  <bruno@clisp.org>
19236
19237         strerror-override: Don't disable symbol renamings.
19238         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
19239         * lib/strerror-override.c: Include config.h.
19240         (strerror_override): Don't undefine.
19241
19242 2011-06-03  Bruno Haible  <bruno@clisp.org>
19243
19244         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
19245         * lib/localename.h: Update copyright header.
19246         * lib/localename.c: Likewise.
19247         * lib/relocatable.h: Likewise.
19248         * lib/relocatable.c: Likewise.
19249
19250 2011-06-02  Bruno Haible  <bruno@clisp.org>
19251
19252         doc: Fix a module name.
19253         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
19254
19255 2011-06-02  Bruno Haible  <bruno@clisp.org>
19256
19257         pipe2: Remove dependency on 'nonblocking' module.
19258         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
19259         O_NONBLOCK is defined by gnulib.
19260         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
19261         is zero.
19262         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
19263         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
19264         defined by gnulib.
19265         (get_nonblocking_flag): New function.
19266         (main): Test O_NONBLOCK flag only if it is nonzero.
19267         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
19268
19269 2011-06-03  Jim Meyering  <meyering@redhat.com>
19270
19271         maint: three new prohibit-header-without-use rules
19272         Prohibit use of cloexec.h, posixver.h, same.h without use.
19273         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
19274         (sc_prohibit_posixver_without_use): Likewise.
19275         (sc_prohibit_same_without_use): Likewise.
19276
19277 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
19278
19279         allocator: 'die' routine is now given requested size
19280         * lib/allocator.h (struct allocator.die): New size arg.
19281         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
19282         If the actual problem is an ssize_t limitation, not a size_t or
19283         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
19284
19285 2011-06-01  Eric Blake  <eblake@redhat.com>
19286
19287         strerror: drop strerror_r dependency
19288         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
19289         * lib/strerror-override.c (strerror_override): ...to new file.
19290         * lib/strerror-override.h: Add prototype.
19291         * lib/strerror-impl.h: Delete.
19292         * lib/strerror.c (strerror): New implementation.
19293         * modules/errno (Files): Add new files.
19294         (configure.ac): Compile new file as appropriate.
19295         * modules/strerror (Files): Drop unused file.
19296         (Depends-on): Drop strerror_r-posix.
19297         * MODULES.html.sh: Document strerror_r-posix.
19298         Requested by Sam Steingold.
19299
19300         perror: call strerror_r directly
19301         * modules/perror (Files): Drop strerror-impl.h.
19302         * lib/perror.c (perror): Use our own stack buffer, rather than
19303         calling a wrapper that uses static storage.
19304         * doc/posix-functions/perror.texi (perror): Document a limitation
19305         of our replacement.
19306
19307         strerror_r: fix includes for FreeBSD
19308         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
19309         since we use abort on some platforms.
19310         Reported by Matthias Bolte.
19311
19312 2011-05-31  Bruno Haible  <bruno@clisp.org>
19313
19314         Fix link errors in tests: openat-die uses gettext-h.
19315         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
19316         against $(LIBINTL).
19317         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
19318         against $(LIBINTL).
19319         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
19320         $(LIBINTL).
19321         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
19322         against $(LIBINTL).
19323         * modules/linkat-tests (Makefile.am): Link test-linkat against
19324         $(LIBINTL).
19325         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
19326         $(LIBINTL).
19327         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
19328         against $(LIBINTL).
19329         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
19330         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
19331         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
19332         $(LIBINTL).
19333         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
19334         $(LIBINTL).
19335         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
19336         $(LIBINTL).
19337         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19338
19339 2011-05-31  Bruno Haible  <bruno@clisp.org>
19340
19341         Fix link errors in tests: wait-process uses gettext-h.
19342         * modules/nonblocking-pipe-tests (Makefile.am): Set
19343         test_nonblocking_pipe_main_LDADD.
19344         * modules/nonblocking-socket-tests (Makefile.am): Link
19345         test-nonblocking-socket-main against $(LIBINTL).
19346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19347
19348 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
19349
19350         assert-h: work around 'verify' incompatibility
19351         * lib/verify.h: Use @...@ directives, not ifdef.
19352         * modules/assert-h (assert.h): Implement the directives.
19353         (assert.h): Substitute the symbol-prefix more consistently.
19354
19355 2011-05-29  Jim Meyering  <meyering@redhat.com>
19356
19357         trim: remove three superfluous assignments
19358         * lib/trim.c (trim2): Remove three superfluous assignments
19359         and correct brace positioning.
19360
19361 2011-05-29  Bruno Haible  <bruno@clisp.org>
19362
19363         wctype-h: Avoid namespace pollution on Solaris 2.6.
19364         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
19365         identifiers.
19366         * doc/posix-headers/wctype.texi: Mention the problem.
19367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19368
19369 2011-05-28  Jim Meyering  <meyering@redhat.com>
19370
19371         parse-datetime.y: accommodate -Wstrict-overflow
19372         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
19373         placate -Wstrict-overflow.
19374
19375         trim: avoid a warning from -O2 -Wstrict-overflow
19376         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
19377
19378 2011-05-29  Bruno Haible  <bruno@clisp.org>
19379
19380         gnulib-tool: Fix bug in yesterday's commit.
19381         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
19382         twice.
19383
19384 2011-05-29  Bruno Haible  <bruno@clisp.org>
19385
19386         Allow multiple gnulib generated include files to be combined.
19387         * gnulib-tool (func_compute_include_guard_prefix): New function.
19388         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
19389         ${gl_include_guard_prefix} references.
19390         (func_import, func_create_testdir): Invoke
19391         func_compute_include_guard_prefix.
19392         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
19393         * lib/ctype.in.h: Likewise.
19394         * lib/dirent.in.h: Likewise.
19395         * lib/errno.in.h: Likewise.
19396         * lib/fcntl.in.h: Likewise.
19397         * lib/float.in.h: Likewise.
19398         * lib/getopt.in.h: Likewise.
19399         * lib/iconv.in.h: Likewise.
19400         * lib/langinfo.in.h: Likewise.
19401         * lib/locale.in.h: Likewise.
19402         * lib/math.in.h: Likewise.
19403         * lib/netdb.in.h: Likewise.
19404         * lib/netinet_in.in.h: Likewise.
19405         * lib/poll.in.h: Likewise.
19406         * lib/pthread.in.h: Likewise.
19407         * lib/pty.in.h: Likewise.
19408         * lib/sched.in.h: Likewise.
19409         * lib/se-selinux.in.h: Likewise.
19410         * lib/search.in.h: Likewise.
19411         * lib/signal.in.h: Likewise.
19412         * lib/spawn.in.h: Likewise.
19413         * lib/stdarg.in.h: Likewise.
19414         * lib/stddef.in.h: Likewise.
19415         * lib/stdint.in.h: Likewise.
19416         * lib/stdio.in.h: Likewise.
19417         * lib/stdlib.in.h: Likewise.
19418         * lib/string.in.h: Likewise.
19419         * lib/strings.in.h: Likewise.
19420         * lib/sys_file.in.h: Likewise.
19421         * lib/sys_ioctl.in.h: Likewise.
19422         * lib/sys_select.in.h: Likewise.
19423         * lib/sys_socket.in.h: Likewise.
19424         * lib/sys_stat.in.h: Likewise.
19425         * lib/sys_time.in.h: Likewise.
19426         * lib/sys_times.in.h: Likewise.
19427         * lib/sys_uio.in.h: Likewise.
19428         * lib/sys_utsname.in.h: Likewise.
19429         * lib/sys_wait.in.h: Likewise.
19430         * lib/sysexits.in.h: Likewise.
19431         * lib/termios.in.h: Likewise.
19432         * lib/time.in.h: Likewise.
19433         * lib/unistd.in.h: Likewise.
19434         * lib/wchar.in.h: Likewise.
19435         * lib/wctype.in.h: Likewise.
19436         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
19437         * modules/ctype (Makefile.am): Likewise.
19438         * modules/dirent (Makefile.am): Likewise.
19439         * modules/errno (Makefile.am): Likewise.
19440         * modules/fcntl-h (Makefile.am): Likewise.
19441         * modules/float (Makefile.am): Likewise.
19442         * modules/getopt-posix (Makefile.am): Likewise.
19443         * modules/iconv-h (Makefile.am): Likewise.
19444         * modules/langinfo (Makefile.am): Likewise.
19445         * modules/locale (Makefile.am): Likewise.
19446         * modules/math (Makefile.am): Likewise.
19447         * modules/netdb (Makefile.am): Likewise.
19448         * modules/netinet_in (Makefile.am): Likewise.
19449         * modules/poll-h (Makefile.am): Likewise.
19450         * modules/pthread (Makefile.am): Likewise.
19451         * modules/pty (Makefile.am): Likewise.
19452         * modules/sched (Makefile.am): Likewise.
19453         * modules/search (Makefile.am): Likewise.
19454         * modules/selinux-h (Makefile.am): Likewise.
19455         * modules/signal (Makefile.am): Likewise.
19456         * modules/spawn (Makefile.am): Likewise.
19457         * modules/stdarg (Makefile.am): Likewise.
19458         * modules/stddef (Makefile.am): Likewise.
19459         * modules/stdint (Makefile.am): Likewise.
19460         * modules/stdio (Makefile.am): Likewise.
19461         * modules/stdlib (Makefile.am): Likewise.
19462         * modules/string (Makefile.am): Likewise.
19463         * modules/strings (Makefile.am): Likewise.
19464         * modules/sys_file (Makefile.am): Likewise.
19465         * modules/sys_ioctl (Makefile.am): Likewise.
19466         * modules/sys_select (Makefile.am): Likewise.
19467         * modules/sys_socket (Makefile.am): Likewise.
19468         * modules/sys_stat (Makefile.am): Likewise.
19469         * modules/sys_time (Makefile.am): Likewise.
19470         * modules/sys_times (Makefile.am): Likewise.
19471         * modules/sys_uio (Makefile.am): Likewise.
19472         * modules/sys_utsname (Makefile.am): Likewise.
19473         * modules/sys_wait (Makefile.am): Likewise.
19474         * modules/sysexits (Makefile.am): Likewise.
19475         * modules/termios (Makefile.am): Likewise.
19476         * modules/time (Makefile.am): Likewise.
19477         * modules/unistd (Makefile.am): Likewise.
19478         * modules/wchar (Makefile.am): Likewise.
19479         * modules/wctype-h (Makefile.am): Likewise.
19480         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
19481
19482 2011-05-29  Bruno Haible  <bruno@clisp.org>
19483
19484         assert-h: Allow multiple gnulib generated replacements to coexist.
19485         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
19486
19487 2011-05-29  Bruno Haible  <bruno@clisp.org>
19488
19489         argp: Allow coexistence with strerror_r-posix module.
19490         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
19491         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
19492         by gnulib's <string.h> replacement), assume it has the POSIX signature,
19493         not the glibc signature.
19494
19495 2011-05-28  Bruno Haible  <bruno@clisp.org>
19496
19497         gnulib-tool: Alternative structure of testdirs, similar to --import.
19498         * gnulib-tool: New option --single-configure.
19499         (func_usage): Document it.
19500         (single_configure): New variable.
19501         (func_modules_transitive_closure_separately,
19502         func_modules_transitive_closure_separately,
19503         func_determine_use_libtests, func_modules_add_dummy_separately,
19504         func_modules_to_filelist_separately): New functions, extracted from
19505         func_import.
19506         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
19507         (func_import): Use the new functions.
19508         (func_create_testdir): Set final_modules. Handle $single_configure =
19509         true case.
19510
19511 2011-05-28  Bruno Haible  <bruno@clisp.org>
19512
19513         getloadavg: Remove an unreliable safety check.
19514         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
19515         getloadavg.c is in place.
19516         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
19517         Reported by Sam Steingold <sds@gnu.org>.
19518
19519 2011-05-28  Bruno Haible  <bruno@clisp.org>
19520
19521         doc: Cleanup yet another file produced by texinfo.tex.
19522         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
19523
19524 2011-05-28  Bruno Haible  <bruno@clisp.org>
19525
19526         Finish the conditional dependencies mechanism.
19527         * gnulib-tool: New option --no-conditional-dependencies.
19528         (func_usage): Document it. Don't mark --conditional-dependencies as
19529         experimental.
19530         (cond_dependencies): The possible values can now be true, false, empty.
19531         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
19532         (func_import): Store setting in gnulib-cache.m4 and read it from there.
19533         * doc/gnulib-tool.texi (Conditional dependencies): New section.
19534
19535 2011-05-28  Bruno Haible  <bruno@clisp.org>
19536
19537         doc: Use a recent texinfo.tex.
19538         * doc/Makefile (tex_opts): New variable.
19539         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
19540
19541 2011-05-28  Jim Meyering  <meyering@redhat.com>
19542
19543         intprops.h: adjust comment to match code change
19544         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
19545         only once, it *may* have side effects.  Also fix an unrelated typo.
19546         (_GL_INT_SIGNED): Likewise.
19547
19548 2011-05-26  Simon Josefsson  <simon@josefsson.org>
19549
19550         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
19551
19552 2011-05-26  Bruno Haible  <bruno@clisp.org>
19553
19554         mbsrchr: Avoid collision with system function on Interix.
19555         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
19556         Reported by Markus Duft <mduft@gentoo.org>.
19557
19558 2011-05-15  James Youngman  <jay@gnu.org>
19559
19560         getopt: for ambiguous options, enumerate the possibilities.
19561         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
19562         the ambiguous options when an ambiguous prefix is given. This was
19563         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
19564         glibc change was
19565         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
19566
19567 2011-05-25  Eric Blake  <eblake@redhat.com>
19568
19569         getcwd: work around mingw bug
19570         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
19571         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19572         Reported by Matthias Bolte.
19573
19574 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
19575
19576         test-intprops: disable -Wtype-limits diagnostics
19577         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
19578         diagnostics.  Otherwise, the integer overflow macros generate many
19579         diagnostics.  Reported by Jim Meyering in
19580         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19581
19582         intprops: shorten, to pacify gcc -Woverlength-strings
19583         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
19584         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
19585         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
19586         likely to run afoul of C compiler limits for string constant lengths.
19587         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
19588
19589 2011-05-24  Eric Blake  <eblake@redhat.com>
19590
19591         docs: document recently fixed glibc printf bug
19592         * doc/posix-functions/fprintf.texi (fprintf): Document it.
19593         * doc/posix-functions/printf.texi (printf): Likewise.
19594         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
19595         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
19596
19597         closein-tests: convert to init.sh
19598         * modules/closein-tests (Files): Add init.sh
19599         * tests/test-closein.sh Use it.
19600
19601         yesno-tests: convert to init.sh
19602         * modules/yesno-tests (Files): Add init.sh.
19603         * tests/test-yesno.sh: Use it.
19604
19605         atexit-tests: ensure reliable exit status
19606         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
19607         Reported by Bruno Haible.
19608
19609 2011-05-24  Bruno Haible  <bruno@clisp.org>
19610
19611         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
19612         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
19613         gl_PREREQ_STRERROR_R invocations from here...
19614         * modules/strerror_r-posix (configure.ac): ... to here.
19615
19616 2011-05-24  Eric Blake  <eblake@redhat.com>
19617
19618         strerror_r: fix missing header
19619         * lib/strerror_r.c: Avoid compiler warning about snprintf.
19620
19621         strerror_r: fix AIX test failures
19622         * lib/strerror_r.c (strerror_r): Convert silent truncation to
19623         ERANGE failure.
19624
19625         strerror_r: fix Solaris test failures
19626         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
19627         failures.
19628         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19629
19630         strerror_r: enforce POSIX recommendations
19631         * lib/strerror_r.c (safe_copy): New helper method.
19632         (strerror_r): Guarantee a non-empty string.
19633         * tests/test-strerror_r.c (main): Enhance tests to incorporate
19634         recent POSIX rulings and to match our strerror guarantees.
19635         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
19636
19637 2011-05-24  Jim Meyering  <meyering@redhat.com>
19638
19639         test-perror2.c: avoid warning about unused variable
19640         * tests/test-perror2.c (main): Remove declaration of unused "fp".
19641
19642 2011-05-24  Eric Blake  <eblake@redhat.com>
19643
19644         perror: avoid spurious test failure on HP-UX
19645         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
19646
19647         tests: fix logic bug in init.sh
19648         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
19649         shell.
19650
19651 2011-05-24  Jim Meyering  <meyering@redhat.com>
19652
19653         utimensat: do not reference an out-of-scope buffer
19654         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
19655         declared in an inner scope, yet "times" would be dereferenced outside
19656         the scope in which "ts" was valid.
19657         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
19658         of ts[2] "out/up", so that the use of aliased "times" (via
19659         "times = ts;") does not end up referencing an out-of-scope "ts"
19660
19661         opendir-safer.c: don't clobber errno; don't close negative FD
19662         * lib/opendir-safer.c (opendir_safer):
19663         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
19664         file descriptor, and more importantly, don't clobber the
19665         offending errno value with EINVAL.  Before, upon failure
19666         of dup_safer, we would pass the negative file descriptor to
19667         fdopendir, which would clobber errno.
19668
19669 2011-05-23  Bruno Haible  <bruno@clisp.org>
19670
19671         idcache: Fix module description.
19672         * modules/idcache (Include): Set to "idcache.h".
19673
19674 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
19675
19676         gnulib-tool: fix portability problem with MacOS sed
19677         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
19678         before the "}".  Problem reported by Leo in
19679         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
19680         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
19681         sed_extract_condition1, sed_extract_condition2.
19682
19683 2011-05-23  Bruno Haible  <bruno@clisp.org>
19684
19685         hash: Simplify autoconf macro.
19686         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
19687
19688 2011-05-23  Bruno Haible  <bruno@clisp.org>
19689
19690         getugroups: Fix module description.
19691         * modules/getugroups (Include): Set to "getugroups.h".
19692
19693 2011-05-23  Bruno Haible  <bruno@clisp.org>
19694
19695         linkat: Simplify autoconf macro.
19696         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
19697
19698 2011-05-23  Bruno Haible  <bruno@clisp.org>
19699             Eric Blake  <eblake@redhat.com>
19700
19701         linkat, renameat: Update dependencies.
19702         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
19703         * modules/linkat (Depends-on): Likewise. Remove also readlink,
19704         symlinkat.
19705
19706 2011-05-23  Jim Meyering  <meyering@redhat.com>
19707
19708         maint.mk: more tight_scope improvements
19709         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
19710         (_gl_TS_headers): Define only in if-0'd block.
19711         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
19712         sometimes we must *not* use it.  Adjust uses accordingly.
19713         (sc_tight_scope): Use much simpler grep-based test to determine
19714         whether we skip this rule.
19715
19716         maint.mk: generalize/improve the tight-scope rule
19717         * top/maint.mk: Emit a warning when the test is skipped.
19718         (_gl_TS_dir): Add $(srcdir)/ prefix.
19719         (_gl_TS_function_match): Simplify, rather than trying
19720         to enumerate common types.  Otherwise, it would fail to match an
19721         "extern unsigned char const *" declaration in idutils.
19722         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
19723         a way to support use of that type of macro.
19724         (_gl_TS_var_match): Simplify regexp.
19725         (_gl_TS_obj_files): New configurable variable.
19726         (_gl_TS_headers): Likewise.
19727
19728 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
19729
19730         verify: fix bug when gnulib <assert.h> is also included
19731         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
19732         is defined, not if _GL_STATIC_ASSERT_H is not defined.
19733         Perhaps there's a better way, but this fixes the immediate problem.
19734         Problem reported by Bruno Haible in
19735         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
19736
19737 2011-05-22  Bruno Haible  <bruno@clisp.org>
19738
19739         xgetcwd: Simplify autoconf macro.
19740         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
19741
19742 2011-05-22  Bruno Haible  <bruno@clisp.org>
19743
19744         New module 'mktime-internal'.
19745         * modules/mktime-internal: New file.
19746         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
19747         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
19748         mktime_internal as a C macro if libc has __mktime_internal.
19749         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
19750         conditions.
19751         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
19752
19753 2011-05-22  Bruno Haible  <bruno@clisp.org>
19754
19755         timegm: Correct mktime replacement statements.
19756         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
19757         defining mktime as a C macro. This completes a 2009-07-28 commit.
19758
19759 2011-05-22  Bruno Haible  <bruno@clisp.org>
19760
19761         timegm: Simplify autoconf macro.
19762         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
19763
19764 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19765
19766         clock-time: change to LGPLv2+.
19767         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
19768         BSD-like but we have no mark for that; this is good enough for now.
19769
19770 2011-05-21  Bruno Haible  <bruno@clisp.org>
19771
19772         strerror_r: Fix comments.
19773         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
19774
19775 2011-05-21  Bruno Haible  <bruno@clisp.org>
19776
19777         relocatable-prog-wrapper: Fix possible link error.
19778         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
19779         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
19780         (gl_FUNC_SETENV): ... to here.
19781         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
19782         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
19783
19784 2011-05-21  Bruno Haible  <bruno@clisp.org>
19785
19786         relocatable-prog-wrapper: Assume strerror() exists.
19787         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
19788         m4/strerror.m4.
19789         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
19790         * lib/relocwrapper.c: Remove mention of strerror module.
19791         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
19792         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
19793         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
19794         C macro.
19795
19796 2011-05-21  Bruno Haible  <bruno@clisp.org>
19797
19798         select: Simplify replacement idiom.
19799         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
19800         Win32 platforms.
19801         * lib/sys_select.in.h (select): Simplify accordingly.
19802         * modules/select (Depends-on): Likewise.
19803
19804 2011-05-21  Bruno Haible  <bruno@clisp.org>
19805
19806         mkdir-p: Simplify autoconf macro.
19807         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
19808         gl_FUNC_LCHOWN.
19809
19810 2011-05-21  Eric Blake  <eblake@redhat.com>
19811
19812         strerror_r: avoid clobbering strerror on cygwin
19813         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19814         fall back instead to sys_errlist.
19815         * modules/strerror (configure.ac): Add witness.
19816         * tests/test-strerror_r.c (main): Enhance test.
19817         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19818         * tests/test-perror2.c (main): Free memory before exit.
19819
19820 2011-05-21  Bruno Haible  <bruno@clisp.org>
19821
19822         mkdtemp: Use gnulib naming conventions.
19823         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19824         * modules/mkdtemp (configure.ac): Update.
19825
19826 2011-05-20  Eric Blake  <eblake@redhat.com>
19827
19828         strerror_r: avoid corrupting errno on Solaris
19829         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19830         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19831
19832         strerror_r: avoid compiler warning
19833         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19834
19835         strerror_r: simplify AIX code
19836         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19837
19838         test-perror: avoid spurious failure on FreeBSD
19839         * modules/perror-tests (Depends-on): Add strerror, now that
19840         strerror_r no longer pulls it in.
19841
19842 2011-05-20  Bruno Haible  <bruno@clisp.org>
19843
19844         strerror_r-posix: Remove unused dependencies.
19845         * modules/strerror_r-posix (Depends-on): Remove strerror.
19846         Reported by Eric Blake.
19847
19848 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19849
19850         intprops: remove assumption about A|B representation
19851         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19852         is a valid integer if both A and B are.  Although this is true for
19853         all known practical hosts, the C standard doesn't guarantee it,
19854         and the code need not assume it.  Also, this change may work around
19855         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19856         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19857
19858 2011-05-20  Eric Blake  <eblake@redhat.com>
19859
19860         perror: work around FreeBSD bug
19861         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19862         is broken.  Move AC_LIBOBJ...
19863         * modules/perror (configure.ac): Here.
19864         * doc/posix-functions/perror.texi (perror): Document this.
19865         * tests/test-perror2.c (main): Enhance test.
19866
19867         test-perror: check for strerror interactions
19868         * tests/macros.h (STREQ): Add macro.
19869         * modules/perror-tests (Files): Add second test.
19870         * tests/test-perror2.c (main): New file.
19871         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19872
19873         test-perror: rewrite to use init script
19874         * modules/perror-tests (Files): Add init.sh.
19875         * tests/test-perror.sh: Use temporary directory.
19876
19877 2011-05-20  Jim Meyering  <meyering@redhat.com>
19878
19879         maint: replace misused "a" with "an"
19880         * doc/intprops.texi: "a integer"
19881         * doc/regex.texi: "a explanation"
19882         * lib/alignof.h: "a object"
19883         * lib/argmatch.h: "a explanation"
19884         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19885         * lib/stdint.in.h: "a integer"
19886         * lib/userspec.c: "a owner"
19887         * doc/gnulib.texi: Fix "a idea", and reword.
19888
19889 2011-05-19  Jim Meyering  <meyering@redhat.com>
19890
19891         maint: correct misuse of "a" and "an"
19892         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19893         * lib/argp-help.c: "an docum...": s/an/a/
19894         * lib/argp-parse.c: "An vector": s/An/A/
19895         * lib/execute.c: "an native": s/an/a/
19896         * lib/spawn-pipe.c: Likewise.
19897         * lib/gc.h: "an Gc_rc": s/an/a/
19898         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19899         * lib/fts.c: "an stat.st_dev": s/an/a/
19900
19901 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19902
19903         intprops-tests: work around HP-UX 11.23 cc bug with constants
19904         * tests/test-intprops.c (VERIFY): New macro.
19905         (main): Use it, instead of verify, to work around the compiler bug; see
19906         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19907
19908         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19909         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19910         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19911         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19912         (_GL_REMAINDER_OVERFLOW): Use it.
19913
19914         intprops-tests: revert unsigned part of previous change
19915         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19916         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19917         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19918         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19919
19920 2011-05-19  Bruno Haible  <bruno@clisp.org>
19921
19922         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19923         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19924         strerror_r() returned without filling the buffer.
19925         Reported by Eric Blake.
19926
19927 2011-05-19  Eric Blake  <eblake@redhat.com>
19928
19929         strerror_r: guarantee unchanged errno
19930         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19931         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19932         failure.
19933         * tests/test-strerror_r.c (main): Enhance test.
19934
19935 2011-05-19  Bruno Haible  <bruno@clisp.org>
19936
19937         strerror_r: Reorder #if blocks.
19938         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19939         for consistency with the previous commit.
19940
19941 2011-05-19  Bruno Haible  <bruno@clisp.org>
19942
19943         perror: Avoid clobbering the strerror buffer when possible.
19944         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19945         * lib/strerror.c: Include it.
19946         * modules/strerror (Files): Add lib/strerror-impl.h.
19947         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19948         (my_strerror): New function, defined through lib/strerror-impl.h.
19949         (perror): Use it instead of strerror.
19950         * modules/perror (Files): Add lib/strerror-impl.h.
19951         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19952
19953 2011-05-19  Eric Blake  <eblake@redhat.com>
19954
19955         strerror_r: fix on newer cygwin
19956         * lib/strerror_r.c (strerror_r): Cygwin now has
19957         __xpg_strerror_r, use it.
19958
19959 2011-05-19  Bruno Haible  <bruno@clisp.org>
19960
19961         strerror_r: Avoid clobbering the strerror buffer when possible.
19962         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19963         (sys_nerr, sys_errlist): New declarations.
19964         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19965         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19966         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19967
19968 2011-05-19  Bruno Haible  <bruno@clisp.org>
19969
19970         strerror_r: Fix test failure on mingw.
19971         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19972         EXTEND_STRERROR_R.
19973         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19974         macros from errno.in.h instead.
19975
19976 2011-05-19  Eric Blake  <eblake@redhat.com>
19977
19978         strerror: relax test for Solaris
19979         * tests/test-strerror.c (main): Permit Solaris behavior.
19980         * tests/test-strerror_r.c (main): Likewise.
19981
19982         strerror: enforce POSIX ruling on strerror(0)
19983         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19984         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19985         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19986         * doc/posix-functions/strerror.texi (strerror): Document it.
19987         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19988         * tests/test-strerror.c (main): Strengthen test.
19989         * tests/test-strerror_r.c (main): Likewise.
19990
19991 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19992
19993         intprop-tests: port to older and more-pedantic compilers
19994         * modules/intprops-tests (Files): Add tests/macros.h.
19995         * tests/test-intprops.c: Include macros.h.
19996         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19997         it's no longer documented to expand to an integer constant expression.
19998         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19999         argument is floating point, as it's no longer documented to expand
20000         to an integer constant expression in that case.
20001         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
20002         compiler bugs reported by Bruno Haible.  See
20003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20004         (U0, U1): New constants, to work around the same bugs.  Also,
20005         in tests, use e.g., "(unsigned int) 39" rather than "39u".
20006
20007         intprops: work around C compiler bugs
20008         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
20009         bug in Sun C 5.11 2010/08/13 and other compilers; see
20010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
20011
20012         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
20013         * doc/intprops.texi (Integer Type Determination): Fix
20014         documentation for TYPE_IS_INTEGER: it returns an constant
20015         expression, not an integer constant expression.  Fix doc for
20016         TYPE_SIGNED: it returns an integer constant expression only if its
20017         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
20018         hardly worth documented that way....)
20019
20020 2011-05-18  Bruno Haible  <bruno@clisp.org>
20021
20022         strerror_r: Avoid clobbering the strerror buffer when possible.
20023         * lib/strerror_r.c (strerror_r): Merge the three implementations.
20024         Handle gnulib defined errno values here. When strerror() returns NULL
20025         or an empty string, return EINVAL.
20026         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
20027         gnulib defined errno values here.
20028         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
20029
20030 2011-05-18  Eric Blake  <eblake@redhat.com>
20031
20032         fnmatch: avoid compiler warning
20033         * lib/fnmatch_loop.c (FCT): Use correct type.
20034         Reported by Matthias Bolte.
20035
20036 2011-05-13  Jim Meyering  <meyering@redhat.com>
20037
20038         maint.mk: three new prohibit_<HDR>_without_use rules
20039         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
20040         (sc_prohibit_stdio-safer_without_use): Likewise.
20041         (sc_prohibit_xfreopen_without_use): Likewise.
20042
20043 2011-05-17  Jim Meyering  <meyering@redhat.com>
20044
20045         announce-gen: fail if the NEWS delta is empty
20046         If there's nothing noteworthy in NEWS, then either you forgot
20047         or you shouldn't be releasing.
20048         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
20049
20050 2011-05-17  Pádraig Brady <P@draigBrady.com>
20051
20052         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
20053         reserved symbols starting with double underscore from the check.
20054
20055 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20056
20057         intprops: add doc
20058         * doc/intprops.texi: New file, documenting intprops.
20059         * doc/gnulib.texi (Particular Modules): Include it.
20060
20061         verify: add doc to gnulib manual and fix example
20062         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
20063         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
20064         (Compile-time Assertions): Fix example so it can't overflow.
20065
20066 2011-05-17  Jim Meyering  <meyering@redhat.com>
20067
20068         warnings.m4: don't usurp save_CPPFLAGS variable name
20069         * m4/warnings.m4: Prefix local temporary variable name with gl_.
20070
20071         doc: fix typo
20072         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
20073
20074 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20075             Bruno Haible  <bruno@clisp.org>
20076
20077         doc: Tweak recent change.
20078         * README (Portability guidelines): Tweak new text.
20079         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
20080         Interix 6.1.
20081
20082 2011-05-16  Eric Blake  <eblake@redhat.com>
20083
20084         inttypes: avoid autoconf warning
20085         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
20086         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20087
20088 2011-05-16  Sam Steingold <sds@gnu.org>
20089         and Eric Blake  <eblake@redhat.com>
20090
20091         vc-list-files: accept multiple directory operands
20092         * build-aux/vc-list-files: Iterate over all remaining operands.
20093
20094 2011-05-16  Bruno Haible  <bruno@clisp.org>
20095
20096         Fix confusion regarding deprecated modules.
20097         * modules/calloc (Status, Notice): Mark module as deprecated, not
20098         obsolete.
20099         * modules/fnmatch-posix (Status, Notice): Likewise.
20100         * modules/getdate (Status, Notice): Likewise.
20101         * modules/getopt (Status, Notice): Likewise.
20102         * modules/malloc (Status, Notice): Likewise.
20103         * modules/pipe (Status, Notice): Likewise.
20104         * modules/realloc (Status, Notice): Likewise.
20105         * modules/rename-dest-slash (Status, Notice): Likewise.
20106         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
20107         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
20108         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
20109         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
20110         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
20111
20112 2011-05-16  Bruno Haible  <bruno@clisp.org>
20113
20114         doc: List the target platforms.
20115         * doc/gnulib-intro.texi (Target Platforms): New section.
20116         * doc/gnulib.texi (Introduction): Update menu.
20117         * README (Portability guidelines): Refer to the new section. Update
20118         statement about oldest supported environment. Remove rationale why
20119         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
20120         unportable C89 function.
20121         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
20122         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
20123
20124 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20125
20126         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
20127
20128 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20129
20130         intprops-tests: new module
20131         * modules/intprops-tests, tests/test-intprops.c: New files.
20132
20133         intprops: add safe, portable integer overflow checking
20134         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
20135         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
20136         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
20137         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
20138         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
20139         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
20140         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
20141         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
20142         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
20143         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
20144         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
20145
20146 2011-05-12  James Youngman  <jay@gnu.org>
20147
20148         Add a test for glibc's Bugzilla bug #12378.
20149         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
20150         doesn't allow the literal matching of a lone "[" (which is
20151         required by POSIX).
20152         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
20153
20154 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
20155
20156         Sync glibc change fixing Bugzilla bug #12378.
20157         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
20158         beginning and fall back to matching as normal character if the
20159         string ends before the matching ']' is found.  This is what POSIX
20160         requires.
20161
20162 2011-05-13  Eric Blake  <eblake@redhat.com>
20163
20164         getcwd-lgpl: relax test for FreeBSD
20165         * doc/posix-functions/getcwd.texi (getcwd): Document portability
20166         issue.
20167         * tests/test-getcwd-lgpl.c (main): Relax test.
20168         Reported by Matthias Bolte.
20169
20170 2011-05-11  Eric Blake  <eblake@redhat.com>
20171
20172         test-fflush: silence compiler warning
20173         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
20174
20175 2011-05-11  Bruno Haible  <bruno@clisp.org>
20176
20177         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
20178         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
20179         * modules/canonicalize (Depends-on): Add 'nocrash'.
20180         * modules/canonicalize-lgpl (Depends-on): Likewise.
20181         * doc/posix-functions/realpath.texi: Update platforms list.
20182         Reported by Ryan Schmidt <ryandesign@macports.org>.
20183
20184 2011-05-11  Bruno Haible  <bruno@clisp.org>
20185
20186         group-member: Declare function in <unistd.h>.
20187         * lib/unistd.in.h (group_member): New declaration.
20188         * lib/group-member.h: Remove file.
20189         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
20190         * tests/test-unistd-c++.cc: Check signature of group_member.
20191         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
20192         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
20193         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
20194         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
20195         HAVE_GROUP_MEMBER.
20196         * modules/group-member (Files): Remove lib/group-member.h.
20197         (Depends-on): Add unistd. Specify conditions.
20198         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
20199         (Include): Change to <unistd.h>.
20200         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
20201         HAVE_GROUP_MEMBER.
20202         * NEWS: Mention the change.
20203         * lib/euidaccess.c: Don't include group-member.h.
20204
20205 2011-05-11  Bruno Haible  <bruno@clisp.org>
20206
20207         group-member: Document module.
20208         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
20209         module.
20210
20211 2011-05-11  Bruno Haible  <bruno@clisp.org>
20212
20213         fclose: Fix mistake earlier today.
20214         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
20215
20216 2011-05-11  Eric Blake  <eblake@redhat.com>
20217
20218         fclose: preserve fflush errors
20219         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
20220         Reported by Jim Meyering.
20221
20222         bootstrap: support a prereq of 'rpcgen -' on RHEL5
20223         * build-aux/bootstrap (check_versions): When no specific version
20224         is required, merely check that the app produces an exit status
20225         that indicates its existence.
20226
20227         maint.mk: drop redundant check
20228         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
20229         the same but better.
20230
20231 2011-05-11  Bruno Haible  <bruno@clisp.org>
20232
20233         fclose: Fix possible link error.
20234         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
20235         unregister_shadow_fd. Improve comments.
20236         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
20237         Eric Blake.
20238
20239 2011-05-11  Jim Meyering  <meyering@redhat.com>
20240
20241         maint.mk: improve "can not" detection and generalize rule name
20242         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
20243         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
20244         Use the same technique as in sc_prohibit_doubled_word, so that
20245         we recognize "can not" also when the words are separated by a newline.
20246         Suggested by Eric Blake.
20247         (perl_filename_lineno_text_): Define.  Factored out of...
20248         (prohibit_doubled_word_): ...here.  Use the new definition.
20249         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
20250         (prohibit_undesirable_word_seq_RE_): New overridable variable.
20251         (ignore_undesirable_word_sequence_RE_): New overridable variable.
20252
20253 2011-05-10  Eric Blake  <eblake@redhat.com>
20254
20255         fclose: avoid double close race when possible
20256         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
20257         all but WINDOWS_SOCKETS.
20258
20259 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
20260
20261         openat: correct new comment
20262         * lib/openat-proc.c (openat_proc_name): Correct the comment.
20263
20264 2011-05-10  Jim Meyering  <meyering@redhat.com>
20265
20266         openat: add comments
20267         * lib/openat-proc.c (openat_proc_name): Add comments,
20268         mostly from Eric Blake.
20269
20270 2011-05-09  Eric Blake  <eblake@redhat.com>
20271
20272         openat: reduce syscalls in first probe of /proc
20273         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
20274         be a directory.  Simplify the probe for .. bugs.
20275         * modules/openat (Depends-on): Drop same-inode.
20276         Reported by Bastien ROUCARIES.
20277
20278 2011-05-09  Jim Meyering  <meyering@redhat.com>
20279
20280         maint.mk: change semantics/name of tight_scope variables
20281         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
20282         Rename variables to align with semantics that make them more useful.
20283
20284         maint.mk: tweak new rule's name not to impinge
20285         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
20286         (sc_tight_scope): Use new rule name rather than $@-0.
20287
20288         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
20289         * top/maint.mk (sc_tight_scope): New rule.
20290         (sc_tight_scope-0): New rule, ifdef'd out.
20291         (_gl_TS_dir): Default.
20292         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
20293         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
20294
20295 2011-05-09  Simon Josefsson  <simon@josefsson.org>
20296
20297         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
20298         Haible <bruno@clisp.org>.
20299
20300 2011-05-08  Bruno Haible  <bruno@clisp.org>
20301
20302         Comments.
20303         * m4/isnanf.m4: Add comment.
20304         * m4/isnanl.m4: Likewise.
20305
20306 2011-05-08  Bruno Haible  <bruno@clisp.org>
20307
20308         glob: Remove obsolete macro.
20309         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
20310
20311 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
20312
20313         intprops: Sun C 5.11 supports __typeof__
20314         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
20315         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
20316         which is new.
20317         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
20318
20319         intprops: switch to usual gnulib indenting and naming
20320         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
20321         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
20322
20323         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
20324
20325 2011-05-08  Jim Meyering  <meyering@redhat.com>
20326
20327         maint.mk: suppress "Entering/Leaving directory" diag in announcement
20328         * top/maint.mk (release-prep): Use make's --no-print-directory
20329         option when generating the announcement.  This eliminates the
20330         pesky "make[2]: Entering/Leaving directory" diagnostics in the
20331         generated announcement template.
20332
20333 2011-05-08  Bruno Haible  <bruno@clisp.org>
20334
20335         tzset: Fix gettimeofday wrapper on Solaris 2.6.
20336         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
20337         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
20338
20339 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
20340
20341         ignore-value, verify: Omit include files from lib_SOURCES.
20342         * modules/ignore-value, modules/verify (Makefile.am):
20343         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
20344         that leads Automake to duplicate use of am__objects_... variables
20345         in Makefile.in.  See
20346         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
20347
20348 2011-05-07  Bruno Haible  <bruno@clisp.org>
20349
20350         fclose: Simplify autoconf macro.
20351         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
20352         defined.
20353
20354 2011-05-07  Bruno Haible  <bruno@clisp.org>
20355
20356         canonicalize-lgpl: Fix autoconf macro ordering bug.
20357         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
20358         gl_STDLIB_H_DEFAULTS.
20359
20360 2011-05-06  Eric Blake  <eblake@redhat.com>
20361
20362         maintainer-makefile: make sc_po_check easier to tune
20363         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
20364         to probe for strings, such as an alternate location for gnulib.
20365
20366         fclose: guarantee behavior on seekable stdin
20367         * modules/fclose (Depends-on): Add fflush.
20368         * doc/posix-functions/fclose.texi (fclose): Document this.
20369         * tests/test-fclose.c (main): Make test for this unconditional.
20370
20371 2011-05-06  Bruno Haible  <bruno@clisp.org>
20372
20373         fflush, fpurge: Relicense under LGPLv2+.
20374         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
20375         * modules/fpurge (License): Likewise.
20376         With permission from Eric Blake and Jim Meyering.
20377         Suggested by Eric Blake.
20378
20379 2011-05-06  Karl Berry  <karl@gnu.org>
20380
20381         * MODULES.html.sh (func_all_modules): remove exit.
20382
20383 2011-05-06  Jim Meyering  <meyering@redhat.com>
20384
20385         maint.mk: use info-gnu@ as the default only for a stable release
20386         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
20387         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
20388         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
20389         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
20390
20391 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20392
20393         assert-h: new module, which supports C1X-style static_assert
20394         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
20395         * lib/verify.h: Revamp so that this can be copied into assert.h,
20396         while retaining the ability to use it standalone as before.
20397         Rename private identifiers so as not to encroach on the
20398         standard C namespace, since this is now used by assert.h.
20399         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
20400         the old verify_true.
20401         (_GL_VERIFY_TRUE): New macro, with much of the contents of
20402         the old verify_true.  Use _GL_VERIFY_TYPE.
20403         (_GL_VERIFY): New macro, with much of the contents of the old verify.
20404         (static_assert): New macro, if _GL_STATIC_ASSERT_H
20405         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
20406         defined when this file is copied into the replacement assert.h.
20407         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
20408         and _Static_assert is not built in.
20409         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
20410         defined, and use the new macros mentioned above.
20411         * doc/posix-headers/assert.texi: Document this.
20412
20413 2011-05-05  Bruno Haible  <bruno@clisp.org>
20414
20415         fclose, fflush: Respect rules for use of AC_LIBOBJ.
20416         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
20417         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
20418         gl_REPLACE_FCLOSE here.
20419         * modules/fflush (Depends-on): Remove fclose.
20420         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
20421         combination with module 'fclose'.
20422
20423 2011-05-05  Bruno Haible  <bruno@clisp.org>
20424
20425         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
20426         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
20427         gl_FUNC_FFLUSH.
20428         (gl_FUNC_FFLUSH): Use it.
20429         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
20430         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
20431         gl_REPLACE_FSEEKO here.
20432
20433 2011-05-05  Bruno Haible  <bruno@clisp.org>
20434
20435         tzset: Relicense under LGPL.
20436         * modules/tzset (License): Change to LGPL.
20437         No agreement needed; it's a no-op.
20438
20439         strtoimax, strtoumax: Relicense under LGPL.
20440         * modules/strtoimax (License): Change to LGPL.
20441         * modules/strtoumax (License): Likewise.
20442         With permission from Jim Meyering, Paul Eggert:
20443         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
20444         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
20445
20446         getgroups: Relicense under LGPL.
20447         * modules/getgroups (License): Change to LGPL.
20448         With permission from Jim Meyering, Paul Eggert, Eric Blake:
20449         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20451         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20452
20453         nanosleep: Relicense under LGPL.
20454         * modules/nanosleep (License): Change to LGPL.
20455         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
20456         Haible:
20457         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
20458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
20459         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20460         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20461
20462         futimens: Relicense under LGPL.
20463         * modules/futimens (License): Change to LGPL.
20464         With permission from Eric Blake:
20465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20466
20467         fflush: Relicense under LGPL.
20468         * modules/fflush (License): Change to LGPL.
20469         With permission from Eric Blake, Bruno Haible, Jim Meyering:
20470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
20471         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
20472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
20473
20474         tmpfile: Relicense under LGPL.
20475         * modules/tmpfile (License): Change to LGPL.
20476         With permission from Ben Pfaff:
20477         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20478
20479         isfinite: Relicense under LGPL.
20480         * modules/isfinite (License): Change to LGPL.
20481         With permission from Ben Pfaff, Bruno Haible:
20482         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
20483         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
20484
20485         acosl..tanl: Relicense under LGPL.
20486         * modules/acosl (License): Change to LGPL.
20487         * modules/asinl (License): Likewise.
20488         * modules/atanl (License): Likewise.
20489         * modules/cosl (License): Likewise.
20490         * modules/expl (License): Likewise.
20491         * modules/logl (License): Likewise.
20492         * modules/sinl (License): Likewise.
20493         * modules/sqrtl (License): Likewise.
20494         * modules/tanl (License): Likewise.
20495         Source code originally from glibc and Paolo Bonzini. Agreements:
20496         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
20497         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
20498
20499 2011-05-05  Bruno Haible  <bruno@clisp.org>
20500
20501         signal: Define sighandler_t.
20502         * lib/signal.in.h (sighandler_t): New type.
20503         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
20504         whether sighandler_t is defined.
20505         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
20506         * modules/signal (Depends-on): Add extensions.
20507         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
20508         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
20509         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
20510
20511 2011-05-05  Eric Blake  <eblake@redhat.com>
20512
20513         maint: remove useless REPLACE_*_H macros
20514         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
20515         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
20516         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
20517         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
20518         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
20519         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
20520         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
20521         * m4/btowc.m4: Update callers.
20522         * m4/dirfd.m4: Likewise.
20523         * m4/duplocale.m4: Likewise.
20524         * m4/fchdir.m4: Likewise.
20525         * m4/fdopendir.m4: Likewise.
20526         * m4/inet_ntop.m4: Likewise.
20527         * m4/inet_pton.m4: Likewise.
20528         * m4/ioctl.m4: Likewise.
20529         * m4/mbrlen.m4: Likewise.
20530         * m4/mbrtowc.m4: Likewise.
20531         * m4/mbsinit.m4: Likewise.
20532         * m4/mbsnrtowcs.m4: Likewise.
20533         * m4/mbsrtowcs.m4: Likewise.
20534         * m4/poll.m4: Likewise.
20535         * m4/setlocale.m4: Likewise.
20536         * m4/wcrtomb.m4: Likewise.
20537         * m4/wcsnrtombs.m4: Likewise.
20538         * m4/wcsrtombs.m4: Likewise.
20539         * m4/wctob.m4: Likewise.
20540         * m4/wcwidth.m4: Likewise.
20541         * modules/posix_spawn: Likewise.
20542         * modules/posix_spawn_file_actions_addclose: Likewise.
20543         * modules/posix_spawn_file_actions_adddup2: Likewise.
20544         * modules/posix_spawn_file_actions_addopen: Likewise.
20545         * modules/posix_spawn_file_actions_destroy: Likewise.
20546         * modules/posix_spawn_file_actions_init: Likewise.
20547         * modules/posix_spawnattr_destroy: Likewise.
20548         * modules/posix_spawnattr_getflags: Likewise.
20549         * modules/posix_spawnattr_getpgroup: Likewise.
20550         * modules/posix_spawnattr_getschedparam: Likewise.
20551         * modules/posix_spawnattr_getschedpolicy: Likewise.
20552         * modules/posix_spawnattr_getsigdefault: Likewise.
20553         * modules/posix_spawnattr_getsigmask: Likewise.
20554         * modules/posix_spawnattr_init: Likewise.
20555         * modules/posix_spawnattr_setflags: Likewise.
20556         * modules/posix_spawnattr_setpgroup: Likewise.
20557         * modules/posix_spawnattr_setschedparam: Likewise.
20558         * modules/posix_spawnattr_setschedpolicy: Likewise.
20559         * modules/posix_spawnattr_setsigdefault: Likewise.
20560         * modules/posix_spawnattr_setsigmask: Likewise.
20561         * modules/posix_spawnp: Likewise.
20562
20563 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
20564
20565         Add option to do-release-commit-and-tag to specify branch.
20566         * build-aux/do-release-commit-and-tag: Add --branch.
20567
20568 2011-05-03  Bruno Haible  <bruno@clisp.org>
20569
20570         Avoid unnecessary compilation units, through conditional dependencies.
20571         * modules/accept (Depends-on): Add conditions to the dependencies.
20572         * modules/acosl (Depends-on): Likewise.
20573         * modules/argz (Depends-on): Likewise.
20574         * modules/asinl (Depends-on): Likewise.
20575         * modules/atanl (Depends-on): Likewise.
20576         * modules/atoll (Depends-on): Likewise.
20577         * modules/bind (Depends-on): Likewise.
20578         * modules/btowc (Depends-on): Likewise.
20579         * modules/canonicalize-lgpl (Depends-on): Likewise.
20580         * modules/ceil (Depends-on): Likewise.
20581         * modules/ceilf (Depends-on): Likewise.
20582         * modules/ceill (Depends-on): Likewise.
20583         * modules/chdir-long (Depends-on): Likewise.
20584         * modules/chown (Depends-on): Likewise.
20585         * modules/close (Depends-on): Likewise.
20586         * modules/connect (Depends-on): Likewise.
20587         * modules/cosl (Depends-on): Likewise.
20588         * modules/dirfd (Depends-on): Likewise.
20589         * modules/dprintf (Depends-on): Likewise.
20590         * modules/dprintf-posix (Depends-on): Likewise.
20591         * modules/error (Depends-on): Likewise.
20592         * modules/euidaccess (Depends-on): Likewise.
20593         * modules/expl (Depends-on): Likewise.
20594         * modules/faccessat (Depends-on): Likewise.
20595         * modules/fchdir (Depends-on): Likewise.
20596         * modules/fclose (Depends-on): Likewise.
20597         * modules/fcntl (Depends-on): Likewise.
20598         * modules/fdopendir (Depends-on): Likewise.
20599         * modules/fflush (Depends-on): Likewise.
20600         * modules/floor (Depends-on): Likewise.
20601         * modules/floorf (Depends-on): Likewise.
20602         * modules/floorl (Depends-on): Likewise.
20603         * modules/fnmatch (Depends-on): Likewise.
20604         * modules/fopen (Depends-on): Likewise.
20605         * modules/fprintf-posix (Depends-on): Likewise.
20606         * modules/frexp (Depends-on): Likewise.
20607         * modules/frexp-nolibm (Depends-on): Likewise.
20608         * modules/frexpl (Depends-on): Likewise.
20609         * modules/frexpl-nolibm (Depends-on): Likewise.
20610         * modules/fseek (Depends-on): Likewise.
20611         * modules/fsusage (Depends-on): Likewise.
20612         * modules/ftell (Depends-on): Likewise.
20613         * modules/ftello (Depends-on): Likewise.
20614         * modules/futimens (Depends-on): Likewise.
20615         * modules/getcwd (Depends-on): Likewise.
20616         * modules/getcwd-lgpl (Depends-on): Likewise.
20617         * modules/getdelim (Depends-on): Likewise.
20618         * modules/getdomainname (Depends-on): Likewise.
20619         * modules/getgroups (Depends-on): Likewise.
20620         * modules/gethostname (Depends-on): Likewise.
20621         * modules/getline (Depends-on): Likewise.
20622         * modules/getlogin_r (Depends-on): Likewise.
20623         * modules/getopt-posix (Depends-on): Likewise.
20624         * modules/getpeername (Depends-on): Likewise.
20625         * modules/getsockname (Depends-on): Likewise.
20626         * modules/getsockopt (Depends-on): Likewise.
20627         * modules/getsubopt (Depends-on): Likewise.
20628         * modules/getusershell (Depends-on): Likewise.
20629         * modules/glob (Depends-on): Likewise.
20630         * modules/grantpt (Depends-on): Likewise.
20631         * modules/iconv_open (Depends-on): Likewise.
20632         * modules/iconv_open-utf (Depends-on): Likewise.
20633         * modules/inet_ntop (Depends-on): Likewise.
20634         * modules/inet_pton (Depends-on): Likewise.
20635         * modules/ioctl (Depends-on): Likewise.
20636         * modules/isapipe (Depends-on): Likewise.
20637         * modules/isfinite (Depends-on): Likewise.
20638         * modules/isinf (Depends-on): Likewise.
20639         * modules/lchown (Depends-on): Likewise.
20640         * modules/ldexpl (Depends-on): Likewise.
20641         * modules/link (Depends-on): Likewise.
20642         * modules/linkat (Depends-on): Likewise.
20643         * modules/listen (Depends-on): Likewise.
20644         * modules/logl (Depends-on): Likewise.
20645         * modules/lstat (Depends-on): Likewise.
20646         * modules/mbrlen (Depends-on): Likewise.
20647         * modules/mbrtowc (Depends-on): Likewise.
20648         * modules/mbsinit (Depends-on): Likewise.
20649         * modules/mbsnrtowcs (Depends-on): Likewise.
20650         * modules/mbsrtowcs (Depends-on): Likewise.
20651         * modules/mbtowc (Depends-on): Likewise.
20652         * modules/memcmp (Depends-on): Likewise.
20653         * modules/mkdir (Depends-on): Likewise.
20654         * modules/mkdtemp (Depends-on): Likewise.
20655         * modules/mkfifo (Depends-on): Likewise.
20656         * modules/mkfifoat (Depends-on): Likewise.
20657         * modules/mknod (Depends-on): Likewise.
20658         * modules/mkostemp (Depends-on): Likewise.
20659         * modules/mkostemps (Depends-on): Likewise.
20660         * modules/mkstemp (Depends-on): Likewise.
20661         * modules/mkstemps (Depends-on): Likewise.
20662         * modules/mktime (Depends-on): Likewise.
20663         * modules/nanosleep (Depends-on): Likewise.
20664         * modules/open (Depends-on): Likewise.
20665         * modules/openat (Depends-on): Likewise.
20666         * modules/perror (Depends-on): Likewise.
20667         * modules/poll (Depends-on): Likewise.
20668         * modules/popen (Depends-on): Likewise.
20669         * modules/posix_spawn (Depends-on): Likewise.
20670         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
20671         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
20672         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
20673         * modules/posix_spawnp (Depends-on): Likewise.
20674         * modules/pread (Depends-on): Likewise.
20675         * modules/printf-posix (Depends-on): Likewise.
20676         * modules/ptsname (Depends-on): Likewise.
20677         * modules/putenv (Depends-on): Likewise.
20678         * modules/pwrite (Depends-on): Likewise.
20679         * modules/readline (Depends-on): Likewise.
20680         * modules/readlink (Depends-on): Likewise.
20681         * modules/readlinkat (Depends-on): Likewise.
20682         * modules/recv (Depends-on): Likewise.
20683         * modules/recvfrom (Depends-on): Likewise.
20684         * modules/regex (Depends-on): Likewise.
20685         * modules/remove (Depends-on): Likewise.
20686         * modules/rename (Depends-on): Likewise.
20687         * modules/renameat (Depends-on): Likewise.
20688         * modules/rmdir (Depends-on): Likewise.
20689         * modules/round (Depends-on): Likewise.
20690         * modules/roundf (Depends-on): Likewise.
20691         * modules/roundl (Depends-on): Likewise.
20692         * modules/rpmatch (Depends-on): Likewise.
20693         * modules/select (Depends-on): Likewise.
20694         * modules/send (Depends-on): Likewise.
20695         * modules/sendto (Depends-on): Likewise.
20696         * modules/setenv (Depends-on): Likewise.
20697         * modules/setlocale (Depends-on): Likewise.
20698         * modules/setsockopt (Depends-on): Likewise.
20699         * modules/shutdown (Depends-on): Likewise.
20700         * modules/sigaction (Depends-on): Likewise.
20701         * modules/signbit (Depends-on): Likewise.
20702         * modules/sigprocmask (Depends-on): Likewise.
20703         * modules/sinl (Depends-on): Likewise.
20704         * modules/sleep (Depends-on): Likewise.
20705         * modules/snprintf (Depends-on): Likewise.
20706         * modules/snprintf-posix (Depends-on): Likewise.
20707         * modules/socket (Depends-on): Likewise.
20708         * modules/sprintf-posix (Depends-on): Likewise.
20709         * modules/sqrtl (Depends-on): Likewise.
20710         * modules/stat (Depends-on): Likewise.
20711         * modules/strchrnul (Depends-on): Likewise.
20712         * modules/strdup-posix (Depends-on): Likewise.
20713         * modules/strerror (Depends-on): Likewise.
20714         * modules/strerror_r-posix (Depends-on): Likewise.
20715         * modules/strndup (Depends-on): Likewise.
20716         * modules/strnlen (Depends-on): Likewise.
20717         * modules/strptime (Depends-on): Likewise.
20718         * modules/strsep (Depends-on): Likewise.
20719         * modules/strsignal (Depends-on): Likewise.
20720         * modules/strstr-simple (Depends-on): Likewise.
20721         * modules/strtod (Depends-on): Likewise.
20722         * modules/strtoimax (Depends-on): Likewise.
20723         * modules/strtok_r (Depends-on): Likewise.
20724         * modules/strtoumax (Depends-on): Likewise.
20725         * modules/symlink (Depends-on): Likewise.
20726         * modules/symlinkat (Depends-on): Likewise.
20727         * modules/tanl (Depends-on): Likewise.
20728         * modules/tcgetsid (Depends-on): Likewise.
20729         * modules/tmpfile (Depends-on): Likewise.
20730         * modules/trunc (Depends-on): Likewise.
20731         * modules/truncf (Depends-on): Likewise.
20732         * modules/truncl (Depends-on): Likewise.
20733         * modules/uname (Depends-on): Likewise.
20734         * modules/unlink (Depends-on): Likewise.
20735         * modules/unlockpt (Depends-on): Likewise.
20736         * modules/unsetenv (Depends-on): Likewise.
20737         * modules/usleep (Depends-on): Likewise.
20738         * modules/utimensat (Depends-on): Likewise.
20739         * modules/vasprintf (Depends-on): Likewise.
20740         * modules/vdprintf (Depends-on): Likewise.
20741         * modules/vdprintf-posix (Depends-on): Likewise.
20742         * modules/vfprintf-posix (Depends-on): Likewise.
20743         * modules/vprintf-posix (Depends-on): Likewise.
20744         * modules/vsnprintf (Depends-on): Likewise.
20745         * modules/vsnprintf-posix (Depends-on): Likewise.
20746         * modules/vsprintf-posix (Depends-on): Likewise.
20747         * modules/wcrtomb (Depends-on): Likewise.
20748         * modules/wcscasecmp (Depends-on): Likewise.
20749         * modules/wcscspn (Depends-on): Likewise.
20750         * modules/wcsdup (Depends-on): Likewise.
20751         * modules/wcsncasecmp (Depends-on): Likewise.
20752         * modules/wcsnrtombs (Depends-on): Likewise.
20753         * modules/wcspbrk (Depends-on): Likewise.
20754         * modules/wcsrtombs (Depends-on): Likewise.
20755         * modules/wcsspn (Depends-on): Likewise.
20756         * modules/wcsstr (Depends-on): Likewise.
20757         * modules/wcstok (Depends-on): Likewise.
20758         * modules/wcswidth (Depends-on): Likewise.
20759         * modules/wctob (Depends-on): Likewise.
20760         * modules/wctomb (Depends-on): Likewise.
20761         * modules/wctype (Depends-on): Likewise.
20762         * modules/wcwidth (Depends-on): Likewise.
20763         * modules/write (Depends-on): Likewise.
20764
20765 2011-05-03  Bruno Haible  <bruno@clisp.org>
20766
20767         Support for conditional dependencies.
20768         * doc/gnulib.texi (Module description): Document the syntax of
20769         conditional dependencies.
20770         * gnulib-tool: New option --conditional-dependencies.
20771         (func_usage): Document it.
20772         (cond_dependencies): New variable.
20773         (func_get_automake_snippet_conditional,
20774         func_get_automake_snippet_unconditional): New functions, extracted from
20775         func_get_automake_snippet.
20776         (func_get_automake_snippet): Use them.
20777         (sed_first_32_chars): New variable.
20778         (func_module_shellfunc_name): New function.
20779         (func_module_shellvar_name): New function.
20780         (func_module_conditional_name): New function.
20781         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
20782         func_cond_module_condition): New functions.
20783         (func_modules_transitive_closure): Add support for conditional
20784         dependencies.
20785         (func_emit_lib_Makefile_am): For a conditional module, enclose the
20786         conditional automake snippet in an automake conditional.
20787         (func_emit_autoconf_snippets): Emit shell functions that contain the
20788         code for conditional modules.
20789         (func_import, func_create_testdir): Update specification.
20790
20791 2011-05-03  Eric Blake  <eblake@redhat.com>
20792
20793         test-getaddrinfo: report error information
20794         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
20795
20796 2011-05-03  Jim Meyering  <meyering@redhat.com>
20797
20798         bootstrap: avoid build failure when $GZIP is set
20799         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
20800         program name.  If defined at all, it is supposed to list gzip options.
20801         Reported by Alan Curry in http://debbugs.gnu.org/8609
20802
20803 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
20804
20805         readme-release: new module with release instructions
20806         * modules/readme-release: New module.
20807         * top/README-release: New file, from coreutils, grep, diffutils.
20808         * MODULES.html.sh (Support for maintaining and releasing): Add it.
20809
20810 2011-05-02  Eric Blake  <eblake@redhat.com>
20811
20812         fflush: also replace fclose when fixing fflush
20813         * modules/fflush (Depends-on): Add fclose.
20814         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20815         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20816         memstreams with no backing fd.
20817         * doc/posix-functions/fclose.texi (fclose): Document the use of
20818         fflush module to fix the bug.
20819         * tests/test-fclose.c (main): Relax test when fclose is used in
20820         isolation.
20821
20822         fclose: add some tests
20823         * modules/fclose-tests: New test module.
20824         * tests/test-fclose.c: New file.
20825         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20826
20827         fclose: reduced dependencies
20828         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20829         simpler lseek.
20830         * lib/fclose.c (rpl_fclose): Likewise.
20831         Reported by Simon Josefsson.
20832
20833         exit: drop remaining clients
20834         * modules/argmatch (Depends-on): Replace exit with stdlib.
20835         * modules/copy-file (Depends-on): Likewise.
20836         * modules/execute (Depends-on): Likewise.
20837         * modules/exitfail (Depends-on): Likewise.
20838         * modules/obstack (Depends-on): Likewise.
20839         * modules/pagealign_alloc (Depends-on): Likewise.
20840         * modules/pipe-filter-gi (Depends-on): Likewise.
20841         * modules/pipe-filter-ii (Depends-on): Likewise.
20842         * modules/savewd (Depends-on): Likewise.
20843         * modules/spawn-pipe (Depends-on): Likewise.
20844         * modules/wait-process (Depends-on): Likewise.
20845         * modules/xsetenv (Depends-on): Likewise.
20846         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20847         * modules/git-merge-changelog (Depends-on): Likewise.
20848         * modules/long-options (Depends-on): Likewise.
20849         * modules/pt_chown (Depends-on): Likewise.
20850         * modules/sysexits (Depends-on): Likewise.
20851
20852         freading: relax license from LGPLv3+ to LGPLv2+
20853         * modules/freading (License): Relax LGPL version.
20854
20855 2011-05-02  Bruno Haible  <bruno@clisp.org>
20856
20857         fchdir: Remove unused dependencies.
20858         * modules/fchdir (Depends-on): Remove include_next.
20859
20860 2011-05-02  Bruno Haible  <bruno@clisp.org>
20861
20862         gnulib-tool: Refactor.
20863         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20864         from func_emit_autoconf_snippets.
20865         (func_emit_autoconf_snippets): Use it.
20866
20867 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20868
20869         * NEWS: Document removal of 'exit'.
20870         * modules/exit: Remove file.
20871
20872 2011-05-01  Bruno Haible  <bruno@clisp.org>
20873
20874         Update DEPENDENCIES.
20875         * DEPENDENCIES (gettext): Recommend the newest release.
20876         Reported by Simon Josefsson.
20877
20878 2011-05-01  Bruno Haible  <bruno@clisp.org>
20879
20880         gnulib-tool: Reduce code duplication.
20881         * gnulib-tool (func_emit_autoconf_snippets): New function.
20882         (func_import, func_create_testdir): Use it.
20883
20884 2011-04-30  Eric Blake  <eblake@redhat.com>
20885
20886         fclose: don't fail on non-seekable input stream
20887         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20888         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20889         since fflush is allowed to fail in that case.
20890
20891 2011-04-30  Bruno Haible  <bruno@clisp.org>
20892
20893         dup3: cleanup
20894         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20895
20896 2011-04-30  Bruno Haible  <bruno@clisp.org>
20897
20898         netdb: Make it work in C++ mode.
20899         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20900         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20901         module.
20902         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20903         gl_MODULE_INDICATOR_FOR_TESTS.
20904         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20905         * modules/netdb-c++-tests: New file.
20906         * tests/test-netdb-c++.cc: New file.
20907
20908 2011-04-30  Bruno Haible  <bruno@clisp.org>
20909
20910         New modules 'vfscanf', 'vscanf'.
20911         * modules/vfscanf: New file.
20912         * modules/vscanf: New file.
20913         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20914         here.
20915         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20916         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20917
20918 2011-04-30  Bruno Haible  <bruno@clisp.org>
20919
20920         passfd: Add comments.
20921         * lib/passfd.c: Add comments about platforms.
20922
20923 2011-04-30  Bruno Haible  <bruno@clisp.org>
20924
20925         sys_uio: Make <sys/uio.h> self-contained.
20926         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20927         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20928
20929 2011-04-30  Bruno Haible  <bruno@clisp.org>
20930
20931         sys_socket: Ensure 'struct iovec' definition.
20932         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20933         <sys/socket.h>.
20934         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20935
20936 2011-04-30  Bruno Haible  <bruno@clisp.org>
20937
20938         sys_uio: Protect definition of 'struct iovec'.
20939         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20940         it as a C struct.
20941
20942 2011-04-30  Bruno Haible  <bruno@clisp.org>
20943
20944         manywarnings: fix indentation
20945         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20946
20947 2011-04-30  Pádraig Brady <P@draigBrady.com>
20948
20949         manywarnings: add -Wno-missing-field-initializers if needed.
20950         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20951         option if it's needed to allow initialization with { 0, }
20952
20953 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20954
20955         announce-gen: cosmetic improvement
20956         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20957
20958 2011-04-29  Jim Meyering  <meyering@redhat.com>
20959
20960         vc-list-files: indent with spaces, not TABs
20961         * build-aux/vc-list-files: Convert leading TABs to spaces,
20962         to match the style of most other files in gnulib.
20963
20964         announce-gen: indent with spaces, not TABs
20965         * build-aux/announce-gen: Convert all TABs to spaces, to match
20966         the style of most other files in gnulib.
20967
20968 2011-04-29  Eric Blake  <eblake@redhat.com>
20969
20970         quotearg: avoid uninitialized variable use
20971         * lib/quotearg.c (quoting_options_from_style): Initialize
20972         remaining fields, and ensure that custom styles are only used via
20973         quoting_options rather than quoting_style.
20974
20975 2011-04-29  Jim Meyering  <meyering@redhat.com>
20976
20977         maint.mk: remove unused VC-tag variable
20978         * top/maint.mk (VC-tag): Remove unused variable.
20979
20980 2011-04-29  Bruno Haible  <bruno@clisp.org>
20981
20982         netdb: fix gai_strerror replacements
20983         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20984         * modules/netdb: Substitute it.
20985
20986 2011-04-29  Jim Meyering  <meyering@redhat.com>
20987
20988         test-getcwd.c: avoid new set-but-not-used warning
20989         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20990         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20991         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20992         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20993
20994         test-hash.c: avoid a new shadowing warning
20995         * tests/test-hash.c (main): Don't shadow "dup".
20996
20997 2011-04-28  Eric Blake  <eblake@redhat.com>
20998
20999         getaddrinfo: fix gai_strerror signature
21000         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
21001         and work around mingw with UNICODE defined.
21002         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
21003         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
21004         * modules/netdb (Makefile.am): Substitute it.
21005         * lib/netdb.in.h (gai_strerror): Declare replacement.
21006         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
21007         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
21008         the fix.
21009
21010         getsockopt: avoid compiler warning
21011         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
21012         Reported by Matthias Bolte.
21013
21014         tests: drop unused link dependency
21015         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
21016         * modules/dirent-safer-tests (Makefile.am): Likewise.
21017         * modules/fdopendir-tests (Makefile.am): Likewise.
21018         * modules/mkfifoat-tests (Makefile.am): Likewise.
21019         * modules/openat-safer-tests (Makefile.am): Likewise.
21020         * modules/openat-tests (Makefile.am): Likewise.
21021         * modules/readlinkat-tests (Makefile.am): Likewise.
21022         * modules/symlinkat-tests (Makefile.am): Likewise.
21023         * modules/linkat-tests (Makefile.am): Likewise.
21024         (Depends-on): Switch to filenamecat-lgpl.
21025         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
21026         LIBINTL.
21027         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
21028         * tests/test-linkat.c (main): Don't require xalloc.
21029
21030         hash, mgetgroups: drop xalloc dependency
21031         * lib/hash.c (includes): Adjust includes.
21032         * lib/mgetgroups.c (includes): Likewise.
21033         (xgetgroups): Move...
21034         * lib/xgetgroups.c: ...to new file.
21035         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
21036         * modules/xgetgroups: New file, split from...
21037         * modules/mgetgroups: ...here.
21038         (Depends-on): Add xalloc-oversized.
21039         * modules/hash (Depends-on): Likewise.
21040         * modules/hash-tests (Depends-on): Drop xalloc.
21041         (test_hash_LDADD): Drop unused library.
21042         * tests/test-hash.c (main): Break xalloc dependency.
21043         (includes): Drop unused include.
21044
21045         xalloc-oversized: new module
21046         * modules/xalloc-oversized: New module.
21047         * modules/xalloc (Depends-on): Add it.
21048         * lib/xalloc.h (xalloc_oversized): Move...
21049         * lib/xalloc-oversized.h: ...into new file.
21050
21051         utimecmp: drop dependency on xmalloc
21052         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
21053         due to memory pressure.
21054         * modules/utimecmp (Depends-on): Drop xalloc.
21055
21056 2011-04-27  Eric Blake  <eblake@redhat.com>
21057
21058         getcwd: fix mingw bugs
21059         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
21060         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
21061         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
21062
21063 2011-04-27  Bruno Haible  <bruno@clisp.org>
21064
21065         mkstemps: Ensure declaration on MacOS X 10.5.
21066         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
21067         * doc/glibc-functions/mkstemps.texi: Document header file problem on
21068         MacOS X.
21069
21070 2011-04-27  Bruno Haible  <bruno@clisp.org>
21071
21072         mkstemp: More documentation.
21073         * doc/posix-functions/mkstemp.texi: Document header file problem on
21074         MacOS X.
21075
21076 2011-04-27  Bruno Haible  <bruno@clisp.org>
21077
21078         mkstemp: Tweak configure message when cross-compiling.
21079         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
21080         result as a guess.
21081
21082 2011-04-27  Bruno Haible  <bruno@clisp.org>
21083
21084         clean-temp: Clarify what it does.
21085         * lib/clean-temp.h: Add more comments.
21086         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
21087         module.
21088         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
21089         * doc/glibc-functions/mkstemps.texi: Likewise.
21090         * doc/glibc-functions/mkostemps.texi: Likewise.
21091
21092 2011-04-27  Eric Blake  <eblake@redhat.com>
21093
21094         fchdir: avoid extra chdir and fix test
21095         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
21096         getcwd-lgpl.
21097         * lib/fchdir.c (get_name): Any absolute name will do; it does not
21098         have to be canonical.
21099         (canonicalize_file_name): Drop unused macro.
21100         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
21101
21102         filenamecat-lgpl: fix licence
21103         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
21104         when it was first created.
21105
21106         linkat, renameat: add missing dependency
21107         * modules/linkat (Depends-on): Require getcwd-lgpl.
21108         * modules/renameat (Depends-on): Likewise.
21109
21110         tests: reduce dependencies
21111         * tests/test-linkat.c (main): Use lighter-weight getcwd.
21112         * tests/test-renameat.c (main): Likewise.
21113         * modules/linkat-tests (Depends-on): Relax dependency.
21114         * modules/renameat-tests (Depends-on): Likewise.
21115         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
21116         dependency explicit.
21117
21118         save-cwd: reduce default dependency
21119         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
21120         * lib/save-cwd.c: Update comments.
21121         * NEWS: Document the semantic change.
21122
21123         getcwd: enhance tests
21124         * tests/test-getcwd-lgpl.c: New file, taken from...
21125         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
21126         repeat long path stress tests from m4 probe.
21127         * modules/getcwd-lgpl-tests: New module.
21128         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
21129         * m4/getcwd-abort-bug.m4: Update comment.
21130         * m4/getcwd-path-max.m4: Likewise.
21131
21132         getcwd-lgpl: new module
21133         * modules/getcwd-lgpl: New module.
21134         * lib/getcwd-lgpl.c: New file.
21135         * doc/posix-functions/getcwd.texi (getcwd): Document it.
21136         * MODULES.html.sh (lacking POSIX:2008): Likewise.
21137         * modules/getcwd (configure.ac): Set C witness.
21138         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
21139
21140         getcwd: tweak comments
21141         * m4/getcwd-abort-bug.m4: Fix comments.
21142         * m4/getcwd-path-max.m4: Likewise.
21143         * m4/getcwd.m4: Likewise.
21144
21145 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21146         and Eric Blake  <eblake@redhat.com>
21147
21148         mkstemp: replace if system version uses wrong permissions
21149         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
21150         read/write mode bits set in file created by mkstemp.
21151         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
21152
21153 2011-04-27  Eric Blake  <eblake@redhat.com>
21154
21155         passfd: avoid compiler warning
21156         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
21157         Reported by Laine Stump.
21158
21159 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
21160
21161         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
21162         required by the NetBSD (and perhaps other 4.4BSD derived) join.
21163
21164 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
21165         and Eric Blake  <eblake@redhat.com>
21166
21167         mkstemp: mention clean-temp module
21168         * lib/mkstemp.c: Add comment.
21169         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
21170
21171 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
21172
21173         inttypes: also provide default values for 32-bit tests
21174         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
21175         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
21176
21177 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
21178
21179         strtoumax: remove dependency on strtoimax
21180         This is like the strtoull change of yesterday.
21181         * modules/strtoumax (Files): Add lib/strtoimax.c.
21182         (Depends-on): Remove strtoimax and add verify.
21183
21184         inttypes-incomplete: new module
21185         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
21186         all but the PRI* and SCN* parts of gl_INTTYPES_H.
21187         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
21188         of gl_INTTYPES_H.
21189         (gl_INTTYPES_H): Rewrite in terms of these new macros.
21190         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
21191         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
21192         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
21193         * modules/strtoumax, modules/xstrtol (Depends-on):
21194         Depend on inttypes-incomplete, not inttypes.
21195         * modules/inttypes-incomplete: New module, containing the contents
21196         of the old modules/inttypes module, except that the Files: section
21197         omits m4/inttypes-pri.m4, and the configure.ac section invokes
21198         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
21199         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
21200         (Depends-on): Depend only on inttypes-incomplete.
21201         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
21202
21203         inttypes: omit now-redundant strtoimax and strtoumax work
21204         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
21205         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
21206
21207         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
21208         This supports apps that need pointers to strtoimax and strtoumax,
21209         and ports to HP-UX 11.00 64.bit, which has macros that expand to
21210         nonexistent functions.  See
21211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
21212         et seq.
21213         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
21214         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
21215         a macro.
21216         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
21217
21218 2011-04-25  Simon Josefsson  <simon@josefsson.org>
21219
21220         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
21221
21222 2011-04-25  Bruno Haible  <bruno@clisp.org>
21223
21224         strtol, strtoul: Mark modules as obsolete.
21225         * modules/strtol (Status, Notice): New sections.
21226         * modules/strtoul (Status, Notice): New sections.
21227
21228 2011-04-25  Bruno Haible  <bruno@clisp.org>
21229
21230         strtod: Remove check for strtod, unless supporting old platforms.
21231         * modules/strtod-obsolete: New file.
21232         * m4/strtod-obsolete.m4: New file.
21233         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
21234         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
21235         * modules/strtod (Depends-on): Add strtod-obsolete.
21236         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
21237
21238 2011-04-25  Bruno Haible  <bruno@clisp.org>
21239
21240         strcase: Make module obsolete.
21241         * modules/strcase (Status, Notice): New sections.
21242
21243 2011-04-25  Bruno Haible  <bruno@clisp.org>
21244
21245         dup2: Remove check for dup2, unless supporting old obsolete platforms.
21246         * modules/dup2-obsolete: New file.
21247         * m4/dup2-obsolete.m4: New file.
21248         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
21249         gl_FUNC_DUP2_OBSOLETE is not also defined.
21250         * modules/dup2 (Depends-on): Add dup2-obsolete.
21251         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
21252
21253 2011-04-25  Bruno Haible  <bruno@clisp.org>
21254
21255         strnlen: Avoid memchr related link error on old obsolete platforms.
21256         * modules/memchr-obsolete: New file.
21257         * m4/memchr-obsolete.m4: New file.
21258         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
21259         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
21260         * modules/memchr (Depends-on): Add memchr-obsolete.
21261         * modules/strnlen (Depends-on): Likewise.
21262         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
21263
21264 2011-04-25  Jim Meyering  <meyering@redhat.com>
21265
21266         maint.mk: makefile_at_at_check extend and clean up
21267         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
21268         in addition to */Makefile.am.
21269         Exempt legitimate uses of @VAR@ notation, e.g.,
21270         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
21271         Remove obsolete coreutils-specific comment.
21272         Prompted by discussion here:
21273         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
21274
21275 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
21276
21277         strtoul: remove dependency on strtol
21278         This is so that 'configure' need not check for strtol merely because
21279         the application needs strtoul.
21280         * modules/strtoul (Files): Add lib/strtol.c.
21281         (Depends-on): Remove strtol.
21282
21283         strtoull: remove dependency on strtoul
21284         This is like the strtoll change.
21285         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
21286         (Depends-on): Remove strtoul.
21287
21288         strtoll: remove dependency on strtol
21289         This is so that 'configure' need not check for strtol merely because
21290         the application needs strtoll.
21291         * modules/strtoll (Files): Add lib/strtol.c.
21292         (Depends-on): Remove strtol.
21293
21294 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21295
21296         inttypes: Move some configure check to module 'imaxdiv'.
21297         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
21298         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
21299         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
21300
21301 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21302
21303         inttypes: Move some configure check to module 'imaxabs'.
21304         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
21305         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
21306         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
21307
21308 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21309
21310         inttypes: Remove configure tests that are not needed since 2009-12-31.
21311         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
21312         gl_cv_header_working_inttypes_h.
21313
21314 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
21315
21316         * modules/strnlen (Depends-on): Remove memchr.
21317         The strnlen implementation doesn't need the memchr module's fixes; see
21318         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
21319
21320         strtol: remove dependency on wchar
21321         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
21322         * modules/strtol (Depends-on): Remove wchar.
21323
21324 2011-04-21  Eric Blake  <eblake@redhat.com>
21325
21326         passfd: fix test regression on Linux
21327         * modules/passfd-tests (configure.ac): Correct socketpair check.
21328
21329         passfd: speed up configure and drop unused code
21330         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
21331         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
21332         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
21333         Instead of probing at configure for unix_scm_rights_bsd44_way,
21334         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
21335         check to a struct member probe.
21336         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
21337         (sendfd, recvfd): Update preprocessor checks.
21338         * modules/passfd (Files): Reflect rename, and drop unused file.
21339         (Depends-on): Drop unused dependency.
21340
21341         passfd: allow compilation on mingw
21342         * modules/sys_socket (Depends-on): Add sys_uio.
21343         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
21344         iovec and a minimal struct msghdr.
21345         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
21346         * tests/test-sys_socket.c (main): Enhance test.
21347         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
21348         guaranteed to provide what we need.
21349         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
21350         * modules/passfd-tests (Depends-on): Add sys_wait.
21351         * tests/test-passfd.c (main): Skip test on mingw, for now.
21352         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
21353         partial 'struct msghdr' implementation.
21354
21355         sys_uio: new module
21356         * modules/sys_uio: New module.
21357         * modules/sys_uio-tests: Likewise.
21358         * lib/sys_uio.in.h: New file.
21359         * m4/sys_uio_h.m4: Likewise.
21360         * tests/test-sys_uio.c: Likewise.
21361         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
21362         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
21363
21364 2011-04-20  Jim Meyering  <meyering@redhat.com>
21365
21366         useless-if-before-free: avoid false-positive
21367         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
21368         disjunct so that it too requires a terminating ";".  Without that,
21369         this script would identify as useless one statement from gcc that
21370         was not:
21371           if (aligned_ptr)
21372             free (((void **) aligned_ptr) [-1]);
21373
21374 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
21375
21376         doc: update users.txt.
21377         * users.txt: Add barcode.
21378
21379 2011-04-19  Bruno Haible  <bruno@clisp.org>
21380
21381         ioctl: Remove link dependency on native Windows.
21382         * lib/fd-hook.h: Renamed from lib/close-hook.h.
21383         (gl_close_fn, gl_ioctl_fn): New types.
21384         (struct fd_hook): Renamed from struct close_hook. Change type of
21385         private_close_fn field. Add private_ioctl_fn field.
21386         (close_hook_fn): Add parameter for primary close method.
21387         (execute_close_hooks, execute_all_close_hooks): Likewise.
21388         (ioctl_hook_fn): New type.
21389         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
21390         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21391         argument.
21392         (unregister_fd_hook): Renamed from unregister_close_hook.
21393         * lib/fd-hook.c: Renamed from lib/close-hook.c.
21394         Don't include <unistd.h>.
21395         (close): Remove undef.
21396         (anchor): Update.
21397         (execute_close_hooks): Add argument for primary close method.
21398         (execute_all_close_hooks): Likewise.
21399         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
21400         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
21401         argument. Allow each argument to be NULL.
21402         (unregister_fd_hook): Renamed from unregister_close_hook.
21403         * lib/close.c (rpl_close): Pass 'close' function pointer to
21404         execute_all_close_hooks.
21405         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
21406         (primary_ioctl): New function.
21407         (ioctl): Don't call ioctlsocket here. Instead, call
21408         execute_all_ioctl_hooks.
21409         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
21410         close method.
21411         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
21412         (fd_sockets_hook): Renamed from close_sockets_hook.
21413         (gl_sockets_startup, gl_sockets_cleanup): Update.
21414         * modules/fd-hook: Renamed from modules/close-hook. Update.
21415         * modules/close (Depends-on): Add fd-hook, remove close-hook.
21416         * modules/sockets (Depends-on): Likewise.
21417         * modules/ioctl (Depends-on): Add fd-hook.
21418         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
21419         GNULIB_SOCKET.
21420
21421 2011-04-19  Bruno Haible  <bruno@clisp.org>
21422
21423         Move the support of O_NONBLOCK in open() to the 'open' module.
21424         * modules/nonblocking (Depends-on): Remove 'open'.
21425         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
21426         gl_cv_have_open_O_NONBLOCK.
21427         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
21428         O_NONBLOCK support.
21429         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
21430
21431 2011-04-17  Bruno Haible  <bruno@clisp.org>
21432
21433         pipe2: Simplify code.
21434         * lib/pipe2.c (pipe2): Reduce code duplication.
21435
21436 2011-04-17  Bruno Haible  <bruno@clisp.org>
21437
21438         nonblocking: Add comment.
21439         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
21440
21441 2011-04-17  Bruno Haible  <bruno@clisp.org>
21442
21443         nonblocking: Add tests for sockets.
21444         * tests/test-nonblocking-socket.sh: New file.
21445         * tests/test-nonblocking-socket-main.c: New file.
21446         * tests/test-nonblocking-socket-child.c: New file.
21447         * tests/test-nonblocking-socket.h: New file.
21448         * tests/socket-server.h: New file.
21449         * tests/socket-client.h: New file.
21450         * modules/nonblocking-socket-tests: New file.
21451         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
21452
21453 2011-04-17  Bruno Haible  <bruno@clisp.org>
21454
21455         nonblocking: Add tests for pipes.
21456         * tests/test-nonblocking-pipe.sh: New file.
21457         * tests/test-nonblocking-pipe-main.c: New file.
21458         * tests/test-nonblocking-pipe-child.c: New file.
21459         * tests/test-nonblocking-pipe.h: New file.
21460         * tests/test-nonblocking-writer.h: New file.
21461         * tests/test-nonblocking-reader.h: New file.
21462         * tests/test-nonblocking-misc.h: New file.
21463         * modules/nonblocking-pipe-tests: New file.
21464         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
21465
21466 2011-04-16  Bruno Haible  <bruno@clisp.org>
21467
21468         gettext: Clarify the needed programmer actions.
21469         * modules/gettext (Notice): New field.
21470         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
21471
21472 2011-04-16  Bruno Haible  <bruno@clisp.org>
21473
21474         strchrnul: Tweak last commit.
21475         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
21476         bug.
21477         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
21478         as in _GL_FUNCDECL_SYS.
21479         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
21480         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
21481
21482 2011-04-15  Eric Blake  <eblake@redhat.com>
21483
21484         strchrnul: work around cygwin bug
21485         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
21486         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
21487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
21488         * modules/string (Makefile.am): Substitute it.
21489         * lib/string.in.h (strchrnul): Use it.
21490
21491 2011-04-15  Bruno Haible  <bruno@clisp.org>
21492
21493         Don't require lib/stdio-write.c when only module 'stdio' is used.
21494         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
21495         invocation.
21496         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
21497
21498 2011-04-14  Bruno Haible  <bruno@clisp.org>
21499
21500         Support non-blocking pipe I/O in read() on native Windows.
21501         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
21502         (read): New declaration.
21503         * lib/read.c: New file.
21504         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
21505         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
21506         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
21507         vscanf): New declarations.
21508         * lib/stdio-read.c: New file.
21509         * m4/read.m4: New file.
21510         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
21511         REPLACE_READ.
21512         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
21513         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21514         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
21515         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
21516         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
21517         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21518         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21519         * modules/read: New file.
21520         * modules/nonblocking (Files): Add lib/stdio-read.c.
21521         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
21522         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
21523         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
21524         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
21525         * modules/pread (Depends-on): Add read.
21526         * modules/safe-read (Depends-on): Likewise.
21527         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
21528         gets, scanf, vfscanf, vscanf): Verify signatures.
21529         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
21530         problem with non-blocking pipes.
21531         * doc/posix-functions/fgetc.texi: Likewise.
21532         * doc/posix-functions/fgets.texi: Likewise.
21533         * doc/posix-functions/fread.texi: Likewise.
21534         * doc/posix-functions/fscanf.texi: Likewise.
21535         * doc/posix-functions/getc.texi: Likewise.
21536         * doc/posix-functions/getchar.texi: Likewise.
21537         * doc/posix-functions/gets.texi: Likewise.
21538         * doc/posix-functions/scanf.texi: Likewise.
21539         * doc/posix-functions/vfscanf.texi: Likewise.
21540         * doc/posix-functions/vscanf.texi: Likewise.
21541
21542 2011-04-14  Bruno Haible  <bruno@clisp.org>
21543
21544         Support non-blocking pipe I/O in write() on native Windows.
21545         * lib/write.c (rpl_write): Split a write request that failed merely
21546         because the byte count was larger than the pipe buffer's size.
21547         * doc/posix-functions/write.texi: Mention the problem with large byte
21548         counts.
21549
21550 2011-04-14  Bruno Haible  <bruno@clisp.org>
21551
21552         wchar: Ensure that wchar_t gets defined on uClibc.
21553         * lib/wchar.in.h: On uClibc, include <stddef.h>.
21554         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
21555
21556 2011-04-13  Bruno Haible  <bruno@clisp.org>
21557
21558         safe-write, full-read: Avoid unnecessary compilation units.
21559         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
21560         (Depends-on): Remove safe-read. Add ssize_t.
21561         * modules/full-read (Files): Add lib/full-write.c.
21562         (Depends-on): Add full-write.
21563
21564 2011-04-13  Bruno Haible  <bruno@clisp.org>
21565
21566         Support non-blocking pipe I/O and SIGPIPE in pwrite().
21567         * modules/pwrite (Depends-on): Add 'write'.
21568
21569 2011-04-13  Bruno Haible  <bruno@clisp.org>
21570
21571         Support non-blocking pipe I/O in write() on native Windows.
21572         * lib/unistd.in.h (write): Enable replacement also if
21573         GNULIB_UNISTD_H_NONBLOCKING is 1.
21574         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
21575         (rpl_write): When failing to write on a non-blocking pipe, change
21576         errno from ENOSPC to EAGAIN.
21577         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
21578         putchar, puts, vfprintf, vprintf): Enable replacement also if
21579         GNULIB_STDIO_H_NONBLOCKING is 1.
21580         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
21581         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
21582         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
21583         CALL_WITH_SIGPIPE_EMULATION.
21584         (CALL_WITH_SIGPIPE_EMULATION): Use them.
21585         * m4/nonblocking.m4: New file.
21586         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
21587         for non-blocking I/O support.
21588         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21589         GNULIB_UNISTD_H_NONBLOCKING.
21590         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
21591         required for non-blocking I/O support.
21592         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
21593         * modules/nonblocking (Files): Add m4/nonblocking.m4,
21594         lib/stdio-write.c, m4/asm-underscore.m4.
21595         (Depends-on): Add stdio, unistd.
21596         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
21597         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
21598         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
21599         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
21600         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
21601         problem with non-blocking pipes.
21602         * doc/posix-functions/fputc.texi: Likewise.
21603         * doc/posix-functions/fputs.texi: Likewise.
21604         * doc/posix-functions/fwrite.texi: Likewise.
21605         * doc/posix-functions/printf.texi: Likewise.
21606         * doc/posix-functions/putc.texi: Likewise.
21607         * doc/posix-functions/putchar.texi: Likewise.
21608         * doc/posix-functions/puts.texi: Likewise.
21609         * doc/posix-functions/vfprintf.texi: Likewise.
21610         * doc/posix-functions/vprintf.texi: Likewise.
21611         * doc/posix-functions/write.texi: Likewise.
21612
21613 2011-04-10  Jim Meyering  <meyering@redhat.com>
21614
21615         maint.mk: prohibit doubled words
21616         Detect them also when they're separated by a newline.
21617         There are 3 ways to customize it:
21618           - disable the test on a per file basis, as usual with rules using
21619             $(VC_LIST_EXCEPT)
21620           - replace the default doubled-word-selecting regexp (affects all files)
21621           - ignore a particular file-vs-doubled-word match
21622         I nearly used that last one to ignore the "is is" match in
21623         coreutils' NEWS file, since the text was "ls -is is ..."
21624         To do that, I would have added this line to cfg.mk:
21625           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
21626         but it would have ignored any "is is" match in NEWS.
21627         Low probability, but still...
21628         Instead, I changed the text, slightly:
21629           -  ls -is is now consistent with ls -lis in ignoring values returned
21630           +  "ls -is" is now consistent with ls -lis in ignoring values returned
21631         * top/maint.mk (prohibit_double_word_RE_): Provide default.
21632         (prohibit_doubled_word_): Define.
21633         (sc_prohibit_doubled_word): New rule.
21634         (sc_prohibit_the_the): Remove.  Subsumed by the above.
21635
21636 2011-04-10  Jim Meyering  <meyering@redhat.com>
21637
21638         maint: fix doubled-word typo in comment
21639         * m4/gethostname.m4: s/is is/it is/
21640         * m4/getdomainname.m4: Likewise.
21641
21642 2011-04-10  Jim Meyering  <meyering@redhat.com>
21643
21644         maint: remove doubled word: s/it it/it/
21645         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
21646
21647 2011-04-10  Jim Meyering  <meyering@redhat.com>
21648
21649         maint.mk: remove useless semicolon and backslash
21650         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
21651         semicolon and backslash.
21652
21653 2011-04-10  Bruno Haible  <bruno@clisp.org>
21654
21655         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
21656         * modules/stdint-tests (Depends-on): Add wchar.
21657
21658 2011-04-10  Jim Meyering  <meyering@redhat.com>
21659
21660         maint: remove doubled words in comments, e.g., s/a a/a/
21661         * lib/strptime.c (day_of_the_week): s/the the/the/
21662         * tests/test-chown.h (test_chown): s/a a/a/
21663
21664         test-chown.h: correct a cast
21665         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
21666         when the destination is a stat.st_gid.
21667
21668 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
21669
21670         getaddrinfo: Fix test for sa_len member.
21671         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
21672         include <sys/types.h> before <sys/socket.h>.
21673
21674 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
21675
21676         maint: change "can not" to "cannot"
21677         * doc/posix-functions/iconv.texi (iconv): This one crossed line
21678         boundaries.
21679
21680 2011-04-09  Jim Meyering  <meyering@redhat.com>
21681
21682         maint: change "a a" to "a"
21683         * tests/test-lchown.h (test_lchown): s/a a/a/
21684
21685         maint.mk: prohibit \<the the\>
21686         * top/maint.mk (sc_prohibit_the_the): New rule.
21687
21688         maint: fix "the the" in comment
21689         * lib/count-one-bits.h: s/the the/the/
21690
21691         maint: change "can not" to "cannot"
21692         But do not change the occurrences in maintain.texi or in
21693         build-aux/po/Makefile.in.in, which I presume comes from gettext.
21694         * doc/gnulib-tool.texi: s/can not/cannot/
21695         * doc/posix-functions/accept.texi (accept): Likewise.
21696         * doc/posix-functions/socket.texi (socket): Likewise.
21697         * lib/mbrtowc.c: Likewise.
21698
21699         maint.mk: prohibit use of "can not"
21700         * top/maint.mk (sc_prohibit_can_not): New rule.
21701         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
21702
21703 2011-04-09  Bruno Haible  <bruno@clisp.org>
21704
21705         careadlinkat: Guard against misuse of careadlinkatcwd.
21706         * lib/careadlinkat.c: Include <stdlib.h>.
21707         (careadlinkatcwd): Check that the fd argument is as expected.
21708
21709 2011-04-09  Bruno Haible  <bruno@clisp.org>
21710
21711         careadlinkat: Use common coding style.
21712         * lib/careadlinkat.c: Move gnulib includes after system includes.
21713
21714 2011-04-09  Bruno Haible  <bruno@clisp.org>
21715
21716         careadlinkat: Clarify specification.
21717         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
21718         (careadlinkatcwd): Add comment.
21719         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
21720
21721 2011-04-09  Bruno Haible  <bruno@clisp.org>
21722
21723         areadlinkat: Avoid link error on many platforms.
21724         * modules/areadlinkat (Depends-on): Add areadlink.
21725
21726 2011-04-09  Bruno Haible  <bruno@clisp.org>
21727
21728         allocator, careadlinkat: Fix double-inclusion guard.
21729         * lib/allocator.h: Fix double-inclusion guard.
21730         * lib/careadlinkat.h: Likewise.
21731
21732 2011-04-09  Bruno Haible  <bruno@clisp.org>
21733
21734         relocatable-prog-wrapper: Update after module 'areadlink' changed.
21735         * lib/relocwrapper.c: Update dependencies hierarchy.
21736         * build-aux/install-reloc: Update list of files to be compiled.
21737         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
21738         lib/allocator.[hc].
21739
21740 2011-04-08  Eric Blake  <eblake@redhat.com>
21741
21742         strftime: silence gnulib-tool warning
21743         * modules/strftime-tests (Depends-on): Drop automatic dependency.
21744
21745 2011-04-08  Bruno Haible  <bruno@clisp.org>
21746
21747         verify: Fix syntax error with GCC 4.6 in C++ mode.
21748         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
21749         (HAVE_STATIC_ASSERT): New macro.
21750         (verify_true, verify): Use 'static_assert' if it is supported and
21751         '_Static_assert' is not supported.
21752
21753 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
21754
21755         allocator: New module.
21756         * modules/allocator, lib/allocator.c: New files.
21757         * lib/allocator.h (stdlib_allocator): New decl.
21758         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
21759         Remove.  Do not include <stdlib.h>.
21760         (careadlinkat): Use stdlib_allocator instead of rolling our own.
21761         * modules/careadlinkat (Files): Remove lib/allocator.h.
21762         (Depends-on): Add allocator.
21763
21764         stdlib: let modules use system malloc, realloc
21765         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
21766         if !_GL_USE_STDLIB_ALLOC.
21767         (malloc, realloc): Limit this change to a smaller scope.
21768
21769         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
21770         (malloc, realloc): Don't #undef; no longer needed.
21771         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21772         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21773         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21774         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21775         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21776         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21777         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
21778         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
21779
21780         careadlinkat: rename members to avoid problem
21781         * lib/allocator.h (struct allocator): Rename members from
21782         malloc/realloc to allocate/reallocate, to avoid problems if malloc
21783         and realloc are #define'd.  Reported by Eric Blake in
21784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
21785         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
21786
21787 2011-04-08  Eric Blake  <eblake@redhat.com>
21788
21789         nonblocking: reduce dependency
21790         * tests/test-nonblocking.c: Only test sockets when in use.
21791         * modules/nonblocking-tests (Depends-on): Drop socket.
21792         (Makefile.am): Link even if sockets are not present.
21793         * modules/pipe2-tests (Makefile.am): Likewise.
21794         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
21795
21796         pipe2: fix O_NONBLOCK support on mingw
21797         * modules/pipe2 (Depends-on): Add nonblocking.
21798         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
21799         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
21800         * tests/test-nonblocking.c (main): Likewise.
21801         * modules/pipe2-tests (Makefile.am): Avoid link failure.
21802
21803         fcntl-h: fix O_ACCMODE on cygwin
21804         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
21805         * lib/fcntl.in.h (O_ACCMODE): Fix it.
21806
21807         pipe-filter: drop O_NONBLOCK workarounds
21808         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
21809         * modules/pipe-filter-ii (Depends-on): Likewise.
21810         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21811
21812         nonblocking: provide O_NONBLOCK for mingw
21813         * modules/nonblocking (Depends-on): Add open.
21814         (configure.ac): Set new witness macro.
21815         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21816         * modules/fcntl-h (Makefile.am): Substitute it.
21817         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21818         nonblocking module is in use.
21819         * lib/nonblocking.c: Adjust portability test.
21820         * lib/open.c (open): Don't let native open see gnulib flag.
21821         * tests/test-fcntl-h.c (main): Enhance test.
21822         * tests/test-open.h (test_open): Likewise.
21823         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21824
21825         careadlinkat: fix compilation error on mingw
21826         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21827         within struct allocator.
21828
21829 2011-04-06  Eric Blake  <eblake@redhat.com>
21830
21831         binary-io: relicense under LGPLv2+
21832         * modules/binary-io (License): Relax to LGPLv2+.
21833         Requested for libvirt, and required by pipe2.
21834
21835 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21836
21837         verify: use _Static_assert if available
21838         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21839         (verify_true, verify): Use it if available.  This generates better
21840         diagnostics with GCC 4.6.0 and later.
21841
21842 2011-04-05  Bruno Haible  <bruno@clisp.org>
21843
21844         Remove leftover generated .h files after config.status changed.
21845
21846         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21847         GL_GENERATE_ALLOCA_H.
21848         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21849         GL_GENERATE_ALLOCA_H evaluates to false.
21850
21851         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21852         GL_GENERATE_ARGZ_H.
21853         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21854         evaluates to false.
21855
21856         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21857         GL_GENERATE_BYTESWAP_H.
21858         * modules/byteswap (Makefile.am): Remove byteswap.h if
21859         GL_GENERATE_BYTESWAP_H evaluates to false.
21860
21861         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21862         GL_GENERATE_ERRNO_H.
21863         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21864         evaluates to false.
21865
21866         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21867         GL_GENERATE_FLOAT_H.
21868         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21869         evaluates to false.
21870
21871         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21872         GL_GENERATE_FNMATCH_H.
21873         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21874         GL_GENERATE_FNMATCH_H evaluates to false.
21875
21876         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21877         GL_GENERATE_GLOB_H.
21878         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21879         evaluates to false.
21880
21881         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21882         automake conditional GL_GENERATE_ICONV_H.
21883         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21884         evaluates to false.
21885
21886         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21887         GL_GENERATE_NETINET_IN_H.
21888         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21889         GL_GENERATE_NETINET_IN_H evaluates to false.
21890
21891         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21892         conditional GL_GENERATE_PTHREAD_H.
21893         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21894         * modules/pthread (Makefile.am): Remove pthread.h if
21895         GL_GENERATE_PTHREAD_H evaluates to false.
21896
21897         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21898         GL_GENERATE_SCHED_H.
21899         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21900         evaluates to false.
21901
21902         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21903         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21904         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21905         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21906
21907         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21908         GL_GENERATE_STDARG_H.
21909         * modules/stdarg (Makefile.am): Remove stdarg.h if
21910         GL_GENERATE_STDARG_H evaluates to false.
21911
21912         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21913         GL_GENERATE_STDBOOL_H.
21914         * modules/stdbool (Makefile.am): Remove stdbool.h if
21915         GL_GENERATE_STDBOOL_H evaluates to false.
21916
21917         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21918         conditional GL_GENERATE_STDDEF_H.
21919         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21920         * modules/stddef (Makefile.am): Remove stddef.h if
21921         GL_GENERATE_STDDEF_H evaluates to false.
21922
21923         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21924         GL_GENERATE_STDINT_H.
21925         * modules/stdint (Makefile.am): Remove stdint.h if
21926         GL_GENERATE_STDINT_H evaluates to false.
21927
21928         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21929         GL_GENERATE_SYSEXITS_H.
21930         * modules/sysexits (Makefile.am): Remove sysexits.h if
21931         GL_GENERATE_SYSEXITS_H evaluates to false.
21932
21933         Reported by Karl Berry and Ralf Wildenhues.
21934
21935 2011-04-05  Bruno Haible  <bruno@clisp.org>
21936
21937         Ensure to rebuild generated .h files when config.status has changed.
21938         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21939         config.status.
21940         * modules/ctype (Makefile.am): Likewise.
21941         * modules/dirent (Makefile.am): Likewise.
21942         * modules/errno (Makefile.am): Likewise.
21943         * modules/fcntl-h (Makefile.am): Likewise.
21944         * modules/float (Makefile.am): Likewise.
21945         * modules/getopt-posix (Makefile.am): Likewise.
21946         * modules/glob (Makefile.am): Likewise.
21947         * modules/iconv-h (Makefile.am): Likewise.
21948         * modules/inttypes (Makefile.am): Likewise.
21949         * modules/langinfo (Makefile.am): Likewise.
21950         * modules/locale (Makefile.am): Likewise.
21951         * modules/math (Makefile.am): Likewise.
21952         * modules/netdb (Makefile.am): Likewise.
21953         * modules/netinet_in (Makefile.am): Likewise.
21954         * modules/poll-h (Makefile.am): Likewise.
21955         * modules/pthread (Makefile.am): Likewise.
21956         * modules/pty (Makefile.am): Likewise.
21957         * modules/sched (Makefile.am): Likewise.
21958         * modules/search (Makefile.am): Likewise.
21959         * modules/selinux-h (Makefile.am): Likewise.
21960         * modules/signal (Makefile.am): Likewise.
21961         * modules/spawn (Makefile.am): Likewise.
21962         * modules/stdarg (Makefile.am): Likewise.
21963         * modules/stdbool (Makefile.am): Likewise.
21964         * modules/stddef (Makefile.am): Likewise.
21965         * modules/stdint (Makefile.am): Likewise.
21966         * modules/stdio (Makefile.am): Likewise.
21967         * modules/stdlib (Makefile.am): Likewise.
21968         * modules/string (Makefile.am): Likewise.
21969         * modules/strings (Makefile.am): Likewise.
21970         * modules/sys_file (Makefile.am): Likewise.
21971         * modules/sys_ioctl (Makefile.am): Likewise.
21972         * modules/sys_select (Makefile.am): Likewise.
21973         * modules/sys_socket (Makefile.am): Likewise.
21974         * modules/sys_stat (Makefile.am): Likewise.
21975         * modules/sys_time (Makefile.am): Likewise.
21976         * modules/sys_times (Makefile.am): Likewise.
21977         * modules/sys_utsname (Makefile.am): Likewise.
21978         * modules/sys_wait (Makefile.am): Likewise.
21979         * modules/sysexits (Makefile.am): Likewise.
21980         * modules/termios (Makefile.am): Likewise.
21981         * modules/time (Makefile.am): Likewise.
21982         * modules/unistd (Makefile.am): Likewise.
21983         * modules/wchar (Makefile.am): Likewise.
21984         * modules/wctype-h (Makefile.am): Likewise.
21985         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21986
21987 2011-04-05  Bruno Haible  <bruno@clisp.org>
21988
21989         pipe2: Relicense under LGPLv2+.
21990         * modules/pipe2 (License): Change to LGPLv2+.
21991         Requested by Eric Blake, for libvirt.
21992
21993 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21994
21995         bootstrap: compute gnulib_extra_files after updating build_aux
21996         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21997         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21998
21999 2011-04-05  Eric Blake  <eblake@redhat.com>
22000
22001         bootstrap: preserve git whitelist item sorting
22002         * build-aux/bootstrap (sort_patterns): New function.
22003         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
22004
22005 2011-04-05  Simon Josefsson  <simon@josefsson.org>
22006
22007         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
22008         sc_space_tab check.
22009
22010 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
22011
22012         areadlink, areadlinkat: rewrite in terms of careadlinkat
22013         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
22014         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
22015         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
22016         (malloc, realloc): Remove #undefs.
22017         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
22018         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
22019         readlink, ssize_t, stdint, unistd.
22020         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
22021         areadlink, stdint.
22022
22023         careadlinkat: new module
22024         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
22025         * modules/careadlinkat: New files, written by me with
22026         a review and feedback from Ben Pfaff in
22027         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
22028
22029 2011-04-01  Bruno Haible  <bruno@clisp.org>
22030
22031         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
22032         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
22033         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
22034         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
22035         Reported by Bruce Korb <bruce.korb@gmail.com>.
22036
22037 2011-04-01  Bruno Haible  <bruno@clisp.org>
22038
22039         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
22040         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
22041         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
22042         * modules/wcpcpy (Depends-on): Add extensions.
22043         * modules/wcpncpy (Depends-on): Likewise.
22044         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
22045         systems.
22046         * doc/posix-functions/wcpncpy.texi: Likewise.
22047         * doc/posix-functions/wcwidth.texi: Likewise.
22048
22049 2011-03-31  Eric Blake  <eblake@redhat.com>
22050
22051         nonblocking: fix mingw test failures
22052         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
22053         non-blocking flag on regular file.
22054         (get_nonblocking_flag): Set errno on invalid fd.
22055         * tests/test-nonblocking.c (main): Avoid test failure on
22056         directories if fchdir is not active.
22057         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
22058
22059 2011-03-31  Bruno Haible  <bruno@clisp.org>
22060
22061         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
22062         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
22063         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
22064         Reported by Simon Josefsson <simon@josefsson.org>.
22065
22066 2011-03-31  Bruno Haible  <bruno@clisp.org>
22067         and Eric Blake  <eblake@redhat.com>
22068
22069         nonblocking: new module
22070         * modules/nonblocking: New module.
22071         * modules/nonblocking-tests: Likewise.
22072         * lib/nonblocking.h: New file.
22073         * lib/nonblocking.c: Likewise.
22074         * tests/test-nonblocking.c: New test.
22075         * lib/ioctl.c (ioctl) [mingw]: Update comment.
22076
22077 2011-03-30  Bruno Haible  <bruno@clisp.org>
22078
22079         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
22080         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
22081         instead of 'printf' format for GCC >= 4.4.
22082         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
22083         (fprintf, printf, vfprintf, vprintf): Declare with
22084         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
22085         the system's vfprintf() function.
22086         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
22087
22088 2011-03-30  Eric Blake  <eblake@redhat.com>
22089
22090         passfd: fix scoping bug
22091         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
22092         before sendmsg/recvmsg.
22093
22094         passfd: standardize coding conventions
22095         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
22096         can be learned at compile time.
22097         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
22098         ifdefs.
22099         (sendfd, recvfd): Follow gnulib code conventions.
22100
22101         passfd: fix incorrect sendmsg arguments
22102         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
22103         incorrect msg_controllen value.
22104         * modules/passfd-tests (Depends-on): Check for alarm.
22105         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
22106         Reported by Bastien ROUCARIES.
22107
22108 2011-03-30  Bruno Haible  <bruno@clisp.org>
22109
22110         c-strcasestr: Relicense under LGPLv2+.
22111         * modules/c-strcasestr (License): Change to LGPLv2+.
22112         Requested by Eric Blake, for libvirt.
22113
22114 2011-03-30  Simon Josefsson  <simon@josefsson.org>
22115
22116         * users.txt: Add libidn2.  Fix libtasn1 link.
22117
22118 2011-03-30  Jim Meyering  <meyering@redhat.com>
22119
22120         tests: readlink* ("",... fails with EINVAL on newer kernels
22121         readlink and readlinkat have typically failed with ENOENT for
22122         the invalid, empty file name,  "".  However, with the advent
22123         of linux-2.6.39, they fail with EINVAL.
22124         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
22125         when operating on the empty file name.
22126         * tests/test-readlink.h (test_readlink): Likewise.
22127
22128 2011-03-29  Bruno Haible  <bruno@clisp.org>
22129
22130         Relicense some modules under LGPLv2+, for libidn2.
22131         * modules/array-mergesort (License): Change to LGPLv2+.
22132         * modules/c-strcaseeq (License): Likewise.
22133         * modules/striconveh (License): Likewise.
22134         * modules/striconveha (License): Likewise.
22135         * modules/uniconv/base (License): Likewise.
22136         * modules/uniconv/u8-conv-from-enc (License): Likewise.
22137         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
22138         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
22139         * modules/unictype/base (License): Likewise.
22140         * modules/unictype/bidiclass-of (License): Likewise.
22141         * modules/unictype/category-M (License): Likewise.
22142         * modules/unictype/category-none (License): Likewise.
22143         * modules/unictype/category-of (License): Likewise.
22144         * modules/unictype/category-test (License): Likewise.
22145         * modules/unictype/category-test-withtable (License): Likewise.
22146         * modules/unictype/combining-class (License): Likewise.
22147         * modules/unictype/joiningtype-of (License): Likewise.
22148         * modules/unictype/scripts (License): Likewise.
22149         * modules/uninorm/base (License): Likewise.
22150         * modules/uninorm/canonical-decomposition (License): Likewise.
22151         * modules/uninorm/composition (License): Likewise.
22152         * modules/uninorm/decompose-internal (License): Likewise.
22153         * modules/uninorm/decomposition-table (License): Likewise.
22154         * modules/uninorm/nfc (License): Likewise.
22155         * modules/uninorm/nfd (License): Likewise.
22156         * modules/uninorm/u32-normalize (License): Likewise.
22157         * modules/unistr/base (License): Likewise.
22158         * modules/unistr/u32-cpy (License): Likewise.
22159         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
22160         * modules/unistr/u32-to-u8 (License): Likewise.
22161         * modules/unistr/u32-uctomb (License): Likewise.
22162         * modules/unistr/u8-check (License): Likewise.
22163         * modules/unistr/u8-mblen (License): Likewise.
22164         * modules/unistr/u8-mbtouc (License): Likewise.
22165         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
22166         * modules/unistr/u8-mbtoucr (License): Likewise.
22167         * modules/unistr/u8-prev (License): Likewise.
22168         * modules/unistr/u8-strlen (License): Likewise.
22169         * modules/unistr/u8-to-u32 (License): Likewise.
22170         * modules/unistr/u8-uctomb (License): Likewise.
22171         * modules/unitypes (License): Likewise.
22172         Requested by Simon Josefsson.
22173
22174 2011-03-29  Simon Josefsson  <simon@josefsson.org>
22175
22176         lib-symbol-visibility: Add a notice.
22177         * modules/lib-symbol-visibility (Notice): New field.
22178
22179 2011-03-29  Bruno Haible  <bruno@clisp.org>
22180
22181         getaddrinfo: Doc fix.
22182         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
22183         section "fixed in Gnulib".
22184
22185 2011-03-28  Simon Josefsson  <simon@josefsson.org>
22186
22187         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
22188         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
22189
22190 2011-03-26  Bruno Haible  <bruno@clisp.org>
22191
22192         unictype/property-byname: Reduce the number of load-time relocations.
22193         * lib/unictype/pr_byname.c: Include <stdlib.h>.
22194         (UC_PROPERTY_INDEX_*): New enumeration values.
22195         (uc_property_byname): Convert an index from the lookup table to an
22196         uc_property_t.
22197         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
22198         values.
22199
22200 2011-03-26  Bruno Haible  <bruno@clisp.org>
22201
22202         unictype/property-byname: Allow omitted word separators and aliases.
22203         * lib/unictype/pr_byname.gperf: Add property names without word
22204         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
22205         for 'space'.
22206
22207 2011-03-26  Bruno Haible  <bruno@clisp.org>
22208
22209         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
22210         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
22211         also hyphens to space.
22212         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
22213         without spaces.
22214         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
22215
22216 2011-03-26  Bruno Haible  <bruno@clisp.org>
22217
22218         unictype/joiningtype-byname: Recognize long names as well.
22219         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
22220         a long name.
22221         * lib/unictype/joiningtype_byname.c: Include <string.h>,
22222         unictype/joiningtype_byname.h.
22223         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
22224         * lib/unictype/joiningtype_byname.gperf: New file.
22225         * modules/unictype/joiningtype-byname (Files): Add
22226         lib/unictype/joiningtype_byname.gperf.
22227         (Depends-on): Add gperf.
22228         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
22229         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
22230         long names.
22231
22232         Tests for module 'unictype/joiningtype-longname'.
22233         * modules/unictype/joiningtype-longname-tests: New file.
22234         * tests/unictype/test-joiningtype_longname.c: New file.
22235
22236         New module 'unictype/joiningtype-longname'.
22237         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
22238         * lib/unictype/joiningtype_longname.c: New file.
22239         * modules/unictype/joiningtype-longname: New file.
22240         * modules/unictype/joiningtype-all (Depends-on): Add
22241         unictype/joiningtype-longname.
22242
22243 2011-03-26  Bruno Haible  <bruno@clisp.org>
22244
22245         unictype/bidiclass-byname: Recognize long names as well.
22246         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
22247         name.
22248         * lib/unictype/bidi_byname.c: Include <string.h>,
22249         unictype/bidi_byname.h.
22250         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
22251         * lib/unictype/bidi_byname.gperf: New file.
22252         * modules/unictype/bidiclass-byname (Files): Add
22253         lib/unictype/bidi_byname.gperf.
22254         (Depends-on): Add gperf.
22255         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
22256         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
22257         long names.
22258
22259         Tests for module 'unictype/bidiclass-longname'.
22260         * modules/unictype/bidiclass-longname-tests: New file.
22261         * tests/unictype/test-bidi_longname.c: New file.
22262
22263         New module 'unictype/bidiclass-longname'.
22264         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
22265         * lib/unictype/bidi_longname.c: New file.
22266         * modules/unictype/bidiclass-longname: New file.
22267         * modules/unictype/bidiclass-all (Depends-on): Add
22268         unictype/bidiclass-longname.
22269
22270 2011-03-26  Bruno Haible  <bruno@clisp.org>
22271
22272         unictype/bidi*: Rename modules.
22273         * modules/unictype/bidiclass-all: Renamed from
22274         modules/unictype/bidicategory-all.
22275         * modules/unictype/bidiclass-name: Renamed from
22276         modules/unictype/bidiclass-name.
22277         (Description): Update.
22278         * modules/unictype/bidiclass-name-tests: Renamed from
22279         modules/unictype/bidicategory-name-tests.
22280         * modules/unictype/bidiclass-byname: Renamed from
22281         modules/unictype/bidicategory-byname.
22282         (Description): Update.
22283         * modules/unictype/bidiclass-byname-tests: Renamed from
22284         modules/unictype/bidicategory-byname-tests.
22285         * modules/unictype/bidiclass-of: Renamed from
22286         modules/unictype/bidicategory-of.
22287         (Description): Update.
22288         * modules/unictype/bidiclass-of-tests: Renamed from
22289         modules/unictype/bidicategory-of-tests.
22290         * modules/unictype/bidiclass-test: Renamed from
22291         modules/unictype/bidicategory-test.
22292         (Description): Update.
22293         * modules/unictype/bidiclass-test-tests: Renamed from
22294         modules/unictype/bidicategory-test-tests.
22295         * modules/unictype/bidicategory-all: New file, a simple redirection.
22296         * modules/unictype/bidicategory-name: Likewise.
22297         * modules/unictype/bidicategory-byname: Likewise.
22298         * modules/unictype/bidicategory-of: Likewise.
22299         * modules/unictype/bidicategory-test: Likewise.
22300         * modules/unictype/property-bidi-* (Dependencies): Update.
22301         * lib/unictype/bidi_*.c: Update comment.
22302
22303 2011-03-26  Bruno Haible  <bruno@clisp.org>
22304
22305         unictype/bidi*: Rename functions, part 2.
22306         * modules/unictype/bidicategory-name (configure.ac): Update required
22307         libunistring version.
22308         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
22309
22310 2011-03-25  Bruno Haible  <bruno@clisp.org>
22311
22312         New module 'unictype/combining-class-all'.
22313         * modules/unictype/combining-class-all: New file.
22314
22315         Tests for module 'unictype/combining-class-byname'.
22316         * modules/unictype/combining-class-byname-tests: New file.
22317         * tests/unictype/test-combiningclass_byname.c: New file.
22318
22319         New module 'unictype/combining-class-byname'.
22320         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
22321         * lib/unictype/combiningclass_byname.c: New file.
22322         * lib/unictype/combiningclass_byname.gperf: New file.
22323         * modules/unictype/combining-class-byname: New file.
22324
22325         Tests for module 'unictype/combining-class-longname'.
22326         * modules/unictype/combining-class-longname-tests: New file.
22327         * tests/unictype/test-combiningclass_longname.c: New file.
22328
22329         New module 'unictype/combining-class-longname'.
22330         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
22331         * lib/unictype/combiningclass_longname.c: New file.
22332         * modules/unictype/combining-class-longname: New file.
22333
22334         Tests for module 'unictype/combining-class-name'.
22335         * modules/unictype/combining-class-name-tests: New file.
22336         * tests/unictype/test-combiningclass_name.c: New file.
22337
22338         New module 'unictype/combining-class-name'.
22339         * lib/unictype.in.h (uc_combining_class_name): New declaration.
22340         * lib/unictype/combiningclass_name.c: New file.
22341         * modules/unictype/combining-class-name: New file.
22342
22343 2011-03-25  Bruno Haible  <bruno@clisp.org>
22344
22345         unictype/combining-class: Rename source files.
22346         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
22347         of unictype/combining.h.
22348         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
22349         Update.
22350         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
22351         * modules/unictype/combining-class (Description): Fix.
22352         (Files, Makefile.am): Update.
22353         * tests/unictype/test-combiningclass.c: Renamed from
22354         tests/unictype/test-combining.c.
22355         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
22356
22357 2011-03-25  Bruno Haible  <bruno@clisp.org>
22358
22359         unictype: Update list of canonical combining classes.
22360         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
22361
22362 2011-03-25  Bruno Haible  <bruno@clisp.org>
22363
22364         unictype/category-byname: Recognize long names as well.
22365         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
22366         a long name.
22367         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
22368         unictype/categ_byname.h.
22369         (UC_CATEGORY_INDEX_*): New enumeration values.
22370         (uc_general_category_byname): Use uc_general_category_lookup and
22371         convert from index to value.
22372         * lib/unictype/categ_byname.gperf: New file.
22373         * modules/unictype/category-byname (Files): Add
22374         lib/unictype/categ_byname.gperf.
22375         (Depends-on): Add gperf.
22376         (Makefile.am): Add rule for generating unictype/categ_byname.h.
22377         * tests/unictype/test-categ_byname.c (main): Test the recognition of
22378         long names.
22379
22380         Tests for module 'unictype/category-longname'.
22381         * modules/unictype/category-longname-tests: New file.
22382         * tests/unictype/test-categ_longname.c: New file.
22383
22384         New module 'unictype/category-longname'.
22385         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
22386         * lib/unictype/categ_longname.c: New file.
22387         * modules/unictype/category-longname: New file.
22388         * modules/unictype/category-all (Depends-on): Add it.
22389
22390 2011-03-25  Bruno Haible  <bruno@clisp.org>
22391
22392         Tests for module 'unictype/category-LC'.
22393         * modules/unictype/category-LC-tests: New file.
22394         * tests/unictype/test-categ_LC.c: New file, automatically generated.
22395
22396         New module 'unictype/category-LC'.
22397         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
22398         (UC_CATEGORY_LC): New declaration.
22399         (UC_CASED_LETTER): New macro.
22400         * lib/gen-uni-tables.c (is_category_LC): New function.
22401         (output_categories): Also handle category LC.
22402         (UC_CATEGORY_MASK_LC): New enumeration value.
22403         (general_category_byname): Also handle category LC.
22404         * lib/unictype/categ_LC.c: New file.
22405         * lib/unictype/categ_LC.h: New file, automatically generated.
22406         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
22407         category LC.
22408         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
22409         * modules/unictype/category-LC: New file.
22410         * modules/unictype/category-byname (Depends-on): Add
22411         unictype/category-LC.
22412         * modules/unictype/category-all (Depends-on): Likewise.
22413
22414 2011-03-25  Eric Blake  <eblake@redhat.com>
22415
22416         xmalloc: revert yesterday's regression
22417         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
22418         realloc's underlying behavior (allowing allocation of zero-size
22419         objects, especially if malloc-gnu is also in use).
22420
22421 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
22422
22423         maint.mk: add missing version to VC-tag
22424         * top/maint.mk: git tag was missing actual tag name; add it.
22425
22426         valgrind: do leak checking, and exit with code 1 on error (not 0)
22427         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
22428         to VALGRIND.
22429
22430 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
22431
22432         posix-modules: say what it does.
22433         * posix-modules: Add a line to the --help output saying what it does.
22434
22435 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
22436
22437         xmalloc: Do not leak if underlying realloc is C99 compatible.
22438         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
22439         This avoids a leak on C99-based systems.  See
22440         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
22441
22442 2011-03-24  Eric Blake  <eblake@redhat.com>
22443
22444         realloc: document portability problem
22445         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
22446         passing 0 size to realloc.
22447
22448 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
22449
22450         doc: update users.txt
22451         * users.txt: Add cvsps, tmpwatch
22452
22453 2011-03-23  Matt Rice  <ratmice@gmail.com>
22454
22455         doc: update users.txt
22456         * users.txt: Add gdb.
22457
22458 2011-03-23  Jim Meyering  <meyering@redhat.com>
22459
22460         doc: update users.txt
22461         Looking through matches up to the following URL (there are still
22462         several more pages), I found several projects that use gnulib:
22463         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
22464         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
22465         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
22466
22467 2011-03-22  Bruno Haible  <bruno@clisp.org>
22468
22469         unictype/bidi*: Rename functions.
22470         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
22471         uc_bidi_class, uc_is_bidi_class): New declarations.
22472         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
22473         uc_bidi_category_byname.
22474         (uc_bidi_category_byname): New function.
22475         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
22476         u_bidi_category_name.
22477         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
22478         (uc_bidi_category_name): New function.
22479         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
22480         uc_bidi_category.
22481         (uc_bidi_category): New function.
22482         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
22483         uc_is_bidi_category. Invoke uc_bidi_class.
22484         (uc_is_bidi_category): New function.
22485         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
22486         instead of uc_bidi_category_byname.
22487         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
22488         instead of uc_bidi_category_name.
22489         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
22490         uc_bidi_category.
22491         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
22492         instead of uc_is_bidi_category.
22493
22494 2011-03-21  Bruno Haible  <bruno@clisp.org>
22495
22496         New module 'unictype/joininggroup-all'.
22497         * modules/unictype/joininggroup-all: New file.
22498
22499         Tests for module 'unictype/joininggroup-of'.
22500         * modules/unictype/joininggroup-of-tests: New file.
22501         * tests/unictype/test-joininggroup_of.c: New file.
22502         * tests/unictype/test-joininggroup_of.h: New file, automatically
22503         generated by gen-uni-tables.
22504
22505         New module 'unictype/joininggroup-of'.
22506         * modules/unictype/joininggroup-of: New file.
22507         * lib/unictype/joininggroup_of.c: New file.
22508         * lib/unictype/joininggroup_of.h: New file, automatically generated by
22509         gen-uni-tables.
22510
22511         Tests for module 'unictype/joininggroup-byname'.
22512         * modules/unictype/joininggroup-byname-tests: New file.
22513         * tests/unictype/test-joininggroup_byname.c: New file.
22514
22515         New module 'unictype/joininggroup-byname'.
22516         * modules/unictype/joininggroup-byname: New file.
22517         * lib/unictype/joininggroup_byname.c: New file.
22518         * lib/unictype/joininggroup_byname.gperf: New file.
22519
22520         Tests for module 'unictype/joininggroup-name'.
22521         * modules/unictype/joininggroup-name-tests: New file.
22522         * tests/unictype/test-joininggroup_name.c: New file.
22523
22524         New module 'unictype/joininggroup-name'.
22525         * modules/unictype/joininggroup-name: New file.
22526         * lib/unictype/joininggroup_name.c: New file.
22527         * lib/unictype/joininggroup_name.h: New file.
22528
22529         New module 'unictype/joiningtype-all'.
22530         * modules/unictype/joiningtype-all: New file.
22531
22532         Tests for module 'unictype/joiningtype-of'.
22533         * modules/unictype/joiningtype-of-tests: New file.
22534         * tests/unictype/test-joiningtype_of.c: New file.
22535         * tests/unictype/test-joiningtype_of.h: New file, automatically
22536         generated by gen-uni-tables.
22537
22538         New module 'unictype/joiningtype-of'.
22539         * modules/unictype/joiningtype-of: New file.
22540         * lib/unictype/joiningtype_of.c: New file.
22541         * lib/unictype/joiningtype_of.h: New file, automatically generated by
22542         gen-uni-tables.
22543
22544         Tests for module 'unictype/joiningtype-byname'.
22545         * modules/unictype/joiningtype-byname-tests: New file.
22546         * tests/unictype/test-joiningtype_byname.c: New file.
22547
22548         New module 'unictype/joiningtype-byname'.
22549         * modules/unictype/joiningtype-byname: New file.
22550         * lib/unictype/joiningtype_byname.c: New file.
22551
22552         Tests for module 'unictype/joiningtype-name'.
22553         * modules/unictype/joiningtype-name-tests: New file.
22554         * tests/unictype/test-joiningtype_name.c: New file.
22555
22556         New module 'unictype/joiningtype-name'.
22557         * modules/unictype/joiningtype-name: New file.
22558         * lib/unictype/joiningtype_name.c: New file.
22559
22560         unictype: Add support for Arabic shaping properties.
22561         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
22562         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
22563         declarations.
22564         (UC_JOINING_GROUP_*): New enumeration values.
22565         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
22566         declarations.
22567         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
22568         (unicode_joining_type): New variable.
22569         (UC_JOINING_GROUP_*): New enumeration values.
22570         (unicode_joining_group): New variable.
22571         (fill_arabicshaping, joining_type_as_c_identifier,
22572         output_joining_type_test, output_joining_type,
22573         joining_group_as_c_identifier, output_joining_group_test,
22574         output_joining_group): New functions.
22575         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
22576         fill_arabicshaping and output_joining_type_test, output_joining_type,
22577         output_joining_group_test, output_joining_group.
22578         Reported by Simon Josefsson.
22579
22580 2011-03-21  Jim Meyering  <meyering@redhat.com>
22581
22582         strftime: fix a bug in yesterday's change
22583         * lib/strftime.c (add): Accommodate width's initial value of -1.
22584         Otherwise, nstrftime would copy uninitialized data into
22585         the result buffer.
22586
22587 2011-03-21  Jim Meyering  <meyering@redhat.com>
22588
22589         tests: add strftime-tests module
22590         * tests/test-strftime.c: New file.
22591         * modules/strftime-tests: New module.
22592
22593 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22594
22595         strftime: don't assume a byte count fits in 'int'
22596         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
22597         found this problem by static analysis, using gcc -Wstrict-overflow
22598         (GCC 4.5.2, x86-64).  This reported an optimization that depended
22599         on an integer overflow having undefined behavior, but it turns out
22600         that the argument is a size, which might not fit in 'int' anyway,
22601
22602 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22603
22604         stdio: don't require ignore_value around fwrite
22605
22606         This patch works around libc bug 11959
22607         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
22608         Without this patch, applications must often write
22609         ignore_value (fwrite (...)) even though the ignore_value is
22610         not helpful here.  It's common to write many objects, using
22611         fwrite/printf/etc., and then use ferror to detect output error.
22612
22613         I considered making this patch optional, but decided against it,
22614         because libc is obviously being inconsistent here: there is no
22615         reason libc should insist that user code must inspect fwrite
22616         return's value without also insisting that it inspect printf's,
22617         putchar's, etc.  If user code wants to have a strict style where
22618         all these functions' values are checked (so that ferror need not
22619         be checked), we could add support for that style in a new gnulib
22620         module, but in the meantime it's better to be consistent and to
22621         support common usage.
22622
22623         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
22624         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
22625         that we are compiling in checking mode, and if not C++, and
22626         if not already wrapping fwrite for some other reason.
22627         (fwrite): #define to rpl_fwrite if the latter is defined.
22628
22629 2011-03-20  Bruno Haible  <bruno@clisp.org>
22630
22631         verror: Fix compilation error introduced on 2011-02-13.
22632         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
22633         instead of __attribute__.
22634         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22635
22636 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
22637             Bruno Haible  <bruno@clisp.org>
22638
22639         socklen: do not depend on sys_socket
22640         While trying to modify Emacs to use gnulib's socklen module,
22641         I discovered a circular dependency: socklen depends on sys_socket
22642         and vice versa.  Emacs can use socklen, but it does not need
22643         sys_socket because it has its own substitute for sys/socket.h.
22644         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
22645         gl_TYPE_SOCKLEN_T.
22646         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
22647         gl_PREREQ_SYS_H_SOCKET.
22648         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
22649         gl_PREREQ_SYS_H_SOCKET.
22650         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
22651         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
22652         * modules/socklen (Depends-on): Do not depend on sys_socket.
22653         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
22654
22655 2011-03-20  Jim Meyering  <meyering@redhat.com>
22656
22657         maint.mk: sort file names *after* new transformation
22658         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
22659         prefix would have led to an unwarranted failure in GNU parted.
22660         Sort after that transformation.
22661
22662 2011-03-19  Jim Meyering  <meyering@redhat.com>
22663
22664         maint.mk: fix po-file syntax-check rule
22665         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
22666         Patch by Bruno Haible.
22667
22668 2011-03-19  Bruno Haible  <bruno@clisp.org>
22669
22670         socklen: Update comment.
22671         * m4/socklen.m4: Update comment about platforms.
22672
22673 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22674             Bruno Haible  <bruno@clisp.org>
22675
22676         inet_ntop, inet_pton: Simplify.
22677         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
22678         documented to provide socklen_t and we already depend on sys_socket.
22679         * modules/inet_pton (Depends-on): Likewise.
22680         * lib/arpa_inet.in.h: Adjust comment.
22681
22682 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
22683             Bruno Haible  <bruno@clisp.org>
22684
22685         netdb: Simplify.
22686         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
22687         documented to provide socklen_t and we already depend on sys_socket.
22688         * lib/netdb.in.h: Adjust comment.
22689
22690 2011-03-19  Bruno Haible  <bruno@clisp.org>
22691
22692         sys_socket, netdb: Document problem with socklen_t.
22693         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
22694         platforms.
22695         * doc/posix-headers/netdb.texi: Likewise.
22696
22697 2011-03-18  Eric Blake  <eblake@redhat.com>
22698
22699         maint.mk: let po check work in VPATH build
22700         * top/maint.mk (po_file): Allow cfg.mk override.
22701         (sc_po_check): Allow VPATH use.
22702         Reported by Jiri Denemark.
22703
22704 2011-03-16  Jim Meyering  <meyering@redhat.com>
22705
22706         maint.mk: allow fine-grained syntax-check exclusion via Make variables
22707         Before, you would have had to create one .x-sc_ file per rule in order
22708         to exempt offending files.  Now, you may instead use a Make variable --
22709         usually defined in cfg.mk -- whose name identifies the affected rule.
22710         * top/maint.mk (_sc_excl): Define.
22711         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
22712         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
22713
22714 2011-03-13  Bruno Haible  <bruno@clisp.org>
22715
22716         ignore-value tests: Avoid warnings.
22717         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
22718         empty for gcc < 3.4.
22719
22720 2011-03-13  Bruno Haible  <bruno@clisp.org>
22721
22722         passfd: Fix link error on Solaris.
22723         * modules/passfd (Description): Correct.
22724         (Depends-on): Add socketlib.
22725         (Link): New section.
22726         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
22727
22728 2011-03-13  Bruno Haible  <bruno@clisp.org>
22729
22730         passfd: Fix link error on AIX 5.2.
22731         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
22732
22733 2011-03-13  Bruno Haible  <bruno@clisp.org>
22734
22735         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
22736         * lib/sys_socket.in.h: Include <stddef.h>.
22737         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
22738         CMSG_FIRSTHDR. Remove unused variable.
22739
22740 2011-03-13  Bruno Haible  <bruno@clisp.org>
22741
22742         passfd: Fix compilation error on OpenBSD.
22743         * lib/passfd.c: Include <sys/uio.h>.
22744
22745 2011-03-13  Bruno Haible  <bruno@clisp.org>
22746
22747         passfd test: Fix warnings.
22748         * tests/test-passfd.c: Include <sys/wait.h>.
22749         (main): Fix typo.
22750
22751 2011-03-13  Bruno Haible  <bruno@clisp.org>
22752
22753         passfd module, part 4, tweaks.
22754         * tests/test-passfd.c: Reorder includes.
22755         (main): Fix perror and printf calls.
22756
22757 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22758
22759         passfd module, part 4.
22760         * modules/passfd-tests: New file.
22761         * tests/test-passfd.c: New file.
22762
22763 2011-03-13  Jim Meyering  <meyering@redhat.com>
22764
22765         Makefile: rely on GNU make; derive syntax-check rule names
22766         Rather than requiring that each sc_ rule be listed as a dependent
22767         of "check", use features of GNU make to derive the list.
22768         * Makefile (syntax-check-rules): Define.
22769         (check): Depend on the new variable, not the hard-coded list.
22770
22771 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
22772             Bruno Haible  <bruno@clisp.org>
22773
22774         passfd module, part 3.
22775         * lib/passfd.h (recvfd): Add a flags argument.
22776         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
22777         (recvfd): Add a flags argument.
22778         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
22779         exists.
22780         * modules/passfd (Depends-on): Add cloexec.
22781         Suggested by Eric Blake.
22782
22783 2011-03-13  Bruno Haible  <bruno@clisp.org>
22784
22785         passfd module, part 2, tweaks.
22786         * modules/passfd (Files): Reorder.
22787         (Depends-on): Remove errno.
22788         (Include): Remove <sys/socket.h>, <sys/un.h>.
22789         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
22790         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
22791         specification header. Include <sys/socket.h> always. Don't include
22792         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
22793         (sendfd): Clarify that it sets errno when it fails.
22794         (recvfd): Fix specification.
22795
22796 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22797
22798         passfd module, part 2.
22799         * modules/passfd: New file.
22800         * lib/passfd.h: New file.
22801         * lib/passfd.c: New file.
22802
22803 2011-03-12  Bruno Haible  <bruno@clisp.org>
22804
22805         wcswidth, mbswidth: Avoid integer overflow.
22806         * lib/wcswidth.c: Include <limits.h>.
22807         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
22808         * lib/mbswidth.c: Include <limits.h>.
22809         (mbsnwidth): Avoid 'int' overflow.
22810         Reported by Jim Meyering.
22811
22812 2011-03-12  Bruno Haible  <bruno@clisp.org>
22813
22814         futimens, utimensat: Avoid endless recursion on Solaris 10.
22815         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22816         Solaris.
22817         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22818         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22819
22820 2011-03-11  Jim Meyering  <meyering@redhat.com>
22821
22822         maint.mk: relax a regexp to accommodate other formatting styles
22823         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22824         between "ngettext" and the following "(".
22825
22826 2011-03-11  Pádraig Brady <P@draigBrady.com>
22827
22828         maint.mk: suppress a false positive warning
22829         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22830         diagnostics are marked with ngettext.
22831
22832 2011-03-10  Eric Blake  <eblake@redhat.com>
22833
22834         wchar: add explicit dependencies, for Tru64
22835         * modules/mbmemcasecoll (Depends-on): Add wchar.
22836         * modules/mbtowc (Depends-on): Likewise.
22837         * modules/vasnprintf (Depends-on): Likewise.
22838         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22839         * modules/wctomb (Depends-on): Likewise.
22840         Reported by Peter O'Gorman.
22841
22842 2011-03-08  Bruno Haible  <bruno@clisp.org>
22843
22844         passfd module, part 1, tweaks.
22845         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22846         Improve indentation. Improve AC_MSG_CHECKING messages.
22847         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22848         gl_SOCKET_FAMILIES.
22849
22850 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22851
22852         passfd module, part 1.
22853         * m4/afunix.m4: New file.
22854         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22855         sockets.
22856
22857 2011-03-08  Bruno Haible  <bruno@clisp.org>
22858
22859         regex-quote: New API.
22860         * lib/regex-quote.h: Include <stdbool.h>.
22861         (struct regex_quote_spec): New type.
22862         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22863         New declarations.
22864         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22865         'const struct regex_quote_spec *' argument.
22866         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22867         (pcre_special): New constant.
22868         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22869         New functions.
22870         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22871         'const struct regex_quote_spec *' argument.
22872         * modules/regex-quote (Depends-on): Add stdbool.
22873         * tests/test-regex-quote.c (check): Update for new API. Add test for
22874         anchored results.
22875         * NEWS: Mention the API change.
22876         Reported by Reuben Thomas and Eric Blake.
22877
22878 2011-03-06  Bruno Haible  <bruno@clisp.org>
22879
22880         regex-quote: Fix creation of POSIX extended regular expressions.
22881         * lib/regex-quote.c (ere_special): Add grouping and alternation
22882         operators.
22883
22884 2011-03-05  Bruno Haible  <bruno@clisp.org>
22885
22886         doc: Improve doc regarding autopoint vs. gnulib.
22887         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22888         disable autopoint while running autoreconf.
22889         Suggested by Ralf Wildenhues.
22890
22891 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22892
22893         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22894         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22895
22896 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22897
22898         parse-duration: remove xalloc.h dependency
22899         * lib/parse-duration.c (parse_period): handle NULL return from
22900         strdup instead of calling xstrdup().
22901         * modules/parse-duration: remove "xalloc" dependency
22902
22903 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22904
22905         bootstrap: honor m4_base when running aclocal
22906         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22907
22908 2011-03-02  Jim Meyering  <meyering@redhat.com>
22909
22910         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22911         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22912         on request from Matt Booth.
22913
22914 2011-03-01  Eric Blake  <eblake@redhat.com>
22915
22916         test-link: work on Hurd
22917         * tests/test-link.h (test_link): Hurd rejects linking directories
22918         with EISDIR instead of the POSIX-mandated EPERM.
22919
22920 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22921
22922         stdio: simplify by moving files to printf-posix, sigpipe
22923         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22924         since this symbol is needed only if printf is replaced.
22925         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22926         Require gl_ASM_SYMBOL_PREFIX.
22927         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22928         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22929         (Depends-on): Add 'raise'.
22930         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22931         * modules/stdio (Files): Remove lib/stdio-write.c,
22932         m4/asm-underscore.m4.
22933         (Depends-on): Remove 'raise'.
22934
22935         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22936         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22937         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22938         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22939
22940 2011-02-28  Bruno Haible  <bruno@clisp.org>
22941
22942         localcharset: Assume ANSI C behaviour of free().
22943         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22944         calling free().
22945         Suggested by Simon Josefsson <simon@josefsson.org>.
22946
22947 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22948             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22949             Bruno Haible  <bruno@clisp.org>  (tiny change)
22950
22951         On Cygwin, use /proc file system instead of win32 API.
22952         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22953         Win32 file names.
22954         (DllMain): Simplify by removing Cygwin specific code.
22955         (find_shared_library_fullname): Use Linux specific implementation also
22956         for Cygwin.
22957         (get_shared_library_fullname): Update accordingly.
22958         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22959         Win32 file names.
22960         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22961         Cygwin specific code.
22962
22963 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22964             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22965
22966         Fix OpenMP flag detection for various Fortran compilers.
22967         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22968         OpenMP-conditional compilation construct, to force compile
22969         failure with missing OpenMP flag.
22970         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22971
22972 2011-02-25  Eric Blake  <eblake@redhat.com>
22973
22974         strstr: expand test coverage
22975         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22976         compilation.
22977         * tests/test-memmem.c (main): Duplicate tests.
22978         * tests/test-strcasestr.c (main): Likewise.
22979         * tests/test-c-strcasestr.c (main): Likewise.
22980
22981 2011-02-25  Jim Meyering  <meyering@redhat.com>
22982
22983         maint.mk: detect missing-NL-at-EOF, too
22984         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22985         it also detects when a file lacks a newline at EOF.
22986         (require_exactly_one_NL_at_EOF_): Renamed from
22987         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22988         since people may well have .x-sc_... file names tied to the
22989         existing name.  Suggested by Eric Blake.
22990
22991 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22992
22993         dirname: move m4/dos.m4 functionality into lib/dosname.h
22994
22995         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22996         extracts symbols from it, puts them into config.h; but it's much
22997         easier to use the symbols directly.  filename.h already does this,
22998         but it disagrees with dos.m4 in some respects.  This patch
22999         introduces a different include file dosname.h that packages up
23000         dos.m4, and then later we can work on merging filename.h and
23001         dosname.h.  Applications that need only the easy-to-configure
23002         symbols should consider including dosname.h rather than dirname.h.
23003         * NEWS: Mention incompatible changes.
23004         * m4/dos.m4: Remove.
23005         * lib/dosname.h, modules/dosname: New files.
23006         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
23007         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
23008         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
23009         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
23010         Include dosname.h, not dirname.h.
23011         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
23012         Include dosname.h, for definitions of symbols like ISSLASH
23013         that used to be in config.h.
23014         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
23015         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23016         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23017         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23018         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
23019         * modules/rmdir (Files): Likewise.
23020         * modules/stat (Files): Likewise.
23021         * modules/unlink (Files): Likewise.
23022         * modules/dirname-lgpl (Depends-on): Add dosname.
23023         * modules/lstat (Depends-on): Likewise.
23024         * modules/openat (Depends-on): Likewise.
23025         * modules/rmdir (Depends-on): Likewise.
23026         * modules/savewd (Depends-on): Likewise.
23027         * modules/stat (Depends-on): Likewise.
23028         * modules/unlink (Depends-on): Likewise.
23029         * modules/openat (Depends-on): Remove dirname-lgpl.
23030         * modules/savewd (Depends-on): Likewise.
23031         * tests/test-dirname.c: Do not use removed symbols like
23032         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
23033         the remaining symbols, e.g., ISSLASH ('\\').
23034
23035 2011-02-25  Eric Blake  <eblake@redhat.com>
23036
23037         strstr: revert patches that introduced bug and pessimization
23038         * lib/str-two-way.h: Add another reference.
23039         (two_way_short_needle, two_way_long_needle): Revert changes from
23040         2011-02-24; they pessimize search speed.
23041         (critical_factorization): Partially revert changes from
23042         2010-06-22; they violate the requirement that the left half of the
23043         needle be smaller than the period of the needle.
23044
23045 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
23046
23047         filenamecat: remove unnecessary dependency on dirname-lgpl
23048         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
23049         is no direct dependency, just an indirect one via filenamecat-lgpl.
23050
23051         remove: remove unnecessary use of m4/dos.m4
23052         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
23053         * modules/remove (FILES): Remove m4/dos.m4.
23054
23055         * lib/openat-proc.c: Don't include dirname.h; not needed.
23056
23057         backupfile: remove unnecessary use of m4/dos.m4
23058         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
23059         of its symbols are used by the backupfile code.  backupfile.c does
23060         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
23061         for the rare case of programs that want all their backup file
23062         names to live within 8+3 limits, and dos.m4 doesn't address that.
23063         * modules/backupfile (Files): Remove m4/dos.m4.
23064
23065 2011-02-24  Jim Meyering  <meyering@redhat.com>
23066
23067         strstr: fix a bug whereby strstr would mistakenly return NULL
23068         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
23069         in period calculation.
23070         (two_way_long_needle): Likewise.
23071         The original problem was reported by Mike Stump in
23072         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
23073         Ralf Wildenhues provided the short needle and haystack.
23074         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
23075         Add a more involved test to trigger the bug in two_way_long_needle.
23076
23077 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
23078
23079         gnulib-tool: remove use of bold display in help screen
23080         * gnulib-tool (func_usage): Do not use bold display anymore in the
23081         help screen.  That was just meant to be a temporary emphasis for a
23082         backward-incompatible change.
23083
23084 2011-02-23  Bruno Haible  <bruno@clisp.org>
23085
23086         Fix misindentation of preprocessor directives.
23087         * lib/argp-namefrob.h: Reindent preprocessor directives.
23088         * lib/getopt_int.h (struct _getopt_data): Likewise.
23089         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
23090         * lib/vasnprintf.c (decode_long_double): Likewise.
23091         * tests/test-argmatch.c: Insert blank lines, for clarity.
23092         * tests/test-exclude.c: Likewise.
23093
23094 2011-02-22  Bruno Haible  <bruno@clisp.org>
23095
23096         ioctl: Fix for MacOS X in 64-bit mode.
23097         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
23098         value.
23099         Suggested by Eric Blake.
23100         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
23101
23102 2011-02-22  Jim Meyering  <meyering@redhat.com>
23103
23104         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
23105         * Makefile (sc_cpp_indent_check): Don't limit the check to files
23106         in lib/.
23107
23108 2011-02-22  Eric Blake  <eblake@redhat.com>
23109
23110         maint: avoid any CDPATH issue
23111         * Makefile (sc_cpp_indent_check): Anchor cd argument.
23112
23113         maint: adjust cpp indentation for my modules, as well
23114         * Makefile (sc_cpp_indent_check): Add my name.
23115         * lib/fbufmode.c: Filter through cppi.
23116         * lib/fpurge.c: Likewise.
23117         * lib/freadable.c: Likewise.
23118         * lib/freading.c: Likewise.
23119         * lib/fwritable.c: Likewise.
23120         * lib/fwriting.c: Likewise.
23121         * lib/sigaction.c: Likewise.
23122
23123 2011-02-22  Jim Meyering  <meyering@redhat.com>
23124
23125         maint: adjust cpp indentation to reflect nesting depth
23126         I.e., in a block of code that begins with an unnested "#if",
23127         put one space between the "#" in column 1 and following token.
23128         For example,
23129         -#include <sys/vfs.h>
23130         +# include <sys/vfs.h>
23131         Do this only in .c files that are part of a module I maintain.
23132         * lib/linkat.c: Filter through cppi.
23133         * lib/nanosleep.c: Likewise.
23134         * lib/openat.c: Likewise.
23135         * lib/openat-die.c: Likewise.
23136         * lib/dup3.c: Likewise.
23137         * lib/fchownat.c: Likewise.
23138         * lib/flock.c: Likewise.
23139         * lib/fsync.c: Likewise.
23140         * lib/fts.c: Likewise.
23141         * lib/getpass.c: Likewise.
23142         * lib/gettimeofday.c: Likewise.
23143         * lib/userspec.c: Likewise.
23144         * Makefile (sc_cpp_indent_check): New rule, to check this.
23145
23146 2011-02-22  Bruno Haible  <bruno@clisp.org>
23147
23148         New module 'wctomb'.
23149         * lib/stdlib.in.h (wctomb): New declaration.
23150         * lib/wctomb.c: New file.
23151         * lib/wctomb-impl.h: New file.
23152         * m4/wctomb.m4: New file.
23153         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
23154         REPLACE_WCTOMB.
23155         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
23156         REPLACE_WCTOMB.
23157         * modules/wctomb: New file.
23158         * tests/test-stdlib-c++.cc: Test signature of wctomb.
23159         * doc/posix-functions/wctomb.texi: Mention the new module.
23160         * modules/wctob (Depends-on): Add wctomb.
23161
23162 2011-02-22  Bruno Haible  <bruno@clisp.org>
23163
23164         New module 'mbtowc'.
23165         * lib/stdlib.in.h (mbtowc): New declaration.
23166         * lib/mbtowc.c: New file.
23167         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
23168         * m4/mbtowc.m4: New file.
23169         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
23170         REPLACE_MBTOWC.
23171         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
23172         REPLACE_MBTOWC.
23173         * modules/mbtowc: New file.
23174         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
23175         * doc/posix-functions/mbtowc.texi: Mention the new module.
23176         * modules/btowc (Depends-on): Add mbtowc.
23177
23178 2011-02-22  Bruno Haible  <bruno@clisp.org>
23179
23180         wcrtomb: Add more tests for native Windows platforms.
23181         * tests/test-wcrtomb-w32-1.sh: New file.
23182         * tests/test-wcrtomb-w32-2.sh: New file.
23183         * tests/test-wcrtomb-w32-3.sh: New file.
23184         * tests/test-wcrtomb-w32-4.sh: New file.
23185         * tests/test-wcrtomb-w32-5.sh: New file.
23186         * tests/test-wcrtomb-w32.c: New file.
23187         * modules/wcrtomb-tests (Files): Add them.
23188         (Makefile.am): Arrange to run these tests.
23189         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
23190         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
23191
23192 2011-02-20  Bruno Haible  <bruno@clisp.org>
23193
23194         wcrtomb: Enhance test.
23195         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
23196
23197 2011-02-20  Bruno Haible  <bruno@clisp.org>
23198
23199         mbrtowc: Tiny optimization.
23200         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
23201
23202 2011-02-20  Jim Meyering  <meyering@redhat.com>
23203
23204         test-exclude.c: remove unmatched #endif
23205         * tests/test-exclude.c: Remove stray #endif, left over from
23206         the change of a week ago.
23207
23208 2011-02-19  Jim Meyering  <meyering@redhat.com>
23209
23210         git-version-gen: skip "-dirty" check when appropriate
23211         * build-aux/git-version-gen: Don't run any git commands when the
23212         version string comes from .tarball-version.  Prior to this, we
23213         would run git update-index --refresh even from a just-unpacked
23214         tarball directory, and that could affect a .git/ directory in a
23215         parent of the build directory.  Reported by Mike Frysinger.
23216
23217 2011-02-19  Bruno Haible  <bruno@clisp.org>
23218
23219         unictype/property-byname: Reduce the size of the 'data' segment.
23220         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
23221
23222 2011-02-19  Bruno Haible  <bruno@clisp.org>
23223
23224         unictype/scripts: Reduce the size of the 'data' segment.
23225         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
23226         '%pic'.
23227         * lib/unictype/scripts_byname.gperf: Regenerated.
23228
23229 2011-02-19  Bruno Haible  <bruno@clisp.org>
23230
23231         stdint: Update documentation.
23232         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
23233
23234 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
23235
23236         stdint: omit redundant check for wchar.h
23237         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
23238         always tests whether wchar.h exists, so remove the now-redundant test.
23239
23240 2011-02-18  Bruno Haible  <bruno@clisp.org>
23241
23242         stdint: Cut dependency to module 'wchar'.
23243         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
23244         include the necessary prerequisites.
23245         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
23246         * modules/stdint (Depends-on): Remove wchar.
23247         (Makefile.am): Substitute HAVE_WCHAR_H.
23248         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
23249
23250 2011-02-18  Eric Blake  <eblake@redhat.com>
23251
23252         longlong: skip, rather than fail, on cross-compilation
23253         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
23254         when cross-compiling; regression from 2011-02-16.
23255
23256 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23257
23258         * NEWS: Mention 2011-02-08 change to stdlib.
23259
23260 2011-02-17  Bruno Haible  <bruno@clisp.org>
23261
23262         getloadavg: Add comments about platforms.
23263         * m4/getloadavg.m4: Add comment.
23264         * lib/getloadavg.c: Likewise.
23265
23266 2011-02-17  Bruno Haible  <bruno@clisp.org>
23267
23268         getloadavg: Fix link error on Solaris 2.6.
23269         * modules/getloadavg (Link): New section.
23270         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
23271         linking test-getloadavg.
23272         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
23273         getloadavg.
23274
23275 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
23276
23277         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
23278         It was 'int', but this doesn't match the IRIX 6.5 manual.
23279         Suggested by Bruno Haible in
23280         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
23281
23282 2011-02-17  Bruno Haible  <bruno@clisp.org>
23283
23284         havelib: Fix comments.
23285         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
23286         change.
23287
23288 2011-02-17  Bruno Haible  <bruno@clisp.org>
23289
23290         havelib: Update config.rpath.
23291         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
23292
23293 2011-02-17  Bruno Haible  <bruno@clisp.org>
23294
23295         getloadavg test: Add some plausibility checks.
23296         * tests/test-getloadavg.c (check_avg): Print a warning when the value
23297         is improbable.
23298
23299 2011-02-16  Eric Blake  <eblake@redhat.com>
23300
23301         maintainer-makefile: make syntax-check a no-op from tarballs
23302         * top/maint.mk (no-vc-detected): New rule.
23303         (local-checks-available): Use it to avoid hanging if someone tries
23304         'make syntax-check' from a tarball.  Also append to any non-syntax
23305         checks already defined in cfg.mk.
23306
23307 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
23308
23309         longlong: tune, particularly for common case of c99
23310
23311         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
23312         or running anything if c99, or if unsigned long long int does not
23313         work.  In either case, we know the answer without further tests.
23314         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
23315         it at most once, and use its results for both long long int and
23316         unsigned long long int.  This is more likely to be efficient in
23317         the common case where the program wants to check for both long
23318         long int and unsigned long long int.
23319         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
23320         since the answer is already known.
23321
23322 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
23323
23324         getloadavg: set errno
23325         * lib/getloadavg.c: Set errno when returning -1.  If no other
23326         error number looks appropriate, set it to ENOSYS if the getloadavg
23327         looks like it can't possibly ever work, ENOTSUP otherwise.
23328         Suggested by Bruno Haible in
23329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
23330
23331         getloadavg: trim unused parts and speed up 'configure'
23332         * NEWS: Document this.
23333         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
23334         always compiled if getloadavg is absent.
23335         Move test code to ...
23336         * tests/test-getloadavg.c: New file, containing previous
23337         contents of test from lib/getloadavg.c.  It also contains
23338         suggestions by Bruno Haible in
23339         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
23340         * modules/getloadavg-tests: New file.
23341         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
23342         Do tests in the same order as they're needed for getloadavg.c.
23343         Omit setgid-related tests that generate symbols KMEM_GROUP,
23344         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
23345         Do only the tests that are needed to see whether the system has
23346         getloadavg, moving the other tests into ...
23347         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
23348         NLIST_NAME_UNION; nobody should be using it.  Do not define
23349         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
23350         relevant, as the user of this module shouldn't care how getloadavg
23351         is implemented.
23352
23353         getloadavg: omit unused var
23354         * lib/getloadavg.c (getloadavg): Omit unused local variable.
23355
23356 2011-02-15  Jim Meyering  <meyering@redhat.com>
23357
23358         doc: update users.txt
23359         * users.txt: Update iwhd's URL.
23360
23361 2011-02-13  Bruno Haible  <bruno@clisp.org>
23362
23363         Consistent macro naming for macros that use GCC __attribute__.
23364         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
23365         _ATTRIBUTE_NONNULL_.
23366         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
23367         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
23368         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
23369         ATTRIBUTE_DEPRECATED.
23370         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
23371         ATTRIBUTE_NORETURN.
23372         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23373         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23374         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23375         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
23376         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
23377         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
23378         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
23379         ATTRIBUTE_SENTINEL.
23380         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
23381         ATTRIBUTE_RETURN_CHECK.
23382         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
23383         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
23384         ATTRIBUTE_NORETURN.
23385         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
23386         Reported by Paul Eggert.
23387
23388 2011-02-13  Bruno Haible  <bruno@clisp.org>
23389
23390         Don't interfere with a program's definition of __attribute__.
23391         * lib/argp.h (__attribute__): Remove definition.
23392         (_GL_ATTRIBUTE_FORMAT): New macro.
23393         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
23394         * lib/argp-fmtstream.h (__attribute__): Remove definition.
23395         (_GL_ATTRIBUTE_FORMAT): New macro.
23396         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
23397         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
23398         GCC 3 or newer.
23399         * lib/error.h (__attribute__): Remove definition.
23400         (_GL_ATTRIBUTE_FORMAT): New macro.
23401         (error, error_at_line): Use it.
23402         * lib/hash.h (__attribute__): Remove definition.
23403         (ATTRIBUTE_WUR): Update definition. Define always.
23404         * lib/openat.h (__attribute__): Remove definition.
23405         (ATTRIBUTE_NORETURN): Update definition. Define always.
23406         * lib/sigpipe-die.h (__attribute__): Remove definition.
23407         (ATTRIBUTE_NORETURN): Update definition. Define always.
23408         * lib/vasnprintf.h (__attribute__): Remove definition.
23409         (_GL_ATTRIBUTE_FORMAT): New macro.
23410         (asnprintf, vasnprintf): Use it.
23411         * lib/xalloc.h (__attribute__): Remove definition.
23412         (ATTRIBUTE_NORETURN): Update definition. Define always.
23413         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
23414         * lib/xmemdup0.h (__attribute__): Remove definition.
23415         (ATTRIBUTE_NORETURN): Update definition. Define always.
23416         * lib/xprintf.h (__attribute__): Remove definition.
23417         (_GL_ATTRIBUTE_FORMAT): New macro.
23418         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
23419         * lib/xstrtol.h (__attribute__): Remove definition.
23420         (ATTRIBUTE_NORETURN): Update definition. Define always.
23421         * lib/xvasprintf.h (__attribute__): Remove definition.
23422         (_GL_ATTRIBUTE_FORMAT): New macro.
23423         (xasprintf, xvasprintf): Use it.
23424         * tests/test-argmatch.c (__attribute__): Remove definition.
23425         (ATTRIBUTE_NORETURN): Update definition. Define always.
23426         * tests/test-exclude.c (__attribute__): Remove definition.
23427         (ATTRIBUTE_NORETURN): Update definition. Define always.
23428         Reported by Paul Eggert.
23429
23430 2011-02-13  Bruno Haible  <bruno@clisp.org>
23431
23432         mbrtowc: Add more tests for native Windows platforms.
23433         * tests/test-mbrtowc-w32-1.sh: New file.
23434         * tests/test-mbrtowc-w32-2.sh: New file.
23435         * tests/test-mbrtowc-w32-3.sh: New file.
23436         * tests/test-mbrtowc-w32-4.sh: New file.
23437         * tests/test-mbrtowc-w32-5.sh: New file.
23438         * tests/test-mbrtowc-w32.c: New file.
23439         * modules/mbrtowc-tests (Files): Add them.
23440         (Makefile.am): Arrange to run these tests.
23441         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
23442         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
23443
23444 2011-02-13  Bruno Haible  <bruno@clisp.org>
23445
23446         mbrtowc: Work around native Windows bug.
23447         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
23448         guess when no suitable locale for testing was found.
23449         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
23450
23451 2011-02-13  Bruno Haible  <bruno@clisp.org>
23452
23453         mbsinit: Work around mingw bug.
23454         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
23455         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
23456         Windows.
23457         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
23458
23459 2011-02-13  Bruno Haible  <bruno@clisp.org>
23460
23461         mbsinit: Don't crash for a NULL argument.
23462         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
23463         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
23464
23465 2011-02-13  Bruno Haible  <bruno@clisp.org>
23466
23467         Don't interfere with a program's definition of __attribute__.
23468         * lib/stdio.in.h (__attribute__): Remove definition.
23469         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
23470         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
23471         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
23472         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
23473         * lib/string.in.h (__attribute__): Remove definition.
23474         Reported by Paul Eggert.
23475
23476 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23477
23478         stdlib: don't get in the way of non-GCC __attribute__
23479         See thread starting at
23480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
23481         Revert previous stdlib change, installing the following instead:
23482         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
23483         to get in the way of a non-GCC compiler that supports __attribute__.
23484         (_GL_ATTRIBUTE_RETURN): New macro.
23485         (_Exit): Use it instead of __attribute__.
23486
23487 2011-02-12  Bruno Haible  <bruno@clisp.org>
23488
23489         quotearg test: Avoid test failure on mingw.
23490         * tests/test-quotearg.sh: Convert the locale identifier from native
23491         Windows syntax to Unix syntax.
23492
23493 2011-02-12  Bruno Haible  <bruno@clisp.org>
23494
23495         setlocale: Prefer gnulib's override over libintl's override.
23496         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
23497         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
23498         GNULIB_defined_setlocale is set.
23499
23500 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
23501
23502         stdlib: support non-GCC __attribute__
23503
23504         Fix a serious and tricky problem encountered when attempting to
23505         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
23506         5.5, but it crashed due to memory corruption on Solaris 10 with
23507         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
23508         bits that are otherwise zero.  This tagging is optional inside
23509         Emacs but is preferred and is used when __attribute__ ((__aligned
23510         (8))) works, as it does with both recent-enough GCC and with Sun C
23511         5.11.  However, Sun C 5.11 is not GCC and does not #define
23512         __GNUC__ and __GNUC_MINOR__.
23513
23514         When I added the getloadavg module to Emacs, it brought in
23515         stdlib.in.h, which contained this fragment:
23516
23517            #ifndef __attribute__
23518            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
23519            #  define __attribute__(Spec)   /* empty */
23520            # endif
23521            #endif
23522
23523         When files that include <stdlib.h> were compiled with Sun C 5.11,
23524         the above code disabled __attribute__ ((__aligned (8))), which
23525         caused variables to not be properly aligned, which eventually led
23526         to the pointer corruption mentioned above.  (This was a bit hard
23527         to diagnose, unfortunately.)
23528
23529         Several "#define __attribute__(X) /* empty */" code snippets need
23530         to be eradicated from Gnulib to work with non-GCC compilers that
23531         support __attribute__.  The Autoconf way to do this is to test for
23532         each kind of attribute that we want support for, and selectively
23533         enable that in source code.
23534
23535         Fix this problem just for stdlib.h, by adding a test for the
23536         __noreturn__ attribute, and change stdlib.in.h to use that test
23537         when needed.  This technique can be easily generalized to the
23538         other *.in.h files and attributes, and a similar technique can be
23539         used for *.h and *.c files.  This patch is enough to solve the
23540         problem for Emacs + getloadavg, and I thought I'd publish it for
23541         feedback before undertaking further, similar fixes in other
23542         modules.
23543
23544         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
23545         because it's not needed for stdlib.h.  It merely substitutes the
23546         value directly into stdlib.h.  We may well need to #define it, or
23547         similar symbols, for other modules, but it's nice to also have an
23548         option to not #define it for applications like Emacs that do not
23549         need it.
23550
23551         * lib/stdlib.in.h (__attribute__): Do not #define.
23552         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
23553         be defined only if the _Exit module is also used.
23554         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
23555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
23556         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
23557         platforms.
23558         * modules/_Exit (Files): Add m4/attribute.m4.
23559         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
23560         * m4/attribute.m4: New file.
23561
23562 2011-02-12  Bruno Haible  <bruno@clisp.org>
23563
23564         wcsrtombs: Work around bug on native Windows.
23565         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
23566         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
23567         instead of len.
23568         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
23569
23570 2011-02-12  Bruno Haible  <bruno@clisp.org>
23571
23572         mbsrtowcs: Work around bug on native Windows.
23573         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
23574         against mingw bug.
23575         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
23576
23577 2011-02-12  Bruno Haible  <bruno@clisp.org>
23578
23579         Avoid setlocale bugs in tests.
23580         * modules/btowc (Dependencies): Add setlocale.
23581         * modules/c-strcase (Dependencies): Likewise.
23582         * modules/mbmemcasecmp (Dependencies): Likewise.
23583         * modules/mbmemcasecoll (Dependencies): Likewise.
23584         * modules/mbrtowc (Dependencies): Likewise.
23585         * modules/mbscasecmp (Dependencies): Likewise.
23586         * modules/mbscasestr (Dependencies): Likewise.
23587         * modules/mbschr (Dependencies): Likewise.
23588         * modules/mbscspn (Dependencies): Likewise.
23589         * modules/mbsinit (Dependencies): Likewise.
23590         * modules/mbsncasecmp (Dependencies): Likewise.
23591         * modules/mbsnrtowcs (Dependencies): Likewise.
23592         * modules/mbspbrk (Dependencies): Likewise.
23593         * modules/mbspcasecmp (Dependencies): Likewise.
23594         * modules/mbsrchr (Dependencies): Likewise.
23595         * modules/mbsrtowcs (Dependencies): Likewise.
23596         * modules/mbsspn (Dependencies): Likewise.
23597         * modules/mbsstr (Dependencies): Likewise.
23598         * modules/nl_langinfo (Dependencies): Likewise.
23599         * modules/quotearg (Dependencies): Likewise.
23600         * modules/unicase/locale-language (Dependencies): Likewise.
23601         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
23602         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
23603         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
23604         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
23605         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
23606         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
23607         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
23608         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
23609         * modules/vasnprintf-posix (Dependencies): Likewise.
23610         * modules/wcrtomb (Dependencies): Likewise.
23611         * modules/wcsnrtombs (Dependencies): Likewise.
23612         * modules/wcsrtombs (Dependencies): Likewise.
23613
23614 2011-02-12  Bruno Haible  <bruno@clisp.org>
23615
23616         setlocale: Workaround native Windows bug.
23617         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
23618         succeeds but sets LC_CTYPE to "C", report a failure.
23619         * tests/test-setlocale2.sh: New file.
23620         * tests/test-setlocale2.c: New file.
23621         * modules/setlocale-tests (Files): Add the new files.
23622         (Makefile.am): Enable test-setlocale2.sh test.
23623         * doc/posix-functions/setlocale.texi: Mention workaround.
23624
23625 2011-02-11  Bruno Haible  <bruno@clisp.org>
23626
23627         Tests for module 'setlocale'.
23628         * modules/setlocale-tests: New file.
23629         * tests/test-setlocale1.sh: New file.
23630         * tests/test-setlocale1.c: New file.
23631
23632         New module 'setlocale'.
23633         * lib/locale.in.h (setlocale): New declaration.
23634         * lib/setlocale.c: New file, based on
23635         gettext/gettext-runtime/intl/setlocale.c.
23636         * m4/setlocale.m4: New file.
23637         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
23638         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
23639         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
23640         REPLACE_SETLOCALE.
23641         * modules/setlocale: New file.
23642         * tests/test-locale-c++.cc: Test the declaration of setlocale.
23643         * doc/posix-functions/setlocale.texi: Mention the new module.
23644
23645 2011-02-11  Bruno Haible  <bruno@clisp.org>
23646
23647         Prepare for locale dependent tests on mingw.
23648         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
23649         because it has the wrong locale encoding.
23650         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
23651         French_France.1252 instead of "fr".
23652         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
23653         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
23654         because it has the wrong locale encoding.
23655         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
23656         native Windows, try Turkish_Turkey.65001.
23657         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
23658         Chinese_China.54936.
23659
23660         Prepare for locale dependent tests on mingw.
23661         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
23662         differently.
23663         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
23664         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
23665         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
23666         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23667
23668 2011-02-11  Eric Blake  <eblake@redhat.com>
23669
23670         strptime: avoid compiler warnings
23671         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
23672         compiler warnings about dead code.
23673         Reported by Daniel P. Berrange.
23674
23675 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
23676
23677         doc: update users.txt
23678         * users.txt: Add rcs.
23679
23680 2011-02-10  John W. Eaton  <jwe@gnu.org>
23681
23682         doc: update users.txt
23683         * users.txt: Add octave.
23684
23685 2011-02-10  Jim Meyering  <meyering@redhat.com>
23686
23687         doc: update users.txt
23688         * users.txt: Add iwhd.
23689
23690 2011-02-09  Bruno Haible  <bruno@clisp.org>
23691
23692         gnulib-tool: Make copyright notice adjustment more robust.
23693         * gnulib-tool (func_import): In sed_transform_main_lib_file,
23694         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
23695         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
23696         License".
23697         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
23698
23699 2011-02-06  Bruno Haible  <bruno@clisp.org>
23700
23701         New module 'towctrans'.
23702         * modules/towctrans: New file.
23703         * lib/wctype.in.h (towctrans): New declaration.
23704         * lib/towctrans.c: New file.
23705         * lib/towctrans-impl.h: New file.
23706         * m4/towctrans.m4: New file.
23707         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
23708         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
23709         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
23710         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
23711         * doc/posix-functions/towctrans.texi: Mention the new module.
23712
23713 2011-02-06  Bruno Haible  <bruno@clisp.org>
23714
23715         New module 'wctrans'.
23716         * modules/wctrans: New file.
23717         * lib/wctype.in.h (wctrans): New declaration.
23718         * lib/wctrans.c: New file.
23719         * lib/wctrans-impl.h: New file.
23720         * m4/wctrans.m4: New file.
23721         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
23722         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
23723         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
23724         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
23725         * doc/posix-functions/wctrans.texi: Mention the new module.
23726
23727 2011-02-06  Bruno Haible  <bruno@clisp.org>
23728
23729         New module 'iswctype'.
23730         * modules/iswctype: New file.
23731         * lib/wctype.in.h (iswctype): New declaration.
23732         * lib/iswctype.c: New file.
23733         * lib/iswctype-impl.h: New file.
23734         * m4/iswctype.m4: New file.
23735         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
23736         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
23737         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
23738         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
23739         * doc/posix-functions/iswctype.texi: Mention the new module and the
23740         HP-UX 11.00 problem.
23741
23742 2011-02-06  Bruno Haible  <bruno@clisp.org>
23743
23744         New module 'wctype'.
23745         * modules/wctype: Change to represent the wctype() substitute.
23746         * lib/wctype.in.h (wctype): New declaration.
23747         * lib/wctype.c: New file.
23748         * lib/wctype-impl.h: New file.
23749         * m4/wctype.m4: New file.
23750         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
23751         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
23752         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
23753         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
23754         * doc/posix-functions/wctype.texi: Mention the new module and the
23755         HP-UX 11.00 problem.
23756
23757 2011-02-06  Bruno Haible  <bruno@clisp.org>
23758
23759         wctype-h: Ensure wctype_t and wctrans_t are defined.
23760         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
23761         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23762         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
23763         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
23764         HAVE_WCTRANS_T.
23765         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
23766
23767 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
23768
23769         flock: fix license typo
23770
23771         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
23772         omitted.
23773
23774 2011-02-08  Bruno Haible  <bruno@clisp.org>
23775
23776         Split large sed scripts, for HP-UX sed.
23777         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
23778         to avoid HP-UX limit of 99 commands, in the near future.
23779         * modules/stdlib (Makefile.am): Likewise.
23780         * modules/unistd (Makefile.am): Likewise.
23781         * modules/wchar (Makefile.am): Likewise.
23782         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23783         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
23784         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
23785
23786 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23787             Bruno Haible  <bruno@clisp.org>
23788
23789         stdlib: improve random_r modularization
23790         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
23791         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
23792         you also need the random_r module to get this material right.
23793         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
23794         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
23795         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
23796
23797 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
23798
23799         stdlib: don't depend on stdint
23800         * lib/stdlib.in.h: Don't include <stdint.h> merely because
23801         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
23802         be independent of whether stdint.h is needed.
23803         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
23804         here, instead of ...
23805         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
23806         struct random_data should be using the random_r module, not just
23807         the stdlib module (which wouldn't make sense: what package needs
23808         just struct random_data without also needing random_r?).
23809         * modules/stdlib (Depends-on): Remove stdint.
23810
23811         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23812         See the thread rooted at
23813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23814         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23815         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23816         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23817         __VMS)); previously it was always included (via fcntl--.h).
23818         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23819         hand; this is good enough for load averages.  Also, do not use
23820         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23821         flags directly if available and don't bother otherwise.  (Packages
23822         that need the extra reliability should use the modules that define
23823         these flags on older platforms that lack them.)
23824         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23825         fcntl-safer.
23826
23827 2011-02-08  Jim Meyering  <meyering@redhat.com>
23828
23829         di-set.h, ino-map.h: add multiple-inclusion guard
23830         Technically, the guard is required only for ino-map.h, due to its
23831         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23832         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23833         * lib/ino-map.h: Likewise.
23834
23835 2011-02-06  Bruno Haible  <bruno@clisp.org>
23836
23837         iswblank: Ensure declaration on glibc systems.
23838         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23839         * modules/iswblank (Dependencies): Add 'extensions'.
23840         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23841
23842 2011-02-06  Bruno Haible  <bruno@clisp.org>
23843
23844         New module 'iswblank'.
23845         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23846         * modules/iswblank: New file.
23847         * modules/wctype-h (Files): Remove lib/iswblank.c.
23848         (Makefile.am): Substitute GNULIB_ISWBLANK.
23849         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23850         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23851         (gl_WCTYPE_H_DEFAULTS): New macro.
23852         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23853         * modules/iswblank-tests: New file.
23854         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23855         * tests/test-wctype-h.c (main): Remove iswblank tests.
23856         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23857         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23858         of 'wctype-h'.
23859         * NEWS: Mention the change.
23860         * modules/mbchar (Depends-on): Add iswblank.
23861
23862 2011-02-08  Bruno Haible  <bruno@clisp.org>
23863
23864         di-set tests: Refactor.
23865         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23866         unnecessary includes.
23867         (ASSERT): Remove macro.
23868         (main): Make C90 compliant by avoiding variable declaration after
23869         statement.
23870         * modules/di-set-tests (Files): Add tests/macros.h.
23871
23872 2011-02-08  Bruno Haible  <bruno@clisp.org>
23873
23874         ino-map tests: Refactor.
23875         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23876         unnecessary includes.
23877         (ASSERT): Remove macro.
23878         (main): Make C90 compliant by avoiding variable declaration after
23879         statement.
23880         * modules/ino-map-tests (Files): Add tests/macros.h.
23881
23882 2011-02-08  Jim Meyering  <meyering@redhat.com>
23883
23884         di-set: add "const" to a cast
23885         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23886         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23887
23888 2011-02-06  Bruno Haible  <bruno@clisp.org>
23889
23890         Rename module 'wctype' to 'wctype-h'.
23891         * modules/wctype-h: Renamed from modules/wctype.
23892         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23893         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23894         (Files, Depends-on, Makefile.am): Update.
23895         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23896         (Files, Makefile.am): Update.
23897         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23898         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23899         * doc/posix-headers/wctype.texi: Update.
23900         * doc/posix-functions/iswalnum.texi: Update.
23901         * doc/posix-functions/iswalpha.texi: Update.
23902         * doc/posix-functions/iswblank.texi: Update.
23903         * doc/posix-functions/iswcntrl.texi: Update.
23904         * doc/posix-functions/iswdigit.texi: Update.
23905         * doc/posix-functions/iswgraph.texi: Update.
23906         * doc/posix-functions/iswlower.texi: Update.
23907         * doc/posix-functions/iswprint.texi: Update.
23908         * doc/posix-functions/iswpunct.texi: Update.
23909         * doc/posix-functions/iswspace.texi: Update.
23910         * doc/posix-functions/iswupper.texi: Update.
23911         * doc/posix-functions/iswxdigit.texi: Update.
23912         * doc/posix-functions/towlower.texi: Update.
23913         * doc/posix-functions/towupper.texi: Update.
23914         * NEWS: Mention the change.
23915         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23916         * modules/mbchar (Dependencies): Likewise.
23917         * modules/mbswidth (Dependencies): Likewise.
23918         * modules/quotearg (Dependencies): Likewise.
23919         * modules/regex (Dependencies): Likewise.
23920         * modules/wcscasecmp (Dependencies): Likewise.
23921         * modules/wcsncasecmp (Dependencies): Likewise.
23922         * modules/wcwidth (Dependencies): Likewise.
23923
23924 2011-02-06  Bruno Haible  <bruno@clisp.org>
23925
23926         New module 'wcswidth'.
23927         * modules/wcswidth: New file.
23928         * lib/wchar.in.h (wcswidth): New declaration.
23929         * lib/wcswidth.c: New file.
23930         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23931         * m4/wcswidth.m4: New file.
23932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23934         REPLACE_WCSWIDTH.
23935         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23936         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23937         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23938         * doc/posix-functions/wcswidth.texi: Mention the new module.
23939
23940 2011-02-06  Bruno Haible  <bruno@clisp.org>
23941
23942         New module 'wcstok'.
23943         * modules/wcstok: New file.
23944         * lib/wchar.in.h (wcstok): New declaration.
23945         * lib/wcstok.c: New file.
23946         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23947         * m4/wcstok.m4: New file.
23948         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23949         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23950         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23951         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23952         * doc/posix-functions/wcstok.texi: Mention the new module.
23953
23954 2011-02-06  Bruno Haible  <bruno@clisp.org>
23955
23956         New module 'wcsstr'.
23957         * modules/wcsstr: New file.
23958         * lib/wchar.in.h (wcsstr): New declaration.
23959         * lib/wcsstr.c: New file.
23960         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23961         * m4/wcsstr.m4: New file.
23962         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23963         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23964         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23965         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23966         * doc/posix-functions/wcsstr.texi: Mention the new module.
23967
23968 2011-02-06  Bruno Haible  <bruno@clisp.org>
23969
23970         New module 'wcspbrk'.
23971         * modules/wcspbrk: New file.
23972         * lib/wchar.in.h (wcspbrk): New declaration.
23973         * lib/wcspbrk.c: New file.
23974         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23975         * m4/wcspbrk.m4: New file.
23976         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23977         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23978         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23979         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23980         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23981
23982 2011-02-06  Bruno Haible  <bruno@clisp.org>
23983
23984         New module 'wcsspn'.
23985         * modules/wcsspn: New file.
23986         * lib/wchar.in.h (wcsspn): New declaration.
23987         * lib/wcsspn.c: New file.
23988         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23989         * m4/wcsspn.m4: New file.
23990         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23991         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23992         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23993         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23994         * doc/posix-functions/wcsspn.texi: Mention the new module.
23995
23996 2011-02-06  Bruno Haible  <bruno@clisp.org>
23997
23998         New module 'wcscspn'.
23999         * modules/wcscspn: New file.
24000         * lib/wchar.in.h (wcscspn): New declaration.
24001         * lib/wcscspn.c: New file.
24002         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
24003         * m4/wcscspn.m4: New file.
24004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
24005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
24006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
24007         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
24008         * doc/posix-functions/wcscspn.texi: Mention the new module.
24009
24010 2011-02-06  Bruno Haible  <bruno@clisp.org>
24011
24012         New module 'wcsrchr'.
24013         * modules/wcsrchr: New file.
24014         * lib/wchar.in.h (wcsrchr): New declaration.
24015         * lib/wcsrchr.c: New file.
24016         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
24017         * m4/wcsrchr.m4: New file.
24018         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
24019         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
24020         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
24021         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
24022         * doc/posix-functions/wcsrchr.texi: Mention the new module.
24023
24024 2011-02-06  Bruno Haible  <bruno@clisp.org>
24025
24026         New module 'wcschr'.
24027         * modules/wcschr: New file.
24028         * lib/wchar.in.h (wcschr): New declaration.
24029         * lib/wcschr.c: New file.
24030         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
24031         * m4/wcschr.m4: New file.
24032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
24033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
24034         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
24035         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
24036         * doc/posix-functions/wcschr.texi: Mention the new module.
24037
24038 2011-02-06  Bruno Haible  <bruno@clisp.org>
24039
24040         New module 'wcsdup'.
24041         * modules/wcsdup: New file.
24042         * lib/wchar.in.h (wcsdup): New declaration.
24043         * lib/wcsdup.c: New file.
24044         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
24045         * m4/wcsdup.m4: New file.
24046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
24047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
24048         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
24049         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
24050         * doc/posix-functions/wcsdup.texi: Mention the new module.
24051
24052 2011-02-06  Bruno Haible  <bruno@clisp.org>
24053
24054         New module 'wcsxfrm'.
24055         * modules/wcsxfrm: New file.
24056         * lib/wchar.in.h (wcsxfrm): New declaration.
24057         * lib/wcsxfrm.c: New file.
24058         * lib/wcsxfrm-impl.h: New file.
24059         * m4/wcsxfrm.m4: New file.
24060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
24061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
24062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
24063         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
24064         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
24065
24066 2011-02-06  Bruno Haible  <bruno@clisp.org>
24067
24068         New module 'wcscoll'.
24069         * modules/wcscoll: New file.
24070         * lib/wchar.in.h (wcscoll): New declaration.
24071         * lib/wcscoll.c: New file.
24072         * lib/wcscoll-impl.h: New file.
24073         * m4/wcscoll.m4: New file.
24074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
24075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
24076         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
24077         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
24078         * doc/posix-functions/wcscoll.texi: Mention the new module.
24079
24080 2011-02-06  Bruno Haible  <bruno@clisp.org>
24081
24082         New module 'wcsncasecmp'.
24083         * modules/wcsncasecmp: New file.
24084         * lib/wchar.in.h (wcsncasecmp): New declaration.
24085         * lib/wcsncasecmp.c: New file.
24086         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
24087         * m4/wcsncasecmp.m4: New file.
24088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
24089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
24090         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
24091         HAVE_WCSNCASECMP.
24092         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
24093         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
24094
24095 2011-02-06  Bruno Haible  <bruno@clisp.org>
24096
24097         New module 'wcscasecmp'.
24098         * modules/wcscasecmp: New file.
24099         * lib/wchar.in.h (wcscasecmp): New declaration.
24100         * lib/wcscasecmp.c: New file.
24101         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
24102         * m4/wcscasecmp.m4: New file.
24103         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
24104         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
24105         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
24106         HAVE_WCSCASECMP.
24107         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
24108         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
24109
24110 2011-02-05  Bruno Haible  <bruno@clisp.org>
24111
24112         New module 'wcsncmp'.
24113         * modules/wcsncmp: New file.
24114         * lib/wchar.in.h (wcsncmp): New declaration.
24115         * lib/wcsncmp.c: New file.
24116         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
24117         * m4/wcsncmp.m4: New file.
24118         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
24119         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
24120         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
24121         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
24122         * doc/posix-functions/wcsncmp.texi: Mention the new module.
24123
24124 2011-02-05  Bruno Haible  <bruno@clisp.org>
24125
24126         New module 'wcscmp'.
24127         * modules/wcscmp: New file.
24128         * lib/wchar.in.h (wcscmp): New declaration.
24129         * lib/wcscmp.c: New file.
24130         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
24131         * m4/wcscmp.m4: New file.
24132         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
24133         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
24134         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
24135         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
24136         * doc/posix-functions/wcscmp.texi: Mention the new module.
24137
24138 2011-02-05  Bruno Haible  <bruno@clisp.org>
24139
24140         New module 'wcsncat'.
24141         * modules/wcsncat: New file.
24142         * lib/wchar.in.h (wcsncat): New declaration.
24143         * lib/wcsncat.c: New file.
24144         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
24145         * m4/wcsncat.m4: New file.
24146         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
24147         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
24148         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
24149         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
24150         * doc/posix-functions/wcsncat.texi: Mention the new module.
24151
24152 2011-02-05  Bruno Haible  <bruno@clisp.org>
24153
24154         New module 'wcscat'.
24155         * modules/wcscat: New file.
24156         * lib/wchar.in.h (wcscat): New declaration.
24157         * lib/wcscat.c: New file.
24158         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
24159         * m4/wcscat.m4: New file.
24160         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
24161         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
24162         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
24163         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
24164         * doc/posix-functions/wcscat.texi: Mention the new module.
24165
24166 2011-02-05  Bruno Haible  <bruno@clisp.org>
24167
24168         New module 'wcpncpy'.
24169         * modules/wcpncpy: New file.
24170         * lib/wchar.in.h (wcpncpy): New declaration.
24171         * lib/wcpncpy.c: New file.
24172         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
24173         * m4/wcpncpy.m4: New file.
24174         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
24175         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
24176         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
24177         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
24178         * doc/posix-functions/wcpncpy.texi: Mention the new module.
24179
24180 2011-02-05  Bruno Haible  <bruno@clisp.org>
24181
24182         New module 'wcsncpy'.
24183         * modules/wcsncpy: New file.
24184         * lib/wchar.in.h (wcsncpy): New declaration.
24185         * lib/wcsncpy.c: New file.
24186         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
24187         * m4/wcsncpy.m4: New file.
24188         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
24189         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
24190         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
24191         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
24192         * doc/posix-functions/wcsncpy.texi: Mention the new module.
24193
24194 2011-02-05  Bruno Haible  <bruno@clisp.org>
24195
24196         New module 'wcpcpy'.
24197         * modules/wcpcpy: New file.
24198         * lib/wchar.in.h (wcpcpy): New declaration.
24199         * lib/wcpcpy.c: New file.
24200         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
24201         * m4/wcpcpy.m4: New file.
24202         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
24203         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
24204         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
24205         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
24206         * doc/posix-functions/wcpcpy.texi: Mention the new module.
24207
24208 2011-02-05  Bruno Haible  <bruno@clisp.org>
24209
24210         New module 'wcscpy'.
24211         * modules/wcscpy: New file.
24212         * lib/wchar.in.h (wcscpy): New declaration.
24213         * lib/wcscpy.c: New file.
24214         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
24215         * m4/wcscpy.m4: New file.
24216         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
24217         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
24218         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
24219         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
24220         * doc/posix-functions/wcscpy.texi: Mention the new module.
24221
24222 2011-02-05  Bruno Haible  <bruno@clisp.org>
24223
24224         New module 'wcsnlen'.
24225         * modules/wcsnlen: New file.
24226         * lib/wchar.in.h (wcsnlen): New declaration.
24227         * lib/wcsnlen.c: New file.
24228         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
24229         * m4/wcsnlen.m4: New file.
24230         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
24231         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
24232         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
24233         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
24234         * doc/posix-functions/wcsnlen.texi: Mention the new module.
24235
24236 2011-02-05  Bruno Haible  <bruno@clisp.org>
24237
24238         New module 'wcslen'.
24239         * modules/wcslen: New file.
24240         * lib/wchar.in.h (wcslen): New declaration.
24241         * lib/wcslen.c: New file.
24242         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
24243         * m4/wcslen.m4: New file.
24244         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
24245         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
24246         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
24247         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
24248         * doc/posix-functions/wcslen.texi: Mention the new module.
24249
24250 2011-02-05  Bruno Haible  <bruno@clisp.org>
24251
24252         New module 'wmemset'.
24253         * modules/wmemset: New file.
24254         * lib/wchar.in.h (wmemset): New declaration.
24255         * lib/wmemset.c: New file.
24256         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
24257         * m4/wmemset.m4: New file.
24258         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
24259         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
24260         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
24261         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
24262         * doc/posix-functions/wmemset.texi: Mention the new module.
24263
24264 2011-02-05  Bruno Haible  <bruno@clisp.org>
24265
24266         New module 'wmemmove'.
24267         * modules/wmemmove: New file.
24268         * lib/wchar.in.h (wmemmove): New declaration.
24269         * lib/wmemmove.c: New file.
24270         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
24271         * m4/wmemmove.m4: New file.
24272         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
24273         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
24274         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
24275         HAVE_WMEMMOVE.
24276         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
24277         * doc/posix-functions/wmemmove.texi: Mention the new module.
24278
24279 2011-02-05  Bruno Haible  <bruno@clisp.org>
24280
24281         New module 'wmemcpy'.
24282         * modules/wmemcpy: New file.
24283         * lib/wchar.in.h (wmemcpy): New declaration.
24284         * lib/wmemcpy.c: New file.
24285         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
24286         * m4/wmemcpy.m4: New file.
24287         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
24288         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
24289         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
24290         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
24291         * doc/posix-functions/wmemcpy.texi: Mention the new module.
24292
24293 2011-02-05  Bruno Haible  <bruno@clisp.org>
24294
24295         New module 'wmemcmp'.
24296         * modules/wmemcmp: New file.
24297         * lib/wchar.in.h (wmemcmp): New declaration.
24298         * lib/wmemcmp.c: New file.
24299         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
24300         * m4/wmemcmp.m4: New file.
24301         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
24302         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
24303         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
24304         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
24305         * doc/posix-functions/wmemcmp.texi: Mention the new module.
24306
24307 2011-02-07  Jim Meyering  <meyering@redhat.com>
24308
24309         di-set, ino-map: new modules, from coreutils
24310         * lib/di-set.c: New file.
24311         * lib/di-set.h: Likewise.
24312         * lib/ino-map.c: Likewise.
24313         * lib/ino-map.h: Likewise.
24314         * modules/di-set: Likewise.
24315         * modules/di-set-tests: Likewise.
24316         * modules/ino-map: Likewise.
24317         * modules/ino-map-tests: Likewise.
24318         * tests/test-di-set.c: Likewise.
24319         * tests/test-ino-map.c: Likewise.
24320
24321 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
24322
24323         getloadavg: merge minor changes from Emacs
24324
24325         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
24326         (getloadavg): Use memset, not bzero.
24327
24328         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
24329         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
24330         clash (bug#86).
24331
24332 2010-11-14  Bruno Haible  <bruno@clisp.org>
24333
24334         Allow multiple gnulib generated replacements to coexist.
24335         * lib/getopt.in.h (struct option): Avoid identical redefinition.
24336         * lib/inttypes.in.h (imaxdiv_t): Likewise.
24337         * lib/langinfo.in.h (nl_item): Likewise.
24338         * lib/math.in.h (_NaN, NAN): Likewise.
24339         * lib/netdb.in.h (struct addrinfo): Likewise.
24340         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
24341         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
24342         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
24343         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
24344         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
24345         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
24346         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
24347         pthread_mutexattr_init, pthread_mutexattr_settype,
24348         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
24349         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
24350         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
24351         pthread_spin_trylock, pthread_spin_unlock): Likewise.
24352         * lib/sched.in.h (struct sched_param): Likewise.
24353         * lib/se-selinux.in.h (security_class_t, security_context_t,
24354         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
24355         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
24356         lsetfilecon, fsetfilecon, security_check_context,
24357         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
24358         Likewise.
24359         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
24360         Likewise.
24361         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
24362         _gl_function_taking_int_returning_void_t, union sigval,
24363         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
24364         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
24365         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24366         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
24367         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
24368         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
24369         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
24370         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
24371         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
24372         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
24373         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
24374         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
24375         socklen_t, rpl_fd_isset): Likewise.
24376         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
24377         * lib/sys_time.in.h (struct timeval): Likewise.
24378         * lib/sys_times.in.h (struct tms): Likewise.
24379         * lib/sys_utsname.in.h (struct utsname):
24380         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
24381         * lib/unistd.in.h (getpagesize): Likewise.
24382         * lib/wchar.in.h (mbstate_t): Likewise.
24383         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
24384         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
24385         towlower, towupper): Likewise.
24386         Reported by Sam Steingold <sds@gnu.org>.
24387
24388 2011-02-05  Eric Blake  <eblake@redhat.com>
24389
24390         unsetenv: work around Haiku issues
24391         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
24392         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
24393
24394 2010-12-30  Bruce Korb  <bkorb@gnu.org>
24395
24396         libposix: avoid calling error() within libposix
24397         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
24398         is defined.
24399
24400 2011-02-05  Eric Blake  <eblake@redhat.com>
24401
24402         strerror_r-posix: port to cygwin
24403         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
24404         implementation.
24405         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
24406         * tests/test-strerror_r.c (main): Fix test.
24407         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
24408         issue.
24409
24410 2011-02-05  Bruno Haible  <bruno@clisp.org>
24411
24412         New module 'wmemchr'.
24413         * modules/wmemchr: New file.
24414         * lib/wchar.in.h (wmemchr): New declaration.
24415         * lib/wmemchr.c: New file.
24416         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
24417         * m4/wmemchr.m4: New file.
24418         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
24419         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
24420         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
24421         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
24422         * doc/posix-functions/wmemchr.texi: Mention the new module.
24423
24424 2011-02-04  Eric Blake  <eblake@redhat.com>
24425
24426         fdopendir: detect FreeBSD bug
24427         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
24428         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
24429
24430 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
24431
24432         stdbool: do not define HAVE_STDBOOL_H
24433         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
24434         AC_HEADER_STDBOOL.  All uses changed.  Do not define
24435         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
24436         imported from the latest Autoconf git.  It was motivated by Emacs,
24437         which uses gnulib but does not need HAVE_STDBOOL_H.
24438
24439 2011-02-04  Bruno Haible  <bruno@clisp.org>
24440
24441         wcsnrtombs: Prepare for new module wwcsnrtombs.
24442         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
24443         * lib/wcsnrtombs.c: Include it.
24444         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
24445
24446         wcsrtombs: Prepare for new module wwcsrtombs.
24447         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
24448         * lib/wcsrtombs.c: Include it.
24449         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
24450
24451         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
24452         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
24453         * lib/mbsnrtowcs.c: Include it.
24454         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
24455
24456         mbsrtowcs: Prepare for new module mbsrtowwcs.
24457         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
24458         * lib/mbsrtowcs.c: Include it.
24459         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
24460
24461 2011-02-04  Bruno Haible  <bruno@clisp.org>
24462
24463         vasnprintf: Reduce use of malloc for small format strings.
24464         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
24465         (arguments): Add room for the first 7 arguments.
24466         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
24467         (char_directives, u8_directives, u16_directives, u32_directives): Add
24468         room for the first 7 directives.
24469         * lib/printf-parse.c: Include <string.h>.
24470         (PRINTF_PARSE): Change memory handling code so that it uses the first
24471         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
24472         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
24473         Reported by Pádraig Brady <P@draigbrady.com>.
24474
24475 2011-01-31  Eric Blake  <eblake@redhat.com>
24476
24477         dup2: work around Haiku bug
24478         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
24479         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
24480         * doc/posix-functions/dup2.texi (dup2): Document the bug.
24481         * tests/test-dup2.c (main): Enhance test.
24482
24483 2011-01-31  Simon Josefsson  <simon@josefsson.org>
24484
24485         doc: off_t is not available in eglibc 2.11.2 stdio.h.
24486         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
24487         declared by eglibc 2.11.2.
24488         * lib/stdio.in.h: Likewise.
24489
24490 2011-01-31  Eric Blake  <eblake@redhat.com>
24491
24492         ignore-value: add missing test dependency
24493         * tests/test-ignore-value.c: Revert previous change; stdio.h
24494         provides off_t.
24495         * modules/ignore-value-tests (Depends-on): Add missing dependency.
24496
24497 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
24498
24499         mktime: clarify long_int width checking
24500         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
24501         the top level, to make it clearer that the assumption about
24502         long_int width is being checked.  See
24503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
24504
24505 2011-01-30  Simon Josefsson  <simon@josefsson.org>
24506
24507         ignore-value: Fix self-test.
24508         * tests/test-ignore-value.c: Include sys/types.h for off_t.
24509
24510 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
24511
24512         TYPE_MAXIMUM: avoid theoretically undefined behavior
24513         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
24514         negative number, which the C Standard says has undefined behavior.
24515         In practice this is not a problem, but might as well do it by the book.
24516         Reported by Rich Felker and Eric Blake; see
24517         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
24518         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
24519         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
24520         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
24521         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
24522         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24523         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
24524
24525         mktime: #undef mktime before #defining it
24526         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
24527
24528         mktime: systematically normalize tm_isdst comparisons
24529         * lib/mktime.c (isdst_differ): New function.
24530         (__mktime_internal): Use it systematically for all isdst comparisons.
24531         This completes the fix for libc BZ #6723, and removes the need for
24532         normalizing tm_isdst.  See
24533         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
24534         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
24535
24536         mktime: fix some integer overflow issues and sidestep the rest
24537
24538         This was prompted by a bug report by Benjamin Lindner for MinGW
24539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
24540         His bug is due to signed integer overflow (0 - INT_MIN), and I
24541         I scanned through mktime.c looking for other integer overflow
24542         problems, fixing all the bugs I found.
24543
24544         Although the C Standard says the resulting code is still not safe
24545         in the presence of integer overflow, in practice it should be good
24546         enough for all real-world two's-complement implementations, except
24547         for debugging environments that deliberately trap on integer
24548         overflow (e.g., gcc -ftrapv).
24549
24550         * lib/mktime.c (WRAPV): New macro.
24551         (SHR): Also check that long_int and time_t shift right in the
24552         usual way, before using the fast-but-unportable method.
24553         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
24554         used.  The code already assumed two's complement, so there's
24555         no need to test for alternatives.  All uses removed.
24556         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
24557         the C standard.  Problem reported by Rich Felker in
24558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
24559         (twos_complement_arithmetic): Also check long_int and time_t.
24560         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
24561         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
24562         (__mktime_internal): Avoid integer overflow with unary subtraction
24563         in two instances where -1 - X is an adequate replacement for -X,
24564         since the calculations are approximate.
24565
24566 2011-01-29  Eric Blake  <eblake@redhat.com>
24567
24568         mktime: avoid infinite loop
24569         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
24570         type; behavior is still undefined but portable to all known targets.
24571         Reported by Rich Felker.
24572
24573 2011-01-29  Simon Josefsson  <simon@josefsson.org>
24574
24575         rename, unlink, same-inode: Relicense.
24576         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
24577         * modules/unlink (License): Likewise.
24578         * modules/same-inode (License): Likewise.
24579
24580 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
24581
24582         mktime: avoid problems on NetBSD 5 / i386
24583         * lib/mktime.c (long_int): New type.  This works around a problem
24584         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
24585         but time_t is 64 bits, and where I expect the existing code is
24586         wrong in some cases.
24587         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
24588         (ydhms_diff): Bring back the compile-time check for wide-enough
24589         year and yday.
24590
24591         mktime: fix misspelling in comment
24592         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
24593         This merges all recent glibc changes of importance.
24594
24595 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24596
24597         move-if-change: cope with concurrent mv of identical file.
24598         * build-aux/move-if-change (CMPPROG): Accept environment
24599         variable as an override for `cmp'.
24600         (usage): Document CMPPROG.
24601         Adjust comparison to drop stdout.  Cope with failure of mv if
24602         the target file exists and is identical to the source, for
24603         parallel builds.
24604         Report from H.J. Lu against binutils in PR binutils/12283.
24605
24606 2011-01-28  Bruce Korb  <bkorb@gnu.org>
24607
24608         * users.txt: Mention sharutils.
24609
24610 2011-01-28  Simon Josefsson  <simon@josefsson.org>
24611
24612         * users.txt: Mention OATH Toolkit.
24613
24614 2011-01-27  Bruno Haible  <bruno@clisp.org>
24615
24616         Prepare for supporting FreeBSD 10.
24617         * build-aux/config.libpath: Remove handling of freebsd1*.
24618
24619 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
24620
24621         Prepare for supporting FreeBSD 10.
24622         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
24623         match FreeBSD 10.0.
24624
24625 2011-01-27  Bruno Haible  <bruno@clisp.org>
24626
24627         vma-iter, get-rusage-as: Add OpenBSD support.
24628         * modules/vma-iter (configure.ac): Test for mquery.
24629         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
24630         * lib/vma-iter.c: Include <sys/mman.h>.
24631         (vma_iterate): Add an implementation based on mquery().
24632         * lib/resource-ext.h (get_rusage_as): Update comments.
24633         * lib/get-rusage-as.c: Likewise.
24634         * lib/get-rusage-data.c: Likewise.
24635
24636 2011-01-26  Karl Berry  <karl@gnu.org>
24637
24638         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
24639         variables to make it easier to override the makeinfo program used.
24640
24641 2011-01-26  Eric Blake  <eblake@redhat.com>
24642
24643         fcntl: work around Haiku F_DUPFD bugs
24644         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
24645         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
24646         cloexec bit on duplication.
24647         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
24648
24649 2011-01-26  Bruno Haible  <bruno@clisp.org>
24650
24651         Enable memory leak tests on AIX.
24652         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
24653         * tests/test-fprintf-posix3.c (main): Likewise.
24654
24655 2011-01-26  Bruno Haible  <bruno@clisp.org>
24656
24657         Tests for module 'get-rusage-data'.
24658         * modules/get-rusage-data-tests: New file.
24659         * tests/test-get-rusage-data.c: New file.
24660
24661         New module 'get-rusage-data'.
24662         * lib/resource-ext.h (get_rusage_data): New declaration.
24663         * lib/get-rusage-data.c: New file.
24664         * modules/get-rusage-data: New file.
24665
24666 2011-01-25  Bruno Haible  <bruno@clisp.org>
24667
24668         get-rusage-as: Allow for easier testing.
24669         * lib/resource-ext.h (get_rusage_as): Add comment.
24670         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
24671         (main): New function for interactive testing.
24672
24673 2011-01-25  Bruno Haible  <bruno@clisp.org>
24674
24675         vma-iter: Treat Haiku like BeOS.
24676         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
24677         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
24678
24679 2011-01-25  Eric Blake  <eblake@redhat.com>
24680
24681         c-stack: fix regression on cygwin when libsigsegv is present
24682         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
24683
24684 2011-01-24  Bruno Haible  <bruno@clisp.org>
24685
24686         vma-iter: Avoid empty intervals.
24687         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
24688         on an empty interval.
24689
24690 2011-01-24  Jim Meyering  <meyering@redhat.com>
24691
24692         u64: remove unnecessary #include
24693         * lib/u64.h: Don't include <stddef.h>.  It was not used.
24694
24695 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
24696
24697         Allow the user to avoid the HAVE_RAW_DECL_* macros.
24698         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
24699
24700 2011-01-23  Bruno Haible  <bruno@clisp.org>
24701
24702         New module 'vma-iter'.
24703         * lib/vma-iter.h: New file.
24704         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
24705         * modules/vma-iter: New file.
24706         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
24707         for get_rusage_as_via_iterator.
24708         (vma_iterate_callback): New function.
24709         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
24710         * modules/get-rusage-as (Depends-on): Add vma-iter.
24711
24712 2011-01-23  Bruno Haible  <bruno@clisp.org>
24713
24714         uninorm: Tweak includes.
24715         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
24716         Reported by Jim Meyering.
24717
24718 2011-01-23  Bruno Haible  <bruno@clisp.org>
24719
24720         get-rusage-as: Improve on NetBSD.
24721         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
24722         /proc, like on FreeBSD.
24723
24724 2011-01-23  Jim Meyering  <meyering@redhat.com>
24725
24726         xreadlink.h: remove unnecessary #include
24727         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
24728
24729         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
24730         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
24731
24732 2011-01-23  Bruno Haible  <bruno@clisp.org>
24733
24734         get-rusage-as: Fix bug.
24735         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
24736         original limit when aborting the first loop.
24737
24738 2011-01-23  Bruno Haible  <bruno@clisp.org>
24739
24740         wctype: Ensure valid C syntax.
24741         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
24742         unconditionally, instead of gl_NEXT_HEADERS conditionally.
24743
24744 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
24745
24746         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
24747         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
24748         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
24749         as they are needed only for configure's test case.
24750         This removes two unnecessary symbols from config.h.
24751
24752         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
24753         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
24754         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
24755         AC_CHECK_HEADERS_ONCE on a header that we also invoke
24756         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
24757         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
24758         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
24759         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
24760         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24761         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24762         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
24763         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24764         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24765         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24766         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
24767         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24768         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
24769         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24770
24771 2011-01-21  Eric Blake  <eblake@redhat.com>
24772
24773         maintainer-makefile: work with older git for submodule check
24774         * top/maint.mk (public-submodule-commit): Rewrite to avoid
24775         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
24776         Reported by Matthias Bolte.
24777
24778         bootstrap: minor portability fixes
24779         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
24780         (usage): Omit leading capital and trailing . on help phrases, per
24781         GNU Coding Standards.
24782         (check_versions, top level): Prefix messages with script name.
24783
24784 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
24785
24786         bootstrap: support --no-git option
24787         * build-aux/bootstrap: Add --no-git option, to be used when
24788         --gnulib-srcdir points to the exact desired checkout.
24789
24790 2011-01-21  Eric Blake  <eblake@redhat.com>
24791
24792         strerror_r-posix: work with glibc 2.13
24793         * lib/strerror_r.c (strerror_r): Fix return type.
24794
24795 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24796             Bruno Haible  <bruno@clisp.org>
24797
24798         uN_strstr: New unit tests.
24799         * modules/unistr/u8-strstr-tests: New file.
24800         * modules/unistr/u16-strstr-tests: New file.
24801         * modules/unistr/u32-strstr-tests: New file.
24802         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
24803         * tests/unistr/test-u8-strstr.c: New file.
24804         * tests/unistr/test-u16-strstr.c: New file.
24805         * tests/unistr/test-u32-strstr.c: New file.
24806
24807 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24808             Bruno Haible  <bruno@clisp.org>
24809
24810         Make uN_strstr functions O(n) worst-case.
24811         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24812         16-bit and 32-bit unit cases, use the unibyte algorithm from
24813         lib/mbsstr.c.
24814         * lib/unistr/u8-strstr.c: Include <string.h>.
24815         (UNIT_IS_UINT8_T): New macro.
24816         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24817         (U_STRLEN, U_STRNLEN): New macros.
24818         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24819         (U_STRLEN, U_STRNLEN): New macros.
24820         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24821         (configure.ac): Update required libunistring version.
24822         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24823         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24824         malloca.
24825         (configure.ac): Update required libunistring version.
24826         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24827         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24828         malloca.
24829         (configure.ac): Update required libunistring version.
24830
24831 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24832             Bruno Haible  <bruno@clisp.org>
24833
24834         Prepare for faster uN_strstr functions.
24835         * lib/str-kmp.h: Support definable UNITs.
24836         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24837         needle_len argument.
24838         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24839         * lib/mbscasestr.c (mbscasestr): Likewise.
24840
24841 2011-01-21  Pádraig Brady <P@draigBrady.com>
24842
24843         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24844         * tests/test-malloca.c (main): Unset the environment variable
24845         to greatly speed up the test.
24846         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24847         * modules/malloca-tests: Depend on unsetenv.
24848
24849 2011-01-21  Pádraig Brady <P@draigBrady.com>
24850
24851         ignore-value: remove stdint dependency
24852         * lib/ignore-value.h: Remove <stdint.h>
24853         * modules/ignore-value: Remove stdint dependency.
24854
24855 2011-01-21  Jim Meyering  <meyering@redhat.com>
24856
24857         maint.mk: adjust variable name to be consistent with other gl_ vars
24858         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24859         to be lower case.
24860
24861 2011-01-20  Jim Meyering  <meyering@redhat.com>
24862
24863         maint.mk: make "check" depend on public-submodule-commit by default
24864         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24865
24866 2011-01-20  Bruno Haible  <bruno@clisp.org>
24867
24868         mbfile, mbiter: Complete change from 2008-12-21.
24869         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24870         * m4/mbiter.m4 (gl_MBITER): Likewise.
24871
24872 2011-01-20  Jim Meyering  <meyering@redhat.com>
24873
24874         init.sh: insert space between each function name and "()"
24875         * tests/init.sh: Make it a little easier to see that a function's
24876         name is "warn_", and not "warn" when looking at the first part of
24877         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24878
24879 2011-01-20  Jim Meyering  <meyering@redhat.com>
24880
24881         mountlist: clean up code formatting
24882         * lib/mountlist.c (read_file_system_list): Split a long line,
24883         correct bracing style, use NULL in place of "(struct statfs *)0",
24884         don't parenthesize return value, add spaces around "=" and after
24885         ";-in-for-stmt".
24886
24887 2011-01-14  Markus Duft <mduft@gentoo.org>
24888
24889         mountlist: add support for Interix
24890         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24891         Apply statvfs to all entries of /dev/fs.
24892         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24893         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24894
24895 2011-01-20  Jim Meyering  <meyering@redhat.com>
24896
24897         maint.mk: improve the public-submodule-commit rule
24898         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24899         to suppress printing of its commands... unless V=1.
24900         Add git submodule's --quiet option to suppress printing of e.g.,
24901         "Entering gnulib" output.
24902         "cd" into $(srcdir) before running git submodule.
24903
24904 2011-01-20  Bruno Haible  <bruno@clisp.org>
24905
24906         include_next: Fix bug introduced on 2011-01-18.
24907         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24908         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24909         ac_cv_header_... variable if the second argument is not 'check'.
24910         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24911         gl_NEXT_HEADERS_INTERNAL.
24912
24913 2011-01-20  Bruno Haible  <bruno@clisp.org>
24914
24915         Allow the user to avoid the GNULIB_TEST_* macros.
24916         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24917         Suggested by Paul Eggert.
24918
24919 2011-01-14  Jim Meyering  <meyering@redhat.com>
24920
24921         bootstrap: avoid failure when there is no .gitmodules file
24922         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24923         has been assigned to, even when its value is the empty string.
24924         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24925         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24926         Reported by John W. Eaton <jwe@gnu.org>.
24927
24928 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24929
24930         assume <ctype.h>, ..., <time.h> exist
24931         For years gnulib has been assuming the existence of the headers
24932         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24933         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24934         them, since they don't appear to be needed.
24935         * README (Portability guidelines): Document this.
24936         * lib/flock.c: Assume <fcntl.h> exists.
24937         * lib/regex_internal.h: Assume <locale.h> exists.
24938         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24939         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24940         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24941         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24942         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24943         * m4/regex.m4 (gl_REGEX): Likewise.
24944         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24945         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24946         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24947         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24948         * tests/test-argp.c: Likewise.
24949         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24950
24951         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24952         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24953         AA_APPLE_UNIVERSAL_BUILD.  See
24954         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24955         * NEWS: Document this.
24956
24957 2011-01-19  Eric Blake  <eblake@redhat.com>
24958
24959         c-stack: assume stack overflow if SA_SIGINFO unsupported
24960         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24961         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24962         sigaction will work.
24963         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24964         behavior match Linux.
24965         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24966
24967         stdbool-tests: accommodate Haiku
24968         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24969
24970         binary-io: fix O_TEXT on Haiku
24971         * modules/binary-io (Depends-on): Add fcntl-h.
24972         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24973         than blindly undefining O_TEXT.
24974         Reported by Scott McCreary.
24975
24976 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24977
24978         include_next: do not check for standard headers like stddef.h
24979
24980         I found this problem when modifying Emacs to use gnulib.
24981         I noticed that it added HAVE_STDDEF_H to config.h, even though
24982         gnulib always assumes <stddef.h> exists as per README and this
24983         symbol is unnecessary.
24984         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24985         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24986         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24987         faster for headers like stddef.h that are known to exist.
24988         (gl_CHECK_NEXT_HEADERS): Use it.
24989         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24990         rather than gl_CHECK_NEXT_HEADERS.
24991         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24992         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24993
24994 2011-01-18  Eric Blake  <eblake@redhat.com>
24995
24996         ansi-c++-opt: skip C++ dependency style if C++ is unused
24997         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24998         tests when we know C++ compilation is not desired.
24999         Reported by Scott McCreary.
25000
25001 2011-01-18  Bruno Haible  <bruno@clisp.org>
25002
25003         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
25004         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
25005         (main): Perform test also when getrlimit and setrlimit don't exist or
25006         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
25007         limiting the address space size using setrlimit, compare the address
25008         space size before and after the the test.
25009         * tests/test-dprintf-posix2.c: Likewise.
25010         * tests/test-fprintf-posix3.sh: Update skip messages.
25011         * tests/test-dprintf-posix2.sh: Likewise.
25012         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
25013         * modules/dprintf-posix-tests (Depends-on): Likewise.
25014         Reported by Bruce Korb <bkorb@gnu.org> and
25015         Gary V. Vaughan <gary@gnu.org>.
25016
25017 2011-01-18  Bruno Haible  <bruno@clisp.org>
25018
25019         get-rusage-as: Improvement for Cygwin.
25020         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
25021         areas that are merely reserved.
25022
25023 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
25024
25025         strftime: remove dependencies on multibyte modules
25026
25027         strftime depended on mbrlen, mbsinit, and wchar, but these modules
25028         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
25029         only if __osf__ is defined, and I suspect OSF doesn't need these
25030         other modules.  If my guess is wrong, we'll need to come up with a
25031         variant of strftime that doesn't need the multibyte modules.
25032
25033         I discovered this problem when attempting modify Emacs to use the
25034         strftime module.  With the previous gnulib, this caused Emacs to
25035         need 31 new files, ranging from lib/config.charset to
25036         m4/wint_t.m4.  This was overkill and I expect would be offputting
25037         to the Emacs maintainers.  After this change, only 6 new files are
25038         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
25039         stdbool.m4, and tm_gmtoff.m4.
25040
25041         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
25042         Suggested by Bruno Haible in
25043         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
25044         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
25045         and do not check for wchar.h.
25046         * modules/strftime (Files): Remove m4/mbstate_t.m4.
25047         (Depends-on): Remove mbrlen, mbsinit, wchar.
25048
25049 2011-01-18  Bruno Haible  <bruno@clisp.org>
25050
25051         Tests for module 'get-rusage-as'.
25052         * modules/get-rusage-as-tests: New file.
25053         * tests/test-get-rusage-as.c: New file.
25054
25055         New module 'get-rusage-as'.
25056         * modules/get-rusage-as: New file.
25057         * lib/resource-ext.h: New file.
25058         * lib/get-rusage-as.c: New file.
25059
25060 2011-01-17  Eric Blake  <eblake@redhat.com>
25061
25062         sigaction: relax license from LGPLv3+ to LGPLv2+
25063         * modules/sigaction (License): Relax to LGPLv2+.
25064
25065 2011-01-14  Bruno Haible  <bruno@clisp.org>
25066
25067         filemode: Make function declarations usable in C++ mode.
25068         * lib/filemode.h: Enclose function declarations in extern "C" block.
25069         Reported by John W. Eaton <jwe@gnu.org>.
25070
25071 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
25072
25073         save-cwd: no longer include "xgetcwd.h"
25074         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
25075         This avoids a compilation failure in projects that use save-cwd
25076         without also using the xgetcwd module.
25077
25078 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25079
25080         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
25081         This is so that a program like Emacs, which needs only dtoastr,
25082         does not have to bother with distributing and compiling ftoastr
25083         and ldtoastr.
25084         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
25085         * modules/dtoastr, modules/ldtoastr: New files.
25086         * modules/ftoastr: Now works just for 'float'.
25087         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
25088         (Makefile.am): Remove ftoastr.h (not needed and no effect),
25089         dtoastr.c, ldtoastr.c.
25090
25091 2011-01-11  Jim Meyering  <meyering@redhat.com>
25092
25093         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
25094         There is no need to work around the lack of the fchdir function,
25095         since gnulib can now provide a replacement when required.
25096         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
25097         * modules/save-cwd (Depends-on): Add fchdir.
25098
25099 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
25100
25101         openat, save-cwd: avoid xmalloc
25102
25103         This removes a direct (but undocumented) dependency of openat on
25104         xalloc, along with an indirect dependency via save-cwd.  It also
25105         removes a dependency of save-cwd on xgetcwd, and thereby
25106         indirectly on xalloc.  This change causes the openat substitute
25107         to fall back on save_cwd when memory is tight, and for save_cwd to
25108         fail instead of dying when memory is tight, but that's good enough.
25109         Problem and initial idea for fix reported by Bastien Roucaries in
25110         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
25111
25112         * lib/openat-proc.c: Include stdlib.h (for malloc), not
25113         xalloc.h (for xmalloc).
25114         (openat_proc_name): Use malloc, not xmalloc.
25115         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
25116         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
25117
25118         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
25119         This avoids heap allocation for file names whose lengths are in
25120         the range 512..1023, with the upper bound increasing to at most
25121         4031 depending on the platform's PATH_MAX.  (We do not want
25122         pathmax.h here as it might supply a non-constant PATH_MAX.)
25123         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
25124         Perhaps they should be moved to malloca.h?
25125         (OPENAT_BUFFER_SIZE): Use them.
25126
25127 2011-01-10  Bruno Haible  <bruno@clisp.org>
25128
25129         doc: Update users.txt.
25130         * users.txt: Add recutils.
25131
25132 2011-01-09  Karl Berry  <karl@gnu.org>
25133
25134         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
25135
25136         * doc/configmake.texi: New file.
25137         * doc/gnulib.texi: Include it.
25138         * modules/configmake: Move documentation from here.
25139
25140 2011-01-09  Bruno Haible  <bruno@clisp.org>
25141
25142         Update to Unicode 6.0.0.
25143         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
25144         (get_lbp): Update for Unicode 6.0.0.
25145         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
25146         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
25147         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
25148         U+11001, U+11038..U+11046. Remove U+06DE.
25149         (uc_width): Fix bounds of planes.
25150         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25151         lib/uniwidth/width.c.
25152         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
25153         trailing whitespace removed.
25154         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
25155         without comments, but with the original copyright notice.
25156         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
25157         * lib/unicase/ignorable.h: Likewise.
25158         * lib/unicase/tocasefold.h: Likewise.
25159         * lib/unicase/tolower.h: Likewise.
25160         * lib/unicase/totitle.h: Likewise.
25161         * lib/unicase/toupper.h: Likewise.
25162         * lib/unictype/bidi_of.h: Likewise.
25163         * lib/unictype/blocks.h: Likewise.
25164         * lib/unictype/categ_C.h: Likewise.
25165         * lib/unictype/categ_Cn.h: Likewise.
25166         * lib/unictype/categ_L.h: Likewise.
25167         * lib/unictype/categ_Ll.h: Likewise.
25168         * lib/unictype/categ_Lm.h: Likewise.
25169         * lib/unictype/categ_Lo.h: Likewise.
25170         * lib/unictype/categ_Lu.h: Likewise.
25171         * lib/unictype/categ_M.h: Likewise.
25172         * lib/unictype/categ_Mc.h: Likewise.
25173         * lib/unictype/categ_Me.h: Likewise.
25174         * lib/unictype/categ_Mn.h: Likewise.
25175         * lib/unictype/categ_N.h: Likewise.
25176         * lib/unictype/categ_Nd.h: Likewise.
25177         * lib/unictype/categ_No.h: Likewise.
25178         * lib/unictype/categ_P.h: Likewise.
25179         * lib/unictype/categ_Po.h: Likewise.
25180         * lib/unictype/categ_S.h: Likewise.
25181         * lib/unictype/categ_Sc.h: Likewise.
25182         * lib/unictype/categ_Sk.h: Likewise.
25183         * lib/unictype/categ_Sm.h: Likewise.
25184         * lib/unictype/categ_So.h: Likewise.
25185         * lib/unictype/categ_of.h: Likewise.
25186         * lib/unictype/combining.h: Likewise.
25187         * lib/unictype/ctype_alnum.h: Likewise.
25188         * lib/unictype/ctype_alpha.h: Likewise.
25189         * lib/unictype/ctype_graph.h: Likewise.
25190         * lib/unictype/ctype_lower.h: Likewise.
25191         * lib/unictype/ctype_print.h: Likewise.
25192         * lib/unictype/ctype_punct.h: Likewise.
25193         * lib/unictype/ctype_upper.h: Likewise.
25194         * lib/unictype/decdigit.h: Likewise.
25195         * lib/unictype/digit.h: Likewise.
25196         * lib/unictype/numeric.h: Likewise.
25197         * lib/unictype/pr_alphabetic.h: Likewise.
25198         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25199         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25200         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25201         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25202         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25203         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25204         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25205         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25206         * lib/unictype/pr_case_ignorable.h: Likewise.
25207         * lib/unictype/pr_cased.h: Likewise.
25208         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
25209         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
25210         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
25211         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
25212         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
25213         * lib/unictype/pr_combining.h: Likewise.
25214         * lib/unictype/pr_composite.h: Likewise.
25215         * lib/unictype/pr_currency_symbol.h: Likewise.
25216         * lib/unictype/pr_decimal_digit.h: Likewise.
25217         * lib/unictype/pr_deprecated.h: Likewise.
25218         * lib/unictype/pr_format_control.h: Likewise.
25219         * lib/unictype/pr_grapheme_base.h: Likewise.
25220         * lib/unictype/pr_grapheme_extend.h: Likewise.
25221         * lib/unictype/pr_grapheme_link.h: Likewise.
25222         * lib/unictype/pr_id_continue.h: Likewise.
25223         * lib/unictype/pr_id_start.h: Likewise.
25224         * lib/unictype/pr_ideographic.h: Likewise.
25225         * lib/unictype/pr_lowercase.h: Likewise.
25226         * lib/unictype/pr_math.h: Likewise.
25227         * lib/unictype/pr_numeric.h: Likewise.
25228         * lib/unictype/pr_other_alphabetic.h: Likewise.
25229         * lib/unictype/pr_other_id_continue.h: Likewise.
25230         * lib/unictype/pr_other_math.h: Likewise.
25231         * lib/unictype/pr_punctuation.h: Likewise.
25232         * lib/unictype/pr_sentence_terminal.h: Likewise.
25233         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25234         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25235         * lib/unictype/pr_unified_ideograph.h: Likewise.
25236         * lib/unictype/pr_uppercase.h: Likewise.
25237         * lib/unictype/pr_xid_continue.h: Likewise.
25238         * lib/unictype/pr_xid_start.h: Likewise.
25239         * lib/unictype/scripts.h: Likewise.
25240         * lib/unictype/scripts_byname.gperf: Likewise.
25241         * lib/unictype/sy_java_ident.h: Likewise.
25242         * lib/unigbrk/gbrkprop.h: Likewise.
25243         * lib/unilbrk/lbrkprop1.h: Likewise.
25244         * lib/unilbrk/lbrkprop2.h: Likewise.
25245         * lib/uninorm/decomposition-table2.h: Likewise.
25246         * lib/uniwbrk/wbrkprop.h: Likewise.
25247         * tests/unicase/test-cased.c: Likewise.
25248         * tests/unicase/test-ignorable.c: Likewise.
25249         * tests/unicase/test-uc_tolower.c: Likewise.
25250         * tests/unicase/test-uc_totitle.c: Likewise.
25251         * tests/unicase/test-uc_toupper.c: Likewise.
25252         * tests/unictype/test-categ_C.c: Likewise.
25253         * tests/unictype/test-categ_Cn.c: Likewise.
25254         * tests/unictype/test-categ_L.c: Likewise.
25255         * tests/unictype/test-categ_Ll.c: Likewise.
25256         * tests/unictype/test-categ_Lm.c: Likewise.
25257         * tests/unictype/test-categ_Lo.c: Likewise.
25258         * tests/unictype/test-categ_Lu.c: Likewise.
25259         * tests/unictype/test-categ_M.c: Likewise.
25260         * tests/unictype/test-categ_Mc.c: Likewise.
25261         * tests/unictype/test-categ_Me.c: Likewise.
25262         * tests/unictype/test-categ_Mn.c: Likewise.
25263         * tests/unictype/test-categ_N.c: Likewise.
25264         * tests/unictype/test-categ_Nd.c: Likewise.
25265         * tests/unictype/test-categ_No.c: Likewise.
25266         * tests/unictype/test-categ_P.c: Likewise.
25267         * tests/unictype/test-categ_Po.c: Likewise.
25268         * tests/unictype/test-categ_S.c: Likewise.
25269         * tests/unictype/test-categ_Sc.c: Likewise.
25270         * tests/unictype/test-categ_Sk.c: Likewise.
25271         * tests/unictype/test-categ_Sm.c: Likewise.
25272         * tests/unictype/test-categ_So.c: Likewise.
25273         * tests/unictype/test-ctype_alnum.c: Likewise.
25274         * tests/unictype/test-ctype_alpha.c: Likewise.
25275         * tests/unictype/test-ctype_graph.c: Likewise.
25276         * tests/unictype/test-ctype_lower.c: Likewise.
25277         * tests/unictype/test-ctype_print.c: Likewise.
25278         * tests/unictype/test-ctype_punct.c: Likewise.
25279         * tests/unictype/test-ctype_upper.c: Likewise.
25280         * tests/unictype/test-decdigit.h: Likewise.
25281         * tests/unictype/test-digit.h: Likewise.
25282         * tests/unictype/test-numeric.h: Likewise.
25283         * tests/unictype/test-pr_alphabetic.c: Likewise.
25284         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25285         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
25286         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
25287         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25288         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25289         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25290         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25291         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25292         * tests/unictype/test-pr_case_ignorable.c: Likewise.
25293         * tests/unictype/test-pr_cased.c: Likewise.
25294         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
25295         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
25296         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
25297         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
25298         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
25299         * tests/unictype/test-pr_combining.c: Likewise.
25300         * tests/unictype/test-pr_composite.c: Likewise.
25301         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25302         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25303         * tests/unictype/test-pr_deprecated.c: Likewise.
25304         * tests/unictype/test-pr_format_control.c: Likewise.
25305         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25306         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25307         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25308         * tests/unictype/test-pr_id_continue.c: Likewise.
25309         * tests/unictype/test-pr_id_start.c: Likewise.
25310         * tests/unictype/test-pr_ideographic.c: Likewise.
25311         * tests/unictype/test-pr_lowercase.c: Likewise.
25312         * tests/unictype/test-pr_math.c: Likewise.
25313         * tests/unictype/test-pr_numeric.c: Likewise.
25314         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25315         * tests/unictype/test-pr_other_id_continue.c: Likewise.
25316         * tests/unictype/test-pr_other_math.c: Likewise.
25317         * tests/unictype/test-pr_punctuation.c: Likewise.
25318         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25319         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25320         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25321         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25322         * tests/unictype/test-pr_uppercase.c: Likewise.
25323         * tests/unictype/test-pr_xid_continue.c: Likewise.
25324         * tests/unictype/test-pr_xid_start.c: Likewise.
25325         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25326         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25327         changes.
25328         * lib/unictype/categ_Cc.h: Likewise.
25329         * lib/unictype/categ_Cf.h: Likewise.
25330         * lib/unictype/categ_Co.h: Likewise.
25331         * lib/unictype/categ_Cs.h: Likewise.
25332         * lib/unictype/categ_Lt.h: Likewise.
25333         * lib/unictype/categ_Nl.h: Likewise.
25334         * lib/unictype/categ_Pc.h: Likewise.
25335         * lib/unictype/categ_Pd.h: Likewise.
25336         * lib/unictype/categ_Pe.h: Likewise.
25337         * lib/unictype/categ_Pf.h: Likewise.
25338         * lib/unictype/categ_Pi.h: Likewise.
25339         * lib/unictype/categ_Ps.h: Likewise.
25340         * lib/unictype/categ_Z.h: Likewise.
25341         * lib/unictype/categ_Zl.h: Likewise.
25342         * lib/unictype/categ_Zp.h: Likewise.
25343         * lib/unictype/categ_Zs.h: Likewise.
25344         * lib/unictype/ctype_blank.h: Likewise.
25345         * lib/unictype/ctype_cntrl.h: Likewise.
25346         * lib/unictype/ctype_digit.h: Likewise.
25347         * lib/unictype/ctype_space.h: Likewise.
25348         * lib/unictype/ctype_xdigit.h: Likewise.
25349         * lib/unictype/mirror.h: Likewise.
25350         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25351         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25352         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25353         * lib/unictype/pr_bidi_control.h: Likewise.
25354         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25355         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25356         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25357         * lib/unictype/pr_bidi_pdf.h: Likewise.
25358         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25359         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25360         * lib/unictype/pr_dash.h: Likewise.
25361         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25362         * lib/unictype/pr_diacritic.h: Likewise.
25363         * lib/unictype/pr_extender.h: Likewise.
25364         * lib/unictype/pr_hex_digit.h: Likewise.
25365         * lib/unictype/pr_hyphen.h: Likewise.
25366         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25367         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25368         * lib/unictype/pr_ignorable_control.h: Likewise.
25369         * lib/unictype/pr_iso_control.h: Likewise.
25370         * lib/unictype/pr_join_control.h: Likewise.
25371         * lib/unictype/pr_left_of_pair.h: Likewise.
25372         * lib/unictype/pr_line_separator.h: Likewise.
25373         * lib/unictype/pr_logical_order_exception.h: Likewise.
25374         * lib/unictype/pr_non_break.h: Likewise.
25375         * lib/unictype/pr_not_a_character.h: Likewise.
25376         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25377         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25378         * lib/unictype/pr_other_id_start.h: Likewise.
25379         * lib/unictype/pr_other_lowercase.h: Likewise.
25380         * lib/unictype/pr_other_uppercase.h: Likewise.
25381         * lib/unictype/pr_paired_punctuation.h: Likewise.
25382         * lib/unictype/pr_paragraph_separator.h: Likewise.
25383         * lib/unictype/pr_pattern_syntax.h: Likewise.
25384         * lib/unictype/pr_pattern_white_space.h: Likewise.
25385         * lib/unictype/pr_private_use.h: Likewise.
25386         * lib/unictype/pr_quotation_mark.h: Likewise.
25387         * lib/unictype/pr_radical.h: Likewise.
25388         * lib/unictype/pr_soft_dotted.h: Likewise.
25389         * lib/unictype/pr_space.h: Likewise.
25390         * lib/unictype/pr_titlecase.h: Likewise.
25391         * lib/unictype/pr_variation_selector.h: Likewise.
25392         * lib/unictype/pr_white_space.h: Likewise.
25393         * lib/unictype/pr_zero_width.h: Likewise.
25394         * lib/unictype/sy_c_ident.h: Likewise.
25395         * lib/unictype/sy_c_whitespace.h: Likewise.
25396         * lib/unictype/sy_java_whitespace.h: Likewise.
25397         * lib/uninorm/composition-table.gperf: Likewise.
25398         * lib/uninorm/decomposition-table1.h: Likewise.
25399         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
25400         LB8.
25401         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25402         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25403         * modules/unictype/*: Bump version number of expected libunistring
25404         version.
25405
25406 2011-01-09  Bruno Haible  <bruno@clisp.org>
25407
25408         Update to Unicode 5.2.0.
25409         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
25410         trailing whitespace removed.
25411
25412 2011-01-09  Bruno Haible  <bruno@clisp.org>
25413
25414         New Unicode character properties, from Unicode 5.2.0.
25415         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
25416         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
25417         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
25418         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
25419         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
25420         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
25421         uc_is_property_cased, uc_is_property_case_ignorable,
25422         uc_is_property_changes_when_lowercased,
25423         uc_is_property_changes_when_uppercased,
25424         uc_is_property_changes_when_titlecased,
25425         uc_is_property_changes_when_casefolded,
25426         uc_is_property_changes_when_casemapped): New declarations.
25427         * lib/unictype/pr_byname.gperf: Add the new properties.
25428         * modules/unictype/property-byname (Depends-on): Depend on the new
25429         properties modules.
25430         * modules/unictype/property-all (Depends-on): Likewise.
25431         * MODULES.html.sh (Unicode string functions): Add
25432         unictype/property-case-ignorable, unictype/property-cased,
25433         unictype/property-changes-when-casefolded,
25434         unictype/property-changes-when-casemapped,
25435         unictype/property-changes-when-lowercased,
25436         unictype/property-changes-when-titlecased,
25437         unictype/property-changes-when-uppercased.
25438
25439         New module 'unictype/property-changes-when-casemapped'.
25440         * modules/unictype/property-changes-when-casemapped: New file.
25441         * lib/unictype/pr_changes_when_casemapped.c: New file.
25442         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
25443         generated by gen-uni-tables.
25444         * modules/unictype/property-changes-when-casemapped-tests: New file.
25445         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
25446         automatically generated by gen-uni-tables.
25447
25448         New module 'unictype/property-changes-when-casefolded'.
25449         * modules/unictype/property-changes-when-casefolded: New file.
25450         * lib/unictype/pr_changes_when_casefolded.c: New file.
25451         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
25452         generated by gen-uni-tables.
25453         * modules/unictype/property-changes-when-casefolded-tests: New file.
25454         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
25455         automatically generated by gen-uni-tables.
25456
25457         New module 'unictype/property-changes-when-titlecased'.
25458         * modules/unictype/property-changes-when-titlecased: New file.
25459         * lib/unictype/pr_changes_when_titlecased.c: New file.
25460         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
25461         generated by gen-uni-tables.
25462         * modules/unictype/property-changes-when-titlecased-tests: New file.
25463         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
25464         automatically generated by gen-uni-tables.
25465
25466         New module 'unictype/property-changes-when-uppercased'.
25467         * modules/unictype/property-changes-when-uppercased: New file.
25468         * lib/unictype/pr_changes_when_uppercased.c: New file.
25469         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
25470         generated by gen-uni-tables.
25471         * modules/unictype/property-changes-when-uppercased-tests: New file.
25472         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
25473         automatically generated by gen-uni-tables.
25474
25475         New module 'unictype/property-changes-when-lowercased'.
25476         * modules/unictype/property-changes-when-lowercased: New file.
25477         * lib/unictype/pr_changes_when_lowercased.c: New file.
25478         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
25479         generated by gen-uni-tables.
25480         * modules/unictype/property-changes-when-lowercased-tests: New file.
25481         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
25482         automatically generated by gen-uni-tables.
25483
25484         New module 'unictype/property-case-ignorable'.
25485         * modules/unictype/property-case-ignorable: New file.
25486         * lib/unictype/pr_case_ignorable.c: New file.
25487         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
25488         by gen-uni-tables.
25489         * modules/unictype/property-case-ignorable-tests: New file.
25490         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
25491         generated by gen-uni-tables.
25492
25493         New module 'unictype/property-cased'.
25494         * modules/unictype/property-cased: New file.
25495         * lib/unictype/pr_cased.c: New file.
25496         * lib/unictype/pr_cased.h: New file, automatically generated by
25497         gen-uni-tables.
25498         * modules/unictype/property-cased-tests: New file.
25499         * tests/unictype/test-pr_cased.c: New file, automatically generated by
25500         gen-uni-tables.
25501
25502 2011-01-09  Bruno Haible  <bruno@clisp.org>
25503
25504         Update to Unicode 5.2.0.
25505         * lib/gen-uni-tables.c (output_predicate, output_category,
25506         output_combclass, output_bidi_category, output_decimal_digit_test,
25507         output_decimal_digit, output_digit_test, output_digit,
25508         output_numeric_test, output_numeric, output_mirror, output_scripts,
25509         output_scripts_byname, output_blocks, output_ident_category): Fix
25510         comment header.
25511         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
25512         get_wbp.
25513         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
25514         items.
25515         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
25516         Changes_When_Lowercased, Changes_When_Uppercased,
25517         Changes_When_Titlecased, Changes_When_Casefolded,
25518         Changes_When_Casemapped.
25519         (is_property_alphabetic, is_property_default_ignorable_code_point):
25520         Update for Unicode 5.2.0.
25521         (is_property_cased, is_property_case_ignorable,
25522         is_property_changes_when_lowercased,
25523         is_property_changes_when_uppercased,
25524         is_property_changes_when_titlecased,
25525         is_property_changes_when_casefolded,
25526         is_property_changes_when_casemapped): New functions.
25527         (output_properties): Output also the properties cased, case_ignorable,
25528         changes_when_lowercased, changes_when_uppercased,
25529         changes_when_titlecased, changes_when_casefolded,
25530         changes_when_casemapped.
25531         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
25532         Unicode TR#11 revision 17 -> 19.
25533         (LBP_CP): New enumeration value.
25534         (LBP_*): Adjust values accordingly.
25535         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25536         TR#14 revision 22 -> 24.
25537         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
25538         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
25539         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
25540         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
25541         is_WBP_MIDLETTER.
25542         (output_composition_tables): Allow for 24 bits instead of 16 bits in
25543         the code1 and code2 of each composition rule.
25544         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
25545         * lib/unicase/ignorable.h: Likewise.
25546         * lib/unicase/tocasefold.h: Likewise.
25547         * lib/unicase/tolower.h: Likewise.
25548         * lib/unicase/totitle.h: Likewise.
25549         * lib/unicase/toupper.h: Likewise.
25550         * lib/unictype/bidi_of.h: Likewise.
25551         * lib/unictype/blocks.h: Likewise.
25552         * lib/unictype/categ_C.h: Likewise.
25553         * lib/unictype/categ_Cf.h: Likewise.
25554         * lib/unictype/categ_Cn.h: Likewise.
25555         * lib/unictype/categ_L.h: Likewise.
25556         * lib/unictype/categ_Ll.h: Likewise.
25557         * lib/unictype/categ_Lm.h: Likewise.
25558         * lib/unictype/categ_Lo.h: Likewise.
25559         * lib/unictype/categ_Lu.h: Likewise.
25560         * lib/unictype/categ_M.h: Likewise.
25561         * lib/unictype/categ_Mc.h: Likewise.
25562         * lib/unictype/categ_Mn.h: Likewise.
25563         * lib/unictype/categ_N.h: Likewise.
25564         * lib/unictype/categ_Nd.h: Likewise.
25565         * lib/unictype/categ_Nl.h: Likewise.
25566         * lib/unictype/categ_No.h: Likewise.
25567         * lib/unictype/categ_P.h: Likewise.
25568         * lib/unictype/categ_Pd.h: Likewise.
25569         * lib/unictype/categ_Po.h: Likewise.
25570         * lib/unictype/categ_S.h: Likewise.
25571         * lib/unictype/categ_Sc.h: Likewise.
25572         * lib/unictype/categ_So.h: Likewise.
25573         * lib/unictype/categ_of.h: Likewise.
25574         * lib/unictype/combining.h: Likewise.
25575         * lib/unictype/ctype_alnum.h: Likewise.
25576         * lib/unictype/ctype_alpha.h: Likewise.
25577         * lib/unictype/ctype_graph.h: Likewise.
25578         * lib/unictype/ctype_lower.h: Likewise.
25579         * lib/unictype/ctype_print.h: Likewise.
25580         * lib/unictype/ctype_punct.h: Likewise.
25581         * lib/unictype/ctype_upper.h: Likewise.
25582         * lib/unictype/decdigit.h: Likewise.
25583         * lib/unictype/digit.h: Likewise.
25584         * lib/unictype/numeric.h: Likewise.
25585         * lib/unictype/pr_alphabetic.h: Likewise.
25586         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
25587         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
25588         * lib/unictype/pr_bidi_european_digit.h: Likewise.
25589         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
25590         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
25591         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
25592         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
25593         * lib/unictype/pr_combining.h: Likewise.
25594         * lib/unictype/pr_composite.h: Likewise.
25595         * lib/unictype/pr_currency_symbol.h: Likewise.
25596         * lib/unictype/pr_dash.h: Likewise.
25597         * lib/unictype/pr_decimal_digit.h: Likewise.
25598         * lib/unictype/pr_deprecated.h: Likewise.
25599         * lib/unictype/pr_diacritic.h: Likewise.
25600         * lib/unictype/pr_extender.h: Likewise.
25601         * lib/unictype/pr_grapheme_base.h: Likewise.
25602         * lib/unictype/pr_grapheme_extend.h: Likewise.
25603         * lib/unictype/pr_grapheme_link.h: Likewise.
25604         * lib/unictype/pr_id_continue.h: Likewise.
25605         * lib/unictype/pr_id_start.h: Likewise.
25606         * lib/unictype/pr_ideographic.h: Likewise.
25607         * lib/unictype/pr_ignorable_control.h: Likewise.
25608         * lib/unictype/pr_logical_order_exception.h: Likewise.
25609         * lib/unictype/pr_lowercase.h: Likewise.
25610         * lib/unictype/pr_numeric.h: Likewise.
25611         * lib/unictype/pr_other_alphabetic.h: Likewise.
25612         * lib/unictype/pr_punctuation.h: Likewise.
25613         * lib/unictype/pr_sentence_terminal.h: Likewise.
25614         * lib/unictype/pr_terminal_punctuation.h: Likewise.
25615         * lib/unictype/pr_unassigned_code_value.h: Likewise.
25616         * lib/unictype/pr_unified_ideograph.h: Likewise.
25617         * lib/unictype/pr_uppercase.h: Likewise.
25618         * lib/unictype/pr_xid_continue.h: Likewise.
25619         * lib/unictype/pr_xid_start.h: Likewise.
25620         * lib/unictype/pr_zero_width.h: Likewise.
25621         * lib/unictype/scripts.h: Likewise.
25622         * lib/unictype/scripts_byname.gperf: Likewise.
25623         * lib/unictype/sy_java_ident.h: Likewise.
25624         * lib/unigbrk/gbrkprop.h: Likewise.
25625         * lib/unilbrk/lbrkprop1.h: Likewise.
25626         * lib/unilbrk/lbrkprop2.h: Likewise.
25627         * lib/unilbrk/lbrktables.h: Likewise.
25628         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
25629         LBP_CP. Implement rule LB30.
25630         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
25631         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
25632         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
25633         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
25634         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
25635         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
25636         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
25637         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
25638         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
25639         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
25640         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
25641         bits instead of 16 bits in the code1 and code2 of each composition
25642         rule.
25643         (uc_composition): Update for Unicode 5.2.0.
25644         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
25645         * lib/uninorm/decomposition-table2.h: Likewise.
25646         * lib/uniwbrk/wbrkprop.h: Likewise.
25647         * tests/unicase/test-cased.c: Likewise.
25648         * tests/unicase/test-ignorable.c: Likewise.
25649         * tests/unicase/test-uc_tolower.c: Likewise.
25650         * tests/unicase/test-uc_totitle.c: Likewise.
25651         * tests/unicase/test-uc_toupper.c: Likewise.
25652         * tests/unictype/test-categ_C.c: Likewise.
25653         * tests/unictype/test-categ_Cf.c: Likewise.
25654         * tests/unictype/test-categ_Cn.c: Likewise.
25655         * tests/unictype/test-categ_L.c: Likewise.
25656         * tests/unictype/test-categ_Ll.c: Likewise.
25657         * tests/unictype/test-categ_Lm.c: Likewise.
25658         * tests/unictype/test-categ_Lo.c: Likewise.
25659         * tests/unictype/test-categ_Lu.c: Likewise.
25660         * tests/unictype/test-categ_M.c: Likewise.
25661         * tests/unictype/test-categ_Mc.c: Likewise.
25662         * tests/unictype/test-categ_Mn.c: Likewise.
25663         * tests/unictype/test-categ_N.c: Likewise.
25664         * tests/unictype/test-categ_Nd.c: Likewise.
25665         * tests/unictype/test-categ_Nl.c: Likewise.
25666         * tests/unictype/test-categ_No.c: Likewise.
25667         * tests/unictype/test-categ_P.c: Likewise.
25668         * tests/unictype/test-categ_Pd.c: Likewise.
25669         * tests/unictype/test-categ_Po.c: Likewise.
25670         * tests/unictype/test-categ_S.c: Likewise.
25671         * tests/unictype/test-categ_Sc.c: Likewise.
25672         * tests/unictype/test-categ_So.c: Likewise.
25673         * tests/unictype/test-ctype_alnum.c: Likewise.
25674         * tests/unictype/test-ctype_alpha.c: Likewise.
25675         * tests/unictype/test-ctype_graph.c: Likewise.
25676         * tests/unictype/test-ctype_lower.c: Likewise.
25677         * tests/unictype/test-ctype_print.c: Likewise.
25678         * tests/unictype/test-ctype_punct.c: Likewise.
25679         * tests/unictype/test-ctype_upper.c: Likewise.
25680         * tests/unictype/test-decdigit.h: Likewise.
25681         * tests/unictype/test-digit.h: Likewise.
25682         * tests/unictype/test-numeric.h: Likewise.
25683         * tests/unictype/test-pr_alphabetic.c: Likewise.
25684         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
25685         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
25686         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
25687         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
25688         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
25689         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
25690         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
25691         * tests/unictype/test-pr_combining.c: Likewise.
25692         * tests/unictype/test-pr_composite.c: Likewise.
25693         * tests/unictype/test-pr_currency_symbol.c: Likewise.
25694         * tests/unictype/test-pr_dash.c: Likewise.
25695         * tests/unictype/test-pr_decimal_digit.c: Likewise.
25696         * tests/unictype/test-pr_deprecated.c: Likewise.
25697         * tests/unictype/test-pr_diacritic.c: Likewise.
25698         * tests/unictype/test-pr_extender.c: Likewise.
25699         * tests/unictype/test-pr_grapheme_base.c: Likewise.
25700         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
25701         * tests/unictype/test-pr_grapheme_link.c: Likewise.
25702         * tests/unictype/test-pr_id_continue.c: Likewise.
25703         * tests/unictype/test-pr_id_start.c: Likewise.
25704         * tests/unictype/test-pr_ideographic.c: Likewise.
25705         * tests/unictype/test-pr_ignorable_control.c: Likewise.
25706         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
25707         * tests/unictype/test-pr_lowercase.c: Likewise.
25708         * tests/unictype/test-pr_numeric.c: Likewise.
25709         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
25710         * tests/unictype/test-pr_punctuation.c: Likewise.
25711         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
25712         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
25713         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
25714         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
25715         * tests/unictype/test-pr_uppercase.c: Likewise.
25716         * tests/unictype/test-pr_xid_continue.c: Likewise.
25717         * tests/unictype/test-pr_xid_start.c: Likewise.
25718         * tests/unictype/test-pr_zero_width.c: Likewise.
25719         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
25720         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
25721         changed behaviour: line breaking is now disallowed between a letter
25722         or '=' and '('.
25723         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
25724         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
25725         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
25726         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
25727         * tests/uniwidth/test-uc_width2.sh: Same updates as in
25728         lib/uniwidth/width.c.
25729         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
25730         without comments, but with the original copyright notice.
25731         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
25732         changes.
25733         * lib/unictype/categ_Cc.h: Likewise.
25734         * lib/unictype/categ_Co.h: Likewise.
25735         * lib/unictype/categ_Cs.h: Likewise.
25736         * lib/unictype/categ_Lt.h: Likewise.
25737         * lib/unictype/categ_Me.h: Likewise.
25738         * lib/unictype/categ_Pc.h: Likewise.
25739         * lib/unictype/categ_Pe.h: Likewise.
25740         * lib/unictype/categ_Pf.h: Likewise.
25741         * lib/unictype/categ_Pi.h: Likewise.
25742         * lib/unictype/categ_Ps.h: Likewise.
25743         * lib/unictype/categ_Sk.h: Likewise.
25744         * lib/unictype/categ_Sm.h: Likewise.
25745         * lib/unictype/categ_Z.h: Likewise.
25746         * lib/unictype/categ_Zl.h: Likewise.
25747         * lib/unictype/categ_Zp.h: Likewise.
25748         * lib/unictype/categ_Zs.h: Likewise.
25749         * lib/unictype/ctype_blank.h: Likewise.
25750         * lib/unictype/ctype_cntrl.h: Likewise.
25751         * lib/unictype/ctype_digit.h: Likewise.
25752         * lib/unictype/ctype_space.h: Likewise.
25753         * lib/unictype/ctype_xdigit.h: Likewise.
25754         * lib/unictype/mirror.h: Likewise.
25755         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
25756         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
25757         * lib/unictype/pr_bidi_block_separator.h: Likewise.
25758         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
25759         * lib/unictype/pr_bidi_common_separator.h: Likewise.
25760         * lib/unictype/pr_bidi_control.h: Likewise.
25761         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
25762         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
25763         * lib/unictype/pr_bidi_pdf.h: Likewise.
25764         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
25765         * lib/unictype/pr_bidi_whitespace.h: Likewise.
25766         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
25767         * lib/unictype/pr_format_control.h: Likewise.
25768         * lib/unictype/pr_hex_digit.h: Likewise.
25769         * lib/unictype/pr_hyphen.h: Likewise.
25770         * lib/unictype/pr_ids_binary_operator.h: Likewise.
25771         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
25772         * lib/unictype/pr_iso_control.h: Likewise.
25773         * lib/unictype/pr_join_control.h: Likewise.
25774         * lib/unictype/pr_left_of_pair.h: Likewise.
25775         * lib/unictype/pr_line_separator.h: Likewise.
25776         * lib/unictype/pr_math.h: Likewise.
25777         * lib/unictype/pr_non_break.h: Likewise.
25778         * lib/unictype/pr_not_a_character.h: Likewise.
25779         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
25780         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
25781         * lib/unictype/pr_other_id_continue.h: Likewise.
25782         * lib/unictype/pr_other_id_start.h: Likewise.
25783         * lib/unictype/pr_other_lowercase.h: Likewise.
25784         * lib/unictype/pr_other_math.h: Likewise.
25785         * lib/unictype/pr_other_uppercase.h: Likewise.
25786         * lib/unictype/pr_paired_punctuation.h: Likewise.
25787         * lib/unictype/pr_paragraph_separator.h: Likewise.
25788         * lib/unictype/pr_pattern_syntax.h: Likewise.
25789         * lib/unictype/pr_pattern_white_space.h: Likewise.
25790         * lib/unictype/pr_private_use.h: Likewise.
25791         * lib/unictype/pr_quotation_mark.h: Likewise.
25792         * lib/unictype/pr_radical.h: Likewise.
25793         * lib/unictype/pr_soft_dotted.h: Likewise.
25794         * lib/unictype/pr_space.h: Likewise.
25795         * lib/unictype/pr_titlecase.h: Likewise.
25796         * lib/unictype/pr_variation_selector.h: Likewise.
25797         * lib/unictype/pr_white_space.h: Likewise.
25798         * lib/unictype/sy_c_ident.h: Likewise.
25799         * lib/unictype/sy_c_whitespace.h: Likewise.
25800         * lib/unictype/sy_java_whitespace.h: Likewise.
25801         * modules/uni*/*: Bump version number of expected libunistring version.
25802         Reported by Simon Josefsson.
25803
25804 2011-01-09  Karl Heuer  <kwzh@gnu.org>
25805
25806         useless-if-before-free: fix typo in --help and make the internal,
25807         automatic version date update process work once again.
25808         --help output contained a NUL character instead of the
25809         backslash-zero that was intended.  Also, the "must lie within
25810         the first 8 lines" line is on line 9, and hence not getting
25811         automatically updated.
25812         * build-aux/useless-if-before-free: Fix the former by adding a
25813         backslash, and the latter by condensing the three lines of what-it-does
25814         to a single line, leaving one line of slack for the future.
25815
25816 2011-01-09  Bruno Haible  <bruno@clisp.org>
25817
25818         uniwidth/width: Fix width of U+1D173..U+1D17A.
25819         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25820         symbolic_width, output_width_property_test): New functions.
25821         (main): Invoke output_nonspacing_property, output_width_property_test.
25822         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25823         U+1D173..U+1D17A.
25824         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25825         1.
25826         * modules/uniwidth/*: Bump version number of expected libunistring
25827         version.
25828         * modules/unilbrk/*: Likewise.
25829
25830 2011-01-08  Bruno Haible  <bruno@clisp.org>
25831
25832         uninorm tests: Preserve copyright of Unicode data file.
25833         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25834         Mention modifications.
25835
25836 2011-01-08  Bruno Haible  <bruno@clisp.org>
25837
25838         gen-uni-tables: Prepare for Unicode 5.2.0.
25839         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25840         (debug_output_lbp, output_lbp): Update.
25841
25842 2011-01-08  Bruno Haible  <bruno@clisp.org>
25843
25844         unilbrk: Clarify gen-uni-tables.c code.
25845         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25846         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25847         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25848
25849 2011-01-07  Bruno Haible  <bruno@clisp.org>
25850
25851         strtod: Restore errno when successfully parsing Infinity or NaN.
25852         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25853         restore the original errno.
25854
25855 2011-01-07  Bruno Haible  <bruno@clisp.org>
25856
25857         remove test: Avoid failure on HP-UX 11.
25858         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25859
25860 2011-01-07  Bruno Haible  <bruno@clisp.org>
25861
25862         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25863         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25864         error code.
25865
25866 2011-01-07  Pádraig Brady <P@draigBrady.com>
25867
25868         ignore-value: fixup comments, and add Eric Blake
25869         as an author since he rewrote the macros.
25870         * lib/ignore-value.h (ignore_value):  State that
25871         we now support aggregates.  Also specify exactly
25872         when the GCC warn_unused_result feature was added.
25873
25874 2011-01-06  Eric Blake  <eblake@redhat.com>
25875
25876         ignore-value: support aggregate types
25877         * lib/ignore-value.h (ignore_value): Provide separate gcc
25878         definition.
25879         * modules/ignore-value-tests: New test module.
25880         * tests/test-ignore-value.c: New test.
25881
25882         maint.mk: improve sc_prohibit_strcmp regex
25883         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25884         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25885         definition of STRNEQ.
25886
25887         signal: work around Haiku issue with SIGBUS
25888         * lib/siglist.h: Add comment.
25889         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25890         strsignal's favoring of SIGSEGV.
25891         * tests/test-signal.c (main): Avoid test failure.
25892         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25893         Reported by Scott McCreary.
25894
25895         maint.mk: add pre-release check to ensure submodule commits are public
25896         * top/maint.mk (public-submodule-commit): New rule.
25897         (submodule-checks): New variable.
25898         (alpha beta stable): Depend on the variable.
25899
25900 2011-01-05  Pádraig Brady <P@draigBrady.com>
25901         and Jim Meyering  <meyering@redhat.com>
25902
25903         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25904         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25905         (ATTRIBUTE_DEPRECATED): Define.
25906         (_ignore_case): New function.
25907         (ignore_value): New macro, to replace the old function.
25908         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25909         * modules/ignore-value (Depends-on): Add stdint.
25910
25911 2011-01-04  Eric Blake  <eblake@redhat.com>
25912
25913         doc: regenerate INSTALL
25914         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25915         @firstparagraphindent support, now that autoconf dropped it.
25916         (INSTALL_PRELUDE): Reinstate old macro.
25917         * doc/install.texi: Resync from autoconf.
25918         * doc/INSTALL: Reflect recent autoconf update.
25919         * doc/INSTALL.ISO: Likewise.
25920         * doc/INSTALL.UTF-8: Likewise.
25921         Reported by Karl Berry.
25922
25923 2011-01-04  Bruce Korb  <address@hidden>
25924
25925         git-version-gen: avoid a sub-shell
25926         * build-aux/git-version-gen: Redirect stderr in `...` via
25927         "exec 2>...", rather than via an added sub-shell.
25928
25929 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25930
25931         git-version-gen: use (...) rather than sh -c '...'
25932         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25933         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25934
25935 2011-01-03  Jim Meyering  <meyering@redhat.com>
25936
25937         git-version-gen: convert leading TABs to spaces
25938         * build-aux/git-version-gen: Expand leading TABs.
25939
25940         git-version-gen: handle failed "git rev-list"
25941         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25942         from git and proceeding as if it had succeeded but printed no SHA1
25943         checksums, suppress the diagnostic and handle the failure.
25944         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25945
25946         git-version-gen: include command name in one more diagnostic
25947         * build-aux/git-version-gen: When the required .tarball-version file
25948         was missing or unreadable, you might see the diagnostic from "cat",
25949         but no trace of the name of the invoking script.  Now, you still see
25950         the diagnostic from cat, but also get one from "git-version-gen: ".
25951         Inspired by a patch from Bruce Korb.
25952
25953         update-copyright: adjust test to match changed code
25954         * tests/test-update-copyright.sh: Change test's expected output
25955         to match new actual output.
25956
25957 2011-01-02  Bruno Haible  <bruno@clisp.org>
25958
25959         getlogin_r: Avoid test failure on HP-UX 11.
25960         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25961         ERANGE when the second argument is zero.
25962         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25963         portability problem.
25964
25965 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25966
25967         * build-aux/update-copyright: doc Simon's changes
25968
25969 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25970
25971         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25972         environment variable.
25973
25974 2011-01-02  Bruno Haible  <bruno@clisp.org>
25975
25976         unigbrk: Avoid gcc warnings.
25977         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25978         unused variable.
25979         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25980         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25981         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25982         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25983         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25984         Change type of first argument to 'const char *'.
25985         (main): Remove unused variable.
25986         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25987         type of first argument to 'const char *'.
25988         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25989         Likewise.
25990         (main): Change type of variable 's'.
25991         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25992         to 'int'.
25993
25994 2011-01-02  Bruno Haible  <bruno@clisp.org>
25995
25996         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25997         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25998         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25999         bug.
26000         * lib/pwrite.c: Undo 2010-12-31 patch.
26001         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
26002
26003 2011-01-02  Bruno Haible  <bruno@clisp.org>
26004
26005         pread: Fix test whether it works.
26006         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
26007
26008 2011-01-02  Bruno Haible  <bruno@clisp.org>
26009
26010         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
26011         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
26012         ends in "6". Don't require a specific month name. Try also the locale
26013         names found on HP-UX 11 and Solaris 7.
26014
26015 2011-01-02  Bruno Haible  <bruno@clisp.org>
26016
26017         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
26018         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
26019         C linkage.
26020         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
26021
26022 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26023
26024         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
26025         for consistency, since the "cluster" term is not used elsewhere.
26026         * lib/unigbrk.in.h: Update name.
26027         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
26028         * lib/unigbrk/u16-grapheme-next.c: Update name.
26029         * lib/unigbrk/u16-grapheme-prev.c: Update name.
26030         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
26031         * lib/unigbrk/u32-grapheme-next.c: Update name.
26032         * lib/unigbrk/u32-grapheme-prev.c: Update name.
26033         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
26034         * lib/unigbrk/u8-grapheme-next.c: Update name.
26035         * lib/unigbrk/u8-grapheme-prev.c: Update name.
26036         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
26037         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
26038         Suggested by Bruno Haible.
26039
26040 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26041
26042         Remove module 'u8-grapheme-len' as too redundant with
26043         'u8-grapheme-next'.
26044         * modules/unigbrk/u8-grapheme-len: Delete file.
26045         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
26046         * lib/unigbrk.in.h: Remove prototype for deleted function.
26047         * lib/unigbrk/u8-grapheme-len.c: Delete file.
26048         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
26049
26050         Remove module 'u16-grapheme-len' as too redundant with
26051         'u16-grapheme-next'.
26052         * modules/unigbrk/u16-grapheme-len: Delete file.
26053         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
26054         * lib/unigbrk.in.h: Remove prototype for deleted function.
26055         * lib/unigbrk/u16-grapheme-len.c: Delete file.
26056         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
26057
26058         Remove module 'u32-grapheme-len' as too redundant with
26059         'u32-grapheme-next'.
26060         * modules/unigbrk/u32-grapheme-len: Delete file.
26061         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
26062         * lib/unigbrk.in.h: Remove prototype for deleted function.
26063         * lib/unigbrk/u32-grapheme-len.c: Delete file.
26064         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
26065
26066         Suggested by Bruno Haible.
26067
26068 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
26069
26070         * unigbrk.in.h: Fix typo: "ben" => "been".
26071         Reported by Bruno Haible.
26072
26073 2011-01-01  Jim Meyering  <meyering@redhat.com>
26074
26075         maint: update almost all copyright ranges to include 2011
26076         Run the new "make update-copyright" rule.
26077
26078 2011-01-01  Jim Meyering  <meyering@redhat.com>
26079
26080         maint: update-copyright: exempt doc/INSTALL*
26081         * Makefile (update-copyright): Also exclude doc/INSTALL*,
26082         since they are generated.  Suggested by Bruno Haible.
26083
26084 2011-01-01  Jim Meyering  <meyering@redhat.com>
26085
26086         maint: refine the update-copyright rule
26087         * Makefile (update-copyright): Also exclude any file that includes
26088         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
26089         code that merely generates the comment.
26090
26091 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26092
26093         New module 'u8-grapheme-len'.
26094         * modules/unigbrk/u8-grapheme-len: New file.
26095         * modules/unigbrk/u8-grapheme-len-tests: New file.
26096         * lib/unigbrk.in.h: Add prototype for new function.
26097         * lib/unigbrk/u8-grapheme-len.c: New file.
26098         * tests/unigbrk/test-u8-grapheme-len.c: New file.
26099
26100         New module 'u16-grapheme-len'.
26101         * modules/unigbrk/u16-grapheme-len: New file.
26102         * modules/unigbrk/u16-grapheme-len-tests: New file.
26103         * lib/unigbrk.in.h: Add prototype for new function.
26104         * lib/unigbrk/u16-grapheme-len.c: New file.
26105         * tests/unigbrk/test-u16-grapheme-len.c: New file.
26106
26107         New module 'u32-grapheme-len'.
26108         * modules/unigbrk/u32-grapheme-len: New file.
26109         * modules/unigbrk/u32-grapheme-len-tests: New file.
26110         * lib/unigbrk.in.h: Add prototype for new function.
26111         * lib/unigbrk/u32-grapheme-len.c: New file.
26112         * tests/unigbrk/test-u32-grapheme-len.c: New file.
26113
26114         New module 'u8-grapheme-next'.
26115         * modules/unigbrk/u8-grapheme-next: New file.
26116         * modules/unigbrk/u8-grapheme-next-tests: New file.
26117         * lib/unigbrk.in.h: Add prototype for new function.
26118         * lib/unigbrk/u8-grapheme-next.c: New file.
26119         * tests/unigbrk/test-u8-grapheme-next.c: New file.
26120
26121         New module 'u16-grapheme-next'.
26122         * modules/unigbrk/u16-grapheme-next: New file.
26123         * modules/unigbrk/u16-grapheme-next-tests: New file.
26124         * lib/unigbrk.in.h: Add prototype for new function.
26125         * lib/unigbrk/u16-grapheme-next.c: New file.
26126         * tests/unigbrk/test-u16-grapheme-next.c: New file.
26127
26128         New module 'u32-grapheme-next'.
26129         * modules/unigbrk/u32-grapheme-next: New file.
26130         * modules/unigbrk/u32-grapheme-next-tests: New file.
26131         * lib/unigbrk.in.h: Add prototype for new function.
26132         * lib/unigbrk/u32-grapheme-next.c: New file.
26133         * tests/unigbrk/test-u32-grapheme-next.c: New file.
26134
26135         New module 'u8-grapheme-prev'.
26136         * modules/unigbrk/u8-grapheme-prev: New file.
26137         * modules/unigbrk/u8-grapheme-prev-tests: New file.
26138         * lib/unigbrk.in.h: Add prototype for new function.
26139         * lib/unigbrk/u8-grapheme-prev.c: New file.
26140         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
26141
26142         New module 'u16-grapheme-prev'.
26143         * modules/unigbrk/u16-grapheme-prev: New file.
26144         * modules/unigbrk/u16-grapheme-prev-tests: New file.
26145         * lib/unigbrk.in.h: Add prototype for new function.
26146         * lib/unigbrk/u16-grapheme-prev.c: New file.
26147         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
26148
26149         New module 'u32-grapheme-prev'.
26150         * modules/unigbrk/u32-grapheme-prev: New file.
26151         * modules/unigbrk/u32-grapheme-prev-tests: New file.
26152         * lib/unigbrk.in.h: Add prototype for new function.
26153         * lib/unigbrk/u32-grapheme-prev.c: New file.
26154         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
26155
26156         New module 'u8-grapheme-breaks'.
26157         * modules/unigbrk/u8-grapheme-breaks: New file.
26158         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
26159         * lib/unigbrk.in.h: Add prototype for new function.
26160         * lib/unigbrk/u8-grapheme-breaks.c: New file.
26161         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
26162
26163         New module 'u16-grapheme-breaks'.
26164         * modules/unigbrk/u16-grapheme-breaks: New file.
26165         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
26166         * lib/unigbrk.in.h: Add prototype for new function.
26167         * lib/unigbrk/u16-grapheme-breaks.c: New file.
26168         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
26169
26170         New module 'u32-grapheme-breaks'.
26171         * modules/unigbrk/u32-grapheme-breaks: New file.
26172         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
26173         * lib/unigbrk.in.h: Add prototype for new function.
26174         * lib/unigbrk/u32-grapheme-breaks.c: New file.
26175         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
26176
26177         New module 'ulc-grapheme-breaks'.
26178         * modules/unigbrk/ulc-grapheme-breaks: New file.
26179         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
26180         * m4/locale-ar.m4: New file.
26181         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
26182         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
26183         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
26184
26185 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
26186
26187         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
26188         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
26189         modified how this file was generated before I initially submitted
26190         the module, but failed to regenerate it.  This meant that several
26191         of the level2 entries were wrong.
26192         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
26193         Remove the division-by-2 that is folded into the table now that
26194         gbrkprop.h has been regenerated properly.  Now -1 entries are
26195         handled correctly.
26196
26197         New module 'unigbrk/uc-gbrk-prop-tests'.
26198         * modules/unigbrk/uc-gbrk-prop-tests: New file.
26199         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
26200         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
26201         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
26202
26203 2011-01-01  Bruno Haible  <bruno@clisp.org>
26204
26205         Avoid use of hexadecimal escapes.
26206         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
26207         instead of hexadecimal escapes.
26208
26209 2011-01-01  Jim Meyering  <meyering@redhat.com>
26210
26211         maint: new rule to update copyright year ranges
26212         * Makefile (update-copyright): New rule.
26213
26214         maint: indent with TABs in Makefile
26215         * Makefile: Expand leading sequences of spaces to TABs
26216
26217         version-etc: update the copyright year it reports
26218         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
26219
26220 2010-12-31  Bruno Haible  <bruno@clisp.org>
26221
26222         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
26223         * lib/isfinite.c (zerof, zerod, zerol): New variables.
26224         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
26225         zero.
26226
26227 2010-12-31  Bruno Haible  <bruno@clisp.org>
26228
26229         pwrite: Work around HP-UX 11.11 bug.
26230         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
26231         works and set REPLACE_PWRITE if not.
26232         * lib/pwrite.c (pwrite): Add an implementation that uses the system
26233         function.
26234         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
26235
26236 2010-12-31  Bruno Haible  <bruno@clisp.org>
26237
26238         pread: Work around HP-UX 11 bugs.
26239         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
26240         and set REPLACE_PREAD if not.
26241         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
26242
26243 2010-12-31  Eric Blake  <eblake@redhat.com>
26244
26245         nl_langinfo: fix YESEXPR on Irix 6.5
26246         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
26247         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
26248         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
26249         it.
26250
26251 2010-12-31  Bruno Haible  <bruno@clisp.org>
26252
26253         iconv: Document HP-UX 11 bug.
26254         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
26255
26256 2010-12-31  Bruno Haible  <bruno@clisp.org>
26257
26258         ldexpl: Fix link error on HP-UX 11.
26259         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
26260         LDEXPL_LIBM, using $ISNANL_LIBM.
26261
26262 2010-12-31  Eric Blake  <eblake@redhat.com>
26263
26264         ftello: avoid compilation failure with SunStudio c89
26265         * lib/ftello.c (ftello): Use lseek, not llseek.
26266
26267         tests: avoid failing coreutils tests on cygwin
26268         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
26269         (create_exe_shims_): Return 0 when skipping.
26270
26271 2010-12-31  Bruno Haible  <bruno@clisp.org>
26272
26273         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
26274         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
26275
26276 2010-12-31  Bruno Haible  <bruno@clisp.org>
26277
26278         waitpid: Fix link error in C++ mode.
26279         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
26280
26281 2010-12-31  Bruno Haible  <bruno@clisp.org>
26282
26283         isnan: Use GCC built-ins when possible.
26284         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
26285         __builtin_isnan.
26286         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
26287         (isnan): Define using GCC built-ins for GCC >= 4.0.
26288
26289 2010-12-31  Bruno Haible  <bruno@clisp.org>
26290
26291         isnand: Fix mistake.
26292         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
26293         __builtin_isnand.
26294
26295 2010-12-31  Bruno Haible  <bruno@clisp.org>
26296
26297         open: Avoid C++ error on HP-UX 11.
26298         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
26299
26300 2010-12-31  Bruno Haible  <bruno@clisp.org>
26301
26302         time_r: Add missing declarations on HP-UX 11.
26303         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
26304         instead of HAVE_LOCALTIME_R.
26305         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
26306         HAVE_LOCALTIME_R always.
26307         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
26308         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
26309         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
26310         HAVE_LOCALTIME_R.
26311         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
26312         * doc/posix-functions/localtime_r.texi: Likewise.
26313
26314 2010-12-29  Eric Blake  <eblake@redhat.com>
26315
26316         mountlist: tweak previous commit
26317         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
26318         Reported by Paul Eggert.
26319
26320         mountlist: fix local drive detection on cygwin
26321         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
26322         that works for cygwin.
26323
26324 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26325
26326         ftoastr, snprintf: ftoastr + snprintf module
26327         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
26328         since the snprintf module now should be good enough here.
26329         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
26330         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
26331         and gl_MODULE_INDICATOR([snprintf]), but the former enables
26332         GNULIB_SNPRINTF only for the test directory, and the latter
26333         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
26334         seems to suffice by itself.
26335
26336 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
26337
26338         alloca: one step towards thread-safety
26339         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
26340         need for a static variable.  All callers changed.  This does not
26341         make the alloca replacement thread-safe, but it's one step.
26342
26343         tests: minor indenting change
26344         * tests/init.sh: Sync from coreutils housekeeping patch
26345         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
26346         to keep lines within 80 columns.
26347
26348 2010-12-28  Jim Meyering  <meyering@redhat.com>
26349
26350         regex: don't infloop on persistent failing calloc
26351         * lib/regexec.c (build_trtable): Return failure indication upon
26352         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
26353         In glibc, this was fixed for version 2.13:
26354         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
26355
26356 2010-12-28  Bruno Haible  <bruno@clisp.org>
26357             Paul Eggert <eggert@cs.ucla.edu>
26358
26359         linkat: Make implementation robust against system behaviour variations.
26360         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
26361         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
26362         way, and to -2 if it needs a generic runtime test.
26363         * lib/linkat.c (solaris_optimized_link_immediate,
26364         solaris_optimized_link_follow): New functions.
26365         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
26366         (check_same_link): Use it.
26367
26368 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
26369
26370         New module 'unigbrk/base'.
26371         * modules/unigbrk/base: New file.
26372         * lib/unigbrk.in.h: New file.
26373
26374         New module 'unigbrk/uc-gbrk-prop'.
26375         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
26376         * modules/unigbrk/uc-gbrk-prop: New file.
26377         * lib/unigbrk/gbrkprop.h: New file.
26378         * lib/unigbrk/uc-gbrk-prop.c: New file.
26379
26380         New module 'unigbrk/uc-is-grapheme-break'.
26381         * modules/unigbrk/uc-is-grapheme-break: New file.
26382         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
26383         * lib/unigbrk/uc-is-grapheme-break.c: New file.
26384         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
26385         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
26386         * tests/unigbrk/GraphemeBreakTest.txt: New file.
26387
26388         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
26389
26390 2010-12-27  Bruno Haible  <bruno@clisp.org>
26391
26392         linkat test: Avoid failure on Solaris 11 2010-11.
26393         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
26394
26395 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26396
26397         utimens: work around glibc rounding bug on more platforms
26398         * lib/utimens.c (fdutimens): Work around rounding bug even if
26399         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
26400         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
26401
26402 2010-12-27  Bruno Haible  <bruno@clisp.org>
26403
26404         select tests: Improve comments.
26405         * tests/test-select.c (do_select): Add comments.
26406
26407 2010-12-27  Bruno Haible  <bruno@clisp.org>
26408
26409         select tests: Safer way of handling timeout.
26410         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
26411         at every invocation.
26412
26413 2010-12-27  Bruno Haible  <bruno@clisp.org>
26414
26415         select tests: Use 'bool' where appropriate.
26416         * tests/test-select.c (connect_to_socket): Change argument type to
26417         'bool'.
26418
26419 2010-12-27  Bruno Haible  <bruno@clisp.org>
26420
26421         select tests: Use existing modules.
26422         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
26423         (configure.ac): Don't test for unistd.h.
26424         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
26425         declared in <unistd.h>.
26426
26427 2010-12-27  Bruno Haible  <bruno@clisp.org>
26428
26429         mbrtowc: Work around a Solaris 7 bug.
26430         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
26431         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
26432         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
26433         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
26434         MBRTOWC_NULL_ARG1_BUG.
26435         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
26436         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
26437         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
26438         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
26439
26440 2010-12-27  Jim Meyering  <meyering@redhat.com>
26441
26442         read-file.c: tweak syntax
26443         * lib/read-file.c (fread_file): Remove space after "*" in function
26444         definitions.
26445
26446 2010-12-27  Bruno Haible  <bruno@clisp.org>
26447
26448         times test: Avoid gcc warnings on OSF/1.
26449         * tests/test-times.c (main): Cast printf arguments from clock_t to
26450         'long int'.
26451
26452 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
26453
26454         utimens: work around glibc rounding bug on older Linux kernels
26455         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
26456         on Linux with a glibc whose utimes might not work, then work
26457         around a longstanding glibc bug involving rounding rather than
26458         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
26459         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26460
26461 2010-12-26  Bruno Haible  <bruno@clisp.org>
26462
26463         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
26464         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
26465         _GL_CXXALIAS_SYS.
26466         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26467
26468 2010-12-26  Bruno Haible  <bruno@clisp.org>
26469
26470         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
26471         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
26472         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26473         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
26474         looking for the declaration.
26475         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
26476         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
26477         problem.
26478         * doc/posix-functions/inet_pton.texi: Likewise.
26479
26480 2010-12-26  Bruno Haible  <bruno@clisp.org>
26481
26482         arpa_inet: Use the common idioms with C++ support.
26483         * lib/arpa_inet.in.h: Include c++defs.h.
26484         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
26485         support.
26486         * modules/arpa_inet (Depends-on): Add c++defs.
26487         (Makefile.am): Substitute the contents of c++defs.h.
26488         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
26489         * modules/arpa_inet-c++-tests: New file.
26490         * tests/test-arpa_inet-c++.cc: New file.
26491
26492 2010-12-25  Bruno Haible  <bruno@clisp.org>
26493
26494         Fix more C++ link errors on Solaris 8.
26495         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
26496         $(LIB_EACCESS).
26497         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
26498         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
26499         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
26500         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
26501         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
26502
26503 2010-12-25  Bruno Haible  <bruno@clisp.org>
26504
26505         printf-posix: Fix link error when a non-GCC compiler is used.
26506         * lib/stdio.in.h (printf): When not using GCC, override printf
26507         correctly.
26508         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26509
26510 2010-12-25  Bruno Haible  <bruno@clisp.org>
26511
26512         strerror_r-posix: Update doc.
26513         * doc/posix-functions/strerror_r.texi: Update doc about the return
26514         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
26515
26516 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
26517
26518         utimens: simplify the logic of the previous change
26519         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
26520         This should not affect whether the test succeeds or fails.
26521
26522         utimens: configure better on hosts with NFS clock skew
26523         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
26524         uses the clock of the local host.  It might use the clock of the
26525         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
26526         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
26527
26528 2010-12-25  Bruno Haible  <bruno@clisp.org>
26529
26530         ptsname test: Avoid failure on Solaris.
26531         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
26532         open a pseudo-terminal; don't use BSD-style ptys.
26533         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
26534
26535 2010-12-25  Bruno Haible  <bruno@clisp.org>
26536
26537         ptsname: Avoid ERANGE failure on some systems.
26538         * lib/ptsname.c (buffer): Increase size.
26539
26540 2010-12-25  Bruno Haible  <bruno@clisp.org>
26541
26542         rename, renameat: Avoid test failures at NFS mounted locations.
26543         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
26544         so that subsequent mkdir calls succeed.
26545
26546 2010-12-25  Bruno Haible  <bruno@clisp.org>
26547
26548         iswblank: Fix C++ link error on Solaris 8.
26549         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
26550         _GL_FUNCDECL_SYS.
26551
26552 2010-12-25  Bruno Haible  <bruno@clisp.org>
26553
26554         unistd: Fix C++ link error on Solaris 8.
26555         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
26556
26557 2010-12-25  Bruno Haible  <bruno@clisp.org>
26558
26559         readlink doc: Mention an old glibc bug.
26560         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
26561
26562 2010-12-25  Bruno Haible  <bruno@clisp.org>
26563
26564         fcntl-h: Fix for use of C++ on glibc systems.
26565         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26566         also on glibc systems in C++ mode.
26567         Reported by Gary V. Vaughan <gary@gnu.org>.
26568
26569 2010-12-25  Bruno Haible  <bruno@clisp.org>
26570
26571         roundl-ieee: Make it work on OSF/1 5.1 with cc.
26572         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
26573
26574 2010-12-25  Bruno Haible  <bruno@clisp.org>
26575
26576         truncl-ieee: Make it work on OSF/1 5.1 with cc.
26577         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
26578         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
26579         test whether truncl works according to ISO C 99 with IEC 60559.
26580         * m4/truncl-ieee.m4: New file.
26581         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
26582         m4/signbit.m4.
26583         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
26584
26585 2010-12-25  Bruno Haible  <bruno@clisp.org>
26586
26587         ceill-ieee: Make it work on OSF/1 5.1 with cc.
26588         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
26589         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
26590         test whether ceill works according to ISO C 99 with IEC 60559.
26591         * m4/ceill-ieee.m4: New file.
26592         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
26593         m4/signbit.m4.
26594         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
26595
26596 2010-12-25  Bruno Haible  <bruno@clisp.org>
26597
26598         Ensure all prerequisites of <wchar.h> are included.
26599         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
26600         before <wchar.h>.
26601         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
26602         gl_MBRLEN_NUL_RETVAL): Likewise.
26603         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
26604         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
26605         AC_FUNC_MBRTOWC): Likewise.
26606         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26607         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
26608         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26609         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
26610         Likewise.
26611         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
26612         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
26613         (gl_WCHAR_H): Improve comments.
26614         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
26615
26616 2010-12-25  Bruno Haible  <bruno@clisp.org>
26617
26618         strtok_r: Fix C syntax error in autoconf macro.
26619         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
26620         characters in test program.
26621
26622 2010-12-24  Bruno Haible  <bruno@clisp.org>
26623
26624         ceil, trunc, round: Fix gcc warnings.
26625         * lib/ceil.c (MIN): Undefine before redefining.
26626         * lib/trunc.c (MIN): Likewise.
26627         * lib/round.c (MIN): Likewise.
26628         Include <math.h> first.
26629
26630 2010-12-24  Bruno Haible  <bruno@clisp.org>
26631
26632         select tests: Avoid failures on OSF/1 5.1.
26633         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
26634         failure of closing the last socket; it may fail with ECONNRESET.
26635
26636 2010-12-24  Eric Blake  <eblake@redhat.com>
26637
26638         stdint: avoid HP-UX 10.20 preprocessor bug
26639         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
26640         than #if.
26641         * tests/test-floor2.c (main): Likewise.
26642         Reported by Peter O'Gorman.
26643
26644         pipe: make obsoletion transition easier
26645         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
26646         * modules/pipe (Files): Include revived file.
26647         (Include): Drop reference, to mirror getdate's behavior.
26648
26649 2010-12-24  Bruno Haible  <bruno@clisp.org>
26650
26651         sys_socket: Hide mismatch of declarations on NonStop Kernel.
26652         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
26653         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
26654         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26655
26656 2010-12-24  Bruno Haible  <bruno@clisp.org>
26657
26658         gethostname: Ensure declaration on NonStop Kernel.
26659         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
26660         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26661
26662 2010-12-24  Bruno Haible  <bruno@clisp.org>
26663
26664         sys_select: Ensure all necessary types on NonStop Kernel.
26665         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
26666         include <sys/time.h>.
26667         * doc/posix-headers/sys_select.texi: Mention that it's missing on
26668         NonStop Kernel.
26669         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26670
26671 2010-12-24  Bruno Haible  <bruno@clisp.org>
26672
26673         sys_select: Remove unneeded include.
26674         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
26675         have <sys/select.h>.
26676
26677 2010-12-24  Bruno Haible  <bruno@clisp.org>
26678
26679         gethostname: Provide a fallback for HOST_NAME_MAX.
26680         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
26681         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
26682         instead.
26683         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26684
26685 2010-12-24  Bruno Haible  <bruno@clisp.org>
26686
26687         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
26688         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
26689         (SA_RESTART): Likewise.
26690         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26691
26692 2010-12-24  Bruno Haible  <bruno@clisp.org>
26693
26694         signal: Define NSIG.
26695         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
26696         * tests/test-signal.c (nsig): New variable.
26697         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26698
26699 2010-12-24  Bruno Haible  <bruno@clisp.org>
26700
26701         rename, renameat: Avoid test failures on OSF/1 5.1.
26702         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
26703         alternative error codes.
26704         * tests/test-renameat.c (main): Likewise.
26705
26706 2010-12-24  Bruno Haible  <bruno@clisp.org>
26707
26708         *printf: Detect large precisions bug on Solaris 10/SPARC.
26709         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
26710         by Paul Eggert.
26711         * tests/test-snprintf-posix.h (test_function): Add this test code here
26712         too.
26713         * tests/test-sprintf-posix.h (test_function): Likewise.
26714         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26715         * tests/test-vasprintf-posix.c (test_function): Likewise.
26716         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
26717         around by gnulib.
26718         * doc/posix-functions/printf.texi: Likewise.
26719         * doc/posix-functions/snprintf.texi: Likewise.
26720         * doc/posix-functions/sprintf.texi: Likewise.
26721         * doc/posix-functions/vfprintf.texi: Likewise.
26722         * doc/posix-functions/vprintf.texi: Likewise.
26723         * doc/posix-functions/vsnprintf.texi: Likewise.
26724         * doc/posix-functions/vsprintf.texi: Likewise.
26725         * doc/posix-functions/dprintf.texi: Undo last commit.
26726         * doc/posix-functions/vdprintf.texi: Likewise.
26727
26728 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
26729
26730         tests: port test-fdutimensat.c to Solaris 8
26731         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
26732         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
26733         On Solaris 8, it fails with errno == ENOSYS, because there is no
26734         futimens (so it can't use the fd), and there is no lutimens (so it
26735         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
26736
26737         vsnprintf: make more consistent with snprintf; doc fixes
26738
26739         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
26740         the byte count return problem was promoted from the snprintf-posix
26741         to the snprintf module.
26742         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
26743         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
26744         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
26745         * tests/test-snprintf.c (main): Check the byte count returned.
26746         * tests/test-vsnprintf.c (main): Likewise.
26747
26748 2010-12-23  Eric Blake  <eblake@redhat.com>
26749
26750         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
26751         * modules/sigpipe (License): Relax license.
26752
26753 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26754
26755         doc: document Solaris printf bug with large float precisions
26756         * doc/posix-functions/dprintf.texi (dprintf):
26757         * doc/posix-functions/fprintf.texi (fprintf):
26758         * doc/posix-functions/printf.texi (printf):
26759         * doc/posix-functions/snprintf.texi (snprintf):
26760         * doc/posix-functions/sprintf.texi (sprintf):
26761         * doc/posix-functions/vdprintf.texi (vdprintf):
26762         * doc/posix-functions/vfprintf.texi (vfprintf):
26763         * doc/posix-functions/vprintf.texi (vprintf):
26764         * doc/posix-functions/vsnprintf.texi (vsnprintf):
26765         * doc/posix-functions/vsprintf.texi (vsprintf):
26766         Mention that these functions mishandle large floating point
26767         precisions on Solaris 10.  The same bug is also present in Solaris
26768         8, and I assume earlier.  This causes "cd gnulib-tests; make
26769         check" to fail on Solaris 8 (and I assume, later) when building
26770         the latest coreutils, in test-vasprintf-posix's call to
26771         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
26772         the wide flavors (e.g., wprintf) so this patch just updates the
26773         documentation for the narrow ones.
26774
26775         test-posixtm.c: add two tests
26776         * tests/test-posixtm.c: Add two tests, to highlight the
26777         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
26778         around this bug; this is merely to document it.
26779
26780 2010-12-22  Bruno Haible  <bruno@clisp.org>
26781
26782         getlogin_r: Work around portability problem on OSF/1.
26783         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
26784         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
26785         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
26786         test for a truncated result.
26787         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
26788         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
26789         * modules/getlogin_r (Depends-on): Add memchr.
26790         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
26791
26792 2010-12-22  Bruno Haible  <bruno@clisp.org>
26793
26794         ptsname: Avoid test failure on OSF/1 5.1.
26795         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
26796         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
26797         (same_slave): New function.
26798         (main): Use it to compare ptsname's result with the expected file name.
26799
26800 2010-12-22  Bruno Haible  <bruno@clisp.org>
26801
26802         Port extended stdio modules to HP NonStop Kernel.
26803         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
26804         macros.
26805         * lib/fbufmode.c: Update comments.
26806         * lib/fflush.c: Likewise.
26807         * lib/fpurge.c: Likewise.
26808         * lib/freadable.c: Likewise.
26809         * lib/freadahead.c: Likewise.
26810         * lib/freading.c: Likewise.
26811         * lib/freadptr.c: Likewise.
26812         * lib/freadseek.c: Likewise.
26813         * lib/fseeko.c: Likewise.
26814         * lib/fseterr.c: Likewise.
26815         * lib/fwritable.c: Likewise.
26816         * lib/fwriting.c: Likewise.
26817         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26818
26819 2010-12-22  Bruno Haible  <bruno@clisp.org>
26820
26821         ttyname_r: Work around bug on OSF/1 5.1.
26822         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26823         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26824         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26825         present.
26826         * lib/ttyname_r.c (ttyname_r): Update comments.
26827
26828 2010-12-22  Bruno Haible  <bruno@clisp.org>
26829
26830         round: Implement result sign according to IEEE 754.
26831         * lib/round.c (MIN, MINUS_ZERO): New macros.
26832         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26833         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26834         * tests/test-round-ieee.c (main): Likewise.
26835         * tests/test-roundl-ieee.c (main): Likewise.
26836
26837         trunc: Implement result sign according to IEEE 754.
26838         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26839         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26840         * tests/test-trunc2.c: Include minus-zero.h.
26841         (MINUS_ZERO): New macro.
26842         (trunc_reference): Keep in sync with lib/trunc.c.
26843         * tests/test-truncf2.c: Include minus-zero.h.
26844         (MINUS_ZERO): New macro.
26845         (truncf_reference): Keep in sync with lib/trunc.c.
26846         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26847         * tests/test-trunc-ieee.c (main): Likewise.
26848         * tests/test-truncl-ieee.c (main): Likewise.
26849
26850         ceil: Implement result sign according to IEEE 754.
26851         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26852         (FUNC): Return -0.0 for -1 < x < 0.
26853         * tests/test-ceil2.c: Include minus-zero.h.
26854         (MINUS_ZERO): New macro.
26855         (ceil_reference): Keep in sync with lib/ceil.c.
26856         * tests/test-ceilf2.c: Include minus-zero.h.
26857         (MINUS_ZERO): New macro.
26858         (ceilf_reference): Keep in sync with lib/ceil.c.
26859         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26860         * tests/test-ceil-ieee.c (main): Likewise.
26861         * tests/test-ceill-ieee.c (main): Likewise.
26862
26863         floor: Implement result sign according to IEEE 754.
26864         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26865         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26866         * tests/test-floorf2.c (floorf_reference): Likewise.
26867         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26868         * tests/test-floor-ieee.c (main): Likewise.
26869         * tests/test-floorl-ieee.c (main): Likewise.
26870
26871 2010-12-22  Bruno Haible  <bruno@clisp.org>
26872
26873         getaddrinfo: Update doc.
26874         * doc/posix-functions/gai_strerror.texi: Return type is also different
26875         on AIX and HP-UX.
26876
26877 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26878
26879         getaddrinfo, inet_ntop: Update doc for Solaris.
26880         * doc/posix-functions/gai_strerror.texi: Return type is also an
26881         issue on Solaris 9 and earlier.
26882         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26883         on Solaris 10 and earlier.
26884
26885 2010-12-21  Bruno Haible  <bruno@clisp.org>
26886
26887         New module 'roundl-ieee'.
26888         * modules/roundl-ieee: New file.
26889         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26890         test whether roundl works according to ISO C 99 with IEC 60559.
26891         * m4/roundl-ieee.m4: New file.
26892         * modules/roundl-ieee-tests: New file.
26893         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26894         * tests/test-roundl.c (main): Remove signbit tests.
26895         * modules/roundl-tests (Depends-on): Remove signbit.
26896         * doc/posix-functions/roundl.texi: Mention the new module.
26897
26898 2010-12-21  Bruno Haible  <bruno@clisp.org>
26899
26900         New module 'truncl-ieee'.
26901         * modules/truncl-ieee: New file.
26902         * modules/truncl-ieee-tests: New file.
26903         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26904         * tests/test-truncl.c (main): Remove signbit tests.
26905         * modules/truncl-tests (Depends-on): Remove signbit.
26906         * doc/posix-functions/truncl.texi: Mention the new module.
26907
26908 2010-12-21  Bruno Haible  <bruno@clisp.org>
26909
26910         New module 'ceill-ieee'.
26911         * modules/ceill-ieee: New file.
26912         * modules/ceill-ieee-tests: New file.
26913         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26914         * tests/test-ceill.c (main): Remove signbit tests.
26915         * modules/ceill-tests (Depends-on): Remove signbit.
26916         * doc/posix-functions/ceill.texi: Mention the new module.
26917
26918 2010-12-21  Bruno Haible  <bruno@clisp.org>
26919
26920         New module 'floorl-ieee'.
26921         * modules/floorl-ieee: New file.
26922         * modules/floorl-ieee-tests: New file.
26923         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26924         * tests/test-floorl.c (main): Remove signbit tests.
26925         * modules/floorl-tests (Depends-on): Remove signbit.
26926         * doc/posix-functions/floorl.texi: Mention the new module.
26927
26928 2010-12-21  Bruno Haible  <bruno@clisp.org>
26929
26930         New module 'round-ieee'.
26931         * modules/round-ieee: New file.
26932         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26933         whether round works according to ISO C 99 with IEC 60559.
26934         * m4/round-ieee.m4: New file.
26935         * modules/round-ieee-tests: New file.
26936         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26937         * tests/test-round1.c (main): Remove signbit tests.
26938         * modules/round-tests (Depends-on): Remove 'signbit'.
26939         * doc/posix-functions/round.texi: Mention the new module.
26940
26941 2010-12-21  Bruno Haible  <bruno@clisp.org>
26942
26943         New module 'trunc-ieee'.
26944         * modules/trunc-ieee: New file.
26945         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26946         whether trunc works according to ISO C 99 with IEC 60559.
26947         * m4/trunc-ieee.m4: New file.
26948         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26949         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26950         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26951         * modules/trunc-ieee-tests: New file.
26952         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26953         * tests/test-trunc1.c (main): Remove signbit tests.
26954         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26955         * doc/posix-functions/trunc.texi: Mention the new module.
26956
26957 2010-12-21  Bruno Haible  <bruno@clisp.org>
26958
26959         New module 'ceil-ieee'.
26960         * modules/ceil-ieee: New file.
26961         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26962         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26963         ISO C 99 with IEC 60559.
26964         * m4/ceil-ieee.m4: New file.
26965         * modules/ceil (Files): Add lib/ceil.c.
26966         (Depends-on): Add 'float'.
26967         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26968         * lib/math.in.h (ceil): New declaration.
26969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26970         REPLACE_CEIL.
26971         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26972         * modules/ceil-ieee-tests: New file.
26973         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26974         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26975         * doc/posix-functions/ceil.texi: Mention the new module.
26976
26977 2010-12-21  Bruno Haible  <bruno@clisp.org>
26978
26979         New module 'floor-ieee'.
26980         * modules/floor-ieee: New file.
26981         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26982         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26983         ISO C 99 with IEC 60559.
26984         * m4/floor-ieee.m4: New file.
26985         * modules/floor (Files): Add lib/floor.c.
26986         (Depends-on): Add 'float'.
26987         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26988         * lib/math.in.h (floor): New declaration.
26989         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26990         REPLACE_FLOOR.
26991         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26992         * modules/floor-ieee-tests: New file.
26993         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26994         * tests/test-math-c++.cc: Check the signature of 'floor'.
26995         * doc/posix-functions/floor.texi: Mention the new module.
26996
26997 2010-12-21  Bruno Haible  <bruno@clisp.org>
26998
26999         New module 'roundf-ieee'.
27000         * modules/roundf-ieee: New file.
27001         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
27002         test whether roundf works according to ISO C 99 with IEC 60559.
27003         * m4/roundf-ieee.m4: New file.
27004         * modules/roundf-ieee-tests: New file.
27005         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
27006         * tests/test-roundf1.c (main): Remove signbit tests.
27007         * modules/roundf-tests (Depends-on): Remove 'signbit'.
27008         * doc/posix-functions/roundf.texi: Mention the new module.
27009
27010 2010-12-21  Bruno Haible  <bruno@clisp.org>
27011
27012         New module 'truncf-ieee'.
27013         * modules/truncf-ieee: New file.
27014         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
27015         test whether truncf works according to ISO C 99 with IEC 60559.
27016         * m4/truncf-ieee.m4: New file.
27017         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
27018         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
27019         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
27020         * modules/truncf-ieee-tests: New file.
27021         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
27022         * tests/test-truncf1.c (main): Remove signbit tests.
27023         * modules/truncf-tests (Depends-on): Remove 'signbit'.
27024         * doc/posix-functions/truncf.texi: Mention the new module.
27025
27026 2010-12-21  Bruno Haible  <bruno@clisp.org>
27027
27028         New module 'ceilf-ieee'.
27029         * modules/ceilf-ieee: New file.
27030         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
27031         test whether ceilf works according to ISO C 99 with IEC 60559.
27032         * m4/ceilf-ieee.m4: New file.
27033         * modules/ceilf-ieee-tests: New file.
27034         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
27035         * tests/test-ceilf1.c (main): Remove signbit tests.
27036         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
27037         * doc/posix-functions/ceilf.texi: Mention the new module.
27038
27039 2010-12-21  Bruno Haible  <bruno@clisp.org>
27040
27041         New module 'floorf-ieee'.
27042         * modules/floorf-ieee: New file.
27043         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
27044         test whether floorf works according to ISO C 99 with IEC 60559.
27045         * m4/floorf-ieee.m4: New file.
27046         * modules/floorf-ieee-tests: New file.
27047         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
27048         * tests/test-floorf1.c (main): Remove signbit tests.
27049         * modules/floorf-tests (Depends-on): Remove 'signbit'.
27050         * doc/posix-functions/floorf.texi: Mention the new module.
27051
27052 2010-12-21  Bruno Haible  <bruno@clisp.org>
27053
27054         Support for minus zero in autoconf macros.
27055         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
27056         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
27057         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
27058         * tests/minus-zero.h: Update comments.
27059
27060 2010-12-21  Bruno Haible  <bruno@clisp.org>
27061
27062         Tests for module 'ceil'.
27063         * modules/ceil-tests: New file.
27064         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
27065         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
27066
27067 2010-12-21  Bruno Haible  <bruno@clisp.org>
27068
27069         Tests for module 'floor'.
27070         * modules/floor-tests: New file.
27071         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
27072         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
27073
27074 2010-12-21  Bruno Haible  <bruno@clisp.org>
27075
27076         math: Fix indentation.
27077         * lib/math.in.h (floorf): Fix indentation.
27078
27079 2010-12-21  Bruno Haible  <bruno@clisp.org>
27080
27081         Fix cross-compilation guesses on Solaris.
27082         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
27083         not match "solaris2.10".
27084         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27085         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
27086         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
27087
27088 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
27089
27090         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
27091         This fixes a problem observed with the latest coreutils snapshot
27092         that caused a test to fail on Solaris 8.  src/csplit.c's call
27093         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
27094         earlier, instead of returning the number of bytes that would have
27095         been generated; this causes csplit to incorrectly report memory
27096         exhaustion.
27097         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
27098         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
27099         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
27100         comments to match.
27101         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
27102         Fix typo in matching older versions of Solaris: "solaris2.10"
27103         is matched by the shell pattern "solaris2.[0-9]*".  This matters
27104         only for guessing while cross-compiling.
27105         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
27106
27107 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
27108
27109         ftoastr: fix comment again
27110         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27111         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
27112         Also, simplify example a bit by using flags = 0.
27113
27114 2010-12-20  Bruno Haible  <bruno@clisp.org>
27115
27116         round*, trunc*: Update documentation regarding glibc.
27117         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
27118         * doc/posix-functions/round.texi: Likewise.
27119         * doc/posix-functions/roundl.texi: Likewise.
27120         * doc/posix-functions/truncf.texi: Likewise.
27121         * doc/posix-functions/trunc.texi: Likewise.
27122         * doc/posix-functions/truncl.texi: Likewise.
27123
27124 2010-12-20  Bruno Haible  <bruno@clisp.org>
27125
27126         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
27127         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
27128         * doc/posix-functions/round.texi: Likewise.
27129         * doc/posix-functions/roundl.texi: Likewise.
27130
27131 2010-12-20  Bruno Haible  <bruno@clisp.org>
27132
27133         ttyname_r: Add missing declaration on HP-UX 11.
27134         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
27135         HAVE_TTYNAME_R.
27136         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
27137         declared. Set HAVE_TTYNAME_R always.
27138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27139         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
27140         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
27141         HAVE_TTYNAME_R.
27142         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
27143
27144 2010-12-20  Bruno Haible  <bruno@clisp.org>
27145
27146         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
27147         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
27148         * doc/posix-functions/getlogin_r.texi: Likewise.
27149         * tests/test-getlogin.c: Include <errno.h>.
27150         (main): Avoid test failure on HP-UX 11.11.
27151         * tests/test-getlogin_r.c (main): Likewise.
27152
27153 2010-12-20  Bruno Haible  <bruno@clisp.org>
27154
27155         getlogin_r: Add missing declaration on HP-UX 11.
27156         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
27157         declared also when it exists as a function.
27158         * doc/posix-functions/getlogin_r.texi: Document this workaround.
27159
27160 2010-12-20  Bruno Haible  <bruno@clisp.org>
27161
27162         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
27163         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
27164         through wcrtomb.
27165
27166 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
27167
27168         ftoastr: fix comment
27169         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
27170         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
27171
27172 2010-12-19  Bruno Haible  <bruno@clisp.org>
27173
27174         isnan: Ensure it is a macro.
27175         * lib/math.in.h (isnan): Define as a macro if not already a macro.
27176         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
27177         Solaris.
27178
27179 2010-12-19  Bruno Haible  <bruno@clisp.org>
27180
27181         ldexpl test: Fix link error on OSF/1 5.1.
27182         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
27183
27184 2010-12-19  Bruno Haible  <bruno@clisp.org>
27185
27186         wctype: Make it work in C++ mode on OSF/1 5.1.
27187         * lib/wctype.in.h (iswblank): Declare but not define here.
27188         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
27189         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
27190         * modules/wctype (Files): Add lib/iswblank.c.
27191
27192 2010-12-19  Bruno Haible  <bruno@clisp.org>
27193
27194         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
27195         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
27196         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
27197
27198 2010-12-19  Bruno Haible  <bruno@clisp.org>
27199
27200         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
27201         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
27202         _POSIX_PII_SOCKET.
27203         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
27204         * doc/posix-functions/recvfrom.texi: Likewise.
27205         * doc/posix-functions/send.texi: Likewise.
27206         * doc/posix-functions/sendto.texi: Likewise.
27207
27208 2010-12-19  Bruno Haible  <bruno@clisp.org>
27209
27210         tcgetsid: Add missing declaration on OSF/1 5.1.
27211         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
27212         HAVE_TCGETSID.
27213         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
27214         Don't set HAVE_TCGETSID.
27215         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
27216         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
27217         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
27218         HAVE_TCGETSID.
27219         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
27220
27221 2010-12-19  Bruno Haible  <bruno@clisp.org>
27222
27223         stdio: Fix problem with popen() declaration on OSF/1 5.1.
27224         * lib/stdio.in.h: During the include_next statement, let recursive
27225         includes of this file include only the system header file.
27226
27227 2010-12-19  Bruno Haible  <bruno@clisp.org>
27228
27229         iconv_open: Fix regression from 2010-12-04.
27230         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
27231         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
27232
27233 2010-12-19  Bruno Haible  <bruno@clisp.org>
27234
27235         stdbool test: Avoid a gcc warning.
27236         * tests/test-stdbool.c (main): Fail if e1 is false.
27237         Reported by Jim Meyering.
27238
27239 2010-12-19  Jim Meyering  <meyering@redhat.com>
27240
27241         setenv: restore to working order
27242         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
27243         mistakenly removed.
27244         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
27245         HAVE_SETENV.
27246         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
27247         HAVE_SETENV.
27248
27249 2010-12-19  Bruno Haible  <bruno@clisp.org>
27250
27251         Document some different function declarations on OSF/1 5.1.
27252         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
27253         * doc/posix-functions/inet_ntop.texi: Likewise.
27254         * doc/posix-functions/gethostname.texi: Likewise.
27255         * lib/unistd.in.h (gethostname): Update comment.
27256
27257 2010-12-19  Bruno Haible  <bruno@clisp.org>
27258
27259         doc: Mention vasprintf-posix module.
27260         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
27261         the 'vasprintf-posix' module.
27262         * doc/glibc-functions/vasprintf.texi: Likewise.
27263
27264 2010-12-19  Bruno Haible  <bruno@clisp.org>
27265
27266         unsetenv: Add missing declaration on OSF/1 5.1.
27267         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
27268         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
27269         Don't set HAVE_UNSETENV. In the test program, set _BSD.
27270         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
27271         not HAVE_UNSETENV.
27272         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
27273         HAVE_UNSETENV.
27274         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
27275
27276 2010-12-19  Bruno Haible  <bruno@clisp.org>
27277
27278         setenv: Add missing declaration on OSF/1 5.1.
27279         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
27280         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
27281         declared. Don't set HAVE_SETENV.
27282         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
27283         not HAVE_SETENV.
27284         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
27285         HAVE_SETENV.
27286         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
27287
27288 2010-12-19  Bruno Haible  <bruno@clisp.org>
27289
27290         nl_langinfo tests: Avoid gcc warning.
27291         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
27292
27293 2010-12-19  Bruno Haible  <bruno@clisp.org>
27294
27295         mknod: Avoid error in C++ mode on OSF/1 with GCC.
27296         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
27297         _GL_CXXALIAS_SYS.
27298
27299 2010-12-19  Bruno Haible  <bruno@clisp.org>
27300
27301         stdbool: Relax test.
27302         * tests/test-stdbool.c (e): Don't require that casts from a variable's
27303         address to 'bool' work in static initializer, for compilers other than
27304         GCC.
27305
27306 2010-12-19  Bruno Haible  <bruno@clisp.org>
27307
27308         ftello: Add missing declaration on OSF/1 5.1.
27309         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
27310         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
27311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
27312         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
27313         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
27314
27315 2010-12-19  Bruno Haible  <bruno@clisp.org>
27316
27317         fseeko: Add missing declaration on OSF/1 5.1.
27318         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
27319         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
27320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
27321         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
27322         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
27323
27324 2010-12-19  Bruno Haible  <bruno@clisp.org>
27325
27326         fchdir: Add missing declaration on OSF/1 5.1.
27327         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
27328         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
27329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
27330         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
27331         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
27332
27333 2010-12-19  Bruno Haible  <bruno@clisp.org>
27334
27335         relocatable-prog-wrapper: Separate from relocatable-prog.
27336         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
27337         uninstall-relocwrapper rule here.
27338         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
27339         Reported by Ian Beckwith <ianb@erislabs.net>.
27340
27341 2010-12-19  Bruno Haible  <bruno@clisp.org>
27342
27343         unistr/u8-mbsnlen: Add missing dependency.
27344         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
27345         Reported by Ian Beckwith <ianb@erislabs.net>.
27346
27347 2010-12-19  Bruno Haible  <bruno@clisp.org>
27348
27349         iconv: Make it possible again to use this module without 'iconv-h'.
27350         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
27351         if it is not defined.
27352         Reported by Ian Beckwith <ianb@erislabs.net>.
27353
27354 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
27355
27356         acl: port to Solaris 8 when copying from tmpfs to ufs
27357         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
27358         error number.  Problem observed on Solaris 8 with latest
27359         coreutils, with "mv A B", where A is on a tmpfs file system and B
27360         is on a ufs file system.  This caused coreutils' mv/part-symlink
27361         test to fail.
27362
27363         tests: set fail=0 at start
27364         * tests/init.sh (setup_): Move fail=0 initialization here ...
27365         (mktempd_): ... from here, so that tests can rely on fail being
27366         set to 0 initially.  This fixes a problem in coreutils; see:
27367         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
27368
27369 2010-12-18  Bruno Haible  <bruno@clisp.org>
27370
27371         memmem-simple: Stylistic changes.
27372         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
27373         Fix preprocessor directive indentation.
27374
27375 2010-12-15  Pádraig Brady <P@draigBrady.com>
27376
27377         memmem, memmem-simple: reorganize and expand empty needle check
27378         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
27379         functional checks to memmem-simple so that one has a fully functional
27380         memmem by using just this module.
27381         Restrict the performance only check to the memmem module.
27382         Also expand the empty needle check to ensure the correct
27383         pointer is returned, not just a non NULL pointer.
27384         * doc/glibc-functions/memmem.texi: Rearrange the portability
27385         documentation to correlate with the rearranged checks.
27386         Clarify exactly how the memmem and memmem-simple modules
27387         relate to each other.
27388
27389 2010-12-15  Pádraig Brady <P@draigBrady.com>
27390             Bruno Haible  <bruno@clisp.org>
27391
27392         Improve cross-compilation guesses for uClibc.
27393         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
27394         that uClibc does not have the glibc bug.
27395         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
27396         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
27397
27398 2010-12-14  Eric Blake  <eblake@redhat.com>
27399
27400         configmake: provide fallbacks for oldest supported autotools
27401         * m4/configmake.m4: New file.
27402         * modules/configmake (Files): Ship it.
27403         (configure.ac): Use it to guarantee fallbacks.
27404
27405 2010-12-13  Pádraig Brady <P@draigBrady.com>
27406
27407         read-file: Improve handling of large files
27408         * lib/read-file.c (fread_file): Minimize realloc()s
27409         for regular files, and better manage sizes around SIZE_MAX.
27410
27411 2010-12-13  Eric Blake  <eblake@redhat.com>
27412
27413         cloexec, fcntl: relax license
27414         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
27415         consent from all contributors.
27416         * modules/fcntl (License): Likewise.
27417
27418 2010-12-10  Bruno Haible  <bruno@clisp.org>
27419
27420         Tests for module 'pipe-posix'.
27421         * modules/pipe-posix-tests: New file.
27422         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
27423
27424 2010-12-10  Bruno Haible  <bruno@clisp.org>
27425
27426         pipe-posix: Make it work in C++ mode.
27427         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
27428         (pipe): Use common idiom, not a macro definition.
27429         * lib/pipe.c: New file.
27430         * m4/pipe.m4: New file.
27431         * modules/pipe-posix (Description): Enhance.
27432         (Files): Add lib/pipe.c, m4/pipe.m4.
27433         (configure.ac): Invoke gl_FUNC_PIPE.
27434         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
27435         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
27436         * tests/test-unistd-c++.cc: Check the signature of pipe.
27437
27438 2010-12-10  Bruno Haible  <bruno@clisp.org>
27439
27440         Rename module 'pipe' to 'spawn-pipe'.
27441         * modules/spawn-pipe: New file, renamed from modules/pipe.
27442         (Files, configure.ac, Makefile.am): Update.
27443         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
27444         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
27445         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
27446         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
27447         "spawn-pipe.h" instead of "pipe.h".
27448         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
27449         to gl_SPAWN_PIPE.
27450         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
27451         (Files, Makefile.am): Update.
27452         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
27453         Update.
27454         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
27455         Include "spawn-pipe.h" instead of "pipe.h".
27456         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
27457         * lib/javacomp.c: Likewise.
27458         * lib/javaversion.c: Likewise.
27459         * lib/pipe-filter-gi.c: Likewise.
27460         * lib/pipe-filter-ii.c: Likewise.
27461         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
27462         * modules/javacomp (Depends-on): Likewise.
27463         * modules/javaversion (Depends-on): Likewise.
27464         * modules/pipe-filter-gi (Depends-on): Likewise.
27465         * modules/pipe-filter-ii (Depends-on): Likewise.
27466         * MODULES.html.sh (Executing programs): Update.
27467         * NEWS: Mention the change.
27468
27469 2010-12-10  Eric Blake  <eblake@redhat.com>
27470
27471         pipe-posix: new module
27472         * modules/pipe-posix: New file.
27473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
27474         (gl_UNISTD_H): Check for declaration.
27475         * modules/unistd (Makefile.am): Substitute it.
27476         * lib/unistd.in.h (pipe): Provide it for mingw.
27477         * doc/posix-functions/pipe.texi (pipe): Update documentation.
27478         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
27479
27480 2010-12-07  Bruno Haible  <bruno@clisp.org>
27481
27482         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
27483         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
27484         u8_strcmp_gnu.
27485         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
27486
27487 2010-12-06  Bruno Haible  <bruno@clisp.org>
27488
27489         Update internal documentation.
27490         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
27491
27492 2010-12-04  Bruno Haible  <bruno@clisp.org>
27493
27494         Put more information about failed tests into the test return codes.
27495         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
27496         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
27497         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
27498         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27499         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
27500         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27501         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27502         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
27503         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
27504         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27505         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
27506         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27507         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
27508         * m4/stdint.m4 (gl_STDINT_H): Likewise.
27509         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
27510         returns a bit mask.
27511         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
27512         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
27513         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
27514         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
27515         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27516         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
27517         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
27518         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
27519         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
27520         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
27521         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
27522         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
27523         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
27524         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
27525         * m4/link.m4 (gl_FUNC_LINK): Likewise.
27526         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
27527         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
27528         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
27529         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
27530         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
27531         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27532         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
27533         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
27534         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
27535         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
27536         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
27537         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
27538         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
27539         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
27540         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
27541         gl_PRINTF_PRECISION): Likewise.
27542         * m4/regex.m4 (gl_REGEX): Likewise.
27543         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
27544         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
27545         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
27546         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
27547         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
27548         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27549         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
27550         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
27551         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
27552         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27553         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
27554         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
27555         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
27556         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27557         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
27558         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27559         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27560         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
27561         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
27562         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
27563         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
27564         enumerated value.
27565         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
27566
27567 2010-12-04  Bruno Haible  <bruno@clisp.org>
27568
27569         Update for Solaris 11 2010-11.
27570         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
27571         Express, released in November 2010.
27572
27573 2010-12-04  Bruno Haible  <bruno@clisp.org>
27574
27575         nproc: Relax license.
27576         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
27577         and Paul Eggert.
27578         Requested by Ludovic Courtès <ludo@gnu.org>.
27579
27580 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
27581
27582         utimecmp: fine-grained src to nearby coarse-grained dest
27583
27584         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
27585         and the source is on a file system with higher-resolution time
27586         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
27587         not work, and the time stamps are close together, the algorithm to
27588         determine the exact resolution from the read-back mtime was buggy:
27589         it had a "!=" where it should have had an "==".  This bug has been
27590         in the code ever since it was introduced to gnulib.
27591         Problem reported by Dan Jacobson in
27592         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
27593
27594 2010-11-30  Bruno Haible  <bruno@clisp.org>
27595
27596         strerror_r-posix: Fix autoconf test.
27597         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
27598
27599 2010-11-28  Bruno Haible  <bruno@clisp.org>
27600             Paul Eggert  <eggert@cs.ucla.edu>
27601
27602         Tests for module 'getdomainname'.
27603         * modules/getdomainname-tests: New file.
27604         * tests/test-getdomainname.c: New file, based on
27605         tests/test-gethostname.c.
27606
27607 2010-11-28  Bruno Haible  <bruno@clisp.org>
27608             Paul Eggert  <eggert@cs.ucla.edu>
27609
27610         getdomainname: Use the system function when possible.
27611         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
27612         (getdomainname): Replace if needed. Provide the declaration if it is
27613         missing. Don't use _GL_CXXALIAS_SYS_CAST.
27614         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
27615         (getdomainname): When the system has getdomainname, call the system
27616         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
27617         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
27618         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
27619         found in libnsl. Look for the declaration also in <netdb.h>. Replace
27620         the function if its second argument is of type 'int' or if it is found
27621         in libnsl.
27622         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
27623         <sys/systeminfo.h> and sysinfo().
27624         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
27625         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27626         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
27627         HAVE_GETDOMAINNAME.
27628         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
27629         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
27630         * doc/glibc-functions/getdomainname.texi: Document the problems with
27631         the getdomainname declaration.
27632
27633 2010-11-28  Bruno Haible  <bruno@clisp.org>
27634
27635         sys_socket: Ensure ss_family field on AIX.
27636         * lib/sys_socket.in.h (ss_family): New macro definition.
27637         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
27638         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
27639         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
27640         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27641         * modules/sys_socket (Makefile.am): Substitute
27642         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
27643         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
27644
27645 2010-11-27  Bruno Haible  <bruno@clisp.org>
27646
27647         readline: Improve configure output.
27648         * m4/readline.m4 (gl_FUNC_READLINE): Make the
27649         "checking for readline..." result understandable.
27650
27651 2010-11-27  Bruno Haible  <bruno@clisp.org>
27652
27653         *printf-posix: Detect a bug on Solaris 10/x86.
27654         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
27655         for floating-point output.
27656         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
27657         directive.
27658         * tests/test-snprintf-posix.h (test_function): Likewise.
27659         * tests/test-sprintf-posix.h (test_function): Likewise.
27660         * tests/test-vasprintf-posix.c (test_function): Likewise.
27661         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
27662         * doc/posix-functions/printf.texi: Likewise.
27663         * doc/posix-functions/snprintf.texi: Likewise.
27664         * doc/posix-functions/sprintf.texi: Likewise.
27665         * doc/posix-functions/vfprintf.texi: Likewise.
27666         * doc/posix-functions/vprintf.texi: Likewise.
27667         * doc/posix-functions/vsnprintf.texi: Likewise.
27668         * doc/posix-functions/vsprintf.texi: Likewise.
27669         * doc/glibc-functions/obstack_printf.texi: Likewise.
27670         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
27671
27672 2010-11-27  Bruno Haible  <bruno@clisp.org>
27673
27674         Fix link error when module libunistring-optional is in use.
27675         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
27676         * modules/striconveha-tests (Makefile.am): Likewise.
27677
27678 2010-11-27  Bruno Haible  <bruno@clisp.org>
27679
27680         regex: Mention link dependencies.
27681         * modules/regex (Link): New section.
27682         * modules/rpmatch (Link): Likewise.
27683         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
27684
27685 2010-11-27  Bruno Haible  <bruno@clisp.org>
27686
27687         ftoastr: Fix compilation error on Solaris.
27688         * lib/ftoastr.c: Include <config.h>.
27689
27690 2010-11-27  Bruno Haible  <bruno@clisp.org>
27691
27692         getloadavg: Update documentation.
27693         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
27694
27695 2010-11-27  Bruno Haible  <bruno@clisp.org>
27696
27697         sys_socket: Fix test whether the functions are declared.
27698         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
27699         not <sys/select.h>.
27700
27701 2010-11-27  Bruno Haible  <bruno@clisp.org>
27702
27703         getpass: Make sure to get system declaration on some platforms.
27704         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
27705         gl_USE_SYSTEM_EXTENSIONS.
27706         * modules/getpass (Depends-on): Add extensions.
27707
27708 2010-11-26  Bruno Haible  <bruno@clisp.org>
27709
27710         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
27711         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
27712         'iconv' module is present.
27713         (ICONV_CONST): New macro.
27714         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
27715         ICONV_CONST.
27716         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
27717         set ICONV_CONST.
27718         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
27719         here.
27720         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
27721         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
27722         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
27723         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
27724         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
27725         present.
27726
27727 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
27728
27729         ftoastr: comment fix
27730         * lib/ftoastr.c: "little" -> "little or no" in comment
27731
27732 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
27733
27734         stdint: port to GCC 4.3 + OSX + Octave
27735         On this platform, stdint.h is buggy and defines int64_t to long
27736         long int.  The replacement defined it to long int, causing
27737         problems with C++ style name mangling.  Instead, trust the system
27738         definition if INT64_MAX is defined, and likewise for the unsigned
27739         variant.   Problem reported by Jarno Rajahalme in
27740         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
27741         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
27742         and don't mess with int64_t and INT64_MAX in this case.
27743         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
27744
27745 2010-11-24  Bruno Haible  <bruno@clisp.org>
27746
27747         doc: Corrections regarding MacOS X 10.4 and 10.5.
27748         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
27749         MacOS X.
27750         Reported by Simon Josefsson.
27751
27752 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
27753
27754         Uninstall ".bin" files installed by relocwrapper.
27755         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
27756         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
27757         unless it is already there.
27758
27759 2010-11-21  Bruno Haible  <bruno@clisp.org>
27760
27761         Update for NetBSD 5.0.
27762         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27763         NetBSD; the test fails on NetBSD 5.0.
27764         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27765         about NetBSD.
27766
27767 2010-11-21  Bruno Haible  <bruno@clisp.org>
27768
27769         Update for HP-UX 11.23 and HP-UX 11.31.
27770         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
27771         HP-UX.
27772
27773 2010-11-21  Bruno Haible  <bruno@clisp.org>
27774
27775         Update for MacOS X 10.5.
27776         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
27777         MacOS X; the test fails on MacOS X 10.5.8.
27778         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
27779         about MacOS X.
27780
27781 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
27782
27783         bootstrap: add bootstrap_sync option.
27784         See discussion at
27785         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
27786         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
27787         * build-aux/bootstrap: Accept --bootstrap-sync to update
27788         bootstrap if it is not identical to the local gnulib's
27789         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
27790         enable this by default.  Accept --no-bootstrap-sync to disable
27791         it.
27792
27793 2010-11-20  Bruno Haible  <bruno@clisp.org>
27794
27795         Ensure that <features.h> is included before __GLIBC__ is tested.
27796         * lib/printf-parse.h: Include <features.h>.
27797         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
27798         Reported by Mike Frysinger <vapier@gentoo.org>.
27799
27800         Ensure that <features.h> is included before __GLIBC__ is tested.
27801         * lib/wchar.in.h: Include <features.h>.
27802         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
27803         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
27804         Reported by Mike Frysinger <vapier@gentoo.org>.
27805
27806         Ensure that <features.h> is included before __GLIBC__ is tested.
27807         * lib/arpa_inet.in.h: Include <features.h>.
27808         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
27809         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
27810         Reported by Mike Frysinger <vapier@gentoo.org>.
27811
27812         Ensure that <features.h> is included before __GLIBC__ is tested.
27813         * build-aux/link-warning.h: Include <features.h>.
27814         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27815         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27816         Reported by Mike Frysinger <vapier@gentoo.org>.
27817
27818         Ensure that <features.h> is included before __GLIBC__ is tested.
27819         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27820         Reported by Mike Frysinger <vapier@gentoo.org>.
27821
27822 2010-11-20  Bruno Haible  <bruno@clisp.org>
27823
27824         memmem: Fix autoconf test.
27825         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27826
27827 2010-11-20  Bruno Haible  <bruno@clisp.org>
27828
27829         Port to uClibc.
27830         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27831         * lib/fcntl.in.h: Likewise.
27832         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27833         * lib/mbrtowc.c (mbrtowc): Likewise.
27834         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27835         * lib/strerror_r.c: Likewise.
27836         * lib/unistr/u8-strnlen.c: Likewise.
27837         * lib/vasnprintf.c (decimal_point_char): Likewise.
27838         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27839         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27840         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27841         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27842         * tests/test-sigaction.c (handler, main): Likewise.
27843         * lib/freading.h: Treat uClibc like a non-glibc platform.
27844         * lib/freading.c: Likewise.
27845         * lib/gettext.h: Likewise.
27846         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27847         Likewise.
27848         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27849         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27850         * lib/propername.c (proper_name_utf8): Likewise.
27851         * lib/spawn.in.h: Likewise.
27852         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27853         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27854         mem_cd_iconveh_internal): Likewise.
27855         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27856         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27857         strstr, strcasestr): Likewise.
27858         * lib/unicodeio.c (unicode_to_mb): Likewise.
27859         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27860         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27861         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27862         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27863         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27864         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27865         * lib/unistr/u8-stpncpy.c: Likewise.
27866         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27867         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27868         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27869         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27870         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27871         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27872         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27873         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27874         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27875         Likewise.
27876         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27877         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27878         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27879         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27880         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27881         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27882         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27883         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27884         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27885         * tests/test-striconveha.c (main): Likewise.
27886         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27887         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27888         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27889         * doc/posix-functions/getline.texi: Likewise.
27890         Reported by Mike Frysinger <vapier@gentoo.org>.
27891
27892 2010-11-20  Bruno Haible  <bruno@clisp.org>
27893
27894         nproc: Fix condition.
27895         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27896         HAVE_PTHREAD_AFFINITY_NP.
27897
27898 2010-11-20  Bruno Haible  <bruno@clisp.org>
27899
27900         Fix a comment.
27901         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27902
27903 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27904
27905         ftoastr: don't assume snprintf
27906         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27907         Implement a subset of snprintf here, by using sprintf safely.
27908         * modules/ftoastr (Depends-on): Remove snprintf.
27909
27910 2010-11-19  Jim Meyering  <meyering@redhat.com>
27911
27912         test-rename.h: fix compilation failure
27913         * tests/test-rename.h (test_rename): Add omitted "}".
27914
27915 2010-11-17  Jim Meyering  <meyering@redhat.com>
27916
27917         maint.mk: add a URL discussing the no-@acronym policy
27918         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27919
27920 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27921
27922         ftoastr: depend on snprintf, improve comments
27923         * lib/ftoastr.c: Also mention Loitsch's draft.
27924         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27925         needed in the current implementation, but it might simplify
27926         speeding up the code later.
27927         * modules/ftoastr: Depend on snprintf; this improves portability.
27928         Suggested by Bruno Haible in the same email.
27929
27930         ftoastr: port to hosts lacking strtof and strtold
27931         Problem reported by Bruno Haible in
27932         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27933         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27934         environment and strtold (and presumably strtof) are not available.
27935         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27936         (configure.ac): Require gl_C99_STRTOLD.
27937
27938 2010-11-18  Bruno Haible  <bruno@clisp.org>
27939
27940         c-strtold: Avoid link error on AIX 7.
27941         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27942         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27943         (gl_C_STRTOLD): Test whether strtold_l exists.
27944         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27945
27946 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27947
27948         intprops: new macro INT_BITS_STRLEN_BOUND
27949         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27950         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27951         not exposed.  Also, it uses a slightly tighter bound than before;
27952         though this makes no practical difference, we might as well be as
27953         tight as we easily can.
27954
27955         ftoastr: new module, for lossless conversion of floats to short strings
27956         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27957         * modules/ftoastr: New files.
27958
27959 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27960
27961         bootstrap: port to Solaris sed
27962         * build-aux/bootstrap (get_version): Port to Solaris sed.
27963         See Ralf Wildenhues's note in
27964         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27965
27966 2010-11-14  Jim Meyering  <meyering@redhat.com>
27967
27968         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27969         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27970         and move definition closer to sole use.
27971
27972 2010-11-13  Jim Meyering  <meyering@redhat.com>
27973
27974         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27975         Now we require at least autoconf-2.59, which means the work-around
27976         is no longer needed.
27977         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27978         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27979         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27980         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27981         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27982
27983 2010-11-13  Bruno Haible  <bruno@clisp.org>
27984
27985         rename, renameat: Avoid test failures at NFS mounted locations.
27986         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27987         functions.
27988         (test_rename): Use assert_nonexistent.
27989         * tests/test-rename.c: Include <dirent.h>.
27990         * tests/test-renameat.c: Likewise.
27991         Reported by Gary V. Vaughan <gary@gnu.org>.
27992
27993         rename, renameat: Document Linux bug with NFS
27994         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27995         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27996         * doc/posix-functions/renameat.texi: Likewise.
27997         Suggested by Eric Blake.
27998
27999 2010-11-13  Bruno Haible  <bruno@clisp.org>
28000
28001         rename test: Add comments.
28002         * tests/test-rename.h (test_rename): Add structure and comments.
28003
28004 2010-11-13  Eric Blake  <eblake@redhat.com>
28005
28006         maintainer-makefile: cover a few more files
28007         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
28008         scripts generated within C files, for libvirt.
28009
28010 2010-11-13  Bruno Haible  <bruno@clisp.org>
28011
28012         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
28013         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
28014         character, return the number of bytes that belong together, not always
28015         1.
28016         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
28017         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
28018         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
28019         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
28020         number of bytes of an invalid character.
28021         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
28022         (main): Invoke it.
28023         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
28024         results.
28025         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
28026         malformed byte sequences.
28027         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
28028         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
28029         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
28030         Reported by Ben Pfaff and Paolo Bonzini.
28031
28032 2010-11-13  Bruno Haible  <bruno@clisp.org>
28033
28034         openat: Work around glibc bug with fchownat() and empty file names.
28035         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
28036         (gl_FUNC_FCHOWNAT): Invoke it.
28037         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
28038         * doc/posix-functions/fchownat.texi: Document the glibc bug.
28039         Reported by Gary V. Vaughan <gary@gnu.org>.
28040
28041 2010-11-13  Bruno Haible  <bruno@clisp.org>
28042
28043         openat: Ensure autoconf macro ordering.
28044         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
28045         gl_USE_SYSTEM_EXTENSIONS.
28046         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
28047
28048 2010-11-13  Bruno Haible  <bruno@clisp.org>
28049
28050         Update comments.
28051         * lib/unistr/u8-check.c: Update file name in comments.
28052         * lib/unistr/u8-mblen.c: Likewise.
28053         * lib/unistr/u8-prev.c: Likewise.
28054         * lib/unistr/u8-strmblen.c: Likewise.
28055         * lib/unistr/u8-strmbtouc.c: Likewise.
28056
28057 2010-11-13  Jim Meyering  <meyering@redhat.com>
28058
28059         tests: avoid test failure on Solaris 10 due to lack of PATH export
28060         * tests/test-update-copyright.sh: Don't forget to export PATH.
28061
28062         init.sh: ensure that IFS is defined, just in case...
28063         * tests/init.sh (setup_): Ensure that IFS is defined,
28064         so that saving and restoring it works as expected.  This
28065         appears to be useful at least for an old version of dash
28066         from a long time ago (RH 6).  See here for details:
28067         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
28068
28069         maint.mk: tighten "test a == b" check
28070         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
28071         test to files that contain something like #!/bin/sh.
28072         Without this, coreutils would get two false positives in
28073         the comments of C source files.
28074
28075 2010-11-12  Eric Blake  <eblake@redhat.com>
28076
28077         bootstrap: fix typo in previous attempt
28078         * build-aux/bootstrap (buildreq): Correct the grouping.
28079         Reported by Paul Eggert.
28080
28081         maintainer-makefile: prohibit test x == x
28082         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
28083         Based on a report by Matthias Bolte.
28084
28085         bootstrap: allow FreeBSD gzip
28086         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
28087         which has no '.' and goes to stderr.
28088         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
28089         Reported by Matthias Bolte.
28090
28091         maintainer-makefile: check for i18n setup
28092         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
28093         will likely work.
28094
28095 2010-11-12  Bruno Haible  <bruno@clisp.org>
28096
28097         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
28098         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
28099         * lib/nanosleep.c (nanosleep): Likewise.
28100
28101 2010-11-11  Bruno Haible  <bruno@clisp.org>
28102
28103         fcntl-h: Fix for use of C++ on glibc systems.
28104         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
28105         also on glibc systems in C++ mode.
28106         Reported by Gary V. Vaughan <gary@gnu.org>.
28107
28108 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28109
28110         mknod: avoid false failure with dash
28111         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
28112
28113 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
28114
28115         unlink: Fix "is it should" typo in diagnostic.
28116         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
28117         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
28118
28119 2010-11-11  Bruno Haible  <bruno@clisp.org>
28120
28121         Tests for module 'strerror_r-posix'.
28122         * modules/strerror_r-posix-tests: New file.
28123         * tests/test-strerror_r.c: New file.
28124         * tests/test-string-c++.cc: Check the signature of strerror_r.
28125
28126         New module 'strerror_r-posix'.
28127         * lib/string.in.h (strerror_r): New declaration.
28128         * lib/strerror_r.c: New file.
28129         * m4/strerror_r.m4: New file.
28130         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
28131         of strerror_r.
28132         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
28133         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28134         * modules/strerror_r-posix: New file.
28135         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
28136         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
28137         * doc/posix-functions/strerror_r.texi: Mention the new module and the
28138         portability problems.
28139
28140 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
28141
28142         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
28143         line is also considered for output. Quoted function name in shell
28144         command, so temporary files for functions like MyClass::operator()
28145         are removed correctly without errors.
28146
28147 2010-11-09  Bruno Haible  <bruno@clisp.org>
28148
28149         * doc/posix-functions/strerror.texi: List more failing platforms.
28150
28151         * doc/posix-functions/strerror.texi: Add a comment.
28152
28153 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
28154
28155         fdopendir: fix bug on MacOS X when low on file descriptors
28156
28157         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
28158         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
28159         All callers changed.
28160         (fdopendir): Invoke save_cwd at the top level, not after using
28161         multiple dup() calls to use up file descriptors.  Then retry
28162         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
28163         less than the maximum number of open file descriptors, because
28164         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
28165         on Mac OS X 10.6.4 for tar 1.24
28166         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
28167         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
28168         and for tar 1.25
28169         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
28170
28171 2010-11-07  Bruno Haible  <bruno@clisp.org>
28172
28173         vasnprintf: Support I flag on glibc systems.
28174         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
28175         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
28176         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
28177         snprintf function.
28178         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
28179         glibc systems.
28180         * tests/test-vasnprintf-posix3.c: New file.
28181         * modules/vasnprintf-posix-tests (Files): Add it.
28182         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
28183
28184 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
28185
28186         [html] Fix copy/paste bug: Use unique name for compiler warnings.
28187         * MODULES.html.sh: For compiler warnings, use name
28188         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
28189
28190 2010-11-05  Eric Blake  <eblake@redhat.com>
28191
28192         ceil, floor: avoid spurious failure with icc
28193         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
28194         [denormals-as-zero] when optimizing without -mieee-fp option.
28195         * tests/test-floorf2.c (floorf_reference): Likewise.
28196         * tests/test-ceilf1.c (dummy): New function.
28197         (main): Use it to outsmart icc's optimization.
28198         * tests/test-floorf1.c (dummy, main): Likewise.
28199
28200         tests: require working signbit
28201         * modules/ceilf-tests (Depends-on): Add signbit.
28202         * modules/ceill-tests (Depends-on): Likewise.
28203         * modules/floorf-tests (Depends-on): Likewise.
28204         * modules/floorl-tests (Depends-on): Likewise.
28205         * modules/round-tests (Depends-on): Likewise.
28206         * modules/roundf-tests (Depends-on): Likewise.
28207         * modules/roundl-tests (Depends-on): Likewise.
28208         * modules/trunc-tests (Depends-on): Likewise.
28209         * modules/truncf-tests (Depends-on): Likewise.
28210         * modules/truncl-tests (Depends-on): Likewise.
28211
28212         strtod: work around icc bug
28213         * lib/strtod.c (minus_zero): Define to working value.
28214         (strtod): Use it to avoid icc bug.
28215
28216         copysign: enhance tests
28217         * modules/copysign-tests (Files): Add minus-zero.h.
28218         * tests/test-copysign.c (main): Also test zeros.
28219
28220 2010-11-04  Eric Blake  <eblake@redhat.com>
28221
28222         ceil, floor, round, trunc: enhance tests of -0
28223         * tests/test-ceilf1.c (main): Ensure correct sign of result.
28224         * tests/test-ceill.c (main): Likewise.
28225         * tests/test-floorf1.c (main): Likewise.
28226         * tests/test-floorl.c (main): Likewise.
28227         * tests/test-round1.c (main): Likewise.
28228         * tests/test-roundf1.c (main): Likewise.
28229         * tests/test-roundl.c (main): Likewise.
28230         * tests/test-trunc1.c (main): Likewise.
28231         * tests/test-truncf1.c (main): Likewise.
28232         * tests/test-truncl.c (main): Likewise.
28233
28234 2010-11-04  Eric Blake  <eblake@redhat.com>
28235
28236         frexp, tests: work around ICC bug with -zero
28237         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
28238         works with more compilers.
28239         * tests/minus-zero.h: New file.
28240         * modules/ceilf-tests (Files): Include it.
28241         * modules/ceill-tests (Files): Likewise.
28242         * modules/floorf-tests (Files): Likewise.
28243         * modules/floorl-tests (Files): Likewise.
28244         * modules/frexp-nolibm-tests (Files): Likewise.
28245         * modules/frexp-tests (Files): Likewise.
28246         * modules/frexpl-nolibm-tests (Files): Likewise.
28247         * modules/frexpl-tests (Files): Likewise.
28248         * modules/isnan-tests (Files): Likewise.
28249         * modules/isnand-nolibm-tests (Files): Likewise.
28250         * modules/isnand-tests (Files): Likewise.
28251         * modules/isnanf-nolibm-tests (Files): Likewise.
28252         * modules/isnanf-tests (Files): Likewise.
28253         * modules/isnanl-nolibm-tests (Files): Likewise.
28254         * modules/isnanl-tests (Files): Likewise.
28255         * modules/round-tests (Files): Likewise.
28256         * modules/roundf-tests (Files): Likewise.
28257         * modules/roundl-tests (Files): Likewise.
28258         * modules/ldexpl-tests (Files): Likewise.
28259         * modules/signbit-tests (Files): Likewise.
28260         * modules/snprintf-posix-tests (Files): Likewise.
28261         * modules/sprintf-posix-tests (Files): Likewise.
28262         * modules/strtod-tests (Files): Likewise.
28263         * modules/trunc-tests (Files): Likewise.
28264         * modules/truncf-tests (Files): Likewise.
28265         * modules/truncl-tests (Files): Likewise.
28266         * modules/vsnprintf-posix-tests (Files): Likewise.
28267         * modules/vsprintf-posix-tests (Files): Likewise.
28268         * modules/vasnprintf-posix-tests (Files): Likewise.
28269         * modules/vasprintf-posix-tests (Files): Likewise.
28270         * tests/test-ceilf1.c (main): Use it.
28271         * tests/test-ceill.c (main): Likewise.
28272         * tests/test-floorf1.c (main): Likewise.
28273         * tests/test-floorl.c (main): Likewise.
28274         * tests/test-frexp.c (main): Likewise.
28275         * tests/test-frexpl.c (main): Likewise.
28276         * tests/test-isnan.c (main): Likewise.
28277         * tests/test-isnand.h (main): Likewise.
28278         * tests/test-isnanf.h (main): Likewise.
28279         * tests/test-isnanl.h (main): Likewise.
28280         * tests/test-ldexpl.c (main): Likewise.
28281         * tests/test-round.c (main): Likewise.
28282         * tests/test-roundf.c (main): Likewise.
28283         * tests/test-roundl.c (main): Likewise.
28284         * tests/test-signbit.c (test_signbitf, test_signbitd)
28285         (test_signbitl): Likewise.
28286         * tests/test-snprintf-posix.h (test_function): Likewise.
28287         * tests/test-sprintf-posix.h (test_function): Likewise.
28288         * tests/test-strtod.c (main): Likewise.
28289         * tests/test-trunc1.c (main): Likewise.
28290         * tests/test-truncf1.c (main): Likewise.
28291         * tests/test-truncl.c (main): Likewise.
28292
28293         isnanl: work around icc bug
28294         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
28295
28296 2010-11-03  Eric Blake  <eblake@redhat.com>
28297
28298         tests: fix compiler warnings
28299         * tests/test-getopt.h (test_getopt): Fix condition.
28300         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28301         * tests/test-pipe2.c (main): Likewise.
28302         * tests/test-quotearg-simple.c (main): Avoid icc warning.
28303
28304         utimens: fix broken m4 test
28305         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
28306
28307 2010-10-28  Bruno Haible  <bruno@clisp.org>
28308
28309         posix_spawn*, getdtablesize: Relax license.
28310         * modules/posix_spawn (License): Change to LGPLv2+.
28311         * modules/posix_spawnp (License): Likewise.
28312         * modules/posix_spawn-internal (License): Likewise.
28313         * modules/posix_spawnattr_init (License): Likewise.
28314         * modules/posix_spawnattr_getflags (License): Likewise.
28315         * modules/posix_spawnattr_setflags (License): Likewise.
28316         * modules/posix_spawnattr_getpgroup (License): Likewise.
28317         * modules/posix_spawnattr_setpgroup (License): Likewise.
28318         * modules/posix_spawnattr_getschedparam (License): Likewise.
28319         * modules/posix_spawnattr_setschedparam (License): Likewise.
28320         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
28321         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
28322         * modules/posix_spawnattr_getsigdefault (License): Likewise.
28323         * modules/posix_spawnattr_setsigdefault (License): Likewise.
28324         * modules/posix_spawnattr_getsigmask (License): Likewise.
28325         * modules/posix_spawnattr_setsigmask (License): Likewise.
28326         * modules/posix_spawnattr_destroy (License): Likewise.
28327         * modules/posix_spawn_file_actions_init (License): Likewise.
28328         * modules/posix_spawn_file_actions_addclose (License): Likewise.
28329         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
28330         * modules/posix_spawn_file_actions_addopen (License): Likewise.
28331         * modules/posix_spawn_file_actions_destroy (License): Likewise.
28332         * modules/getdtablesize (License): Likewise.
28333         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
28334
28335 2010-10-26  Bruno Haible  <bruno@clisp.org>
28336
28337         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
28338         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
28339         Cygwin and mingw.
28340         Suggested by Eric Blake.
28341
28342 2010-10-26  Bruno Haible  <bruno@clisp.org>
28343
28344         stdio: Work around compilation error due to renameat() on Solaris 10.
28345         * lib/stdio.in.h: Include <unistd.h> on Solaris.
28346         * lib/renameat.c: Don't include <unistd.h> here.
28347         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
28348         Reported by Paul Eggert and Eric Blake.
28349
28350 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
28351
28352         renameat: port to Solaris 10, which declares renameat in unistd.h
28353
28354         * lib/renameat.c: Include unistd.h before stdio.h, because
28355         Solaris 10 declares renameat in unistd.h.  Problem encountered
28356         when building GNU tar 1.24 on Solaris 10.
28357
28358 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
28359
28360         fdopendir: fix C89 compilation
28361         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
28362         compilers.
28363
28364 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
28365
28366         inttostr: simplify by removing unnecessary redundancy
28367         * lib/anytostr.c: Don't include verify.h.
28368         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
28369         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
28370         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
28371         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
28372         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
28373         Likewise.
28374         * modules/inttostr (Depends-on): Remove 'verify'.
28375
28376 2010-10-23  Bruno Haible  <bruno@clisp.org>
28377
28378         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
28379         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
28380         Reported by Eric Blake.
28381
28382 2010-10-23  Bruno Haible  <bruno@clisp.org>
28383
28384         Tests: Fix LOCALE_JA on MirBSD 10.
28385         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
28386         to an UTF-8 locale.
28387         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
28388         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28389         Reported by Eric Blake.
28390
28391 2010-10-21  Bruno Haible  <bruno@clisp.org>
28392
28393         nl_langinfo test: Avoid test failure on NetBSD 5.
28394         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
28395         Reported by Eric Blake.
28396
28397 2010-10-21  Eric Blake  <eblake@redhat.com>
28398
28399         c-stack: work around libsigsegv 2.8 bug
28400         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
28401         overflow on at least PowerPC64.
28402
28403 2010-10-17  Bruno Haible  <bruno@clisp.org>
28404
28405         userspec: Drop redundant file.
28406         * modules/userspec (Files): Remove lib/inttostr.h.
28407
28408 2010-10-17  Bruno Haible  <bruno@clisp.org>
28409
28410         nl_langinfo tests: Silence some warnings.
28411         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
28412         Reported by Jim Meyering.
28413
28414 2010-10-17  Bruno Haible  <bruno@clisp.org>
28415
28416         Make use of GCC's attribute __alloc_size__.
28417         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
28418         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
28419         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
28420         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
28421         __alloc_size__.
28422         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
28423         Suggested by Jim Meyering.
28424
28425 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
28426
28427         bootstrap: anchor .gitignore entries.
28428         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
28429         with...
28430         (insert_vc_ignore): ... this new function, which prepends `/' to
28431         all .gitignore entries before passing them to
28432         insert_sorted_if_absent.
28433
28434 2010-10-16  Bruno Haible  <bruno@clisp.org>
28435
28436         nextafter: Fix configure check.
28437         * modules/nextafter (configure.ac): Correct expected prototype.
28438
28439 2010-10-16  Bruno Haible  <bruno@clisp.org>
28440
28441         termios: Update documentation.
28442         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
28443
28444 2010-10-16  Bruno Haible  <bruno@clisp.org>
28445
28446         tests: Make them compile with TinyCC.
28447         * tests/test-strstr.c (main): Remove parentheses around array
28448         initializer.
28449
28450 2010-10-15  Eric Blake  <eblake@redhat.com>
28451
28452         ignore-value: make header idempotent
28453         * lib/ignore-value.h: Add double-inclusion guards.
28454         Reported by Stefan Berger.
28455
28456 2010-10-15  Jim Meyering  <meyering@redhat.com>
28457
28458         GNUmakefile: handle "stable" target, not "major"
28459         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
28460         lists in maint.mk and announce-gen.  Without this, "make stable"
28461         would fail to ensure that $(VERSION) is up to date.
28462
28463 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
28464
28465         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
28466         & co.
28467
28468 2010-10-14  Bruno Haible  <bruno@clisp.org>
28469
28470         vasnprintf: Don't set errno to 0.
28471         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
28472         block that sets it to 0.
28473         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
28474
28475 2010-10-14  Bruno Haible  <bruno@clisp.org>
28476
28477         socketlib: Fix.
28478         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
28479         gl_PREREQ_SYS_H_WINSOCK2.
28480         Reported by Ian Beckwith <ianb@erislabs.net>.
28481
28482 2010-10-13  Jim Meyering  <meyering@redhat.com>
28483
28484         test-select-stdin.c: avoid warn_unused_result warnings
28485         * tests/test-select-stdin.c: Include "macros.h".
28486         ASSERT that read and fflush succeed.
28487
28488 2010-10-13  Jim Meyering  <meyering@redhat.com>
28489
28490         git-version-gen: do require git-VC'd files in cwd
28491         * build-aux/git-version-gen: Reject a git version string
28492         if there are no commits associated with the current directory.
28493         This avoids an unlikely false-positive (unrelated dir whose parent
28494         repository also contains a tag matching v*), as pointed out
28495         by Giuseppe Scrivano in
28496         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
28497
28498 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
28499
28500         argv-iter: omit nonconforming declaration
28501         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
28502         enum arg_iter_err declaration, which doesn't conform to C99.
28503         Solaris 10 cc warns about this.
28504
28505 2010-10-13  Eric Blake  <eblake@redhat.com>
28506
28507         termios: fix compilation on mingw
28508         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
28509         (gl_TERMIOS_H): Adjust it on mingw.
28510         * modules/termios (Makefile.am): Substitute new key.
28511         * lib/termios.in.h (includes): Make include_next conditional.
28512         * doc/posix-headers/termios.texi (termios.h): Update
28513         documentation.
28514         Reported by Daniel P. Berrange.
28515
28516 2010-10-13  Jim Meyering  <meyering@redhat.com>
28517
28518         git-version-gen: don't require that .git/ be in the current dir
28519         * build-aux/git-version-gen: Adjust this script so that it works
28520         when run from any working directory beneath the top-level .git/-
28521         containing directory.  Inspired by a patch from Giuseppe Scrivano,
28522         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
28523
28524         test-select: avoid warn_unused_result warnings
28525         * tests/test-select.c: Include "macros.h".
28526         ASSERT that each call to read, write, and pipe succeeds.
28527         While not technically required, also check each "close".
28528         * modules/select-tests (Files): Add tests/macros.h.
28529
28530         test-symlinkat: remove declaration of unused local
28531         * tests/test-symlinkat.c (main): Remove unused local, "buf".
28532
28533         test-inttostr: avoid shadowing warnings
28534         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
28535         and use malloc rather than the stack for the same reason as
28536         mentioned in the comment justifying the other allocation.
28537
28538 2010-10-11  Bruno Haible  <bruno@clisp.org>
28539
28540         stdlib: Allow multiple gnulib generated replacements to coexist.
28541         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
28542         Reported by Sam Steingold <sds@gnu.org>.
28543
28544 2010-10-11  Jim Meyering  <meyering@redhat.com>
28545
28546         fix a documentation typo
28547         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
28548
28549 2010-10-11  Eric Blake  <eblake@redhat.com>
28550
28551         futimens: work around Solaris 11 bug
28552         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
28553         * tests/test-futimens.h (test_futimens): Enhance, rather than
28554         weaken test.
28555         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28556
28557 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
28558
28559         Indentation.
28560         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
28561         higher-level operators more to the left.
28562
28563 2010-10-11  Jim Meyering  <meyering@redhat.com>
28564
28565         test-futimens: avoid unwarranted test failure on Solaris 5.11
28566         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
28567         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
28568         because it tries to dereference the NULL name argument.
28569
28570 2010-10-11  Bruno Haible  <bruno@clisp.org>
28571
28572         Indentation.
28573         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
28574         indentation.
28575
28576 2010-10-11  Jim Meyering  <meyering@redhat.com>
28577
28578         spawn.in.h: make indentation consistent with parentheses
28579         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
28580         Make indentation consistent with parentheses.
28581
28582 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
28583
28584         Fix mismatched parens in previous commit
28585         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
28586         parens.
28587
28588 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
28589
28590         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
28591
28592         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
28593         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
28594         * lib/malloca.c: Include "verify.h".
28595         (verify1): Remove, replacing with a verify call.
28596         * lib/relocwrapper.c (verify1): Likewise.
28597         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
28598         Likewise.
28599         * modules/malloca (Depends-on): Add 'verify'.
28600         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
28601         * modules/vasnprintf (Depends-on): Add 'verify'.
28602         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28603         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28604         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28605         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28606         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28607         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28608         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28609
28610         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
28611
28612         Formerly the style was sometimes 2*X - 1, because the C standard
28613         was wrongly thought to disallow ?: in integral constant expressions.
28614         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
28615         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
28616         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
28617         * lib/stdint.in.h (_verify_intmax_size): Likewise.
28618         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
28619         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
28620         verify that time_t cannot be floating.
28621
28622 2010-10-08  Eric Blake  <eblake@redhat.com>
28623
28624         time: enforce recent POSIX ruling that time_t is integral
28625         * lib/time.in.h (__time_t_must_be_integral): Detect any
28626         problematic systems, allowing the rest of gnulib to assume POSIX.
28627
28628 2010-10-08  Jim Meyering  <meyering@redhat.com>
28629
28630         fdopendir: fix a bug on systems lacking openat and /proc support
28631         OpenBSD 4.7 is one such system.  The most noticeable effect was
28632         failure of any application making nontrivial use of fts: rm, du,
28633         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
28634           ./rm: traversal failed: `a': Bad file descriptor
28635         Debugging that, you see that even though FD 6 was closed just
28636         prior to the opendir call in fd_clone_opendir, its resulting
28637         dir->dd_fd was 8, rather than the expected value of 6:
28638
28639         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
28640         93                close (fd);
28641         (gdb) n
28642         94                dir = fd_clone_opendir (dupfd);
28643         (gdb) n
28644         95                saved_errno = errno;
28645         (gdb) p dir->dd_fd
28646         $11 = 8
28647
28648         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
28649         The problem is that on OpenBSD, fd_clone_opendir has to resort
28650         to using the old-style save/restore CWD mechanism, due to its
28651         lack of openat/proc support, and *that* would steal the FD (6)
28652         that opendir was supposed to use.
28653
28654         The fix is to squirrel away the desired FD so that save_cwd uses a
28655         different one, and then free the dest FD right before calling opendir.
28656         That guarantees opendir will use the required file descriptor.
28657
28658         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
28659
28660 2010-10-08  Bruno Haible  <bruno@clisp.org>
28661
28662         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
28663         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
28664
28665 2010-10-08  Bruno Haible  <bruno@clisp.org>
28666
28667         nanosleep: Make replacement POSIX compliant.
28668         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
28669         is out of range.
28670         Reported by Jim Meyering.
28671
28672 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28673
28674         bootstrap: add hook for altering gnulib.mk, for Bison
28675         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
28676         the Bison bootstrapping process can rewrite file names and variables
28677         in this file before later parts of 'bootstrap' use the file.
28678         Bison wants to include lib/gnulib.mk from the top-level makefile,
28679         so it needs the file names in this file to be relative to the top
28680         level, not relative to lib; plus it needs variable names to be
28681         rewritten.
28682         (slurp): Use the new function.
28683
28684         bootstrap: reformat for readability
28685         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
28686
28687 2010-10-08  Eric Blake  <eblake@redhat.com>
28688
28689         docs: update cygwin progress
28690         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
28691         1.7.7.
28692         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
28693         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
28694         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
28695         * doc/posix-functions/carg.texi (carg): Likewise.
28696         * doc/posix-functions/cargf.texi (cargf): Likewise.
28697         * doc/posix-functions/casin.texi (casin): Likewise.
28698         * doc/posix-functions/casinf.texi (casinf): Likewise.
28699         * doc/posix-functions/casinh.texi (casinh): Likewise.
28700         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
28701         * doc/posix-functions/catan.texi (catan): Likewise.
28702         * doc/posix-functions/catanf.texi (catanf): Likewise.
28703         * doc/posix-functions/catanh.texi (catanh): Likewise.
28704         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
28705         * doc/posix-functions/ccos.texi (ccos): Likewise.
28706         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
28707         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
28708         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
28709         * doc/posix-functions/cexp.texi (cexp): Likewise.
28710         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
28711         * doc/posix-functions/cimag.texi (cimag): Likewise.
28712         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
28713         * doc/posix-functions/clog.texi (clog): Likewise.
28714         * doc/posix-functions/clogf.texi (clogf): Likewise.
28715         * doc/posix-functions/conj.texi (conj): Likewise.
28716         * doc/posix-functions/conjf.texi (conjf): Likewise.
28717         * doc/posix-functions/cpow.texi (cpow): Likewise.
28718         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
28719         * doc/posix-functions/cproj.texi (cproj): Likewise.
28720         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
28721         * doc/posix-functions/creal.texi (creal): Likewise.
28722         * doc/posix-functions/crealf.texi (crealf): Likewise.
28723         * doc/posix-functions/csin.texi (csin): Likewise.
28724         * doc/posix-functions/csinf.texi (csinf): Likewise.
28725         * doc/posix-functions/csinh.texi (csinh): Likewise.
28726         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
28727         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
28728         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
28729         * doc/posix-functions/ctan.texi (ctan): Likewise.
28730         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
28731         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
28732         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
28733         * doc/posix-headers/complex.texi (complex.h): Likewise.
28734
28735 2010-10-07  Jim Meyering  <meyering@redhat.com>
28736
28737         parse-datetime: avoid compilation failure on OpenBSD 4.7
28738         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
28739         This works around a compilation failure on OpenBSD 4.7:
28740         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
28741
28742 2010-10-07  Eric Blake  <eblake@redhat.com>
28743
28744         docs: update cygwin progress
28745         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
28746         1.7.6.
28747         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
28748         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
28749         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
28750         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
28751         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
28752         Likewise.
28753         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
28754         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
28755         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
28756         Likewise.
28757         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
28758         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
28759         Likewise.
28760         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
28761         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
28762         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
28763         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
28764         Likewise.
28765         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
28766         Likewise.
28767         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
28768
28769         docs: update parse-datetime history
28770         * doc/parse-datetime.texi (Authors of parse_datetime): Better
28771         documentation of this function's history and alternatives.
28772
28773         cygwin: use more robust version check
28774         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
28775         exclude an eventual cygwin 1.9.1.
28776         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28777         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28778         (gl_FUNC_STRCASESTR): Likewise.
28779         Reported by Bruno Haible.
28780
28781 2010-10-06  Bruno Haible  <bruno@clisp.org>
28782
28783         string, sys_select: Avoid #including large headers unless necessary.
28784         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
28785         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
28786         OSF/1, BeOS, Haiku.
28787         Reported by Jim Meyering.
28788
28789 2010-10-05  Eric Blake  <eblake@redhat.com>
28790
28791         memmem, strstr, strcasestr: fix bug with long periodic needle
28792         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
28793         periodic needle having false positive.
28794         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
28795         and cygwin 1.7.7.
28796         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
28797         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
28798         (gl_FUNC_STRCASESTR): Likewise.
28799         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
28800         * tests/test-memmem.c (main): Expose the bug.
28801         * tests/test-strcasestr.c (main): Likewise.
28802         * tests/test-strstr.c (main): Likewise.
28803         * tests/test-c-strcasestr.c (main): Likewise.
28804         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
28805         * doc/posix-functions/strstr.texi (strstr): Likewise.
28806         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
28807         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
28808
28809 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28810
28811         parse-datetime: do some more renaming
28812         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28813         parse_datetime, not get_date.  Mention the renaming.
28814         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28815         in comments.
28816         * m4/bison.m4: Likewise.
28817
28818 2010-10-05  Eric Blake  <eblake@redhat.com>
28819
28820         parse-datetime: better name than get_date
28821         * NEWS: Reword the deprecation notice.
28822         * modules/get_date: Rename to modules/parse-datetime.
28823         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28824         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28825         * lib/get_date.y: Rename to lib/parse-datetime.y.
28826         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28827         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28828         * doc/getdate.texi: Provide fallback wrapper.
28829         * lib/getdate.h: Move guts, and wrap...
28830         * lib/parse-datetime.h: ...new file.
28831         * lib/parse-datetime.y (get_date): Rename...
28832         (parse_datetime): ...to this.
28833         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28834         (gl_PARSE_DATETIME): ...to this.
28835         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28836         documentation.
28837         * modules/getdate (Files): Provide fallback docs and header.
28838         (Notice, Depends-on): Update references.
28839         * tests/test-parse-datetime.c: Likewise.
28840         * DEPENDENCIES: Likewise.
28841         * MODULES.html.sh (Date and time <time.h>): Likewise.
28842         * doc/parse-datetime.texi (Date input formats)
28843         (Authors of parse_datetime): Likewise.
28844         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28845         (Include): Likewise.
28846         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28847         * gnulib-tool: Likewise.
28848         * m4/bison.m4 (gl_BISON): Likewise.
28849         Suggested by Bruno Haible.
28850
28851 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28852
28853         more ports to Solaris tr, which needs [] around ranges
28854         * gnulib-tool: Solaris tr needs [] around ranges.
28855         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28856         * tests/test-pipe-filter-gi1.c (main): Likewise.
28857         * tests/test-pipe-filter-ii1.c (main): Likewise.
28858
28859 2010-10-05  Eric Blake  <eblake@redhat.com>
28860
28861         bootstrap: fix Solaris regression
28862         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28863         around ranges.
28864         Reported by Pádraig Brady.
28865
28866         bootstrap: work with pkg-config
28867         * build-aux/bootstrap (check_versions): Also transliterate - in
28868         prerequisite name.
28869         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28870         prerequisites that were already found, to avoid confusion.
28871         Reported by Justin Clift.
28872
28873         faccessat: remove unused wrappers
28874         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28875         presence of these wrappers dragged in -lgen on Solaris.
28876         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28877
28878 2010-10-05  Jim Meyering  <meyering@redhat.com>
28879
28880         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28881         * Makefile (sc_pragma_columns): New syntax-check rule.
28882
28883 2010-10-04  Bruno Haible  <bruno@clisp.org>
28884
28885         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28886         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28887         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28888         Reported by Bruce Korb and Eric Blake.
28889
28890 2010-10-04  Bruno Haible  <bruno@clisp.org>
28891
28892         threadlib: Make option --with-libpth-prefix work.
28893         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28894         use $LIBPTH, not just -lpth.
28895
28896 2010-10-04  Bruno Haible  <bruno@clisp.org>
28897
28898         Avoid line length limitation from HP NonStop system header files.
28899         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28900         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28901         * lib/ctype.in.h: Likewise.
28902         * lib/dirent.in.h: Likewise.
28903         * lib/errno.in.h: Likewise.
28904         * lib/fcntl.in.h: Likewise.
28905         * lib/float.in.h: Likewise.
28906         * lib/getopt.in.h: Likewise.
28907         * lib/iconv.in.h: Likewise.
28908         * lib/inttypes.in.h: Likewise.
28909         * lib/langinfo.in.h: Likewise.
28910         * lib/locale.in.h: Likewise.
28911         * lib/math.in.h: Likewise.
28912         * lib/netdb.in.h: Likewise.
28913         * lib/netinet_in.in.h: Likewise.
28914         * lib/poll.in.h: Likewise.
28915         * lib/pthread.in.h: Likewise.
28916         * lib/pty.in.h: Likewise.
28917         * lib/sched.in.h: Likewise.
28918         * lib/se-selinux.in.h: Likewise.
28919         * lib/search.in.h: Likewise.
28920         * lib/signal.in.h: Likewise.
28921         * lib/spawn.in.h: Likewise.
28922         * lib/stdarg.in.h: Likewise.
28923         * lib/stddef.in.h: Likewise.
28924         * lib/stdint.in.h: Likewise.
28925         * lib/stdio.in.h: Likewise.
28926         * lib/stdlib.in.h: Likewise.
28927         * lib/string.in.h: Likewise.
28928         * lib/strings.in.h: Likewise.
28929         * lib/sys_file.in.h: Likewise.
28930         * lib/sys_ioctl.in.h: Likewise.
28931         * lib/sys_select.in.h: Likewise.
28932         * lib/sys_socket.in.h: Likewise.
28933         * lib/sys_stat.in.h: Likewise.
28934         * lib/sys_time.in.h: Likewise.
28935         * lib/sys_times.in.h: Likewise.
28936         * lib/sys_utsname.in.h: Likewise.
28937         * lib/sys_wait.in.h: Likewise.
28938         * lib/sysexits.in.h: Likewise.
28939         * lib/termios.in.h: Likewise.
28940         * lib/time.in.h: Likewise.
28941         * lib/unistd.in.h: Likewise.
28942         * lib/wchar.in.h: Likewise.
28943         * lib/wctype.in.h: Likewise.
28944         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28945         * modules/ctype (Makefile.am): Likewise.
28946         * modules/dirent (Makefile.am): Likewise.
28947         * modules/errno (Makefile.am): Likewise.
28948         * modules/fcntl-h (Makefile.am): Likewise.
28949         * modules/float (Makefile.am): Likewise.
28950         * modules/getopt-posix (Makefile.am): Likewise.
28951         * modules/iconv-h (Makefile.am): Likewise.
28952         * modules/inttypes (Makefile.am): Likewise.
28953         * modules/langinfo (Makefile.am): Likewise.
28954         * modules/locale (Makefile.am): Likewise.
28955         * modules/math (Makefile.am): Likewise.
28956         * modules/netdb (Makefile.am): Likewise.
28957         * modules/netinet_in (Makefile.am): Likewise.
28958         * modules/poll-h (Makefile.am): Likewise.
28959         * modules/pthread (Makefile.am): Likewise.
28960         * modules/pty (Makefile.am): Likewise.
28961         * modules/sched (Makefile.am): Likewise.
28962         * modules/search (Makefile.am): Likewise.
28963         * modules/selinux-h (Makefile.am): Likewise.
28964         * modules/signal (Makefile.am): Likewise.
28965         * modules/spawn (Makefile.am): Likewise.
28966         * modules/stdarg (Makefile.am): Likewise.
28967         * modules/stddef (Makefile.am): Likewise.
28968         * modules/stdint (Makefile.am): Likewise.
28969         * modules/stdio (Makefile.am): Likewise.
28970         * modules/stdlib (Makefile.am): Likewise.
28971         * modules/string (Makefile.am): Likewise.
28972         * modules/strings (Makefile.am): Likewise.
28973         * modules/sys_file (Makefile.am): Likewise.
28974         * modules/sys_ioctl (Makefile.am): Likewise.
28975         * modules/sys_select (Makefile.am): Likewise.
28976         * modules/sys_socket (Makefile.am): Likewise.
28977         * modules/sys_stat (Makefile.am): Likewise.
28978         * modules/sys_time (Makefile.am): Likewise.
28979         * modules/sys_times (Makefile.am): Likewise.
28980         * modules/sys_utsname (Makefile.am): Likewise.
28981         * modules/sys_wait (Makefile.am): Likewise.
28982         * modules/sysexits (Makefile.am): Likewise.
28983         * modules/termios (Makefile.am): Likewise.
28984         * modules/time (Makefile.am): Likewise.
28985         * modules/unistd (Makefile.am): Likewise.
28986         * modules/wchar (Makefile.am): Likewise.
28987         * modules/wctype (Makefile.am): Likewise.
28988
28989 2010-10-04  Bruno Haible  <bruno@clisp.org>
28990
28991         read-file tests: Avoid a test failure on NonStop Kernel.
28992         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28993         a regular file.
28994         Reported by Joachim Schmitz <schmitz@hp.com>.
28995
28996 2010-10-03  Bruno Haible  <bruno@clisp.org>
28997
28998         gnulib-tool: Fixes for --create-testdir with --libtool.
28999         * gnulib-tool (func_get_automake_snippet): Don't augment
29000         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
29001         an executable.
29002         (func_create_testdir): Handle module 'alloca' like func_import.
29003         Reported by Bruce Korb <bruce.korb@gmail.com>.
29004
29005 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
29006
29007         Avoid some lines longer than 80 characters.
29008         * lib/stdint.in.h: Break long comment lines.
29009         * lib/math.in.h: Likewise.
29010         (_GL_NUM_UINT_WORDS): New macro, for readability.
29011         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
29012         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
29013         * lib/stdlib.in.h: Likewise.
29014         * lib/spawn.in.h: Likewise.
29015         * lib/sys_socket.in.h: Update an URL.
29016         * lib/sys_stat.in.h: Break long line.
29017
29018 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
29019
29020         Improve pmccabe2html.
29021         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
29022         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
29023         when the sources change. Remove the line in the HTML about "Used
29024         ranges" (which implied that there might be other unused ranges),
29025         rename "Resume" to "Summary" (easier to understand for more users).
29026         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
29027         styles, and some unnecessary blank lines.
29028
29029 2010-10-03  Bruno Haible  <bruno@clisp.org>
29030             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
29031
29032         acl: Add support for ACLs on NonStop Kernel.
29033         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
29034         Check whether the function aclsort() exists.
29035         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
29036         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
29037         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29038         (acl_nontrivial [HAVE_ACLSORT]: New function.
29039         (file_has_acl): Implement for NonStop Kernel.
29040         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29041         (qset_acl): Implement for NonStop Kernel.
29042         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
29043         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
29044         (main): Implement for NonStop Kernel.
29045         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
29046         Kernel. Handle this flavor.
29047         * tests/test-set-mode-acl.sh: Likewise.
29048         * tests/test-copy-acl.sh: Likewise.
29049         * tests/test-copy-file.sh: Likewise.
29050
29051 2010-10-03  Bruno Haible  <bruno@clisp.org>
29052
29053         Info about ACLs on NonStop Kernel.
29054         * doc/acl-resources.txt: Add info about NonStop Kernel.
29055         References by Joachim Schmitz <schmitz@hp.com>.
29056
29057 2010-10-02  Bruno Haible  <bruno@clisp.org>
29058
29059         Define missing EDQUOT on NonStop Kernel.
29060         * lib/errno.in.h (EDQUOT): Assign a value if missing.
29061         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
29062         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
29063         missing.
29064         * doc/posix-headers/errno.texi: Mention the NSK bug.
29065         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
29066         Reported by Joachim Schmitz <schmitz@hp.com>.
29067
29068 2010-10-02  Bruno Haible  <bruno@clisp.org>
29069
29070         Update doc for POSIX:2008.
29071         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
29072         Update URL of POSIX specification.
29073
29074 2010-10-02  Bruno Haible  <bruno@clisp.org>
29075
29076         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
29077         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
29078         from gnulib, not from Automake.
29079
29080 2010-10-02  Bruno Haible  <bruno@clisp.org>
29081
29082         New module 'system-posix'.
29083         * modules/system-posix: New file.
29084         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
29085         module is present.
29086         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
29087         GNULIB_SYSTEM_POSIX.
29088         * modules/stdlib (Depends-on): Remove sys_wait.
29089         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
29090         * doc/posix-functions/system.texi: Mention the new module.
29091         * doc/posix-headers/stdlib.texi: Likewise.
29092         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
29093         define test_sys_wait_macros to a no-op.
29094         Reported by Sam Steingold <sds@gnu.org>.
29095
29096 2010-09-30  Bruno Haible  <bruno@clisp.org>
29097
29098         More renaming from 'getdate' to 'get_date'.
29099         * doc/get_date.texi: Renamed from doc/getdate.texi.
29100         * modules/get_date (Files): Update.
29101         * MODULES.html.sh (Date and time <time.h>): Update.
29102         * DEPENDENCIES: Update.
29103         * gnulib-tool: Update comment.
29104         * m4/bison.m4 (gl_BISON): Likewise.
29105         * m4/get_date.m4 (gl_GET_DATE): Likewise.
29106
29107 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
29108
29109         bootstrap: support ACLOCAL_FLAGS during aclocal
29110         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
29111         can add additional -I dir for third-party .m4 files.
29112
29113 2010-09-30  Eric Blake  <eblake@redhat.com>
29114
29115         bootstrap: use glibtoolize on MacOS
29116         * build-aux/bootstrap (check_versions): Convert libtool into
29117         libtoolize.
29118         (tool search): Move libtool check earlier, and look for
29119         glibtoolize for MacOS.
29120         (gnulib_tool_options): Auto-add --libtool when appropriate.
29121         Reported by Justin Clift.
29122
29123         poll: fix typo that broke test on MacOS
29124         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
29125         Reported by Justin Clift.
29126
29127         getdate: rename to get_date
29128         Note: getdate.h is not renamed, to minimize client impact.
29129         * modules/getdate: Mark obsolete.  Move old contents...
29130         * modules/get_date: ...to new module name.
29131         * modules/getdate-tests: Move...
29132         * modules/get_date-tests: ...here.
29133         * m4/getdate.m4: Move...
29134         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
29135         * lib/getdate.y: Move...
29136         * lib/get_date.y: ...here.
29137         * tests/test-getdate.c: Move...
29138         * tests/test-get_date.c: ...here.
29139         * doc/posix-functions/getdate.texi (getdate): Update name.
29140         * NEWS: Mention the change.
29141
29142 2010-09-29  Bruno Haible  <bruno@clisp.org>
29143
29144         Separate the module 'waitpid' from the module 'sys_wait'.
29145         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
29146         present.
29147         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
29148         gl_MODULE_INDICATOR_FOR_TESTS.
29149         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
29150         * modules/sys_wait (Depends-on): Remove waitpid.
29151         (Makefile.am): Substitute GNULIB_WAITPID.
29152         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
29153         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
29154         signature only if the 'waitpid' module is present.
29155         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
29156         * NEWS: Mention the change.
29157         * modules/grantpt (Depends-on): Add waitpid.
29158         * modules/wait-process (Depends-on): Likewise.
29159
29160 2010-09-29  Bruno Haible  <bruno@clisp.org>
29161
29162         More tests for module 'sys_wait'.
29163         * modules/sys_wait-c++-tests: New file.
29164         * tests/test-sys_wait-c++.cc: New file.
29165         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
29166         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29167
29168 2010-09-29  Bruno Haible  <bruno@clisp.org>
29169
29170         New module 'waitpid'.
29171         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
29172         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
29173         Don't include <process.h>.
29174         (waitpid): Declare only, using modern idiom.
29175         * m4/waitpid.m4: New file.
29176         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
29177         * modules/waitpid: New file.
29178         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
29179         (Makefile.am): Update.
29180         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
29181
29182 2010-09-28  Bruno Haible  <bruno@clisp.org>
29183
29184         poll: Assume ANSI C.
29185         * lib/poll.c (poll): Use an ANSI C declaration.
29186
29187 2010-09-28  Bruno Haible  <bruno@clisp.org>
29188
29189         poll-h: Create poll.h on all platforms.
29190         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
29191         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
29192         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
29193         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
29194         (gl_REPLACE_POLL_H): Don't set POLL_H.
29195         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
29196         * modules/poll-h (Depends-on): Add include_next.
29197         (Makefile.am): Create poll.h unconditionally. Substitute also
29198         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
29199
29200 2010-09-28  Bruno Haible  <bruno@clisp.org>
29201
29202         Tests for module 'poll-h'.
29203         * modules/poll-h-c++-tests: New file.
29204         * tests/test-poll-h-c++.cc: New file.
29205
29206         Tests for module 'poll-h'.
29207         * modules/poll-h-tests: New file.
29208         * tests/test-poll-h.c: New file.
29209
29210 2010-09-28  Bruno Haible  <bruno@clisp.org>
29211
29212         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
29213         * modules/poll-h (Depends-on): Add 'extensions'.
29214
29215 2010-09-28  Bruno Haible  <bruno@clisp.org>
29216
29217         New module 'poll-h'.
29218         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
29219         (poll): Use modern idiom.
29220         * modules/poll-h: New file.
29221         * modules/poll (Files): Remove lib/poll.in.h.
29222         (Depends-on): Add poll-h.
29223         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
29224         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
29225         * m4/poll_h.m4: New file.
29226         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
29227         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
29228         and invoke gl_REPLACE_POLL_H.
29229         * lib/poll.c: Use common idiom.
29230         * tests/test-poll.c: Likewise.
29231         * doc/posix-headers/poll.texi: Mention the poll-h module.
29232         Suggested by Eric Blake.
29233
29234 2010-09-26  Bruno Haible  <bruno@clisp.org>
29235
29236         sys_wait: Implement WSTOPSIG.
29237         * lib/sys_wait.in.h (WSTOPSIG): New macro.
29238         Reported by Simon Josefsson.
29239
29240 2010-09-26  Simon Josefsson  <simon@josefsson.org>
29241
29242         stdlib, sys_wait: Avoid compilation error on mingw.
29243         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
29244
29245 2010-09-26  Bruno Haible  <bruno@clisp.org>
29246
29247         stdlib tests: Avoid code duplication.
29248         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
29249         * modules/sys_wait-tests (Files): Likewise.
29250         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
29251         * tests/test-stdlib.c: Include test-sys_wait.h.
29252         (main): Invoke test_sys_wait_macros.
29253         * tests/test-sys_wait.c: Include test-sys_wait.h.
29254         (main): Invoke test_sys_wait_macros.
29255
29256 2010-09-25  Simon Josefsson  <simon@josefsson.org>
29257
29258         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
29259         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
29260         sure Windows sockets are working before calling getaddrinfo.
29261         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
29262         * doc/gnulib.texi (Windows sockets): Fix typo.
29263
29264 2010-09-25  Bruno Haible  <bruno@clisp.org>
29265
29266         Tests for module 'regex-quote'.
29267         * modules/regex-quote-tests: New file.
29268         * tests/test-regex-quote.c: New file.
29269
29270         New module 'regex-quote'.
29271         * lib/regex-quote.h: New file.
29272         * lib/regex-quote.c: New file.
29273         * modules/regex-quote: New file.
29274         Suggested by Reuben Thomas <rrt@sc3d.org>.
29275
29276 2010-09-24  Bruno Haible  <bruno@clisp.org>
29277
29278         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
29279         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
29280
29281 2010-09-23  Bruno Haible  <bruno@clisp.org>
29282
29283         setenv: Relax license.
29284         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
29285         Blake.
29286         Requested by Eric Blake.
29287
29288 2010-09-22  Bruno Haible  <bruno@clisp.org>
29289
29290         termios: Relax license.
29291         * modules/termios (License): Change to LGPLv2+.
29292         Requested by Eric Blake.
29293
29294 2010-09-22  Bruno Haible  <bruno@clisp.org>
29295
29296         threadlib: Allow the package to change the default to 'no'.
29297         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
29298         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
29299         Reported by Paul Eggert.
29300
29301 2010-09-22  Pádraig Brady  <P@draigbrady.com>
29302             Bruno Haible  <bruno@clisp.org>
29303
29304         Fix endless loop in mbmemcasecoll.
29305         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
29306         byte.
29307         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
29308
29309 2010-09-22  Bruno Haible  <bruno@clisp.org>
29310
29311         Tests for module 'memcoll'.
29312         * modules/memcoll-tests: New file.
29313         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
29314
29315         memcoll, xmemcoll: Clarify size vs. length.
29316         * modules/memcoll.c (memcoll0): Clarify specification.
29317         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
29318         passed to collate_error.
29319
29320 2010-09-22  Bruno Haible  <bruno@clisp.org>
29321
29322         Tests for module 'memcasecmp'.
29323         * modules/memcasecmp-tests: New file.
29324         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
29325
29326 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29327
29328         * lib/pthread.in.h: Add split double-inclusion guard, and include
29329         system <pthread.h> if there is one.  Use @@-style as in other
29330         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
29331         pthread.h doesn't.
29332         (pthread_mutexattr_destroy, pthread_mutexattr_init):
29333         (pthread_mutexattr_settype, pthread_mutex_trylock):
29334         New static inline functions, if there's no system <pthread.h>.
29335         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
29336         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
29337         Approximate with mutexes if the system lacks spinlocks, as in
29338         MacOS.
29339         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
29340         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
29341         @@-style.  Check for spinlocks separately.
29342         (gl_PTHREAD_DEFAULTS): New macro.
29343         * modules/pthread: Redo to use a more typical style for in.h files.
29344
29345 2010-09-21  Eric Blake  <eblake@redhat.com>
29346
29347         net_if: enhance tests
29348         * tests/test-net_if.c (main): Move signature checks earlier.
29349         Print failures to stderr.
29350         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
29351         Document the bug that we do not yet fix.
29352
29353 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29354
29355         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
29356         about gnulib, not GSS.
29357
29358 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
29359
29360         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
29361         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
29362         for Emacs.
29363         * build-aux/pmccabe2html: Make Makefile.am example code more
29364         cut-and-paste friendly.
29365
29366 2010-09-21  Simon Josefsson  <simon@josefsson.org>
29367
29368         * tests/test-net_if.c: New file.
29369         * modules/net_if-tests: New file.
29370
29371 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
29372
29373         pthread: add pthread_spin_destroy
29374         * lib/pthread.in.h (pthread_spin_destroy): New function.
29375
29376 2010-09-19  Bruno Haible  <bruno@clisp.org>
29377
29378         gnulib-tool: Fix --help output.
29379         * gnulib-tool (func_usage): Fix help message.
29380         Reported by Reuben Thomas <rrt@sc3d.org>.
29381
29382 2010-09-18  Jim Meyering  <meyering@redhat.com>
29383
29384         maint.mk: avoid unexpanded \n in two diagnostics
29385         * top/maint.mk (sc_prohibit_always_true_header_tests):
29386         Don't use a literal \n in a halt=... assignment.  It would not be
29387         expanded, and the two \n bytes would appear in the diagnostic output
29388         rather than the desired newline.  Use halt=$$(printf ... instead.
29389         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29390
29391 2010-09-18  Bruno Haible  <bruno@clisp.org>
29392
29393         netinet_in: Doc tweak.
29394         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
29395         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29396
29397 2010-09-18  Jim Meyering  <meyering@redhat.com>
29398
29399         init.sh: correct an outdated comment
29400         * tests/init.sh (create_exe_shims_):  s/function/alias/
29401
29402         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
29403         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
29404         a file named "*.exe" is removed between the glob expansion and the
29405         processing of that oddly named file.
29406
29407 2010-09-17  Eric Blake  <eblake@redhat.com>
29408
29409         mirbsd: add some more support
29410         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
29411         in BSD family.
29412         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
29413         devices as OpenBSD.
29414         * m4/host-os.m4 (mirbsd): Add MirBSD.
29415
29416         tests: fix unportable assumption on sys/wait.h
29417         * tests/test-sys_wait.c (main): Relax test.
29418         * tests/test-stdlib.c (main): Likewise.
29419
29420         init.sh: accommodate directory with no .exes
29421         * tests/init.sh: Accomodate directory containing only scripts.
29422
29423         tests: avoid compiler warning
29424         * tests/test-stdlib.c (main): Use the variable.
29425
29426         fdutimens, fdutimensat: update signature, again
29427         * lib/utimens.h (gl_futimens): Delete, and move signature...
29428         (fdutimens): ...here.
29429         (fdutimensat): Rearrange signature.
29430         (lutimensat): Rename variable for clarity.
29431         * lib/fdutimensat.c (fdutimensat): Update signature.
29432         * lib/utimens.c (fdutimens): Likewise.
29433         (gl_futimens): Delete.
29434         (utimens, lutimens): Update callers.
29435         * lib/futimens.c (futimens): Likewise.
29436         * tests/test-fdutimensat.c: Likewise.
29437         * tests/test-utimens.c: Likewise.
29438         * tests/test-futimens.h: Update comment.
29439         * NEWS: Mention this.
29440         Suggested by Paul Eggert.
29441
29442 2010-09-17  Bruno Haible  <bruno@clisp.org>
29443
29444         Take over the maintenance of some older macros from Autoconf.
29445         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
29446         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
29447         GNU Autoconf.
29448         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
29449         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
29450
29451 2010-09-17  Eric Blake  <eblake@redhat.com>
29452
29453         fdutimensat: drop atflag validation
29454         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
29455         with valid fd, to close a race scenario where futimens is
29456         unsupported and FILE was replaced by a symlink.
29457         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
29458         accordingly.
29459         Suggested by Paul Eggert.
29460
29461 2010-09-16  Bruno Haible  <bruno@clisp.org>
29462
29463         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
29464         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
29465
29466 2010-09-16  Bruno Haible  <bruno@clisp.org>
29467
29468         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
29469         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
29470         login_tty exists.
29471         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29472
29473 2010-09-16  Bruno Haible  <bruno@clisp.org>
29474
29475         login_tty: Make the replacement code work on BSD systems.
29476         * lib/login_tty.c: Include <sys/ioctl.h>.
29477         (login_tty): Use ioctl TIOCSCTTY when available.
29478         * modules/login_tty (Depends-on): Add sys_ioctl.
29479         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29480
29481 2010-09-16  Bruno Haible  <bruno@clisp.org>
29482
29483         login_tty: Stricter unit test.
29484         * modules/login_tty-tests (Depends-on): Add tcgetsid.
29485         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
29486         and tcgetsid() after login_tty.
29487         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29488
29489 2010-09-16  Bruno Haible  <bruno@clisp.org>
29490
29491         New module 'tcgetsid'.
29492         * lib/tcgetsid.c: New file.
29493         * m4/tcgetsid.m4: New file.
29494         * modules/tcgetsid: New file.
29495         * modules/termios (Depends-on): Add c++defs, warn-on-use.
29496         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
29497         GNULIB_TCGETSID, HAVE_TCGETSID.
29498         * lib/termios.in.h: Include <sys/types.h>.
29499         (tcgetsid): New declaration.
29500         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
29501         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
29502         * doc/posix-functions/tcgetsid.texi: Mention the new module.
29503         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
29504
29505 2010-09-16  Bruno Haible  <bruno@clisp.org>
29506
29507         Tests for module 'termios'.
29508         * modules/termios-c++-tests: New file.
29509         * modules/termios-tests: New file.
29510         * tests/test-termios-c++.cc: New file.
29511         * tests/test-termios.c: New file.
29512
29513         New module 'termios'.
29514         * modules/termios: New file.
29515         * lib/termios.in.h: New file.
29516         * m4/termios_h.m4: New file.
29517         * doc/posix-headers/termios.texi: Mention the new module.
29518
29519 2010-09-16  Eric Blake  <eblake@redhat.com>
29520
29521         fdutimensat: add an atflag parameter
29522         * lib/fdutimensat.c (fdutimensat): Add new parameter.
29523         * lib/utimens.h (fdutimensat): Update prototype.
29524         * tests/test-fdutimensat.c: Adjust test to match.
29525         * NEWS: Document the change.
29526         Suggested by Paul Eggert.
29527
29528 2010-09-16  Bruno Haible  <bruno@clisp.org>
29529
29530         Fix typos in comments.
29531         * lib/striconveh.h: Fix typo in comment.
29532         * lib/login_tty.c (login_tty): Likewise.
29533
29534 2010-09-15  Bruno Haible  <bruno@clisp.org>
29535
29536         stdlib: clarify MirBSD WEXITSTATUS bug
29537         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
29538         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29539
29540 2010-09-15  Eric Blake  <eblake@redhat.com>
29541
29542         stdlib: work around MirBSD WEXITSTATUS bug
29543         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
29544         * modules/stdlib (Depends-on): Add sys_wait.
29545         * tests/test-sys_wait.c (main): Enhance test.
29546         * tests/test-stdlib.c (main): Likewise.
29547         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
29548
29549         docs: mention MacOS issue with WEXITSTATUS(constant)
29550         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
29551         issue.
29552         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
29553
29554         strnlen: add tests
29555         * modules/strnlen-tests: New file.
29556         * tests/test-strnlen.c: Likewise.
29557
29558 2010-09-14  Bruno Haible  <bruno@clisp.org>
29559
29560         unistr/base: Avoid link errors when module 'libunistring' is also used.
29561         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
29562         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
29563         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
29564         Declare also when HAVE_LIBUNISTRING is set.
29565         Reported by Pádraig Brady <P@draigbrady.com>.
29566
29567 2010-09-14  Eric Blake  <eblake@redhat.com>
29568
29569         test-rawmemchr: make more robust
29570         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
29571         (Depends-on, configure.ac): Add needed prerequisites to use it.
29572         * modules/memchr-tests (Files, Depends-on, configure.ac):
29573         Likewise, to avoid implicit reliance on memchr module prereqs.
29574         * tests/test-memchr.c (main): Ensure proper masking.
29575         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
29576         reads.
29577
29578         memchr: detect glibc Alpha bug
29579         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
29580         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
29581         Alpha.
29582         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
29583         * tests/test-memchr.c (main): Enhance test.
29584         Reported by Nelson H. F. Beebe.
29585
29586 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29587
29588         fts, getcwd, glob: audit for dirfd returning -1
29589         * lib/fts.c (opendir): Remove #define; no longer used.
29590         (opendirat): New arg PDIR_FD.  All callers changed.
29591         (fts_build, _opendir2): Use new opendirat to avoid the need for
29592         dirfd, or for checking whether dirfd returns a negative value.
29593         Don't use opendir; always use openat followed by fdopendir.
29594         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
29595         it.
29596         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
29597         returns -1 here.
29598         * modules/fts (Depends-on): Remove dirfd.
29599         * modules/getcwd (Depends-on): Likewise.
29600
29601 2010-09-13  Eric Blake  <eblake@redhat.com>
29602
29603         float: fix broken MirBSD header
29604         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
29605         * doc/posix-headers/float.texi (float.h): Document it.
29606
29607 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
29608
29609         fts: use O_NOFOLLOW to avoid race condition when opening a directory
29610         * lib/fts.c (opendirat): New arg extra_flags.
29611         (__opendir2): Use it to avoid following symlinks when opening
29612         a directory, if symlinks are not supposed to be followed.  See
29613         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
29614
29615         fdopendir: preserve argument fd before returning
29616         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
29617         (fdopendir_with_dup, fd_clone_opendir): New static functions.
29618         (fdopendir): Use them, arranging for FD to be open to the same
29619         directory that it was when it started.  (It might be temporarily
29620         closed while fdopendir is running, so this not thread- or
29621         signal-safe.)  Be careful to do the right thing even when file
29622         descriptors are scarce and dup fails with errno == EMFILE.  See
29623         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
29624
29625 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
29626
29627         regex: Pass the system regex if its only problem is 32-bit regoff_t.
29628         * NEWS: Document change.
29629         * m4/regex.m4: Disable test for regoff_t size.
29630
29631 2010-09-13  Jim Meyering  <meyering@redhat.com>
29632
29633         fts: don't operate on an invalid file descriptor after failed dup
29634         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
29635         negative file descriptor.
29636
29637 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
29638
29639         savedir: add streamsavedir, deprecate fdsavedir
29640         * NEWS: Mention deprecation of fdsavedir.
29641         * lib/savedir.c (streamsavedir): New extern function, whose name
29642         ends in "savedir" to be consistent with the others.  This differs
29643         from savedirstream in that it doesn't close its argument.  The
29644         next version of GNU tar will use this instead of fdsavedir, to
29645         avoid some race conditions and conserve file descriptors.
29646         (savedirstream): Reimplement as a wrapper around streamsavedir.
29647         (fdsavedir): Add a comment deprecating this function.  As far as
29648         I know, only GNU tar used it, and GNU tar doesn't need it any more.
29649         * lib/savedir.h (streamsavedir): New decl.
29650         (fdsavedir): Add a comment deprecating this.
29651
29652 2010-09-10  Bruno Haible  <bruno@clisp.org>
29653
29654         langinfo: Fix last commit.
29655         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
29656         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
29657         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29658
29659 2010-09-10  Bruno Haible  <bruno@clisp.org>
29660
29661         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
29662         * lib/progreloc.c (O_EXEC): Define fallback.
29663
29664 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
29665
29666         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
29667         * NEWS: Document recent changes to fcntl-h.
29668         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
29669         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
29670         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
29671         Similarly for O_SEARCH; this last was already true, but not documented.
29672         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
29673         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
29674         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
29675         Likewise.
29676         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
29677         is zero, not whether it is defined.
29678         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
29679         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
29680         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
29681
29682 2010-09-10  Bruno Haible  <bruno@clisp.org>
29683
29684         langinfo, nl_langinfo: Fix for IRIX 5.3.
29685         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
29686         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
29687         HAVE_LANGINFO_YESEXPR.
29688         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
29689         HAVE_LANGINFO_YESEXPR.
29690         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
29691         HAVE_LANGINFO_T_FMT_AMPM is 0.
29692         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
29693         HAVE_LANGINFO_YESEXPR is 0.
29694         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
29695         NOEXPR.
29696         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
29697         * doc/posix-functions/nl_langinfo.texi: Likewise.
29698         Reported by Eric Blake.
29699
29700 2010-09-10  Bruno Haible  <bruno@clisp.org>
29701
29702         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
29703         * doc/glibc-functions/login_tty.texi: Mention the include file problem
29704         on FreeBSD 8.0 and OpenBSD 4.6.
29705         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
29706         * m4/pty_h.m4 (gl_PTY_H): Likewise.
29707         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
29708         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
29709         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
29710         ac_includes_default.
29711         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
29712
29713 2010-09-09  Eric Blake  <eblake@redhat.com>
29714
29715         strsignal: work around NetBSD bug
29716         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
29717         * lib/string.in.h (includes): Likewise.
29718         * doc/posix-functions/strsignal.texi (strsignal): Document the
29719         bug.
29720         Reported by Nelson H. F. Beebe.
29721
29722         gnulib-tool: work with NetBSD /bin/sh
29723         * gnulib-tool (func_cache_var, func_cache_lookup_module)
29724         (func_get_description, func_get_comment, func_get_status)
29725         (func_get_notice, func_get_applicability, func_get_filelist)
29726         (func_get_dependencies, func_get_autoconf_early_snippet)
29727         (func_get_autoconf_snippet, func_get_automake_snippet)
29728         (func_get_include_directive, func_get_link_directive)
29729         (func_get_license, func_get_maintainer, func_import): Avoid
29730         shell syntax errors from parsing syntax extensions.
29731
29732 2010-09-09  Bruno Haible  <bruno@clisp.org>
29733
29734         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29735         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
29736         a reliable way to determine whether the 'alias' command works.
29737
29738 2010-09-08  Jim Meyering  <meyering@redhat.com>
29739
29740         init.sh: penalize a set-x-impaired shell; don't disqualify it
29741         * tests/init.sh: Too many shells corrupt application stderr when
29742         you set -x, so we can't afford to disqualify them, since at least
29743         on Irix-6.5, that would disqualify all bourne shells.
29744         Instead, use a two-pass approach.
29745         On the first pass, try to find a shell that meets the stricter
29746         condition that set -x does not corrupt stderr.
29747         If no shell meets the stricter condition, retest each candidate
29748         shell, but without that extra condition.  Finally, when
29749         VERBOSE=yes is requested and set -x might cause trouble, simply
29750         issue a warning and refrain from enabling debug output.
29751
29752 2010-09-08  Eric Blake  <eblake@redhat.com>
29753
29754         unsetenv: fix OpenBSD bug
29755         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
29756         * doc/posix-functions/unsetenv.texi (unsetenv): Update
29757         documentation.
29758         Reported by Jim Meyering.
29759
29760         strtod: work around IRIX 6.5 bug
29761         * lib/strtod.c (strtod): Reparse number on shorter string if
29762         exponent parse was invalid.
29763         * tests/test-strtod.c (main): Add check for "0x1p 2".
29764         Reported by Tom G. Christensen.
29765
29766         getopt: optimize previous patch
29767         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
29768         empty variable.  Speed up awk script.
29769         Reported by Paolo Bonzini.
29770
29771 2010-09-08  Jim Meyering  <meyering@redhat.com>
29772
29773         test.sh: disqualify shells for which set -x corrupts stderr
29774         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
29775         and OpenBSD 4.7.  They make it so with "set -x", environment settings
29776         appear in stderr output.  For example, this command:
29777             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
29778         prints "P=1" on those two systems:
29779
29780 2010-09-08  Bruno Haible  <bruno@clisp.org>
29781
29782         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
29783         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
29784         commands, because some shells ignore redirections when there is an
29785         error in the command lookup.
29786         Reported by Eric Blake.
29787
29788 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
29789
29790         * lib/regex.h: Fix a mention of `regex_compile' (should be
29791         `re_compile_pattern').
29792         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
29793         (re_set_registers): Correct name of parameter in comment.
29794
29795         * doc/regex.texi: Add documentation for missing syntax flags.
29796         Remove commented-out documentation of defunct syntax option
29797         RE_NO_EMPTY_ALTS.
29798         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
29799         Add documentation of re_set_registers.
29800         Document trick to re-use a pattern buffer by setting fastmap manually.
29801         Update documentation of struct re_pattern_buffer per public members.
29802         Uncomment documentation of equivalence class operators and
29803         collating symbol operators, since they are now implemented,
29804         Explain leftmost-longest matching in relation to alternatives.
29805         Tidy documentation of substring matching.
29806         Remove POSIX documentation, which is done better in
29807         glibc, and refer the reader there. Keep BSD API documentation, as
29808         that is not readily available elsewhere.
29809
29810 2010-09-07  Eric Blake  <eblake@redhat.com>
29811
29812         getopt: handle POSIXLY_CORRECT set but not exported
29813         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29814         export state of POSIXLY_CORRECT, due to bash set -o posix.
29815         Reported by Dustin J. Mitchell.
29816
29817 2010-09-05  Bruno Haible  <bruno@clisp.org>
29818
29819         gnulib-tool: Highlight the changed options.
29820         * gnulib-tool (func_usage): Display the --import, --add-import,
29821         --remove-import explanations in bold font.
29822
29823 2010-09-06  Karl Berry  <karl@gnu.org>
29824
29825         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29826
29827 2010-09-05  Bruno Haible  <bruno@clisp.org>
29828
29829         uniwidth/width: Update comment.
29830         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29831         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29832
29833 2010-09-05  Bruno Haible  <bruno@clisp.org>
29834
29835         isinf, isnan: Relax license.
29836         * modules/isinf (License): Change from GPL to LGPL, with consent from
29837         Ben Pfaff.
29838         * modules/isnan (License): Likewise.
29839         Requested by Ludovic Courtès.
29840
29841 2010-09-04  Bruno Haible  <bruno@clisp.org>
29842
29843         gnulib-tool: Help migration from --import to --add-import or --update.
29844         * gnulib-tool: Emit a verbose error message when --import is used
29845         without any module name.
29846
29847 2010-09-04  Bruno Haible  <bruno@clisp.org>
29848
29849         Update doc about gnulib-tool.
29850         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29851         'gnulib-tool --update' in more detail.
29852         Reported by Eric Blake.
29853
29854 2010-09-04  Bruno Haible  <bruno@clisp.org>
29855
29856         gnulib-tool: Change --import. New options --add/remove-import.
29857         * gnulib-tool: New options --add-import, --remove-import.
29858         (func_usage): Document them.
29859         (have_associative): Define always.
29860         (func_import): In import mode, don't merge the specified settings with
29861         the cached settings. Implement remove-import mode.
29862         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29863         Explain when to use them versus --import.
29864         (Simple update): Use --add-import instead of --import.
29865         * NEWS: Mention the change.
29866
29867 2010-09-04  Bruno Haible  <bruno@clisp.org>
29868
29869         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29870         separate gnulib.mk.
29871
29872 2010-09-04  Bruno Haible  <bruno@clisp.org>
29873
29874         gnulib-tool: Don't talk about CVS any more.
29875         * gnulib-tool (func_usage, func_import): Write "version control"
29876         instead of CVS.
29877
29878 2010-09-04  Jim Meyering  <meyering@redhat.com>
29879
29880         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29881         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29882         false positives (whose names may be ill-chosen) when searching
29883         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29884         would cause a false-positive.
29885
29886         avoid coreutils "make distcheck" failure
29887         Coreutils tests with an absolute build directory name that contains
29888         a space.  Not quoting this directory name caused a failure.
29889         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29890         * tests/test-vc-list-files-cvs.sh: Likewise.
29891
29892 2010-09-04  Bruno Haible  <bruno@clisp.org>
29893
29894         gnulib-tool: Avoid error when run in a package without Makefile.am.
29895         * gnulib-tool: When collecting the m4dirs in a package that does not
29896         have a Makefile.am, eliminate those directories that contain no
29897         gnulib-cache.m4. Fix expression that counts these directories.
29898
29899 2010-09-04  Bruno Haible  <bruno@clisp.org>
29900
29901         update-copyright test: Improve output when perl is missing or too old.
29902         * tests/test-update-copyright.sh: Move test of Perl version down after
29903         the test whether Perl exists. Provide an explanation relating Perl's
29904         error message to Automake's SKIP: message.
29905
29906 2010-09-04  Bruno Haible  <bruno@clisp.org>
29907
29908         Don't augment PATH in TESTS_ENVIRONMENT.
29909         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29910         set abs_aux_dir instead of augmenting PATH.
29911         * modules/vc-list-files-tests (Makefile.am): Likewise.
29912         * tests/test-update-copyright.sh: Augment PATH here.
29913         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29914         path_prepend_.
29915         * tests/test-vc-list-files-git.sh: Likewise.
29916
29917 2010-09-04  Jim Meyering  <meyering@redhat.com>
29918
29919         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29920         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29921
29922 2010-09-04  Bruno Haible  <bruno@clisp.org>
29923
29924         strdup: Fix compilation error in C++ mode.
29925         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29926         the macro.
29927
29928 2010-09-04  Bruno Haible  <bruno@clisp.org>
29929
29930         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29931         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29932         macro into a function.
29933         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29934
29935 2010-09-04  Bruno Haible  <bruno@clisp.org>
29936
29937         Set PATH_SEPARATOR the same way autoconf does.
29938         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29939         the value of PATH_SEPARATOR the same way autoconf-generated configure
29940         scripts do.
29941         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29942         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29943
29944 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29945
29946         Set PATH_SEPARATOR the same way autoconf does.
29947         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29948         the same way autoconf-generated configure scripts do.
29949         * posix-modules: Likewise.
29950
29951 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29952
29953         hash: fix safe_hasher const typo
29954         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29955         const; otherwise, there is a type error later.
29956
29957 2010-09-02  Jim Meyering  <meyering@redhat.com>
29958
29959         test-update-copyright.sh: require perl 5.8.0
29960         * tests/test-update-copyright.sh: Require 5.8.0,
29961         which Tom G. Christensen has confirmed is adequate,
29962         while 5.6.1 is not.
29963
29964 2010-09-02  Eric Blake  <eblake@redhat.com>
29965
29966         tests: init.sh improvements for re-exec'ing with zsh
29967         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29968         -vx through shell re-exec.
29969         Reported by Tom G. Christensen.
29970
29971         wctype: fix typo in previous commit
29972         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29973         Reported by Ludovic Courtès.
29974
29975 2010-09-02  Jim Meyering  <meyering@redhat.com>
29976
29977         test-update-copyright.sh: skip test if Perl is too old
29978         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29979         Reported by Tom G. Christensen.
29980
29981 2010-09-02  Bruno Haible  <bruno@clisp.org>
29982
29983         wctype: Avoid compilation error on IRIX 6.5.30.
29984         * lib/wctype.in.h (iswblank): Declare with a replacement if
29985         REPLACE_ISWBLANK is set.
29986         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29987         declared. Set REPLACE_ISWBLANK.
29988         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29989         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29990         * doc/posix-headers/wctype.texi: Likewise.
29991         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29992
29993 2010-09-01  Bruno Haible  <bruno@clisp.org>
29994
29995         New module 'socketlib'.
29996         * modules/socketlib: New file.
29997         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29998         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29999         * modules/sockets (Depends-on): Add socketlib.
30000         Suggested by Sam Steingold <sds@gnu.org>.
30001
30002 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
30003
30004         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
30005
30006         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
30007         when one needs search access to a directory but not read access.
30008         On systems where it is available, it works in some cases where
30009         O_RDONLY does not, namely on directories that are searchable but
30010         not readable, and which need only to be searchable.  If O_SEARCH
30011         is not available, fall back to the traditional method of using
30012         O_RDONLY.
30013
30014         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
30015         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
30016         when opening a directory that needs only to be searchable.
30017         * lib/chdir-safer.c (chdir_no_follow): Likewise.
30018         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
30019         * lib/openat-proc.c (openat_proc_name): Likewise.
30020         * lib/openat.c (openat_needs_fchdir): Likewise.
30021         * lib/save-cwd.c (save_cwd): Likewise.
30022         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
30023
30024 2010-08-28  Bruno Haible  <bruno@clisp.org>
30025
30026         New module 'host-cpu-c-abi'.
30027         * modules/host-cpu-c-abi: New file.
30028         * m4/host-cpu-c-abi.m4: New file, based on part of
30029         clisp/src/m4/general.m4.
30030         Requested by Sam Steingold <sds@gnu.org>.
30031
30032 2010-08-31  Eric Blake  <eblake@redhat.com>
30033         and Jim Meyering  <meyering@redhat.com>
30034
30035         hash: factor, and guard against misbehaving hasher function
30036         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
30037         of table->hasher's return value.  Also protect against a hash value
30038         so large that adding it to table->bucket results in a NULL pointer.
30039         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
30040         Use it in place of open-coded check-and-abort.
30041
30042 2010-08-30  Bruno Haible  <bruno@clisp.org>
30043
30044         hash: silence spurious clang warning
30045         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
30046         Reported by Eric Blake.
30047
30048 2010-08-30  Eric Blake  <eblake@redhat.com>
30049
30050         strstr, memmem, strcasestr: avoid leaked shell message
30051         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
30052         FreeBSD.
30053         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30054         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30055
30056         tests: silence clang warning
30057         * tests/test-malloca.c (do_allocation): Avoid dead store.
30058
30059 2010-08-29  Bruno Haible  <bruno@clisp.org>
30060
30061         gettext: Fix recent mistake.
30062         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
30063
30064 2010-08-29  Bruno Haible  <bruno@clisp.org>
30065
30066         selinux-h: Offer a --without-selinux option.
30067         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
30068         --without-selinux was specified, skip all tests and define
30069         HAVE_SELINUX_SELINUX_H to 0.
30070         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
30071         set LIB_SELINUX to empty.
30072         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
30073         gl_LIBSELINUX. If --without-selinux was specified, replace
30074         selinux/context.h.
30075         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
30076
30077 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30078             Bruno Haible  <bruno@clisp.org>
30079
30080         Make the module 'realloc-gnu' work again on AIX and OSF/1.
30081         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
30082         of HAVE_REALLOC.
30083         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
30084         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
30085         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
30086         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30087
30088 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30089             Bruno Haible  <bruno@clisp.org>
30090
30091         Make the module 'calloc-gnu' work again on AIX and OSF/1.
30092         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
30093         HAVE_CALLOC.
30094         * lib/xmalloc.c: Update accordingly.
30095         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
30096         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
30097         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
30098
30099 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30100             Bruno Haible  <bruno@clisp.org>
30101
30102         Make the module 'malloc-gnu' work again on AIX and OSF/1.
30103         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
30104         HAVE_MALLOC.
30105         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
30106         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
30107         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
30108
30109 2010-08-29  Bruno Haible  <bruno@clisp.org>
30110
30111         Update modules list.
30112         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
30113         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
30114         (String handling <string.h>): Add astrxfrm.
30115         (File system functions): Add readlinkat.
30116
30117 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30118
30119         Tests for module 'realloc-gnu'.
30120         * modules/realloc-gnu-tests: New file.
30121         * tests/test-realloc-gnu.c: New file.
30122
30123         Tests for module 'calloc-gnu'.
30124         * modules/calloc-gnu-tests: New file.
30125         * tests/test-calloc-gnu.c: New file.
30126
30127         Tests for module 'malloc-gnu'.
30128         * modules/malloc-gnu-tests: New file.
30129         * tests/test-malloc-gnu.c: New file.
30130
30131 2010-08-28  Bruno Haible  <bruno@clisp.org>
30132
30133         Rename module 'realloc' -> 'realloc-gnu'.
30134         * modules/realloc-gnu: New file, copied from modules/realloc.
30135         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
30136         obsolete.
30137         * modules/mgetgroups (Depends-on): Update.
30138         * doc/posix-functions/realloc.texi: Update.
30139         * NEWS: Mention the change.
30140
30141         Rename module 'calloc' -> 'calloc-gnu'.
30142         * modules/calloc-gnu: New file, copied from modules/calloc.
30143         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
30144         obsolete.
30145         * doc/posix-functions/calloc.texi: Update.
30146         * NEWS: Mention the change.
30147
30148         Rename module 'malloc' -> 'malloc-gnu'.
30149         * modules/malloc-gnu: New file, copied from modules/malloc.
30150         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
30151         obsolete.
30152         * modules/argp (Depends-on): Update.
30153         * modules/regex (Depends-on): Update.
30154         * doc/posix-functions/malloc.texi: Update.
30155         * NEWS: Mention the change.
30156
30157 2010-08-28  Eric Blake  <eblake@redhat.com>
30158
30159         pread, pwrite: add missing dependency
30160         * modules/pread (Depends-on): Add extensions.
30161         * modules/pwrite (Depends-on): Likewise.
30162
30163 2010-08-28  Bruno Haible  <bruno@clisp.org>
30164
30165         unistr/u*-strchr: Fix tests dependencies.
30166         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
30167         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
30168         Reported by Ian Beckwith <ianb@erislabs.net>.
30169
30170 2010-08-28  Bruno Haible  <bruno@clisp.org>
30171
30172         read-file: Don't occupy too much unused memory.
30173         * lib/read-file.c (fread_file): Shrink the buffer at the end.
30174
30175 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
30176             Eric Blake  <eblake@redhat.com>
30177             Bruno Haible  <bruno@clisp.org>
30178
30179         read-file: Avoid memory reallocations with regular files.
30180         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
30181         (fread_file): With regular files, use the remaining length as the
30182         initial buffer size.  Check against overflow.
30183         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
30184         sys_stat.
30185
30186 2010-08-28  Bruno Haible  <bruno@clisp.org>
30187
30188         ftello: Relax license.
30189         * modules/ftello (License): Relax to LGPLv2+.
30190         Reported by Eric Blake.
30191
30192 2010-08-28  Bruno Haible  <bruno@clisp.org>
30193
30194         Avoid relocwrapper link errors due to gnulib replacement functions.
30195         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
30196         function.
30197         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30198
30199 2010-08-28  Bruno Haible  <bruno@clisp.org>
30200
30201         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
30202         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
30203         defined.
30204         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
30205         Suggested by Eric Blake.
30206
30207 2010-08-28  Bruno Haible  <bruno@clisp.org>
30208
30209         sys_socket, netdb: Ensure socklen_t gets defined.
30210         * modules/sys_socket (Depends-on): Add socklen.
30211         * modules/netdb (Depends-on): Likewise.
30212         * modules/getaddrinfo (Depends-on): Remove socklen.
30213         * modules/getsockopt (Depends-on): Likewise.
30214         * modules/setsockopt (Depends-on): Likewise.
30215         * tests/test-sys_socket.c: Check that socklen_t is defined.
30216         * tests/test-netdb.c: Likewise.
30217         * m4/socklen.m4: Update comments.
30218         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30219
30220 2010-08-27  Eric Blake  <eblake@redhat.com>
30221
30222         login_tty: add missing dependency
30223         * modules/login_tty (Depends-on): Add pty.
30224
30225 2010-08-26  Eric Blake  <eblake@redhat.com>
30226
30227         lib-symbol-versions: fix m4 quoting
30228         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
30229         format for AC_LINK_IFELSE.
30230
30231         glob: fix compile test
30232         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
30233
30234         btowc: fix missing file
30235         * modules/btowc (Files): Also ship locale-fr.m4.
30236
30237         lseek: fix link test
30238         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
30239         AC_LINK_IFELSE.
30240
30241         include_next: silence autoconf 2.68 warning
30242         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
30243         AC_COMPILE_IFELSE as special.
30244         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
30245         autoconf < 2.68.
30246
30247         acl: fix compilation test
30248         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
30249         AC_COMPILE_IFELSE.
30250
30251 2010-08-26  Bruno Haible  <bruno@clisp.org>
30252
30253         Modernize AC_TRY_RUN invocations.
30254         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
30255         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
30256         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
30257         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
30258         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
30259         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30260         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
30261         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
30262         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30263         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30264         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
30265         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
30266         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
30267         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
30268         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
30269         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
30270         gl_MBRLEN_NUL_RETVAL): Likewise.
30271         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
30272         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
30273         Likewise.
30274         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
30275         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
30276         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
30277         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
30278         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
30279         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
30280         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
30281         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
30282         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
30283         Likewise.
30284         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
30285         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
30286         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30287         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30288         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30289         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
30290         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
30291         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
30292         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
30293         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30294
30295 2010-08-26  Bruno Haible  <bruno@clisp.org>
30296
30297         Modernize AC_TRY_LINK invocations.
30298         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
30299         AC_TRY_LINK.
30300         * m4/argp.m4 (gl_ARGP): Likewise.
30301         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
30302         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30303         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
30304         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
30305         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
30306         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
30307         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
30308         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
30309         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
30310         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
30311         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
30312         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
30313         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
30314         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
30315         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
30316         * m4/hostent.m4 (gl_HOSTENT): Likewise.
30317         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
30318         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
30319         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
30320         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
30321         Likewise.
30322         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
30323         Likewise.
30324         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
30325         Likewise.
30326         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
30327         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
30328         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
30329         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
30330         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
30331         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30332         * m4/servent.m4 (gl_SERVENT): Likewise.
30333         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
30334         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
30335         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
30336         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
30337         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
30338         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
30339         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
30340         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
30341         * modules/tsearch-tests (configure.ac): Likewise.
30342
30343 2010-08-26  Bruno Haible  <bruno@clisp.org>
30344
30345         Modernize AC_TRY_COMPILE invocations.
30346         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
30347         AC_TRY_COMPILE.
30348         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
30349         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
30350         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
30351         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
30352         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
30353         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
30354         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
30355         * m4/lock.m4 (gl_LOCK): Likewise.
30356         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
30357         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30358         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
30359         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
30360         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
30361         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
30362         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
30363         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
30364         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
30365         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
30366         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
30367         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30368         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
30369         extraneous semicolon.
30370
30371 2010-08-26  Jim Meyering  <meyering@redhat.com>
30372
30373         stat-time: relax license LGPL
30374         * modules/stat-time (License): Change from GPL to LGPL,
30375         with consent from all contributors, for use in libguile.
30376         Requested by Ludovic Courtès.
30377
30378 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
30379
30380         poll: return immediately on POLLHUP.
30381         * lib/poll.c (poll): Always set timeout before wait_timeout is
30382         computed.
30383
30384 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30385
30386         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
30387         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
30388         rmdir ("dir/.//"), unlinkat.
30389
30390 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
30391
30392         stdbool: avoid spurious failure with modern xlc
30393         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30394
30395 2010-08-24  Bruno Haible  <bruno@clisp.org>
30396
30397         getloadavg: simplify code
30398         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
30399         gl_have_func. Update comments.
30400
30401 2010-08-24  Eric Blake  <eblake@redhat.com>
30402
30403         getloadavg: don't define SVR4 on cygwin
30404         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
30405         only define SVR4 when -lkvm is required.
30406         Reported by Yaakov Selkowitz.
30407
30408 2010-08-24  Bruno Haible  <bruno@clisp.org>
30409
30410         priv-set: fix comment
30411         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
30412
30413 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
30414
30415         priv-set: fix comments
30416         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
30417         to match code, as suggested by David Bartley in:
30418         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
30419
30420 2010-08-23  Eric Blake  <eblake@redhat.com>
30421
30422         stdbool: avoid rejecting clang
30423         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
30424         * tests/test-stdbool.c: Enable more tests if using the system
30425         <stdbool.h> instead of the gnulib replacement.
30426         (main): Move xlc bug test to a runtime test for all compilers.
30427         Reported by Anders Kaseorg.
30428
30429         argz: fix shell quoting issue
30430         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
30431         Reported by Charles Wilson.
30432
30433 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
30434             Erik Faye-Lund <kusmabite@gmail.com>
30435
30436         poll, select: handle ERROR_BROKEN_PIPE.
30437         * lib/poll.c (win32_compute_revents): Return POLLHUP when
30438         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30439         * lib/select.c (win32_compute_revents): Do not mark a pipe
30440         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
30441
30442 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
30443
30444         fts: allow compilation with C++
30445         * lib/fts_.h: Specify extern "C" linkage with C++.
30446
30447 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30448
30449         Fix gnulib-tool sed script de-commentation for AIX sed.
30450         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
30451         sed.
30452
30453 2010-08-17  Eric Blake  <eblake@redhat.com>
30454
30455         test-stddef: test for (some) offsetof bugs
30456         * tests/test-stddef.c: Enhance test to ensure correct type of
30457         offsetof.
30458         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
30459         that we are not fixing at this time.
30460
30461 2010-08-15  Bruno Haible  <bruno@clisp.org>
30462
30463         stpncpy: Allow stpncpy to be defined as a macro.
30464         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
30465         if it's already correctly declared.
30466         * lib/string.in.h (stpncpy): Undefine before redefining.
30467         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
30468
30469 2010-08-14  Bruno Haible  <bruno@clisp.org>
30470
30471         Rename module 'memxfrm' to 'amemxfrm'.
30472         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
30473         (amemxfrm): Renamed from memxfrm.
30474         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
30475         (amemxfrm): Renamed from memxfrm.
30476         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
30477         * NEWS: Mention the change.
30478         * MODULES.html.sh (String handling <string.h>): Update.
30479         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
30480         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
30481         * lib/unicase/u16-casexfrm.c: Likewise.
30482         * lib/unicase/u32-casexfrm.c: Likewise.
30483         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
30484         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
30485         * lib/uninorm/u16-normxfrm.c: Likewise.
30486         * lib/uninorm/u32-normxfrm.c: Likewise.
30487         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
30488         memxfrm.
30489         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
30490         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
30491         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
30492         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
30493         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
30494         Suggested by Paul Eggert.
30495
30496 2010-08-14  Bruno Haible  <bruno@clisp.org>
30497
30498         Tests for module 'astrxfrm'.
30499         * modules/astrxfrm-tests: New file.
30500         * tests/test-astrxfrm.c: New file.
30501
30502         New module 'astrxfrm'.
30503         * lib/astrxfrm.h: New file.
30504         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
30505         * modules/astrxfrm: New file.
30506
30507 2010-08-14  Reuben Thomas <rrt@sc3d.org>
30508
30509         regex: Tweak doc.
30510         * doc/regex.texi (Overview): Don't mention regex.c.
30511         (GNU Regular Expression Compiling): Likewise.
30512         (Match-end-of-line Operator): Mention 'not_eol'.
30513
30514 2010-08-14  Brian Gough  <bjg@gnu.org>
30515             Bruno Haible  <bruno@clisp.org>
30516
30517         git-merge-changelog: add doc relating to use with bzr and hg.
30518         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
30519
30520 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
30521
30522         pthread: fix pthread.h creation for srcdir != builddir
30523         * modules/pthread (Makefile.am): Fix the rule to work also in a
30524         non-srcdir build.
30525
30526 2010-08-13  Karl Berry  <karl@gnu.org>
30527
30528         * doc/regex.texi (Predefined Syntaxes): @smallexample.
30529         * doc/posix-*/*: force line break before @url of POSIX
30530         specifications.
30531         Suggested by Werner Lemberg.
30532
30533 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
30534
30535         strtod: fix const diagnostic
30536         * lib/strtod.c (strtod): Don't assign const char * to char *,
30537         as this elicits a warning from GCC when warnings are enabled.
30538
30539 2010-08-10  Pádraig Brady <P@draigbrady.com>
30540         and Eric Blake  <eblake@redhat.com>
30541
30542         copy-acl: ignore ENOTSUP on HP-UX
30543         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
30544         so that it is available for HP-UX.
30545         * lib/copy-acl.c (qcopy_acl): Use it.
30546         Reported by Patrick M. Callahan.
30547
30548 2010-08-10  Eric Blake  <eblake@redhat.com>
30549
30550         open, chown: relax license
30551         * modules/open (License): Change to LGPLv2+, with consent by all
30552         authors, for use in augeas.
30553         * modules/chown (License): Likewise.
30554         * modules/lchown (Likewise): Likewise.
30555         Requested by Adam Stokes.
30556
30557 2010-08-09  Karl Berry  <karl@gnu.org>
30558
30559         * build-aux/ar-lib: new file, import from Automake.
30560         * config/srclist.txt: autocheck for updates.
30561
30562 2010-08-09  Eric Blake  <eblake@redhat.com>
30563
30564         readlinkat: adjust client modules
30565         * modules/areadlinkat (Depends-on): Use readlinkat, not
30566         symlinkat.
30567         * modules/areadlinkat-with-size (Depends-on): Likewise.
30568
30569         mknod: be more vocal about danger of running tests as root
30570         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
30571         root, since that is just asking for problems.
30572         Suggested by Bruno Haible, based on a report by Rainer Tammer.
30573
30574         readlinkat: split into its own module
30575         * modules/symlinkat: Split readlinkat...
30576         * modules/readlinkat: ...into separate module.
30577         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
30578         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
30579         * lib/symlinkat.c (readlinkat): Move...
30580         * lib/readlinkat.c: ...into new file.
30581         * modules/symlinkat-tests: Split readlinkat test...
30582         * modules/readlinkat-tests: ...into separate module.
30583         * tests/test-symlinkat.c: Split...
30584         * tests/test-readlinkat.c: ...into new file.
30585         * NEWS: Document the split.
30586         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30587         * lib/unistd.in.h (readlinkat): Likewise.
30588         Suggested by Bruno Haible.
30589
30590 2010-08-08  Bruno Haible  <bruno@clisp.org>
30591
30592         memxfrm: Speed up.
30593         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
30594         that usually only one call to strxfrm is necessary for each string
30595         part.
30596         Reported by Paul Eggert <eggert@cs.ucla.edu>.
30597
30598 2010-08-07  Karl Berry  <karl@gnu.org>
30599
30600         * doc/posix-headers/limits.texi,
30601         * doc/posix-functions/malloc.texi,
30602         * doc/posix-functions/strsignal.texi: missing @item.
30603         * doc/ld-version-script.texi: spurious leading i.
30604         * doc/regex.texi (Interval Operators): no commas inside @var.
30605
30606 2010-08-01  Bruno Haible  <bruno@clisp.org>
30607
30608         Integrate the regex documentation.
30609         * doc/gnulib.texi: Define 'cn' index.
30610         (Regular expressions): New a chapter that includes regex.texi and
30611         regexprops-generic.texi.
30612         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
30613         syntax.
30614
30615         Whitespace cleanup.
30616         * doc/regex.texi: Remove trailing spaces.
30617
30618         Add regex documentation.
30619         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
30620         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
30621         Written by Kathy A. Hargreaves and Karl Berry.
30622
30623 2010-08-01  Bruno Haible  <bruno@clisp.org>
30624
30625         link: Update documentation.
30626         * doc/posix-functions/link.texi: Update regarding Solaris.
30627
30628 2010-07-31  Bruno Haible  <bruno@clisp.org>
30629
30630         Update modules list.
30631         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
30632         (String handling <string.h>): Add memcmp2, memxfrm.
30633         (Container data structures): Add xlist, xsublist, xoset.
30634         (Core language properties): Add alignof, unused-parameter.
30635         (Process control, Numeric conversion functions <stdlib.h>): Renamed
30636         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
30637         (Unibyte characters <ctype.h>): New section.
30638         (String handling <string.h>): New section.
30639         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
30640         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
30641         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
30642         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
30643         tan, tanh, tanl, y0, y1, yn.
30644         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
30645         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
30646         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
30647         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
30648         unlockpt, vdprintf, vdprintf-posix.
30649         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
30650         (File system functions): Add concat-filename, sys_file, sys_ioctl,
30651         xconcat-filename.
30652         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
30653         getdtablesize, pipe2, pipe2-safer.
30654         (Security): New section.
30655         (Networking functions): Add accept4.
30656         (Signal handling): Add sigpipe.
30657         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
30658         mbmemcasecoll.
30659         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
30660         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
30661         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
30662         pipe-filter-ii.
30663         (Misc): Add argp-version-etc, login_tty, parse-duration.
30664
30665 2010-07-31  Bruno Haible  <bruno@clisp.org>
30666
30667         Improve doc in MODULES.html.
30668         * modules/linkat (Description): Add the word "function".
30669         * modules/mkfifo (Description): Likewise.
30670         * modules/mknod (Description): Likewise.
30671         * modules/remove (Description): Likewise.
30672         * modules/renameat (Description): Likewise.
30673         * modules/stat (Description): Likewise.
30674         * modules/symlink (Description): Likewise.
30675         * modules/unlink (Description): Likewise.
30676
30677 2010-07-31  Bruno Haible  <bruno@clisp.org>
30678
30679         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
30680         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
30681         option --enable/disable-c++ instead of --enable/disable-cxx.
30682         * NEWS: Mention the change.
30683
30684 2010-07-31  Bruno Haible  <bruno@clisp.org>
30685
30686         readlink, areadlink: Relax test a bit.
30687         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
30688         alternative to ENOTDIR.
30689         * tests/test-areadlink.h (test_areadlink): Likewise.
30690         Reported by Rainer Tammer.
30691
30692 2010-07-31  Bruno Haible  <bruno@clisp.org>
30693
30694         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
30695         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
30696         character, perform the search using U_STRCHR.
30697         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
30698         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
30699         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
30700         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
30701         Suggested by Paolo Bonzini.
30702
30703 2010-07-31  Bruno Haible  <bruno@clisp.org>
30704
30705         unistr/u*-strstr: Fix dependencies.
30706         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
30707         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
30708         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
30709
30710 2010-07-31  Bruno Haible  <bruno@clisp.org>
30711
30712         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
30713         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
30714         the beginning of the loop.
30715         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
30716         cases in 'switch' statement.
30717
30718         unistr/u8-strchr: Fix several bugs.
30719         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
30720         the string. When not found, return NULL, not a pointer near the end.
30721
30722         More tests for unistr/u8-strchr.
30723         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
30724         that the function does not read past the first occurrence of the byte
30725         being searched.
30726         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
30727         * tests/unistr/test-u16-strchr.c (main): New function.
30728         * tests/unistr/test-u32-strchr.c (main): New function.
30729
30730 2010-07-31  Bruno Haible  <bruno@clisp.org>
30731
30732         posix-modules: Ignore backup files of documentation files.
30733         * posix-modules: grep only through files named *.texi.
30734
30735 2010-07-31  Bruno Haible  <bruno@clisp.org>
30736
30737         symlinkat: Fix documentation.
30738         * doc/posix-functions/readlinkat.texi: Fix module name.
30739
30740 2010-07-31  Bruno Haible  <bruno@clisp.org>
30741
30742         fchownat: Replace also when chown has the trailing slash bug.
30743         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
30744         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
30745         introduced on 2010-04-10.
30746         Reported by Rainer Tammer.
30747
30748 2010-07-31  Bruno Haible  <bruno@clisp.org>
30749
30750         linkat: Work around AIX 7.1 bug.
30751         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
30752         whether linkat handles trailing slash correctly. If not, replace linkat
30753         and define LINKAT_TRAILING_SLASH_BUG.
30754         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
30755         check whether (fd1,file1) points to a directory if file1 or file2 ends
30756         in a slash. Code taken from lib/link.c.
30757         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
30758         Reported by Rainer Tammer.
30759
30760 2010-07-31  Bruno Haible  <bruno@clisp.org>
30761
30762         Correctly determine whether pow is available in libc on AIX 7 with xlc.
30763         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
30764         This disables an xlc optimization that was causing wrong test results.
30765         Reported by Rainer Tammer.
30766
30767 2010-07-31  Bruno Haible  <bruno@clisp.org>
30768
30769         iconv: Work around AIX 6.1..7.1 bug.
30770         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
30771         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
30772         cross-compiling, guess no on all versions of AIX.
30773         Reported by Rainer Tammer.
30774
30775 2010-07-31  Bruno Haible  <bruno@clisp.org>
30776
30777         readlink: Relax test a bit.
30778         * tests/test-readlink.h (test_readlink): Allow different errno value
30779         when readlink is called with a file name that ends in / and refers to
30780         a file.
30781         Suggested by Eric Blake.
30782         Reported by Rainer Tammer.
30783
30784 2010-07-31  Bruno Haible  <bruno@clisp.org>
30785
30786         copysign: Does not require -lm on glibc systems.
30787         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
30788         gl_COMMON_DOUBLE_MATHFUNC.
30789         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
30790
30791 2010-07-31  Bruno Haible  <bruno@clisp.org>
30792
30793         duplocale: Work around AIX 7.1 bug.
30794         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
30795         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
30796         * lib/duplocale.c (rpl_duplocale): Update comment.
30797         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
30798         Reported by Rainer Tammer.
30799
30800 2010-07-30  Bruno Haible  <bruno@clisp.org>
30801
30802         dirfd: Avoid link error on AIX 7.1.
30803         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
30804         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
30805         exist, set REPLACE_DIRFD.
30806         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
30807         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
30808         * doc/posix-functions/dirfd.texi: Update.
30809         Reported by Rainer Tammer.
30810
30811 2010-07-30  Eric Blake  <eblake@redhat.com>
30812
30813         strtod: next round of AIX fixes
30814         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30815         exponent.
30816         * tests/test-strtod.c (main): Enhance tests.
30817         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30818         Reported by Rainer Tammer.
30819
30820         futimens: fix configure check
30821         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30822         Reported by Bruno Haible.
30823
30824 2010-07-30  Bruno Haible  <bruno@clisp.org>
30825
30826         getline: Update regarding AIX.
30827         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30828         Reported by Rainer Tammer.
30829
30830 2010-07-30  Bruno Haible  <bruno@clisp.org>
30831
30832         wcwidth: Drop replacement on AIX 7.
30833         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30834         AIX 7.
30835         Reported by Rainer Tammer.
30836
30837 2010-07-30  Bruno Haible  <bruno@clisp.org>
30838
30839         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30840         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30841         a 'char *'.
30842         Reported by Rainer Tammer.
30843
30844 2010-07-30  Bruno Haible  <bruno@clisp.org>
30845
30846         unlink: Update regarding AIX.
30847         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30848         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30849         Reported by Rainer Tammer.
30850
30851 2010-07-30  Bruno Haible  <bruno@clisp.org>
30852
30853         symlink: Update regarding AIX.
30854         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30855         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30856         Reported by Rainer Tammer.
30857
30858 2010-07-30  Bruno Haible  <bruno@clisp.org>
30859
30860         strndup: Update regarding AIX.
30861         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30862         AIX 7.
30863         Reported by Rainer Tammer.
30864
30865 2010-07-30  Bruno Haible  <bruno@clisp.org>
30866
30867         stat: Update regarding AIX.
30868         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30869         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30870         Reported by Rainer Tammer.
30871
30872 2010-07-30  Bruno Haible  <bruno@clisp.org>
30873
30874         truncl: Fix autoconf test.
30875         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30876         whether truncl works.
30877         Reported by Rainer Tammer.
30878
30879 2010-07-30  Bruno Haible  <bruno@clisp.org>
30880
30881         round: Update regarding AIX.
30882         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30883         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30884         Reported by Rainer Tammer.
30885
30886 2010-07-30  Bruno Haible  <bruno@clisp.org>
30887
30888         rename: Update regarding AIX.
30889         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30890         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30891         Reported by Rainer Tammer.
30892
30893 2010-07-30  Bruno Haible  <bruno@clisp.org>
30894
30895         printf.m4: Update regarding AIX.
30896         * m4/printf.m4: Update comments regarding AIX.
30897         Reported by Rainer Tammer.
30898
30899 2010-07-30  Bruno Haible  <bruno@clisp.org>
30900
30901         iconv: Update regarding AIX.
30902         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30903         AIX 7.
30904         Reported by Rainer Tammer.
30905
30906 2010-07-30  Bruno Haible  <bruno@clisp.org>
30907
30908         getopt: Update regarding AIX.
30909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30910         no on AIX.
30911         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30912         Reported by Rainer Tammer.
30913
30914 2010-07-30  Bruno Haible  <bruno@clisp.org>
30915
30916         ldexpl; Update regarding AIX.
30917         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30918         on AIX 7.
30919         Reported by Rainer Tammer.
30920
30921 2010-07-30  Bruno Haible  <bruno@clisp.org>
30922
30923         frexpl: Update regarding AIX.
30924         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30925         on AIX 7.
30926         Reported by Rainer Tammer.
30927
30928 2010-07-30  Bruno Haible  <bruno@clisp.org>
30929
30930         open, fopen: Update regarding AIX.
30931         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30932         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30933         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30934         * doc/posix-functions/fopen.texi: Likewise.
30935         Reported by Rainer Tammer.
30936
30937 2010-07-30  Bruno Haible  <bruno@clisp.org>
30938
30939         chown: Update doc regarding AIX.
30940         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30941         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30942         Reported by Rainer Tammer.
30943
30944 2010-07-30  Eric Blake  <eblake@redhat.com>
30945
30946         strtod: fix bug in replacement function on AIX
30947         * lib/strtod.c (strtod): Special case broken "0x" parse in
30948         underlying strtod.
30949         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30950         * doc/posix-functions/strtod.texi (strtod): Likewise.
30951         Reported by Rainer Tammer.
30952
30953 2010-07-30  Bruno Haible  <bruno@clisp.org>
30954
30955         mbrlen: Fix cross-compilation guess for AIX.
30956         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30957         guess. Leftover from 2008-12-22.
30958
30959 2010-07-30  Bruno Haible  <bruno@clisp.org>
30960
30961         mbrtowc: Fix cross-compilation guess for AIX.
30962         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30963         guess. Leftover from 2008-12-21.
30964
30965 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30966
30967         init.sh: work around trap limitation of some shells
30968         * tests/init.sh (setup_): Move exit trap outside of shell function.
30969
30970 2010-07-29  Eric Blake  <eblake@redhat.com>
30971
30972         strtod: aid debugging
30973         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30974         understanding why strtod is rejected.
30975
30976 2010-07-28  Bruno Haible  <bruno@clisp.org>
30977
30978         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30979         * lib/unistr/u8-chr.c: Include <string.h>.
30980         * tests/unistr/test-u8-chr.c: Likewise.
30981         * tests/unistr/test-u16-chr.c: Likewise.
30982         * tests/unistr/test-u32-chr.c: Likewise.
30983         * tests/unistr/test-u8-strchr.c: Likewise.
30984         * tests/unistr/test-u16-strchr.c: Likewise.
30985         * tests/unistr/test-u32-strchr.c: Likewise.
30986         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30987         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30988         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30989         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30990
30991 2010-07-28  Bruno Haible  <bruno@clisp.org>
30992
30993         Use spaces for indentation, not tabs.
30994         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30995
30996 2010-07-27  Bruno Haible  <bruno@clisp.org>
30997
30998         mbspcasecmp: Fix function specification.
30999         * lib/string.in.h (mbspcasecmp): Fix specification comment.
31000         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
31001         Reported by Eric Blake <eblake@redhat.com>.
31002
31003 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
31004
31005         timespec: use cast and not conditional, as truncation isn't possible
31006         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
31007         instead of a conditional.  Comment about the situation in more detail.
31008         This undoes most of the 2009-10-29 patch.
31009
31010 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
31011
31012         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
31013         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
31014         * lib/unistr/u8-strchr.c: Likewise.
31015         * modules/unistr/u8-chr: Depend on memchr.
31016
31017         unistr/u*-strchr: add tests
31018         * modules/unistr/u8-strchr-tests: New file.
31019         * modules/unistr/u16-strchr-tests: New file.
31020         * modules/unistr/u32-strchr-tests: New file.
31021         * tests/unistr/test-strchr.h: New file.
31022         * tests/unistr/test-u8-strchr.c: New file.
31023         * tests/unistr/test-u16-strchr.c: New file.
31024         * tests/unistr/test-u32-strchr.c: New file.
31025
31026         unistr/u*-chr: test multibyte sequences more
31027         * tests/unistr/test-chr.h: Do complete testing of the characters in the
31028         test vector.
31029         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
31030         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
31031         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
31032
31033         unistr/u*-chr: test multibyte sequences
31034         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
31035
31036         unistr/u*-chr: prepare for multibyte tests
31037         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
31038         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
31039         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
31040         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
31041         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
31042         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
31043
31044 2010-07-18  Bruno Haible  <bruno@clisp.org>
31045
31046         unistr/u8-strchr: Optimize non-ASCII argument case.
31047         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
31048         because the first byte often matches anyway.
31049         Reported by Pádraig Brady <P@draigbrady.com>.
31050
31051 2010-07-15  Karl Berry  <karl@gnu.org>
31052
31053         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
31054
31055 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
31056
31057         getcwd: on Solaris, work better if ancestors are inaccessible
31058         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
31059         buffer and size, try again with a large buffer.  This works better
31060         on Solaris, since its getcwd succeeds even if the path to the root
31061         is inaccessible, and this is helpful in common cases such as .zfs
31062         hidden directories.  Problem reported by J Chapman Flack in
31063         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
31064         Use system getcwd if it's declared, not merely if it's partly
31065         working; use the partly-working test only to avoid needless effort
31066         if the system getcwd fails.
31067         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
31068         comment that was already obsolete and is now even more obsolete.
31069         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
31070         now might call strdup.
31071
31072 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
31073
31074         pthread: Add enough so that coreutils/src/sort.c compiles.
31075         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
31076         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
31077         gnulib. Include <sched.h> and <time.h>, as per POSIX.
31078         Include <sys/types.h>, in case it defines pthread_t.
31079         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
31080         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
31081         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
31082         (pthread_rwlockattr_t, pthread_spinlock_t):
31083         New typedefs, if HAVE_PTHREAD_T is not defined.
31084         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
31085         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
31086         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
31087         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
31088         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
31089         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
31090         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
31091         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
31092         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
31093         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
31094         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
31095         New macros.
31096         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
31097         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
31098         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
31099         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
31100         (pthread_spin_unlock): New dummy functions.
31101         (pthread_create): Return EAGAIN; don't set errno.
31102         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
31103         require AC_C_INLINE.
31104         * modules/pthread (Depends-on): Add sched, time.
31105         (pthread.h): Use AM_V_GEN.
31106
31107 2010-07-13  Bruno Haible  <bruno@clisp.org>
31108
31109         striconveh: Don't malloc memory if the result buffer is sufficient.
31110         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
31111         buffer if its size is sufficient.
31112         Reported by Ludovic Courtès <ludo@gnu.org>.
31113
31114 2010-07-13  Bruno Haible  <bruno@clisp.org>
31115
31116         strtod: Add safety check.
31117         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
31118
31119 2010-07-12  Bruno Haible  <bruno@clisp.org>
31120
31121         Unify tests that set gl_cv_func_ldexpl_no_libm.
31122         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
31123         gl_FUNC_LDEXPL.
31124         (gl_FUNC_LDEXPL): Invoke it.
31125         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31126
31127 2010-07-12  Bruno Haible  <bruno@clisp.org>
31128
31129         Unify tests that set gl_cv_func_ldexp_no_libm.
31130         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
31131         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
31132         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
31133         (configure.ac): Simply invoke gl_FUNC_LDEXP.
31134         * modules/strtod (Files): Add m4/ldexp.m4.
31135
31136 2010-07-12  Bruno Haible  <bruno@clisp.org>
31137
31138         Unify tests that set gl_cv_func_frexpl_no_libm.
31139         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
31140         gl_FUNC_FREXPL_NO_LIBM.
31141         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
31142         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
31143
31144 2010-07-12  Bruno Haible  <bruno@clisp.org>
31145
31146         Unify tests that set gl_cv_func_frexp_no_libm.
31147         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
31148         gl_FUNC_FREXP_NO_LIBM.
31149         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
31150         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
31151
31152 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31153
31154         memcoll: clarify sizes versus lengths, document better, and tweak perf
31155         * lib/memcoll.c (strcoll_loop, memcoll0):
31156         Improve quality of descriptive comments.  Name variables
31157         consistently as to whether they are lengths (which do not include
31158         terminating null) versus sizes (which do).
31159         * lib/xmemcoll.c (xmemcoll0): Likewise.
31160         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
31161         returned when s1size == 0; this is easier to compile and saves
31162         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
31163
31164 2010-07-12  Bruno Haible  <bruno@clisp.org>
31165
31166         Tests for module '_Exit'.
31167         * modules/_Exit-tests: New file.
31168         * tests/test-_Exit.sh: New file.
31169         * tests/test-_Exit.c: New file.
31170
31171         New module '_Exit'.
31172         * lib/stdlib.in.h (__attribute__): New macro.
31173         (_Exit): New declaration.
31174         * lib/_Exit.c: New file.
31175         * m4/_Exit.m4: New file.
31176         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
31177         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
31178         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
31179         * modules/_Exit: New file.
31180         * tests/test-stdlib-c++.cc (_Exit): Check signature.
31181         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
31182
31183 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
31184
31185         strtod: make it more-accurate typically, and don't require libm
31186         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
31187         Include limits.h.  Don't include string.h.
31188         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
31189         (locale_isspace): New function, so that no casts are needed to
31190         check whether *s is a space.
31191         (ldexp): Provide an unused dummy if not available.
31192         (scale_radix_exp, parse_number, underlying_strtod): New functions.
31193         (strtod): Use them.  This implementation prefers to use the
31194         underlying strtod if available, falling back on our own code
31195         only to fix known bugs.  This is more likely to produce an
31196         accurate result.  Also, it avoids the use of libm functions.
31197         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
31198         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
31199         was absent, but it caused a test failure with coreutils.
31200         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
31201         with libm.
31202         * modules/strtod (Makefile.am, Link): libm is no longer needed.
31203         * modules/strtod-tests (Makefile.am): Likewise.
31204
31205 2010-07-11  Pádraig Brady  <P@draigBrady.com>
31206             Bruno Haible  <bruno@clisp.org>
31207
31208         unistr/u8-strchr: Optimize ASCII argument case.
31209         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
31210
31211 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
31212
31213         (x)memcoll: minor tweaks
31214         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
31215         is after the type that it qualifies.
31216         (memcoll0): Likewise.
31217         * lib/memcoll.h (memcoll0): Likewise.
31218         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
31219         * lib/xmemcoll.h (xmemcoll0): Likewise.
31220         * lib/memcoll.c (memcoll0): Correct the comment.  This function
31221         differs from memcoll in that the NUL byte is part of the argument.
31222         Omit the abort-checks, as performance is a real issue here.  Plus,
31223         the checks were wrong anyway (an off-by-one error).  Omit local
31224         variable 'diff', as it's a bit clearer that way.
31225         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
31226         no longer needed.
31227
31228 2010-07-08  Chen Guo <chenguo4@yahoo.com>
31229
31230         (x)memcoll: speedup when input is known to be NUL delimited
31231         * lib/memcoll.c: Include stdlib.
31232         (memcoll0): New function.
31233         (strcoll_loop): New function, refactored for use in both memcoll
31234         and memcoll0.
31235         * lib/memcoll.h (memcoll0): Add prototype.
31236         * lib/xmemcoll.c (xmemcoll0): New function.
31237         (collate_error): New function, refactored for use in both xmemcoll
31238         and xmemcoll0.
31239         * lib/xmemcoll.h (xmemcoll0): Add prototype.
31240         * m4/memcoll.m4: add inline invocation.
31241
31242 2010-07-06  Pádraig Brady  <P@draigBrady.com>
31243
31244         * build-aux/bootstrap: Remove any local translations
31245         from the translation project synchronization directory,
31246         so that local only translations are not distributed.
31247
31248 2010-07-04  Bruno Haible  <bruno@clisp.org>
31249
31250         fsusage: Clarify which code applies to which platforms.
31251         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
31252         platform.
31253         * lib/fsusage.c (get_fs_usage): Likewise.
31254
31255 2010-07-04  Bruno Haible  <bruno@clisp.org>
31256
31257         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
31258         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
31259         Reported by Martin Lambers <marlam@marlam.de>.
31260
31261 2010-07-04  Jim Meyering  <meyering@redhat.com>
31262
31263         hash: once again explicitly disallow insertion of NULL
31264         * lib/hash.c (hash_insert0): Reinstate just-removed test:
31265         inserting a NULL pointer cannot work with these functions.
31266         Add a comment with details.
31267         This reverts part of the 2010-07-01 commit, 5bef1a35
31268         "hash: extend module to deal with non-pointer keys".
31269
31270 2010-07-01  Bruno Haible  <bruno@clisp.org>
31271
31272         stdbool: Update doc.
31273         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
31274         Info from Christian Weisgerber <naddy@mips.inka.de>.
31275
31276 2010-07-01  Jim Meyering  <meyering@redhat.com>
31277
31278         hash: extend module to deal with non-pointer keys
31279         * lib/hash.c (hash_insert0): New interface, much like hash_insert
31280         but that allows insertion of non-pointer entries.
31281         Do not disallow an ENTRY value of NULL.
31282         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
31283         * lib/hash.h (hash_insert0): Declare.
31284
31285 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
31286
31287         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
31288         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
31289         not present (i.e. with autoconf 2.59 and when using gettextize, not
31290         gnulib), require AC_GNU_SOURCE instead.
31291
31292 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
31293
31294         idpriv-drop: Fix tests.
31295         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
31296         not to the test-idpriv-droptemp program.
31297
31298 2010-06-29  Bruno Haible  <bruno@clisp.org>
31299
31300         string: Fix syntax error with g++ 2.96.
31301         * lib/string.in.h (__pure__): Remove definition.
31302         (_GL_ATTRIBUTE_PURE): New macro.
31303         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
31304         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
31305         Reported by Christian Weisgerber <naddy@mips.inka.de>.
31306
31307 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
31308
31309         unitypes: Fix bug introduced on 2010-05-18.
31310         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
31311
31312 2010-06-22  Eric Blake  <eblake@redhat.com>
31313
31314         memmem: slight optimization
31315         * lib/str-two-way.h (critical_factorization): Update comments.
31316         Reduce work during factorization phase.
31317         Reported by Carlos Bueno <carlos@bueno.org>.
31318
31319 2010-06-21  Bruno Haible  <bruno@clisp.org>
31320
31321         Fix HAVE_CALLOC_POSIX misnomer.
31322         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
31323         !HAVE_CALLOC_POSIX.
31324         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
31325         HAVE_CALLOC_POSIX.
31326         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
31327         instead of HAVE_CALLOC_POSIX.
31328         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
31329         HAVE_CALLOC_POSIX.
31330
31331         Use modern idiom for calloc() replacement.
31332         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
31333         AC_FUNC_CALLOC.
31334         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
31335         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
31336         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31337         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
31338         (gl_REPLACE_CALLOC): New macro.
31339
31340 2010-06-21  Bruno Haible  <bruno@clisp.org>
31341
31342         Fix HAVE_REALLOC_POSIX misnomer.
31343         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
31344         !HAVE_REALLOC_POSIX.
31345         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
31346         HAVE_REALLOC_POSIX.
31347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
31348         instead of HAVE_REALLOC_POSIX.
31349         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
31350         HAVE_REALLOC_POSIX.
31351
31352         Use modern idiom for realloc() replacement.
31353         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
31354         AC_FUNC_REALLOC.
31355         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
31356         Autoconf's AC_FUNC_REALLOC.
31357         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31358         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
31359         (gl_REPLACE_REALLOC): New macro.
31360         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31361
31362 2010-06-21  Bruno Haible  <bruno@clisp.org>
31363
31364         Fix HAVE_MALLOC_POSIX misnomer.
31365         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
31366         !HAVE_MALLOC_POSIX.
31367         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
31368         HAVE_MALLOC_POSIX.
31369         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
31370         instead of HAVE_MALLOC_POSIX.
31371         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
31372         HAVE_MALLOC_POSIX.
31373
31374         Use modern idiom for malloc() replacement.
31375         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
31376         AC_FUNC_MALLOC.
31377         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
31378         Autoconf's AC_FUNC_MALLOC.
31379         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
31380         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
31381         (gl_REPLACE_MALLOC): New macro.
31382         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
31383
31384 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
31385
31386         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
31387         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
31388         This macro takes 3 arguments, not 4.
31389
31390 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
31391
31392         ipv6: fix detection under mingw
31393         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
31394         in6_addr.
31395
31396 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
31397
31398         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
31399         that strtod() works when cross-compiling to a glibc version known
31400         to work.
31401
31402 2010-06-15  Bruno Haible  <bruno@clisp.org>
31403
31404         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
31405
31406 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
31407
31408         select: Correct timeout.
31409         * lib/select.c (rpl_select): Compute wait_timeout correctly.
31410
31411 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
31412
31413         git-version-gen: init shell var to avoid env var influence
31414         * build-aux/git-version-gen (v): Init shell var to empty.
31415
31416 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
31417
31418         priv-set: Don't assume that priv.h exists merely because getppriv does.
31419         See Jan Andersen's bug report about AIX 5L in
31420         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
31421         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
31422         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
31423         * lib/priv-set.h: Likewise.
31424         * tests/test-priv-set.c: Likewise.
31425
31426 2010-06-13  Bruno Haible  <bruno@clisp.org>
31427
31428         relocatable: Make it easier to test whether to install wrappers.
31429         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
31430         RELOCATABLE_VIA_WRAPPER.
31431
31432 2010-06-13  Bruno Haible  <bruno@clisp.org>
31433
31434         gnulib-tool: Display specified modules and dependencies differently.
31435         * gnulib-tool (func_show_module_list): New function.
31436         (func_import, func_create_testdir): Invoke it.
31437         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31438
31439 2010-06-13  Bruno Haible  <bruno@clisp.org>
31440
31441         gnulib-tool: Align code of func_import and func_create_testdir.
31442         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
31443         specified_modules.
31444
31445 2010-06-12  Jim Meyering  <meyering@redhat.com>
31446
31447         test-inttostr: avoid spurious failure on Solaris 9
31448         * tests/test-inttostr.c (main): Skip the test when snprintf fails
31449         to accept "%ju".  Reported by Bruno Haible.
31450
31451 2010-06-11  Jim Meyering  <meyering@redhat.com>
31452
31453         test-sys_socket: mark variables as used more readably
31454         * tests/test-sys_socket.c (main): Mark otherwise unused variables
31455         as "used" explicitly via (void) statement casts.  This is more
31456         readable than using them in an artificial return expression.
31457         Suggestion from Bruno Haible.
31458
31459 2010-06-11  Bruno Haible  <bruno@clisp.org>
31460
31461         Avoid some more warnings from "gcc -Wwrite-strings".
31462         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
31463         to 'const char *'.
31464         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
31465         * tests/test-c-strcasestr.c (main): Likewise.
31466         * tests/test-mbscasestr1.c (main): Likewise.
31467         * tests/test-mbscasestr2.c (main): Likewise.
31468         * tests/test-memmem.c (main): Likewise.
31469         * tests/test-strstr.c (main): Likewise.
31470         * tests/test-strcasestr.c (main): Likewise.
31471
31472 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31473
31474         init.sh: change framework_failure_ to fail with status 99, not 1
31475         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
31476         automake's parallel-tests rule that this is an unexpected failure,
31477         even if the test is listed in XFAIL_TESTS.
31478
31479 2010-06-11  Jim Meyering  <meyering@redhat.com>
31480
31481         test-inttostr: avoid warnings about 4-6KB literal strings
31482         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
31483         Include "macros.h", for its definition of ASSERT.
31484         (CK): s/assert/ASSERT/
31485         * modules/inttostr-tests (Files): Add macros.h.
31486
31487         init.sh: don't use $ME_ or skip_ before they are defined
31488         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
31489         their first uses.  Also hoist their companions: warn_, fail_,
31490         framework_failure_, $stderr_fileno.  Prompted by a patch from
31491         Stefano Lattarini.
31492
31493         test-sys_socket: avoid set-but-not-used warnings from gcc
31494         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
31495         avoid warning about set-but-not-used variables.
31496
31497         test-xvasprintf: avoid 'const' discard warnings
31498         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
31499         "const" when assigning from literal strings.
31500         (test_xasprintf): Add "void" in function argument list to placate
31501         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
31502
31503         tests: avoid compilation warnings in argmatch and exclude tests...
31504         in packages that define ARGMATCH_DIE_DECL, like coreutils.
31505         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
31506         Since it always exits, declare with the "noreturn" attribute.
31507         * tests/test-argmatch.c: Likewise.
31508
31509         tests: avoid 'const' discard warnings in mbsstr tests
31510         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
31511         * tests/test-mbsstr2.c (main): Likewise.
31512
31513         test-verify: avoid warning from gcc's -Wmissing-declarations
31514         * tests/test-verify.c (function): Declare to be static.
31515
31516         test-inttostr.c: include <string.h> for use of strcmp
31517         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
31518
31519         test-linkat: avoid failed assertion on "other" architectures
31520         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
31521         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
31522         sparc: https://bugs.launchpad.net/bugs/591968
31523
31524 2010-06-11  Jim Meyering  <meyering@redhat.com>
31525
31526         printf.m4: avoid autoconf's "Expanded Before Required" warning
31527         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
31528         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
31529         autoconf warning.
31530
31531 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
31532
31533         Replacement header templates are now named with ".in", not "_".
31534         * doc/gnulib-intro.texi: Correct.
31535
31536 2010-06-10  Jim Meyering  <meyering@redhat.com>
31537
31538         inttostr-tests: depend on snprintf, not snprintf-posix
31539         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
31540         snprintf-posix, to avoid this aclocal failure:
31541           missing file gnulib-tests/vasnprintf.c
31542           configure.ac:45: error: expected source file, required through \
31543           AC_LIBSOURCES, not found
31544
31545 2010-06-10  Jim Meyering  <meyering@redhat.com>
31546
31547         inttostr: add a new function, inttostr, and tests
31548         The namesake function was not available.  The existence of the
31549         template file, inttostr.c makes its addition nontrivial.
31550         * lib/anytostr.c: Rename from inttostr.c.
31551         (anytostr): Rename from inttostr.
31552         * lib/inttostr.c: New file.
31553         * modules/inttostr (Files): Add anytostr.c.
31554         (Makefile.am): Set lib_SOURCES instead of ...
31555         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
31556         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
31557         * lib/offtostr.c: Likewise.
31558         * lib/uinttostr.c: Likewise.
31559         * lib/umaxtostr.c: Likewise.
31560         * modules/inttostr-tests: New file.
31561         * tests/test-inttostr.c: New file.  Test these functions.
31562
31563 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
31564             Bruno Haible  <bruno@clisp.org>
31565
31566         Add "Extending Gnulib" chapter to manual.
31567         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
31568         chapter.
31569         (Extending Gnulib): New chapter.
31570         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
31571         chapter.
31572
31573 2010-06-09  Bruno Haible  <bruno@clisp.org>
31574
31575         Avoid relocwrapper link errors due to gnulib replacement functions.
31576         * lib/areadlink.c: Use the system's malloc, realloc functions.
31577         (areadlink): Set errno to ENOMEM explicitly.
31578         * modules/areadlink (Depends-on): Remove malloc-posix.
31579         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31580
31581 2010-06-09  Bruno Haible  <bruno@clisp.org>
31582
31583         Avoid relocwrapper link errors due to gnulib replacement functions.
31584         * lib/canonicalize-lgpl.c: Use the system's malloc function.
31585         * lib/malloca.c: Likewise.
31586         * lib/relocatable.c: Likewise.
31587         * lib/progreloc.c: Use the system's malloc, sprintf functions.
31588         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
31589         * lib/setenv.c: Use the system's malloc, realloc functions.
31590         * lib/strerror.c: Use the system's sprintf function.
31591         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31592
31593 2010-06-04  Bruno Haible  <bruno@clisp.org>
31594
31595         Prefer documented low-level autoconf macro names.
31596         * m4/lib-link.m4: Use m4_translit instead of translit.
31597         * m4/environ.m4: Likewise.
31598         * m4/mathfunc.m4: Likewise.
31599         * m4/onceonly.m4: Likewise.
31600         * m4/stdint.m4: Likewise.
31601         Suggested by Eric Blake.
31602
31603 2010-06-04  Martin Lambers  <marlam@marlam.de>
31604             Bruno Haible  <bruno@clisp.org>
31605
31606         havelib: Allow library names with '+' characters.
31607         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31608         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
31609
31610 2010-06-09  Bruno Haible  <bruno@clisp.org>
31611
31612         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
31613         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
31614         realloc failed.
31615
31616 2010-06-08  Peter Simons  <simons@cryp.to>
31617
31618         maint.mk: make the news-check rule more configurable
31619         * top/maint.mk (news-check-lines-spec): New variable.
31620         (news-check): Use "sed -n 1,10p" in place of "head".
31621
31622 2010-06-07  Jim Meyering  <meyering@redhat.com>
31623
31624         do-release-commit-and-tag: fix typo in --help
31625         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
31626
31627         regex: avoid new dead-code warning with gcc-4.6.0
31628         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
31629         if-block containing a while-loop.  It's been unused for at least
31630         5 years.
31631
31632 2010-06-05  Bruno Haible  <bruno@clisp.org>
31633
31634         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
31635         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
31636
31637 2010-06-04  Bruno Haible  <bruno@clisp.org>
31638
31639         Update to GNU gettext 0.18.1.
31640         * modules/gettext (configure.ac): Require gettext infrastructure from
31641         version 0.18.1.
31642
31643 2010-06-03  Bruno Haible  <bruno@clisp.org>
31644
31645         Don't use AC_LIBOBJ with file names in subdirectories.
31646         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
31647         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
31648         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
31649         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
31650         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
31651         gl_LIBUNISTRING_LIBSOURCE.
31652         (Makefile.am): Augment lib_SOURCES here, conditionally.
31653         * NEWS: Drop requirement for Automake option 'subdir-objects'.
31654
31655 2010-06-03  Bruno Haible  <bruno@clisp.org>
31656
31657         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
31658         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
31659         expansion does not end with a newline.
31660         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
31661         unnecessary newline.
31662
31663 2010-06-03  Bruno Haible  <bruno@clisp.org>
31664
31665         Reduce dependencies.
31666         * tests/test-quotearg.h: New file, extracted from
31667         tests/test-quotearg.c.
31668         * tests/test-quotearg-simple.c: New file, extracted from
31669         tests/test-quotearg.c.
31670         * tests/test-quotearg.c: Don't include <ctype.h>.
31671         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
31672         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
31673         use_quote_double_quotes, use_quotearg_colon): Moved to
31674         tests/test-quotearg.h.
31675         (results_g, flag_results, custom_quotes, custom_results): Moved
31676         to tests/test-quotearg-simple.c.
31677         (main): Moved the part that does not depend on gettext to
31678         tests/test-quotearg-simple.c. Return 77 if the test cannot be
31679         performed.
31680         * modules/quotearg-simple: New file.
31681         * modules/quotearg-simple-tests: New file.
31682         * modules/quotearg (Depends-on): Add quotearg-simple.
31683         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
31684         (Files): Add tests/test-quotearg.h.
31685         Reported by Paolo Bonzini.
31686
31687 2010-06-03  Bruno Haible  <bruno@clisp.org>
31688
31689         Reduce dependencies.
31690         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
31691
31692 2010-06-03  Bruno Haible  <bruno@clisp.org>
31693
31694         time: Undefine more broken macros.
31695         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
31696         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
31697         Reported by Eric Blake.
31698
31699 2010-06-03  Bruno Haible  <bruno@clisp.org>
31700
31701         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
31702         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
31703         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
31704         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
31705         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
31706         Reported by Ludovic Courtès <ludo@gnu.org>.
31707
31708 2010-06-02  Eric Blake  <eblake@redhat.com>
31709
31710         time: work with mingw + pthreads-win32 library
31711         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
31712         if timespec is defined only in pthread.h.
31713         * modules/time (Makefile.am): Substitute it.
31714         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
31715         <pthread.h>, when needed.
31716         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
31717         from the library.
31718
31719 2010-05-31  Bruno Haible  <bruno@clisp.org>
31720
31721         Avoid expanding two macros in the wrong order.
31722         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
31723         gl_LIBUNISTRING if it is defined.
31724         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
31725         autoconf >= 2.64.
31726         Reported by Ludovic Courtès <ludo@gnu.org>.
31727
31728 2010-05-27  Jim Meyering  <meyering@redhat.com>
31729
31730         maint.mk: also prohibit "#undef" of always-defined symbols
31731         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
31732         Allow more than one space before the symbol name.
31733         (sc_prohibit_always-defined_macros): Use grep's -E, now that
31734         the regexp uses alternation.
31735
31736 2010-05-26  Eric Blake  <eblake@redhat.com>
31737
31738         maint.mk: avoid echo -e
31739         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
31740         Convert all uses of echo -* to printf.
31741         Reported by Matthias Bolte.
31742
31743 2010-05-25  Bruno Haible  <bruno@clisp.org>
31744
31745         Update to GNU gettext 0.18, part 2.
31746         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
31747         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
31748
31749 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31750
31751         Add missing include in test-pwrite.c.
31752         * tests/test-pwrite.c: Include string.h, for strcmp.
31753
31754 2010-05-24  Bruno Haible  <bruno@clisp.org>
31755
31756         * NEWS: Mention requirement for Automake option 'subdir-objects'.
31757
31758 2010-05-24  Bruno Haible  <bruno@clisp.org>
31759
31760         Don't use conversion with transliteration in u{8,16,32}_strcoll.
31761         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
31762         iconveh_error argument.
31763         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
31764         U_STRCONV_TO_LOCALE.
31765         * lib/unistr/u16-strcoll.c: Likewise.
31766         * lib/unistr/u32-strcoll.c: Likewise.
31767         * modules/unistr/u8-strcoll (Depends-on): Add
31768         uniconv/u8-strconv-to-enc, localcharset. Remove
31769         uniconv/u8-strconv-to-locale.
31770         (configure.ac): Bump version number.
31771         * modules/unistr/u16-strcoll (Depends-on): Add
31772         uniconv/u16-strconv-to-enc, localcharset. Remove
31773         uniconv/u16-strconv-to-locale.
31774         (configure.ac): Bump version number.
31775         * modules/unistr/u32-strcoll (Depends-on): Add
31776         uniconv/u32-strconv-to-enc, localcharset. Remove
31777         uniconv/u32-strconv-to-locale.
31778         (configure.ac): Bump version number.
31779
31780 2010-05-24  Bruno Haible  <bruno@clisp.org>
31781
31782         Avoid a test failure on NetBSD 5.0.
31783         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
31784         an iconv() bug.
31785
31786 2010-05-24  Bruno Haible  <bruno@clisp.org>
31787
31788         Adjust #include directive style.
31789         * modules/regex (Includes): Recommend to write <regex.h>.
31790
31791 2010-05-24  Bruno Haible  <bruno@clisp.org>
31792
31793         regex: Don't require alloca.
31794         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
31795         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
31796         only inside if (0).
31797
31798 2010-05-23  Jim Meyering  <meyering@redhat.com>
31799
31800         test-renameat.c: include <sys/stat.h>
31801         * tests/test-renameat.c: Include <sys/stat.h>; required for
31802         definition of S_IS* macros.
31803
31804 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
31805
31806         Update maintainer documentation for 'relocatable-prog' module.
31807         * doc/relocatable-maint.texi: Update.
31808         Comments by Bruno Haible.
31809
31810 2010-05-23  Bruno Haible  <bruno@clisp.org>
31811
31812         git-merge-changelog: Enable --split-merged-entry by default.
31813         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31814         (usage): Don't mention this option any more.
31815         Reported by Ralf Wildenhues.
31816
31817 2010-05-23  Jim Meyering  <meyering@redhat.com>
31818
31819         test-pwrite: do not leave behind a test file named "out"
31820         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31821         The trivial-looking use of init.sh is really necessary.
31822         It ensures that the temporary file, "out", is created in
31823         a temporary directory, and removed upon termination.
31824         * tests/test-pwrite.sh: Re-add file.
31825         * modules/pwrite-tests: Reference it.
31826
31827 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31828
31829         Fix output redirection buglet in init.sh.
31830         * tests/init.sh: Fix redirection of stderr.
31831
31832 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31833
31834         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31835
31836 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31837
31838         * modules/valgrind-tests: New file.
31839         * m4/valgrind-tests.m4: New file.
31840         * doc/valgrind-tests.texi: New file.
31841         * doc/gnulib.texi (Running self-tests under valgrind): New
31842         section.
31843
31844 2010-05-19  Bruno Haible  <bruno@clisp.org>
31845
31846         Clean up dead code in recent commit.
31847         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31848         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31849         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31850         Suggested by Paolo Bonzini.
31851
31852 2010-05-19  Bruno Haible  <bruno@clisp.org>
31853
31854         Avoid valgrind error reports from libunistring.
31855         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31856         * modules/libunistring (Files): Add it.
31857         * modules/libunistring-optional (Files): Likewise.
31858
31859 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31860             Bruno Haible  <bruno@clisp.org>
31861
31862         New module 'libunistring-optional'.
31863         * modules/libunistring-optional: New file.
31864         * m4/libunistring-base.m4: New file.
31865         * m4/libunistring-optional.m4: New file.
31866         * lib/unicase.in.h: Renamed from lib/unicase.h.
31867         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31868         * lib/unictype.in.h: Renamed from lib/unictype.h.
31869         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31870         * lib/uniname.in.h: Renamed from lib/uniname.h.
31871         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31872         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31873         * lib/unistr.in.h: Renamed from lib/unistr.h.
31874         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31875         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31876         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31877         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31878         gl_LIBUNISTRING. If the library was found, determine the installed
31879         version and set LIBUNISTRING_VERSION.
31880         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31881         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31882         handle a configuration option --with-included-libunistring.
31883         * modules/libunistring (Files): Add m4/absolute-header.m4.
31884         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31885         Add m4/libunistring-base.m4.
31886         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31887         (Makefile.am): Build unicase.h from unicase.in.h.
31888         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31889         Add m4/libunistring-base.m4.
31890         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31891         (Makefile.am): Build uniconv.h from uniconv.in.h.
31892         * modules/unictype/base (Files): Use unictype.in.h instead of
31893         unictype.h. Add m4/libunistring-base.m4.
31894         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31895         (Makefile.am): Build unictype.h from unictype.in.h.
31896         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31897         Add m4/libunistring-base.m4.
31898         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31899         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31900         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31901         Add m4/libunistring-base.m4.
31902         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31903         (Makefile.am): Build uniname.h from uniname.in.h.
31904         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31905         Add m4/libunistring-base.m4.
31906         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31907         (Makefile.am): Build uninorm.h from uninorm.in.h.
31908         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31909         unistdio.h. Add m4/libunistring-base.m4.
31910         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31911         (Makefile.am): Build unistdio.h from unistdio.in.h.
31912         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31913         Add m4/libunistring-base.m4.
31914         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31915         (Makefile.am): Build unistr.h from unistr.in.h.
31916         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31917         Add m4/libunistring-base.m4.
31918         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31919         (Makefile.am): Build unitypes.h from unitypes.in.h.
31920         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31921         Add m4/libunistring-base.m4.
31922         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31923         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31924         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31925         uniwidth.h. Add m4/libunistring-base.m4.
31926         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31927         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31928         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31929         instead of augmenting lib_SOURCES.
31930         * modules/unicase/empty-suffix-context: Likewise.
31931         * modules/unicase/locale-language: Likewise.
31932         * modules/unicase/tolower: Likewise.
31933         * modules/unicase/totitle: Likewise.
31934         * modules/unicase/toupper: Likewise.
31935         * modules/unicase/u8-casecmp: Likewise.
31936         * modules/unicase/u8-casecoll: Likewise.
31937         * modules/unicase/u8-casefold: Likewise.
31938         * modules/unicase/u8-casexfrm: Likewise.
31939         * modules/unicase/u8-ct-casefold: Likewise.
31940         * modules/unicase/u8-ct-tolower: Likewise.
31941         * modules/unicase/u8-ct-totitle: Likewise.
31942         * modules/unicase/u8-ct-toupper: Likewise.
31943         * modules/unicase/u8-is-cased: Likewise.
31944         * modules/unicase/u8-is-casefolded: Likewise.
31945         * modules/unicase/u8-is-lowercase: Likewise.
31946         * modules/unicase/u8-is-titlecase: Likewise.
31947         * modules/unicase/u8-is-uppercase: Likewise.
31948         * modules/unicase/u8-prefix-context: Likewise.
31949         * modules/unicase/u8-suffix-context: Likewise.
31950         * modules/unicase/u8-tolower: Likewise.
31951         * modules/unicase/u8-totitle: Likewise.
31952         * modules/unicase/u8-toupper: Likewise.
31953         * modules/unicase/u16-casecmp: Likewise.
31954         * modules/unicase/u16-casecoll: Likewise.
31955         * modules/unicase/u16-casefold: Likewise.
31956         * modules/unicase/u16-casexfrm: Likewise.
31957         * modules/unicase/u16-ct-casefold: Likewise.
31958         * modules/unicase/u16-ct-tolower: Likewise.
31959         * modules/unicase/u16-ct-totitle: Likewise.
31960         * modules/unicase/u16-ct-toupper: Likewise.
31961         * modules/unicase/u16-is-cased: Likewise.
31962         * modules/unicase/u16-is-casefolded: Likewise.
31963         * modules/unicase/u16-is-lowercase: Likewise.
31964         * modules/unicase/u16-is-titlecase: Likewise.
31965         * modules/unicase/u16-is-uppercase: Likewise.
31966         * modules/unicase/u16-prefix-context: Likewise.
31967         * modules/unicase/u16-suffix-context: Likewise.
31968         * modules/unicase/u16-tolower: Likewise.
31969         * modules/unicase/u16-totitle: Likewise.
31970         * modules/unicase/u16-toupper: Likewise.
31971         * modules/unicase/u32-casecmp: Likewise.
31972         * modules/unicase/u32-casecoll: Likewise.
31973         * modules/unicase/u32-casefold: Likewise.
31974         * modules/unicase/u32-casexfrm: Likewise.
31975         * modules/unicase/u32-ct-casefold: Likewise.
31976         * modules/unicase/u32-ct-tolower: Likewise.
31977         * modules/unicase/u32-ct-totitle: Likewise.
31978         * modules/unicase/u32-ct-toupper: Likewise.
31979         * modules/unicase/u32-is-cased: Likewise.
31980         * modules/unicase/u32-is-casefolded: Likewise.
31981         * modules/unicase/u32-is-lowercase: Likewise.
31982         * modules/unicase/u32-is-titlecase: Likewise.
31983         * modules/unicase/u32-is-uppercase: Likewise.
31984         * modules/unicase/u32-prefix-context: Likewise.
31985         * modules/unicase/u32-suffix-context: Likewise.
31986         * modules/unicase/u32-tolower: Likewise.
31987         * modules/unicase/u32-totitle: Likewise.
31988         * modules/unicase/u32-toupper: Likewise.
31989         * modules/unicase/ulc-casecmp: Likewise.
31990         * modules/unicase/ulc-casecoll: Likewise.
31991         * modules/unicase/ulc-casexfrm: Likewise.
31992         * modules/uniconv/u8-conv-from-enc: Likewise.
31993         * modules/uniconv/u8-conv-to-enc: Likewise.
31994         * modules/uniconv/u8-strconv-from-enc: Likewise.
31995         * modules/uniconv/u8-strconv-from-locale: Likewise.
31996         * modules/uniconv/u8-strconv-to-enc: Likewise.
31997         * modules/uniconv/u8-strconv-to-locale: Likewise.
31998         * modules/uniconv/u16-conv-from-enc: Likewise.
31999         * modules/uniconv/u16-conv-to-enc: Likewise.
32000         * modules/uniconv/u16-strconv-from-enc: Likewise.
32001         * modules/uniconv/u16-strconv-from-locale: Likewise.
32002         * modules/uniconv/u16-strconv-to-enc: Likewise.
32003         * modules/uniconv/u16-strconv-to-locale: Likewise.
32004         * modules/uniconv/u32-conv-from-enc: Likewise.
32005         * modules/uniconv/u32-conv-to-enc: Likewise.
32006         * modules/uniconv/u32-strconv-from-enc: Likewise.
32007         * modules/uniconv/u32-strconv-from-locale: Likewise.
32008         * modules/uniconv/u32-strconv-to-enc: Likewise.
32009         * modules/uniconv/u32-strconv-to-locale: Likewise.
32010         * modules/unictype/bidicategory-byname: Likewise.
32011         * modules/unictype/bidicategory-name: Likewise.
32012         * modules/unictype/bidicategory-of: Likewise.
32013         * modules/unictype/bidicategory-test: Likewise.
32014         * modules/unictype/block-list: Likewise.
32015         * modules/unictype/block-test: Likewise.
32016         * modules/unictype/category-C: Likewise.
32017         * modules/unictype/category-Cc: Likewise.
32018         * modules/unictype/category-Cf: Likewise.
32019         * modules/unictype/category-Cn: Likewise.
32020         * modules/unictype/category-Co: Likewise.
32021         * modules/unictype/category-Cs: Likewise.
32022         * modules/unictype/category-L: Likewise.
32023         * modules/unictype/category-Ll: Likewise.
32024         * modules/unictype/category-Lm: Likewise.
32025         * modules/unictype/category-Lo: Likewise.
32026         * modules/unictype/category-Lt: Likewise.
32027         * modules/unictype/category-Lu: Likewise.
32028         * modules/unictype/category-M: Likewise.
32029         * modules/unictype/category-Mc: Likewise.
32030         * modules/unictype/category-Me: Likewise.
32031         * modules/unictype/category-Mn: Likewise.
32032         * modules/unictype/category-N: Likewise.
32033         * modules/unictype/category-Nd: Likewise.
32034         * modules/unictype/category-Nl: Likewise.
32035         * modules/unictype/category-No: Likewise.
32036         * modules/unictype/category-P: Likewise.
32037         * modules/unictype/category-Pc: Likewise.
32038         * modules/unictype/category-Pd: Likewise.
32039         * modules/unictype/category-Pe: Likewise.
32040         * modules/unictype/category-Pf: Likewise.
32041         * modules/unictype/category-Pi: Likewise.
32042         * modules/unictype/category-Po: Likewise.
32043         * modules/unictype/category-Ps: Likewise.
32044         * modules/unictype/category-S: Likewise.
32045         * modules/unictype/category-Sc: Likewise.
32046         * modules/unictype/category-Sk: Likewise.
32047         * modules/unictype/category-Sm: Likewise.
32048         * modules/unictype/category-So: Likewise.
32049         * modules/unictype/category-Z: Likewise.
32050         * modules/unictype/category-Zl: Likewise.
32051         * modules/unictype/category-Zp: Likewise.
32052         * modules/unictype/category-Zs: Likewise.
32053         * modules/unictype/category-and: Likewise.
32054         * modules/unictype/category-and-not: Likewise.
32055         * modules/unictype/category-byname: Likewise.
32056         * modules/unictype/category-name: Likewise.
32057         * modules/unictype/category-none: Likewise.
32058         * modules/unictype/category-of: Likewise.
32059         * modules/unictype/category-or: Likewise.
32060         * modules/unictype/category-test: Likewise.
32061         * modules/unictype/combining-class: Likewise.
32062         * modules/unictype/ctype-alnum: Likewise.
32063         * modules/unictype/ctype-alpha: Likewise.
32064         * modules/unictype/ctype-blank: Likewise.
32065         * modules/unictype/ctype-cntrl: Likewise.
32066         * modules/unictype/ctype-digit: Likewise.
32067         * modules/unictype/ctype-graph: Likewise.
32068         * modules/unictype/ctype-lower: Likewise.
32069         * modules/unictype/ctype-print: Likewise.
32070         * modules/unictype/ctype-punct: Likewise.
32071         * modules/unictype/ctype-space: Likewise.
32072         * modules/unictype/ctype-upper: Likewise.
32073         * modules/unictype/ctype-xdigit: Likewise.
32074         * modules/unictype/decimal-digit: Likewise.
32075         * modules/unictype/digit: Likewise.
32076         * modules/unictype/mirror: Likewise.
32077         * modules/unictype/numeric: Likewise.
32078         * modules/unictype/property-alphabetic: Likewise.
32079         * modules/unictype/property-ascii-hex-digit: Likewise.
32080         * modules/unictype/property-bidi-arabic-digit: Likewise.
32081         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
32082         * modules/unictype/property-bidi-block-separator: Likewise.
32083         * modules/unictype/property-bidi-boundary-neutral: Likewise.
32084         * modules/unictype/property-bidi-common-separator: Likewise.
32085         * modules/unictype/property-bidi-control: Likewise.
32086         * modules/unictype/property-bidi-embedding-or-override: Likewise.
32087         * modules/unictype/property-bidi-eur-num-separator: Likewise.
32088         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
32089         * modules/unictype/property-bidi-european-digit: Likewise.
32090         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
32091         * modules/unictype/property-bidi-left-to-right: Likewise.
32092         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
32093         * modules/unictype/property-bidi-other-neutral: Likewise.
32094         * modules/unictype/property-bidi-pdf: Likewise.
32095         * modules/unictype/property-bidi-segment-separator: Likewise.
32096         * modules/unictype/property-bidi-whitespace: Likewise.
32097         * modules/unictype/property-byname: Likewise.
32098         * modules/unictype/property-combining: Likewise.
32099         * modules/unictype/property-composite: Likewise.
32100         * modules/unictype/property-currency-symbol: Likewise.
32101         * modules/unictype/property-dash: Likewise.
32102         * modules/unictype/property-decimal-digit: Likewise.
32103         * modules/unictype/property-default-ignorable-code-point: Likewise.
32104         * modules/unictype/property-deprecated: Likewise.
32105         * modules/unictype/property-diacritic: Likewise.
32106         * modules/unictype/property-extender: Likewise.
32107         * modules/unictype/property-format-control: Likewise.
32108         * modules/unictype/property-grapheme-base: Likewise.
32109         * modules/unictype/property-grapheme-extend: Likewise.
32110         * modules/unictype/property-grapheme-link: Likewise.
32111         * modules/unictype/property-hex-digit: Likewise.
32112         * modules/unictype/property-hyphen: Likewise.
32113         * modules/unictype/property-id-continue: Likewise.
32114         * modules/unictype/property-id-start: Likewise.
32115         * modules/unictype/property-ideographic: Likewise.
32116         * modules/unictype/property-ids-binary-operator: Likewise.
32117         * modules/unictype/property-ids-trinary-operator: Likewise.
32118         * modules/unictype/property-ignorable-control: Likewise.
32119         * modules/unictype/property-iso-control: Likewise.
32120         * modules/unictype/property-join-control: Likewise.
32121         * modules/unictype/property-left-of-pair: Likewise.
32122         * modules/unictype/property-line-separator: Likewise.
32123         * modules/unictype/property-logical-order-exception: Likewise.
32124         * modules/unictype/property-lowercase: Likewise.
32125         * modules/unictype/property-math: Likewise.
32126         * modules/unictype/property-non-break: Likewise.
32127         * modules/unictype/property-not-a-character: Likewise.
32128         * modules/unictype/property-numeric: Likewise.
32129         * modules/unictype/property-other-alphabetic: Likewise.
32130         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
32131         * modules/unictype/property-other-grapheme-extend: Likewise.
32132         * modules/unictype/property-other-id-continue: Likewise.
32133         * modules/unictype/property-other-id-start: Likewise.
32134         * modules/unictype/property-other-lowercase: Likewise.
32135         * modules/unictype/property-other-math: Likewise.
32136         * modules/unictype/property-other-uppercase: Likewise.
32137         * modules/unictype/property-paired-punctuation: Likewise.
32138         * modules/unictype/property-paragraph-separator: Likewise.
32139         * modules/unictype/property-pattern-syntax: Likewise.
32140         * modules/unictype/property-pattern-white-space: Likewise.
32141         * modules/unictype/property-private-use: Likewise.
32142         * modules/unictype/property-punctuation: Likewise.
32143         * modules/unictype/property-quotation-mark: Likewise.
32144         * modules/unictype/property-radical: Likewise.
32145         * modules/unictype/property-sentence-terminal: Likewise.
32146         * modules/unictype/property-soft-dotted: Likewise.
32147         * modules/unictype/property-space: Likewise.
32148         * modules/unictype/property-terminal-punctuation: Likewise.
32149         * modules/unictype/property-test: Likewise.
32150         * modules/unictype/property-titlecase: Likewise.
32151         * modules/unictype/property-unassigned-code-value: Likewise.
32152         * modules/unictype/property-unified-ideograph: Likewise.
32153         * modules/unictype/property-uppercase: Likewise.
32154         * modules/unictype/property-variation-selector: Likewise.
32155         * modules/unictype/property-white-space: Likewise.
32156         * modules/unictype/property-xid-continue: Likewise.
32157         * modules/unictype/property-xid-start: Likewise.
32158         * modules/unictype/property-zero-width: Likewise.
32159         * modules/unictype/scripts: Likewise.
32160         * modules/unictype/syntax-c-ident: Likewise.
32161         * modules/unictype/syntax-c-whitespace: Likewise.
32162         * modules/unictype/syntax-java-ident: Likewise.
32163         * modules/unictype/syntax-java-whitespace: Likewise.
32164         * modules/unilbrk/u8-possible-linebreaks: Likewise.
32165         * modules/unilbrk/u8-width-linebreaks: Likewise.
32166         * modules/unilbrk/u16-possible-linebreaks: Likewise.
32167         * modules/unilbrk/u16-width-linebreaks: Likewise.
32168         * modules/unilbrk/u32-possible-linebreaks: Likewise.
32169         * modules/unilbrk/u32-width-linebreaks: Likewise.
32170         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
32171         * modules/unilbrk/ulc-width-linebreaks: Likewise.
32172         * modules/uniname/uniname: Likewise.
32173         * modules/uninorm/canonical-decomposition: Likewise.
32174         * modules/uninorm/composition: Likewise.
32175         * modules/uninorm/decomposing-form: Likewise.
32176         * modules/uninorm/decomposition: Likewise.
32177         * modules/uninorm/filter: Likewise.
32178         * modules/uninorm/nfc: Likewise.
32179         * modules/uninorm/nfd: Likewise.
32180         * modules/uninorm/nfkc: Likewise.
32181         * modules/uninorm/nfkd: Likewise.
32182         * modules/uninorm/u8-normalize: Likewise.
32183         * modules/uninorm/u8-normcmp: Likewise.
32184         * modules/uninorm/u8-normcoll: Likewise.
32185         * modules/uninorm/u8-normxfrm: Likewise.
32186         * modules/uninorm/u16-normalize: Likewise.
32187         * modules/uninorm/u16-normcmp: Likewise.
32188         * modules/uninorm/u16-normcoll: Likewise.
32189         * modules/uninorm/u16-normxfrm: Likewise.
32190         * modules/uninorm/u32-normalize: Likewise.
32191         * modules/uninorm/u32-normcmp: Likewise.
32192         * modules/uninorm/u32-normcoll: Likewise.
32193         * modules/uninorm/u32-normxfrm: Likewise.
32194         * modules/unistdio/u8-asnprintf: Likewise.
32195         * modules/unistdio/u8-asprintf: Likewise.
32196         * modules/unistdio/u8-snprintf: Likewise.
32197         * modules/unistdio/u8-sprintf: Likewise.
32198         * modules/unistdio/u8-u8-asnprintf: Likewise.
32199         * modules/unistdio/u8-u8-asprintf: Likewise.
32200         * modules/unistdio/u8-u8-snprintf: Likewise.
32201         * modules/unistdio/u8-u8-sprintf: Likewise.
32202         * modules/unistdio/u8-u8-vasnprintf: Likewise.
32203         * modules/unistdio/u8-u8-vasprintf: Likewise.
32204         * modules/unistdio/u8-u8-vsnprintf: Likewise.
32205         * modules/unistdio/u8-u8-vsprintf: Likewise.
32206         * modules/unistdio/u8-vasnprintf: Likewise.
32207         * modules/unistdio/u8-vasprintf: Likewise.
32208         * modules/unistdio/u8-vsnprintf: Likewise.
32209         * modules/unistdio/u8-vsprintf: Likewise.
32210         * modules/unistdio/u16-asnprintf: Likewise.
32211         * modules/unistdio/u16-asprintf: Likewise.
32212         * modules/unistdio/u16-snprintf: Likewise.
32213         * modules/unistdio/u16-sprintf: Likewise.
32214         * modules/unistdio/u16-u16-asnprintf: Likewise.
32215         * modules/unistdio/u16-u16-asprintf: Likewise.
32216         * modules/unistdio/u16-u16-snprintf: Likewise.
32217         * modules/unistdio/u16-u16-sprintf: Likewise.
32218         * modules/unistdio/u16-u16-vasnprintf: Likewise.
32219         * modules/unistdio/u16-u16-vasprintf: Likewise.
32220         * modules/unistdio/u16-u16-vsnprintf: Likewise.
32221         * modules/unistdio/u16-u16-vsprintf: Likewise.
32222         * modules/unistdio/u16-vasnprintf: Likewise.
32223         * modules/unistdio/u16-vasprintf: Likewise.
32224         * modules/unistdio/u16-vsnprintf: Likewise.
32225         * modules/unistdio/u16-vsprintf: Likewise.
32226         * modules/unistdio/u32-asnprintf: Likewise.
32227         * modules/unistdio/u32-asprintf: Likewise.
32228         * modules/unistdio/u32-snprintf: Likewise.
32229         * modules/unistdio/u32-sprintf: Likewise.
32230         * modules/unistdio/u32-u32-asnprintf: Likewise.
32231         * modules/unistdio/u32-u32-asprintf: Likewise.
32232         * modules/unistdio/u32-u32-snprintf: Likewise.
32233         * modules/unistdio/u32-u32-sprintf: Likewise.
32234         * modules/unistdio/u32-u32-vasnprintf: Likewise.
32235         * modules/unistdio/u32-u32-vasprintf: Likewise.
32236         * modules/unistdio/u32-u32-vsnprintf: Likewise.
32237         * modules/unistdio/u32-u32-vsprintf: Likewise.
32238         * modules/unistdio/u32-vasnprintf: Likewise.
32239         * modules/unistdio/u32-vasprintf: Likewise.
32240         * modules/unistdio/u32-vsnprintf: Likewise.
32241         * modules/unistdio/u32-vsprintf: Likewise.
32242         * modules/unistdio/ulc-asnprintf: Likewise.
32243         * modules/unistdio/ulc-asprintf: Likewise.
32244         * modules/unistdio/ulc-fprintf: Likewise.
32245         * modules/unistdio/ulc-snprintf: Likewise.
32246         * modules/unistdio/ulc-sprintf: Likewise.
32247         * modules/unistdio/ulc-vasnprintf: Likewise.
32248         * modules/unistdio/ulc-vasprintf: Likewise.
32249         * modules/unistdio/ulc-vfprintf: Likewise.
32250         * modules/unistdio/ulc-vsnprintf: Likewise.
32251         * modules/unistdio/ulc-vsprintf: Likewise.
32252         * modules/unistr/u8-check: Likewise.
32253         * modules/unistr/u8-chr: Likewise.
32254         * modules/unistr/u8-cmp: Likewise.
32255         * modules/unistr/u8-cmp2: Likewise.
32256         * modules/unistr/u8-cpy: Likewise.
32257         * modules/unistr/u8-cpy-alloc: Likewise.
32258         * modules/unistr/u8-endswith: Likewise.
32259         * modules/unistr/u8-mblen: Likewise.
32260         * modules/unistr/u8-mbsnlen: Likewise.
32261         * modules/unistr/u8-mbtouc: Likewise.
32262         * modules/unistr/u8-mbtouc-unsafe: Likewise.
32263         * modules/unistr/u8-mbtoucr: Likewise.
32264         * modules/unistr/u8-move: Likewise.
32265         * modules/unistr/u8-next: Likewise.
32266         * modules/unistr/u8-prev: Likewise.
32267         * modules/unistr/u8-set: Likewise.
32268         * modules/unistr/u8-startswith: Likewise.
32269         * modules/unistr/u8-stpcpy: Likewise.
32270         * modules/unistr/u8-stpncpy: Likewise.
32271         * modules/unistr/u8-strcat: Likewise.
32272         * modules/unistr/u8-strchr: Likewise.
32273         * modules/unistr/u8-strcmp: Likewise.
32274         * modules/unistr/u8-strcoll: Likewise.
32275         * modules/unistr/u8-strcpy: Likewise.
32276         * modules/unistr/u8-strcspn: Likewise.
32277         * modules/unistr/u8-strdup: Likewise.
32278         * modules/unistr/u8-strlen: Likewise.
32279         * modules/unistr/u8-strmblen: Likewise.
32280         * modules/unistr/u8-strmbtouc: Likewise.
32281         * modules/unistr/u8-strncat: Likewise.
32282         * modules/unistr/u8-strncmp: Likewise.
32283         * modules/unistr/u8-strncpy: Likewise.
32284         * modules/unistr/u8-strnlen: Likewise.
32285         * modules/unistr/u8-strpbrk: Likewise.
32286         * modules/unistr/u8-strrchr: Likewise.
32287         * modules/unistr/u8-strspn: Likewise.
32288         * modules/unistr/u8-strstr: Likewise.
32289         * modules/unistr/u8-strtok: Likewise.
32290         * modules/unistr/u8-to-u16: Likewise.
32291         * modules/unistr/u8-to-u32: Likewise.
32292         * modules/unistr/u8-uctomb: Likewise.
32293         * modules/unistr/u16-check: Likewise.
32294         * modules/unistr/u16-chr: Likewise.
32295         * modules/unistr/u16-cmp: Likewise.
32296         * modules/unistr/u16-cmp2: Likewise.
32297         * modules/unistr/u16-cpy: Likewise.
32298         * modules/unistr/u16-cpy-alloc: Likewise.
32299         * modules/unistr/u16-endswith: Likewise.
32300         * modules/unistr/u16-mblen: Likewise.
32301         * modules/unistr/u16-mbsnlen: Likewise.
32302         * modules/unistr/u16-mbtouc: Likewise.
32303         * modules/unistr/u16-mbtouc-unsafe: Likewise.
32304         * modules/unistr/u16-mbtoucr: Likewise.
32305         * modules/unistr/u16-move: Likewise.
32306         * modules/unistr/u16-next: Likewise.
32307         * modules/unistr/u16-prev: Likewise.
32308         * modules/unistr/u16-set: Likewise.
32309         * modules/unistr/u16-startswith: Likewise.
32310         * modules/unistr/u16-stpcpy: Likewise.
32311         * modules/unistr/u16-stpncpy: Likewise.
32312         * modules/unistr/u16-strcat: Likewise.
32313         * modules/unistr/u16-strchr: Likewise.
32314         * modules/unistr/u16-strcmp: Likewise.
32315         * modules/unistr/u16-strcoll: Likewise.
32316         * modules/unistr/u16-strcpy: Likewise.
32317         * modules/unistr/u16-strcspn: Likewise.
32318         * modules/unistr/u16-strdup: Likewise.
32319         * modules/unistr/u16-strlen: Likewise.
32320         * modules/unistr/u16-strmblen: Likewise.
32321         * modules/unistr/u16-strmbtouc: Likewise.
32322         * modules/unistr/u16-strncat: Likewise.
32323         * modules/unistr/u16-strncmp: Likewise.
32324         * modules/unistr/u16-strncpy: Likewise.
32325         * modules/unistr/u16-strnlen: Likewise.
32326         * modules/unistr/u16-strpbrk: Likewise.
32327         * modules/unistr/u16-strrchr: Likewise.
32328         * modules/unistr/u16-strspn: Likewise.
32329         * modules/unistr/u16-strstr: Likewise.
32330         * modules/unistr/u16-strtok: Likewise.
32331         * modules/unistr/u16-to-u32: Likewise.
32332         * modules/unistr/u16-to-u8: Likewise.
32333         * modules/unistr/u16-uctomb: Likewise.
32334         * modules/unistr/u32-check: Likewise.
32335         * modules/unistr/u32-chr: Likewise.
32336         * modules/unistr/u32-cmp: Likewise.
32337         * modules/unistr/u32-cmp2: Likewise.
32338         * modules/unistr/u32-cpy: Likewise.
32339         * modules/unistr/u32-cpy-alloc: Likewise.
32340         * modules/unistr/u32-endswith: Likewise.
32341         * modules/unistr/u32-mblen: Likewise.
32342         * modules/unistr/u32-mbsnlen: Likewise.
32343         * modules/unistr/u32-mbtouc: Likewise.
32344         * modules/unistr/u32-mbtouc-unsafe: Likewise.
32345         * modules/unistr/u32-mbtoucr: Likewise.
32346         * modules/unistr/u32-move: Likewise.
32347         * modules/unistr/u32-next: Likewise.
32348         * modules/unistr/u32-prev: Likewise.
32349         * modules/unistr/u32-set: Likewise.
32350         * modules/unistr/u32-startswith: Likewise.
32351         * modules/unistr/u32-stpcpy: Likewise.
32352         * modules/unistr/u32-stpncpy: Likewise.
32353         * modules/unistr/u32-strcat: Likewise.
32354         * modules/unistr/u32-strchr: Likewise.
32355         * modules/unistr/u32-strcmp: Likewise.
32356         * modules/unistr/u32-strcoll: Likewise.
32357         * modules/unistr/u32-strcpy: Likewise.
32358         * modules/unistr/u32-strcspn: Likewise.
32359         * modules/unistr/u32-strdup: Likewise.
32360         * modules/unistr/u32-strlen: Likewise.
32361         * modules/unistr/u32-strmblen: Likewise.
32362         * modules/unistr/u32-strmbtouc: Likewise.
32363         * modules/unistr/u32-strncat: Likewise.
32364         * modules/unistr/u32-strncmp: Likewise.
32365         * modules/unistr/u32-strncpy: Likewise.
32366         * modules/unistr/u32-strnlen: Likewise.
32367         * modules/unistr/u32-strpbrk: Likewise.
32368         * modules/unistr/u32-strrchr: Likewise.
32369         * modules/unistr/u32-strspn: Likewise.
32370         * modules/unistr/u32-strstr: Likewise.
32371         * modules/unistr/u32-strtok: Likewise.
32372         * modules/unistr/u32-to-u16: Likewise.
32373         * modules/unistr/u32-to-u8: Likewise.
32374         * modules/unistr/u32-uctomb: Likewise.
32375         * modules/uniwbrk/u8-wordbreaks: Likewise.
32376         * modules/uniwbrk/u16-wordbreaks: Likewise.
32377         * modules/uniwbrk/u32-wordbreaks: Likewise.
32378         * modules/uniwbrk/ulc-wordbreaks: Likewise.
32379         * modules/uniwbrk/wordbreak-property: Likewise.
32380         * modules/uniwidth/u8-strwidth: Likewise.
32381         * modules/uniwidth/u8-width: Likewise.
32382         * modules/uniwidth/u16-strwidth: Likewise.
32383         * modules/uniwidth/u16-width: Likewise.
32384         * modules/uniwidth/u32-strwidth: Likewise.
32385         * modules/uniwidth/u32-width: Likewise.
32386         * modules/uniwidth/width: Likewise.
32387         * modules/unicase/cased-tests (Makefile.am): Link all test programs
32388         with $(LIBUNISTRING).
32389         * modules/unicase/ignorable-tests: Likewise.
32390         * modules/unicase/locale-language-tests: Likewise.
32391         * modules/unicase/tolower-tests: Likewise.
32392         * modules/unicase/totitle-tests: Likewise.
32393         * modules/unicase/toupper-tests: Likewise.
32394         * modules/unicase/u8-casecmp-tests: Likewise.
32395         * modules/unicase/u8-casecoll-tests: Likewise.
32396         * modules/unicase/u8-casefold-tests: Likewise.
32397         * modules/unicase/u8-is-cased-tests: Likewise.
32398         * modules/unicase/u8-is-casefolded-tests: Likewise.
32399         * modules/unicase/u8-is-lowercase-tests: Likewise.
32400         * modules/unicase/u8-is-titlecase-tests: Likewise.
32401         * modules/unicase/u8-is-uppercase-tests: Likewise.
32402         * modules/unicase/u8-tolower-tests: Likewise.
32403         * modules/unicase/u8-totitle-tests: Likewise.
32404         * modules/unicase/u8-toupper-tests: Likewise.
32405         * modules/unicase/u16-casecmp-tests: Likewise.
32406         * modules/unicase/u16-casecoll-tests: Likewise.
32407         * modules/unicase/u16-casefold-tests: Likewise.
32408         * modules/unicase/u16-is-cased-tests: Likewise.
32409         * modules/unicase/u16-is-casefolded-tests: Likewise.
32410         * modules/unicase/u16-is-lowercase-tests: Likewise.
32411         * modules/unicase/u16-is-titlecase-tests: Likewise.
32412         * modules/unicase/u16-is-uppercase-tests: Likewise.
32413         * modules/unicase/u16-tolower-tests: Likewise.
32414         * modules/unicase/u16-totitle-tests: Likewise.
32415         * modules/unicase/u16-toupper-tests: Likewise.
32416         * modules/unicase/u32-casecmp-tests: Likewise.
32417         * modules/unicase/u32-casecoll-tests: Likewise.
32418         * modules/unicase/u32-casefold-tests: Likewise.
32419         * modules/unicase/u32-is-cased-tests: Likewise.
32420         * modules/unicase/u32-is-casefolded-tests: Likewise.
32421         * modules/unicase/u32-is-lowercase-tests: Likewise.
32422         * modules/unicase/u32-is-titlecase-tests: Likewise.
32423         * modules/unicase/u32-is-uppercase-tests: Likewise.
32424         * modules/unicase/u32-tolower-tests: Likewise.
32425         * modules/unicase/u32-totitle-tests: Likewise.
32426         * modules/unicase/u32-toupper-tests: Likewise.
32427         * modules/unicase/ulc-casecmp-tests: Likewise.
32428         * modules/unicase/ulc-casecoll-tests: Likewise.
32429         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
32430         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
32431         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
32432         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
32433         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
32434         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
32435         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
32436         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
32437         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
32438         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
32439         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
32440         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
32441         * modules/unictype/bidicategory-byname-tests: Likewise.
32442         * modules/unictype/bidicategory-name-tests: Likewise.
32443         * modules/unictype/bidicategory-of-tests: Likewise.
32444         * modules/unictype/bidicategory-test-tests: Likewise.
32445         * modules/unictype/block-list-tests: Likewise.
32446         * modules/unictype/block-of-tests: Likewise.
32447         * modules/unictype/block-test-tests: Likewise.
32448         * modules/unictype/category-C-tests: Likewise.
32449         * modules/unictype/category-Cc-tests: Likewise.
32450         * modules/unictype/category-Cf-tests: Likewise.
32451         * modules/unictype/category-Cn-tests: Likewise.
32452         * modules/unictype/category-Co-tests: Likewise.
32453         * modules/unictype/category-Cs-tests: Likewise.
32454         * modules/unictype/category-L-tests: Likewise.
32455         * modules/unictype/category-Ll-tests: Likewise.
32456         * modules/unictype/category-Lm-tests: Likewise.
32457         * modules/unictype/category-Lo-tests: Likewise.
32458         * modules/unictype/category-Lt-tests: Likewise.
32459         * modules/unictype/category-Lu-tests: Likewise.
32460         * modules/unictype/category-M-tests: Likewise.
32461         * modules/unictype/category-Mc-tests: Likewise.
32462         * modules/unictype/category-Me-tests: Likewise.
32463         * modules/unictype/category-Mn-tests: Likewise.
32464         * modules/unictype/category-N-tests: Likewise.
32465         * modules/unictype/category-Nd-tests: Likewise.
32466         * modules/unictype/category-Nl-tests: Likewise.
32467         * modules/unictype/category-No-tests: Likewise.
32468         * modules/unictype/category-P-tests: Likewise.
32469         * modules/unictype/category-Pc-tests: Likewise.
32470         * modules/unictype/category-Pd-tests: Likewise.
32471         * modules/unictype/category-Pe-tests: Likewise.
32472         * modules/unictype/category-Pf-tests: Likewise.
32473         * modules/unictype/category-Pi-tests: Likewise.
32474         * modules/unictype/category-Po-tests: Likewise.
32475         * modules/unictype/category-Ps-tests: Likewise.
32476         * modules/unictype/category-S-tests: Likewise.
32477         * modules/unictype/category-Sc-tests: Likewise.
32478         * modules/unictype/category-Sk-tests: Likewise.
32479         * modules/unictype/category-Sm-tests: Likewise.
32480         * modules/unictype/category-So-tests: Likewise.
32481         * modules/unictype/category-Z-tests: Likewise.
32482         * modules/unictype/category-Zl-tests: Likewise.
32483         * modules/unictype/category-Zp-tests: Likewise.
32484         * modules/unictype/category-Zs-tests: Likewise.
32485         * modules/unictype/category-and-not-tests: Likewise.
32486         * modules/unictype/category-and-tests: Likewise.
32487         * modules/unictype/category-byname-tests: Likewise.
32488         * modules/unictype/category-name-tests: Likewise.
32489         * modules/unictype/category-none-tests: Likewise.
32490         * modules/unictype/category-of-tests: Likewise.
32491         * modules/unictype/category-or-tests: Likewise.
32492         * modules/unictype/category-test-withtable-tests: Likewise.
32493         * modules/unictype/combining-class-tests: Likewise.
32494         * modules/unictype/ctype-alnum-tests: Likewise.
32495         * modules/unictype/ctype-alpha-tests: Likewise.
32496         * modules/unictype/ctype-blank-tests: Likewise.
32497         * modules/unictype/ctype-cntrl-tests: Likewise.
32498         * modules/unictype/ctype-digit-tests: Likewise.
32499         * modules/unictype/ctype-graph-tests: Likewise.
32500         * modules/unictype/ctype-lower-tests: Likewise.
32501         * modules/unictype/ctype-print-tests: Likewise.
32502         * modules/unictype/ctype-punct-tests: Likewise.
32503         * modules/unictype/ctype-space-tests: Likewise.
32504         * modules/unictype/ctype-upper-tests: Likewise.
32505         * modules/unictype/ctype-xdigit-tests: Likewise.
32506         * modules/unictype/decimal-digit-tests: Likewise.
32507         * modules/unictype/digit-tests: Likewise.
32508         * modules/unictype/mirror-tests: Likewise.
32509         * modules/unictype/numeric-tests: Likewise.
32510         * modules/unictype/property-alphabetic-tests: Likewise.
32511         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
32512         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
32513         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
32514         * modules/unictype/property-bidi-block-separator-tests: Likewise.
32515         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
32516         * modules/unictype/property-bidi-common-separator-tests: Likewise.
32517         * modules/unictype/property-bidi-control-tests: Likewise.
32518         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
32519         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
32520         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
32521         * modules/unictype/property-bidi-european-digit-tests: Likewise.
32522         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
32523         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
32524         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
32525         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
32526         * modules/unictype/property-bidi-pdf-tests: Likewise.
32527         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
32528         * modules/unictype/property-bidi-whitespace-tests: Likewise.
32529         * modules/unictype/property-byname-tests: Likewise.
32530         * modules/unictype/property-combining-tests: Likewise.
32531         * modules/unictype/property-composite-tests: Likewise.
32532         * modules/unictype/property-currency-symbol-tests: Likewise.
32533         * modules/unictype/property-dash-tests: Likewise.
32534         * modules/unictype/property-decimal-digit-tests: Likewise.
32535         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
32536         * modules/unictype/property-deprecated-tests: Likewise.
32537         * modules/unictype/property-diacritic-tests: Likewise.
32538         * modules/unictype/property-extender-tests: Likewise.
32539         * modules/unictype/property-format-control-tests: Likewise.
32540         * modules/unictype/property-grapheme-base-tests: Likewise.
32541         * modules/unictype/property-grapheme-extend-tests: Likewise.
32542         * modules/unictype/property-grapheme-link-tests: Likewise.
32543         * modules/unictype/property-hex-digit-tests: Likewise.
32544         * modules/unictype/property-hyphen-tests: Likewise.
32545         * modules/unictype/property-id-continue-tests: Likewise.
32546         * modules/unictype/property-id-start-tests: Likewise.
32547         * modules/unictype/property-ideographic-tests: Likewise.
32548         * modules/unictype/property-ids-binary-operator-tests: Likewise.
32549         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
32550         * modules/unictype/property-ignorable-control-tests: Likewise.
32551         * modules/unictype/property-iso-control-tests: Likewise.
32552         * modules/unictype/property-join-control-tests: Likewise.
32553         * modules/unictype/property-left-of-pair-tests: Likewise.
32554         * modules/unictype/property-line-separator-tests: Likewise.
32555         * modules/unictype/property-logical-order-exception-tests: Likewise.
32556         * modules/unictype/property-lowercase-tests: Likewise.
32557         * modules/unictype/property-math-tests: Likewise.
32558         * modules/unictype/property-non-break-tests: Likewise.
32559         * modules/unictype/property-not-a-character-tests: Likewise.
32560         * modules/unictype/property-numeric-tests: Likewise.
32561         * modules/unictype/property-other-alphabetic-tests: Likewise.
32562         * modules/unictype/property-other-default-ignorable-code-point-tests:
32563         Likewise.
32564         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
32565         * modules/unictype/property-other-id-continue-tests: Likewise.
32566         * modules/unictype/property-other-id-start-tests: Likewise.
32567         * modules/unictype/property-other-lowercase-tests: Likewise.
32568         * modules/unictype/property-other-math-tests: Likewise.
32569         * modules/unictype/property-other-uppercase-tests: Likewise.
32570         * modules/unictype/property-paired-punctuation-tests: Likewise.
32571         * modules/unictype/property-paragraph-separator-tests: Likewise.
32572         * modules/unictype/property-pattern-syntax-tests: Likewise.
32573         * modules/unictype/property-pattern-white-space-tests: Likewise.
32574         * modules/unictype/property-private-use-tests: Likewise.
32575         * modules/unictype/property-punctuation-tests: Likewise.
32576         * modules/unictype/property-quotation-mark-tests: Likewise.
32577         * modules/unictype/property-radical-tests: Likewise.
32578         * modules/unictype/property-sentence-terminal-tests: Likewise.
32579         * modules/unictype/property-soft-dotted-tests: Likewise.
32580         * modules/unictype/property-space-tests: Likewise.
32581         * modules/unictype/property-terminal-punctuation-tests: Likewise.
32582         * modules/unictype/property-test-tests: Likewise.
32583         * modules/unictype/property-titlecase-tests: Likewise.
32584         * modules/unictype/property-unassigned-code-value-tests: Likewise.
32585         * modules/unictype/property-unified-ideograph-tests: Likewise.
32586         * modules/unictype/property-uppercase-tests: Likewise.
32587         * modules/unictype/property-variation-selector-tests: Likewise.
32588         * modules/unictype/property-white-space-tests: Likewise.
32589         * modules/unictype/property-xid-continue-tests: Likewise.
32590         * modules/unictype/property-xid-start-tests: Likewise.
32591         * modules/unictype/property-zero-width-tests: Likewise.
32592         * modules/unictype/scripts-tests: Likewise.
32593         * modules/unictype/syntax-c-ident-tests: Likewise.
32594         * modules/unictype/syntax-c-whitespace-tests: Likewise.
32595         * modules/unictype/syntax-java-ident-tests: Likewise.
32596         * modules/unictype/syntax-java-whitespace-tests: Likewise.
32597         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
32598         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
32599         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
32600         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
32601         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
32602         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
32603         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
32604         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
32605         * modules/uniname/uniname-tests: Likewise.
32606         * modules/uninorm/canonical-decomposition-tests: Likewise.
32607         * modules/uninorm/compat-decomposition-tests: Likewise.
32608         * modules/uninorm/composition-tests: Likewise.
32609         * modules/uninorm/decomposing-form-tests: Likewise.
32610         * modules/uninorm/decomposition-tests: Likewise.
32611         * modules/uninorm/filter-tests: Likewise.
32612         * modules/uninorm/nfc-tests: Likewise.
32613         * modules/uninorm/nfd-tests: Likewise.
32614         * modules/uninorm/nfkc-tests: Likewise.
32615         * modules/uninorm/nfkd-tests: Likewise.
32616         * modules/uninorm/u8-normcmp-tests: Likewise.
32617         * modules/uninorm/u8-normcoll-tests: Likewise.
32618         * modules/uninorm/u16-normcmp-tests: Likewise.
32619         * modules/uninorm/u16-normcoll-tests: Likewise.
32620         * modules/uninorm/u32-normcmp-tests: Likewise.
32621         * modules/uninorm/u32-normcoll-tests: Likewise.
32622         * modules/unistdio/u8-asnprintf-tests: Likewise.
32623         * modules/unistdio/u8-vasnprintf-tests: Likewise.
32624         * modules/unistdio/u8-vasprintf-tests: Likewise.
32625         * modules/unistdio/u8-vsnprintf-tests: Likewise.
32626         * modules/unistdio/u8-vsprintf-tests: Likewise.
32627         * modules/unistdio/u16-asnprintf-tests: Likewise.
32628         * modules/unistdio/u16-vasnprintf-tests: Likewise.
32629         * modules/unistdio/u16-vasprintf-tests: Likewise.
32630         * modules/unistdio/u16-vsnprintf-tests: Likewise.
32631         * modules/unistdio/u16-vsprintf-tests: Likewise.
32632         * modules/unistdio/u32-asnprintf-tests: Likewise.
32633         * modules/unistdio/u32-vasnprintf-tests: Likewise.
32634         * modules/unistdio/u32-vasprintf-tests: Likewise.
32635         * modules/unistdio/u32-vsnprintf-tests: Likewise.
32636         * modules/unistdio/u32-vsprintf-tests: Likewise.
32637         * modules/unistdio/ulc-asnprintf-tests: Likewise.
32638         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
32639         * modules/unistdio/ulc-vasprintf-tests: Likewise.
32640         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
32641         * modules/unistdio/ulc-vsprintf-tests: Likewise.
32642         * modules/unistr/u8-check-tests: Likewise.
32643         * modules/unistr/u8-chr-tests: Likewise.
32644         * modules/unistr/u8-cmp-tests: Likewise.
32645         * modules/unistr/u8-cmp2-tests: Likewise.
32646         * modules/unistr/u8-cpy-alloc-tests: Likewise.
32647         * modules/unistr/u8-cpy-tests: Likewise.
32648         * modules/unistr/u8-mblen-tests: Likewise.
32649         * modules/unistr/u8-mbsnlen-tests: Likewise.
32650         * modules/unistr/u8-mbtouc-tests: Likewise.
32651         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
32652         * modules/unistr/u8-mbtoucr-tests: Likewise.
32653         * modules/unistr/u8-move-tests: Likewise.
32654         * modules/unistr/u8-next-tests: Likewise.
32655         * modules/unistr/u8-prev-tests: Likewise.
32656         * modules/unistr/u8-set-tests: Likewise.
32657         * modules/unistr/u8-stpcpy-tests: Likewise.
32658         * modules/unistr/u8-stpncpy-tests: Likewise.
32659         * modules/unistr/u8-strcat-tests: Likewise.
32660         * modules/unistr/u8-strcmp-tests: Likewise.
32661         * modules/unistr/u8-strcoll-tests: Likewise.
32662         * modules/unistr/u8-strcpy-tests: Likewise.
32663         * modules/unistr/u8-strdup-tests: Likewise.
32664         * modules/unistr/u8-strlen-tests: Likewise.
32665         * modules/unistr/u8-strmblen-tests: Likewise.
32666         * modules/unistr/u8-strmbtouc-tests: Likewise.
32667         * modules/unistr/u8-strncat-tests: Likewise.
32668         * modules/unistr/u8-strncmp-tests: Likewise.
32669         * modules/unistr/u8-strncpy-tests: Likewise.
32670         * modules/unistr/u8-strnlen-tests: Likewise.
32671         * modules/unistr/u8-to-u16-tests: Likewise.
32672         * modules/unistr/u8-to-u32-tests: Likewise.
32673         * modules/unistr/u8-uctomb-tests: Likewise.
32674         * modules/unistr/u16-check-tests: Likewise.
32675         * modules/unistr/u16-chr-tests: Likewise.
32676         * modules/unistr/u16-cmp-tests: Likewise.
32677         * modules/unistr/u16-cmp2-tests: Likewise.
32678         * modules/unistr/u16-cpy-alloc-tests: Likewise.
32679         * modules/unistr/u16-cpy-tests: Likewise.
32680         * modules/unistr/u16-mblen-tests: Likewise.
32681         * modules/unistr/u16-mbsnlen-tests: Likewise.
32682         * modules/unistr/u16-mbtouc-tests: Likewise.
32683         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
32684         * modules/unistr/u16-mbtoucr-tests: Likewise.
32685         * modules/unistr/u16-move-tests: Likewise.
32686         * modules/unistr/u16-next-tests: Likewise.
32687         * modules/unistr/u16-prev-tests: Likewise.
32688         * modules/unistr/u16-set-tests: Likewise.
32689         * modules/unistr/u16-stpcpy-tests: Likewise.
32690         * modules/unistr/u16-stpncpy-tests: Likewise.
32691         * modules/unistr/u16-strcat-tests: Likewise.
32692         * modules/unistr/u16-strcmp-tests: Likewise.
32693         * modules/unistr/u16-strcoll-tests: Likewise.
32694         * modules/unistr/u16-strcpy-tests: Likewise.
32695         * modules/unistr/u16-strdup-tests: Likewise.
32696         * modules/unistr/u16-strlen-tests: Likewise.
32697         * modules/unistr/u16-strmblen-tests: Likewise.
32698         * modules/unistr/u16-strmbtouc-tests: Likewise.
32699         * modules/unistr/u16-strncat-tests: Likewise.
32700         * modules/unistr/u16-strncmp-tests: Likewise.
32701         * modules/unistr/u16-strncpy-tests: Likewise.
32702         * modules/unistr/u16-strnlen-tests: Likewise.
32703         * modules/unistr/u16-to-u32-tests: Likewise.
32704         * modules/unistr/u16-to-u8-tests: Likewise.
32705         * modules/unistr/u16-uctomb-tests: Likewise.
32706         * modules/unistr/u32-check-tests: Likewise.
32707         * modules/unistr/u32-chr-tests: Likewise.
32708         * modules/unistr/u32-cmp-tests: Likewise.
32709         * modules/unistr/u32-cmp2-tests: Likewise.
32710         * modules/unistr/u32-cpy-alloc-tests: Likewise.
32711         * modules/unistr/u32-cpy-tests: Likewise.
32712         * modules/unistr/u32-mblen-tests: Likewise.
32713         * modules/unistr/u32-mbsnlen-tests: Likewise.
32714         * modules/unistr/u32-mbtouc-tests: Likewise.
32715         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
32716         * modules/unistr/u32-mbtoucr-tests: Likewise.
32717         * modules/unistr/u32-move-tests: Likewise.
32718         * modules/unistr/u32-next-tests: Likewise.
32719         * modules/unistr/u32-prev-tests: Likewise.
32720         * modules/unistr/u32-set-tests: Likewise.
32721         * modules/unistr/u32-stpcpy-tests: Likewise.
32722         * modules/unistr/u32-stpncpy-tests: Likewise.
32723         * modules/unistr/u32-strcat-tests: Likewise.
32724         * modules/unistr/u32-strcmp-tests: Likewise.
32725         * modules/unistr/u32-strcoll-tests: Likewise.
32726         * modules/unistr/u32-strcpy-tests: Likewise.
32727         * modules/unistr/u32-strdup-tests: Likewise.
32728         * modules/unistr/u32-strlen-tests: Likewise.
32729         * modules/unistr/u32-strmblen-tests: Likewise.
32730         * modules/unistr/u32-strmbtouc-tests: Likewise.
32731         * modules/unistr/u32-strncat-tests: Likewise.
32732         * modules/unistr/u32-strncmp-tests: Likewise.
32733         * modules/unistr/u32-strncpy-tests: Likewise.
32734         * modules/unistr/u32-strnlen-tests: Likewise.
32735         * modules/unistr/u32-to-u16-tests: Likewise.
32736         * modules/unistr/u32-to-u8-tests: Likewise.
32737         * modules/unistr/u32-uctomb-tests: Likewise.
32738         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
32739         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
32740         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
32741         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
32742         * modules/uniwidth/u8-strwidth-tests: Likewise.
32743         * modules/uniwidth/u8-width-tests: Likewise.
32744         * modules/uniwidth/u16-strwidth-tests: Likewise.
32745         * modules/uniwidth/u16-width-tests: Likewise.
32746         * modules/uniwidth/u32-strwidth-tests: Likewise.
32747         * modules/uniwidth/u32-width-tests: Likewise.
32748         * modules/uniwidth/width-tests: Likewise.
32749
32750 2010-05-18  Richard Jones  <rjones@redhat.com>
32751
32752         doc: users.txt: list hivex
32753         * users.txt: Add hivex.
32754
32755 2010-05-18  Richard Jones  <rjones@redhat.com>
32756
32757         doc: users.txt: list febootstrap
32758         * users.txt: Add febootstrap.
32759
32760 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
32761
32762         bootstrap: fix an error when gnulib is not used as a git submodule
32763         * build-aux/bootstrap (gnulib_path): If its length is zero then
32764         assign "gnulib" to it.
32765         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
32766
32767 2010-05-16  Bruno Haible  <bruno@clisp.org>
32768
32769         Avoid autoconf warnings about AM_ICONV.
32770         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
32771         2.64.
32772
32773 2010-05-16  Bruno Haible  <bruno@clisp.org>
32774
32775         absolute-header: Make the macro usable in more situations.
32776         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
32777         from gl_ABSOLUTE_HEADER.
32778         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
32779
32780 2010-05-16  James Youngman  <jay@gnu.org>
32781
32782         doc: update users.txt
32783         * users.txt: Add CSSC.
32784
32785 2010-05-16  Jim Meyering  <meyering@redhat.com>
32786
32787         init.sh: fix an error in the previous change; add more comments
32788         * tests/init.sh: Compare exit code in loop against 9, not 2.
32789         Patch by Bruno Haible.
32790         Make the two tests more similar by adding an empty "then" clause.
32791         Add comments.
32792
32793         init.sh: avoid unnecessary shell re-exec
32794         * tests/init.sh: Improve the re-exec-required check to first test the
32795         current shell.  If it passes the test, do not search for a shell that
32796         does pass, and do not re-exec.  This test is particularly contorted to
32797         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
32798         of $(...) evokes a syntax error and causes immediate shell exit with
32799         status 2.  Bruno Haible reported that the re-exec made it impossible
32800         to single-step through any init.sh-using script.
32801
32802 2010-05-16  Bruno Haible  <bruno@clisp.org>
32803
32804         Fix collision between gnulib's and libintl's printf replacements.
32805         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
32806         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
32807         (printf): When using GNU C, map the __printf__ function to rpl_printf
32808         via __asm__. When not using GNU C, define rpl_printf instead of
32809         __printf__.
32810         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32811         commit.
32812         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32813         commit.
32814         * m4/asm-underscore.m4: New file.
32815         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32816         * modules/stdio (Files): Add m4/asm-underscore.m4.
32817         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32818         Reported by Ben Pfaff.
32819
32820 2010-05-16  Bruno Haible  <bruno@clisp.org>
32821
32822         verify: Avoid skipping the test on openSUSE 11.0.
32823         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32824
32825 2010-05-13  Bruno Haible  <bruno@clisp.org>
32826
32827         Avoid useless warnings from G++.
32828         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32829         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32830         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32831
32832 2010-05-11  Jim Meyering  <meyering@redhat.com>
32833
32834         maint.mk: tweak preceding change
32835         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32836         regexps tighter by anchoring at EOL, and make the new group "shy"
32837         for slightly decreased overhead.
32838
32839 2010-05-11  Eric Blake  <eblake@redhat.com>
32840
32841         maint.mk: gnulib doesn't guarantee NSIG
32842         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32843
32844 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32845
32846         test-pwrite.c: Remove unused variable declaration.
32847         * tests/test-pwrite.c (main): Remove read_buf declaration.
32848
32849         Remove useless test-pwrite.sh file.
32850         * tests/test-pwrite.sh: Delete file.
32851         * modules/pwrite-tests: Remove references.
32852         Reported by Bruno Haible.
32853
32854 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32855
32856         init.sh: fix a typo
32857         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32858
32859 2010-05-10  Jim Meyering  <meyering@redhat.com>
32860
32861         maint.mk: avoid using a temporary file in the always-defined-macros check
32862         * top/maint.mk (.re-defmac): Remove rule.
32863         (gl_trap_): Remove definition.
32864         (sc_prohibit_always-defined_macros): Rewrite not to create and
32865         depend on a temporary file.  Instead, depend on GNU grep's ability
32866         to read a list of regular expressions from stdin when given "-f -".
32867
32868 2010-05-09  Bruno Haible  <bruno@clisp.org>
32869
32870         Update to GNU gettext 0.18, part 1.
32871         * m4/gettext.m4: Update to GNU gettext 0.18.
32872         * m4/intl.m4: Likewise.
32873         * m4/po.m4: Likewise.
32874         * modules/gettext (Files): Add m4/fcntl-o.m4.
32875         (configure.ac): Require gettext infrastructure from version 0.18.
32876
32877 2010-05-09  Jim Meyering  <meyering@redhat.com>
32878
32879         init.sh: enable MALLOC_PERTURB_
32880         * tests/init.sh: Enable glibc's malloc-perturbing option.
32881
32882         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32883         With my recent change in init.sh from the two-line form:
32884             -#   : ${srcdir=.}
32885             -#   . "$srcdir/init.sh"; path_prepend_ .
32886             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32887         I noticed that using the one-line form would cause this test
32888         to fail with a false-positive, or to stop working altogether,
32889         depending on whether help-version changed or all the tests did.
32890         * top/maint.mk (_hv_regex): Remove this definition.
32891         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32892         (_hv_regex_strong): Use a stronger regex to check for conformance.
32893         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32894         Give a separate diagnostic for lack of conforming use.
32895
32896         maint.mk: prohibit definition of symbols defined by gnulib
32897         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32898         definition of symbols defined by gnulib.
32899
32900 2010-05-09  Bruno Haible  <bruno@clisp.org>
32901
32902         acl: Avoid test failure on Cygwin-hosted mingw.
32903         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32904
32905 2010-05-09  Bruno Haible  <bruno@clisp.org>
32906
32907         error: Use system's fcntl function.
32908         * lib/error.c (fcntl): Undefine.
32909
32910 2010-05-09  Jim Meyering  <meyering@redhat.com>
32911
32912         verify: adjust formatting to be more consistent
32913         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32914         argument-list '('s, and after one comma.
32915
32916 2010-05-09  Bruno Haible  <bruno@clisp.org>
32917
32918         error: More reliable output on mingw.
32919         * lib/error.c: Include <windows.h>.
32920         (is_open): New function.
32921         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32922         defined.
32923
32924 2010-05-09  Bruno Haible  <bruno@clisp.org>
32925
32926         vasnprintf: Fix syntax errors in libintl build on mingw.
32927         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32928         pad_ourselves and prec_ourselves after use.
32929
32930 2010-05-08  Bruno Haible  <bruno@clisp.org>
32931
32932         * lib/config.charset: Update comments for Cygwin 1.7.
32933         * lib/localcharset.c: Likewise.
32934
32935 2010-05-07  Jim Meyering  <meyering@redhat.com>
32936
32937         init.sh: improve comments
32938         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32939         . "${srcdir=.}/init.sh"; path_prepend_ .
32940         Add a note about path_prepend_ and the alternative of using
32941         TESTS_ENVIRONMENT.
32942
32943 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32944
32945         exclude: Unescape hashed patterns in wildcard mode.
32946         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32947         to the hash list.
32948         * tests/test-exclude8.sh: New test case.
32949         * modules/exclude-tests: Add new test.
32950
32951 2010-05-05  Eric Blake  <eblake@redhat.com>
32952
32953         verify: automate tests
32954         * modules/verify-tests: New module.
32955         * tests/test-verify.sh: New file.
32956         * tests/test-verify.c: Guard each negative test with a unique id.
32957         Also avoid warning about unused left hand of comma expressions.
32958
32959 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32960
32961         Further improvements to verify.h, suggested by Eric Blake.
32962         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32963         the GL_* versions, to avoid collision with OpenGL.
32964         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32965         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32966         than testing merely whether it's defined.
32967
32968         Modify verify.h to pacify gcc -Wredundant_decls.
32969         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32970         These use the prefix "GL_" since they're likely to be useful elsewhere.
32971         We may need to break them out into a different .h file.
32972         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32973         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32974         of verify_function__.
32975
32976 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32977
32978         Tests for module pwrite.
32979         * modules/pwrite-tests: New file.
32980         * tests/test-pwrite.sh: New file.
32981         * tests/test-pwrite.c: New file.
32982
32983         New module pwrite.
32984         * lib/unistd.in.h (pwrite): New declaration.
32985         * lib/pwrite.c: New file, from glibc with modifications.
32986         * m4/pwrite.m4: New file.
32987         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32988         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32989         REPLACE_PWRITE.
32990         * modules/pwrite: New file.
32991         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32992         REPLACE_PWRITE.
32993         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32994         * doc/posix-functions/pwrite.texi: Mention the new module.
32995
32996 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32997
32998         pread: Update documentation.
32999         * doc/posix-functions/pread.texi: Mention the 'pread' module.
33000
33001 2010-05-04  Eric Blake  <eblake@redhat.com>
33002
33003         docs: update cygwin progress
33004         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
33005         this bug.
33006         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
33007         Added in cygwin 1.7.2.
33008         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
33009         Likewise.
33010         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
33011         Likewise.
33012         * doc/glibc-functions/dup3.texi (dup3): Likewise.
33013         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
33014         * doc/glibc-functions/accept4.texi (accept4): Likewise.
33015         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
33016         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
33017         Mention nproc module.
33018         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
33019         bug in cygwin 1.7.5 addition.
33020         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
33021         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
33022         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
33023         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
33024         1.7.5.
33025         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
33026         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
33027         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
33028         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
33029         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
33030         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
33031         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
33032         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
33033         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
33034         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
33035         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
33036         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
33037         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
33038         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
33039         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
33040         Likewise.
33041         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
33042         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
33043         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
33044         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
33045         Likewise.
33046         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
33047         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
33048         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
33049         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
33050         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
33051         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
33052         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
33053         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
33054         Likewise.
33055         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
33056         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
33057         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
33058         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
33059         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
33060         Likewise.
33061         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
33062         Likewise.
33063         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
33064         Likewise.
33065         * doc/glibc-functions/xdrrec_endofrecord.texi
33066         (xdrrec_endofrecord): Likewise.
33067         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
33068         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
33069         Likewise.
33070         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
33071         Likewise.
33072
33073 2010-05-04  Jim Meyering  <meyering@redhat.com>
33074
33075         gendocs.sh: make its "-s FILE" option more useful
33076         * build-aux/gendocs.sh: When honoring the -s FILE option, update
33077         $PACKAGE to reflect the probably-different basename of "FILE".
33078
33079 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
33080
33081         bootstrap: don't ignore download_po_files failure
33082         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
33083         failure.
33084
33085 2010-05-03  Jim Meyering  <meyering@redhat.com>
33086
33087         maint.mk: allow to pass options to gendocs.sh
33088         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
33089         (gendocs_options_): New overridable variable.
33090
33091         gnu-web-doc-update: don't ignore configure or build failure
33092         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
33093
33094         announce-gen: backslash-escape '@'s in --help output
33095         * build-aux/announce-gen: Fix syntax errors.
33096
33097         maint.mk, announce-gen: allow project-specific announcement mail headers
33098         * top/maint.mk (translation_project_): Define default.
33099         (announcement_Cc_, announcement_mail_headers_): Likewise.
33100         (announcement): Invoke announce-gen with new --mail-headers option.
33101         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
33102
33103         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
33104         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
33105         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
33106         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
33107         line in the "err2" output file when running "make check" in verbose
33108         mode (i.e., with set -x enabled).
33109
33110 2010-05-03  Bruno Haible  <bruno@clisp.org>
33111
33112         wctob: Fix for weird platforms.
33113         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
33114         argument value.
33115
33116 2010-05-03  Jim Meyering  <meyering@redhat.com>
33117
33118         maint.mk: prohibit unwarranted use of <strings.h>
33119         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
33120         strings.h in a file that does not also use strcasecmp, strncasecmp,
33121         ffs or ffsll.
33122
33123         maint.mk: remove obsolete comments
33124         * top/maint.mk: Remove stale, commented-out rules.
33125
33126 2010-05-02  Bruno Haible  <bruno@clisp.org>
33127
33128         wcwidth: Declare also when it's aliased.
33129         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
33130         macro.
33131
33132 2010-05-02  Bruno Haible  <bruno@clisp.org>
33133
33134         Fix regression from 2010-04-25.
33135         * gnulib-tool (func_modules_transitive_closure): Check the status of
33136         all modules, not only of the tests that are of the form foo-tests where
33137         foo is a module.
33138
33139 2010-05-02  Bruno Haible  <bruno@clisp.org>
33140
33141         wctob: Work around nasty Cygwin 1.7.2 bug.
33142         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
33143         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
33144
33145 2010-05-01  Bruno Haible  <bruno@clisp.org>
33146
33147         fpurge: Sharper test.
33148         * tests/test-fpurge.c (main): Add one more ftell check.
33149         * modules/fpurge-tests (Depends-on): Add ftell.
33150         Suggested by Eric Blake.
33151
33152 2010-05-01  Bruno Haible  <bruno@clisp.org>
33153
33154         ftello: Another test.
33155         * tests/test-ftello3.c: New file.
33156         * modules/ftello-tests (Files): Add it.
33157         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33158         MOSTLYCLEANFILES.
33159
33160         ftell: Another test.
33161         * tests/test-ftell3.c: New file.
33162         * modules/ftell-tests (Files): Add it.
33163         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
33164         MOSTLYCLEANFILES.
33165
33166 2010-05-01  Bruno Haible  <bruno@clisp.org>
33167
33168         ftell, ftello: Work around Solaris bug.
33169         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
33170         * lib/ftello.c: Include stdio-impl.h.
33171         (ftello): On Solaris, when _IOWRT is set, compute the result without
33172         looking at _IOREAD.
33173         * modules/ftello (Files): Add lib/stdio-impl.h.
33174         * doc/posix-functions/ftell.texi: Mention Solaris bug.
33175         * doc/posix-functions/ftello.texi: Likewise.
33176         Reported by Eric Blake.
33177
33178 2010-05-01  Bruno Haible  <bruno@clisp.org>
33179
33180         freading: Adapt to special meaning of _IOREAD flag on Solaris.
33181         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
33182         the _IOWRT flag is also set.
33183
33184 2010-05-01  Bruno Haible  <bruno@clisp.org>
33185
33186         Fix doc about a HP-UX stdio bug.
33187         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
33188         * doc/posix-functions/ftello.texi: Likewise.
33189
33190 2010-05-01  Bruno Haible  <bruno@clisp.org>
33191
33192         lseek test: Fix failure on Solaris.
33193         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
33194         output.
33195
33196 2010-04-30  Jim Meyering  <meyering@redhat.com>
33197
33198         bootstrap: don't ignore failure to generate po*/Makevars
33199         * build-aux/bootstrap (with_gettext): Don't ignore failure
33200         to create po/Makevars or runtime-po/Makevars.
33201
33202 2010-04-29  Eric Blake  <eblake@redhat.com>
33203
33204         headers: relax license to LGPLv2+
33205         * modules/fcntl-h (License): Relax license.
33206         * modules/getopt-posix (License): Likewise.
33207         * modules/locale (License): Likewise.
33208         * modules/math (License): Likewise.
33209         * modules/pty (License): Likewise.
33210         * modules/sched (License): Likewise.
33211         * modules/search (License): Likewise.
33212         * modules/spawn (License): Likewise.
33213         * modules/stdarg (License): Likewise.
33214         * modules/sysexits (License): Likewise.
33215
33216 2010-04-29  Jim Meyering  <meyering@redhat.com>
33217
33218         inttypes: relax license to LGPLv2+
33219         * modules/inttypes (License): Relax license.
33220
33221 2010-04-29  Simon Josefsson  <simon@josefsson.org>
33222
33223         * top/maint.mk (indent): Run twice to produce idempotent results.
33224
33225 2010-04-28  Bruno Haible  <bruno@clisp.org>
33226
33227         getdate: Generate getdate.c in the source directory.
33228         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
33229         MOSTLYCLEANFILES.
33230         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
33231
33232 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
33233
33234         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
33235         is not declared as a const *; avoid warnings in that case.
33236
33237 2010-04-28  Eric Blake  <eblake@redhat.com>
33238
33239         canonicalize-lgpl: avoid compiler warning
33240         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
33241         declaration' / 'extraneous semicolon' warning with some compilers.
33242         Reported by Andreas Gruenbacher.
33243
33244 2010-04-28  Jim Meyering  <meyering@redhat.com>
33245
33246         init.sh: ensure a more reliable exit status when exiting via trap
33247         * tests/init.sh (setup_): Don't rely on $? in signal handler.
33248         Inspired by patches from Dmitry V. Levin.
33249         Also trap on signal 3 (SIGQUIT).
33250
33251 2010-04-27  Bruno Haible  <bruno@clisp.org>
33252
33253         Update doc about utimes().
33254         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
33255         'utimens' module.
33256         Reported by Andreas Gruenbacher <agruen@suse.de>.
33257
33258 2010-04-27  Eric Blake  <eblake@redhat.com>
33259
33260         full-read, full-write: relax license
33261         * modules/full-read (License): Drop to LGPLv2+.
33262         * modules/full-write (License): Likewise.
33263         * modules/safe-read (License): Likewise.
33264         * modules/safe-write (License): Likewise.
33265
33266         pthread: mention library for linking
33267         * modules/pthread (Link): Mention $(LIB_PTHREAD).
33268
33269 2010-04-27  Jim Meyering  <meyering@redhat.com>
33270
33271         maint.mk: fix a bug introduced in last change
33272         * top/maint.mk (gl_assured_headers_): Now that all names are on
33273         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
33274         is not anchored to end of word, it should be adequate.
33275
33276         maint.mk: avoid side-effect in latest syntax-check
33277         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
33278         to run commands via $(shell...), and hence to incur cost only when
33279         the new rule is actually run.
33280
33281         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
33282         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
33283         and use that to create a regexp used to detect all #if HAVE_..._H uses.
33284         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
33285         (gl_assured_headers_, az_, AZ_): Define.
33286         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
33287
33288 2010-04-26  Jim Meyering  <jim@meyering.net>
33289             Bruno Haible  <bruno@clisp.org>
33290
33291         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
33292         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
33293         Prompted by an exchange with Gilles Espinasse.
33294
33295 2010-04-26  Jim Meyering  <meyering@redhat.com>
33296
33297         git-version-gen: aesthetic tweak
33298         * build-aux/git-version-gen: Use "$nl" rather than a literal,
33299         so that the command remains on a single line.
33300
33301 2010-04-26  Eric Blake  <eblake@redhat.com>
33302
33303         git-version-gen: allow use on EBCDIC hosts
33304         * build-aux/git-version-gen (dirty): Use literal rather than tying
33305         ourselves to ascii.
33306         Reported by Steve Goetze.
33307
33308 2010-04-25  Bruno Haible  <bruno@clisp.org>
33309
33310         netdb: Add support for GNULIB_POSIXCHECK.
33311         * lib/netdb.in.h: Include warn-on-use.h.
33312         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
33313         functions are used when GNULIB_POSIXCHECK is defined and the
33314         getaddrinfo module is not in use.
33315         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
33316         freeaddrinfo, gai_strerror, getnameinfo are declared.
33317         * modules/netdb (Depends-on): Add warn-on-use.
33318         (Makefile.am): Include warn-on-use.h in netdb.h.
33319
33320 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
33321
33322         build: avoid "make check" failure without .git/ directory
33323         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
33324         there is no .git/ directory.
33325
33326 2010-04-25  Bruno Haible  <bruno@clisp.org>
33327
33328         ptsname: Fix misuse of ttyname_r.
33329         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
33330         of errno.
33331
33332 2010-04-25  Bruno Haible  <bruno@clisp.org>
33333
33334         ttyname_r: Make it work on Solaris 10.
33335         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
33336         if the system function has the POSIX declaration. Test whether the
33337         function fails if the buffer is less than 128 bytes large.
33338         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
33339         system's ttyname_r function. Provide a reasonably large buffer.
33340         * modules/ttyname_r (Depends-on): Add extensions.
33341         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
33342
33343 2010-04-25  Bruno Haible  <bruno@clisp.org>
33344
33345         Use the 'extensions' module for some more functions on Solaris.
33346         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
33347         module.
33348         * doc/posix-functions/ctime_r.texi: Likewise.
33349         * doc/posix-functions/getgrgid_r.texi: Likewise.
33350         * doc/posix-functions/getgrnam_r.texi: Likewise.
33351         * doc/posix-functions/getpwnam_r.texi: Likewise.
33352         * doc/posix-functions/getpwuid_r.texi: Likewise.
33353         * doc/posix-functions/readdir_r.texi: Likewise.
33354         * doc/posix-functions/sigwait.texi: Likewise.
33355         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
33356         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
33357
33358 2010-04-25  Bruno Haible  <bruno@clisp.org>
33359
33360         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
33361         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
33362         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
33363         * lib/ttyname_r.c: Include <limits.h>.
33364         (ttyname_r): Define using the system's ttyname_r function, if it exists
33365         and not on Solaris.
33366         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
33367         set.
33368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
33369         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
33370         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
33371         Reported by Simon Josefsson.
33372
33373 2010-04-25  Bruno Haible  <bruno@clisp.org>
33374
33375         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
33376         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
33377         * doc/posix-functions/ctime_r.texi: Likewise.
33378         * doc/posix-functions/getgrgid_r.texi: Likewise.
33379         * doc/posix-functions/getgrnam_r.texi: Likewise.
33380         * doc/posix-functions/getlogin_r.texi: Likewise.
33381         * doc/posix-functions/getpwnam_r.texi: Likewise.
33382         * doc/posix-functions/getpwuid_r.texi: Likewise.
33383         * doc/posix-functions/readdir_r.texi: Likewise.
33384         * doc/posix-functions/sigwait.texi: Likewise.
33385         * doc/posix-functions/ttyname_r.texi: Likewise.
33386         Reported by Simon Josefsson.
33387
33388 2010-04-25  Bruno Haible  <bruno@clisp.org>
33389
33390         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
33391         * gnulib-tool (func_usage): Document that --with-*-tests options apply
33392         also to --create-testdir.
33393         (func_acceptable): Don't consider the status of *-tests modules here.
33394         (func_modules_transitive_closure): Consider it here, before including a
33395         test module.
33396         (func_import, func_create_testdir): Set inc_all_direct_tests,
33397         inc_all_indirect_tests.
33398         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
33399         --create-testdir and --create-megatestdir.
33400
33401 2010-04-25  Bruno Haible  <bruno@clisp.org>
33402
33403         gnulib-tool: Add --without-*-tests options.
33404         * gnulib-tool (func_usage): Document the --without-*-tests options.
33405         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
33406         excl_unportable_tests): New variables.
33407         Fail if they are specified with --import or --update.
33408         (func_acceptable): Respect the excl_*_tests variables.
33409         (func_import): Set the excl_*_tests variables to empty.
33410
33411 2010-04-25  Simon Josefsson  <simon@josefsson.org>
33412             Bruno Haible  <bruno@clisp.org>
33413
33414         Work around a MacOS X 10.4 bug with openpty.
33415         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
33416         * tests/test-openpty.c (main): Close the master side explicitly.
33417
33418 2010-04-25  Bruno Haible  <bruno@clisp.org>
33419
33420         strnlen: Fix a C++ test error on MacOS X and Solaris.
33421         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
33422         the function is not declared.
33423         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
33424         Simon Josefsson.
33425
33426 2010-04-24  Bruno Haible  <bruno@clisp.org>
33427
33428         Avoid a gcc warning.
33429         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
33430         of correct type for %08lx directive.
33431         Reported by Eric Blake.
33432
33433 2010-04-24  Bruno Haible  <bruno@clisp.org>
33434
33435         vasnprintf: Correct errno value in case of out-of-memory.
33436         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
33437         or sprintf. Use the errno value from SNPRINTF or sprintf.
33438         Reported by Ian Beckwith <ianb@erislabs.net>.
33439
33440 2010-04-24  Bruno Haible  <bruno@clisp.org>
33441
33442         ansi-c++-opt: Find correct compiler when cross-compiling.
33443         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
33444         AC_CHECK_PROGS.
33445         Reported by Simon Josefsson.
33446
33447 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
33448
33449         vc-list-files: Add support for subversion
33450         * build-aux/vc-list-files: Use "svn list" to generate the list of
33451         files controlled by subversion.
33452
33453 2010-04-23  Jim Meyering  <meyering@redhat.com>
33454
33455         vc-list-files tests: convert to use init.sh
33456         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
33457         path_prepend_.
33458         Use Exit, not exit.
33459         Use skip_ rather than open coding it.
33460         Remove trap set-up and compare definitions.
33461         * tests/test-vc-list-files-git.sh: Likewise.
33462         * modules/vc-list-files-tests (Files): Add tests/init.sh.
33463
33464 2010-04-22  Simon Josefsson  <simon@josefsson.org>
33465
33466         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
33467         backup files.
33468
33469 2010-04-21  Simon Josefsson  <simon@josefsson.org>
33470
33471         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
33472
33473 2010-04-20  Eric Blake  <eblake@redhat.com>
33474
33475         tests: be robust to ignored SIGPIPE
33476         * tests/test-select-in.sh: Consume all output.
33477         * tests/test-lseek.sh: Check correct exit status, while avoiding
33478         EPIPE.
33479
33480 2010-04-20  Simon Josefsson  <simon@josefsson.org>
33481             Bruno Haible  <bruno@clisp.org>
33482
33483         visibility: Don't use -fvisibility if it leads to a warning.
33484         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
33485         yes, don't pretend that visibility works if it leads to a warning.
33486         Reported by Mike Gran <spk121@yahoo.com>.
33487
33488 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
33489
33490         * build-aux/bootstrap: Use "git -h" for testing for supported options
33491         instead of "git --help".  The short-form option only shows a summary,
33492         and doesn't layout the full man page.  Grep for the full option name
33493         in the summary, too.
33494
33495 2010-04-19  Bruno Haible  <bruno@clisp.org>
33496
33497         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
33498         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
33499         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
33500         mention of RELOCATABLE_STRIP.
33501         Reported by Sylvain Beucler <beuc@beuc.net>.
33502
33503 2010-04-19  Bruno Haible  <bruno@clisp.org>
33504
33505         * lib/diffseq.h: Fix typo in comment.
33506         Reported by Eric Blake.
33507
33508 2010-04-19  Bruno Haible  <bruno@clisp.org>
33509
33510         ioctl: Move autoconf macro to a .m4 file.
33511         * m4/ioctl.m4: New file, extracted from modules/ioctl.
33512         * modules/ioctl (Files): Add it.
33513         (configure.ac): Simply invoke gl_FUNC_IOCTL.
33514         Reported by Ian Beckwith <ianb@erislabs.net>.
33515
33516 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
33517             Bruno Haible  <bruno@clisp.org>
33518
33519         diffseq: Accommodate use-case with abstract arrays.
33520         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
33521         is not defined.
33522         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
33523         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
33524
33525 2010-04-18  Bruno Haible  <bruno@clisp.org>
33526
33527         * doc/posix-headers/stdbool.texi: More precise wording.
33528
33529 2010-04-17  Jim Meyering  <meyering@redhat.com>
33530
33531         maint.mk: use gnu-style indentation in an embedded perl script
33532         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
33533         Rename variable: s/two/last_two_bytes/
33534
33535 2010-04-16  Eric Blake  <eblake@redhat.com>
33536
33537         test-stdbool: skip test that fails with Solaris CC
33538         * tests/test-stdbool.c (f): Skip test that causes compilation
33539         error under buggy C++ compiler.
33540         * lib/stdbool.in.h: Document the limitation.
33541         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
33542
33543         setenv: allow compilation with C++
33544         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
33545         register keyword.
33546
33547         stdint: allow test to pass with C++
33548         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
33549
33550         getopt: allow compilation with C++
33551         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
33552         struct.
33553         * lib/getopt.c (_getopt_internal_r): Use correct type.
33554         Reported by Dagobert Michelson, via Joel E. Denny.
33555
33556 2010-04-16  Bruno Haible  <bruno@clisp.org>
33557
33558         Override netdb.h always.
33559         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
33560         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
33561         Reported by Ludovic Courtès <ludo@gnu.org>.
33562
33563 2010-04-15  Bruno Haible  <bruno@clisp.org>
33564
33565         openpty: Fix mistake from 2010-03-21.
33566         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
33567         Reported by Simon Josefsson.
33568
33569 2010-04-15  Eric Blake  <eblake@redhat.com>
33570
33571         test-forkpty: fix expected signature
33572         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
33573         Reported by Simon Josefsson.
33574
33575 2010-04-15  Jim Meyering  <meyering@redhat.com>
33576
33577         maint.mk: texinfo_suffix_re_: correct the default regexp
33578         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
33579
33580         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
33581         make it configurable via texinfo_suffix_re_.
33582
33583 2010-04-14  Eric Blake  <eblake@redhat.com>
33584
33585         strtok_r: relax license to LGPLv2+
33586         * modules/strtok_r (License): Relax license.
33587         Reported by Matthias Bolte.
33588
33589 2010-04-14  Simon Josefsson  <simon@josefsson.org>
33590
33591         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
33592         version 1.4.4 by default instead of requiring the libgcrypt
33593         version used during build.  This makes it possible to use the
33594         application with older but still binary compatible libgcrypt
33595         versions.
33596
33597 2010-04-13  Eric Blake  <eblake@redhat.com>
33598
33599         getopt-gnu: match recent glibc fixes and posix ruling
33600         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
33601         '+' handling, when requesting extensions.
33602         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
33603         'W;' handling.
33604         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
33605         * doc/posix-functions/getopt.texi (getopt): Document this.
33606         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33607         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33608         Likewise.
33609
33610         getopt: merge bug fixes from glibc
33611         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
33612         diagnostics.  Honor '+:' correctly.  Reject ';'.
33613
33614         getopt-posix: detect MacOS bug
33615         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
33616         optind when missing a required argument.
33617         * doc/posix-functions/getopt.texi (getopt): Document the bug.
33618         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
33619         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33620         Likewise.
33621
33622         getopt-posix: avoid spurious failure on Solaris
33623         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
33624         an indicator that setting optind=1 is sufficient for reset.
33625
33626         getopt-posix: avoid spurious failure on FreeBSD
33627         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
33628         in POSIX mode, since the m4 test uses it.
33629
33630         gnulib-tool: silence warning on BSD sh
33631         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
33632
33633 2010-04-13  Jim Meyering  <meyering@redhat.com>
33634
33635         doc: users.txt: GNU patch now uses gnulib
33636         * users.txt: Add patch.
33637
33638 2010-04-12  Jim Meyering  <meyering@redhat.com>
33639
33640         maint.mk: generate more concise timing data for syntax-check rules
33641         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
33642         " done" from each line that reports a syntax-check test duration.
33643
33644 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
33645
33646         git-version-gen: use "git update-index..." rather than "git status"
33647         * build-aux/git-version-gen: Use git update-index --refresh, not
33648         "git status".  With some versions of git, "git status" would fail
33649         to update the index and result in an unwarranted "-dirty" suffix.
33650
33651 2010-04-11  Jim Meyering  <meyering@redhat.com>
33652
33653         openat: correct formatting (no semantic change)
33654         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
33655         Suggested by Bruno Haible.
33656
33657 2010-04-11  Bruno Haible  <bruno@clisp.org>
33658
33659         Stricter declaration checking in testdirs.
33660         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33661         If for_tests is true, augment AM_CPPFLAGS to define
33662         GNULIB_STRICT_CHECKING.
33663         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
33664         GNULIB_STRICT_CHECKING is defined, verify that the function is
33665         declared.
33666
33667 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
33668             Bruno Haible  <bruno@clisp.org>
33669
33670         libunistring: Improve configure output.
33671         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
33672         Don't say "consider installing GNU libunistring" when checking again
33673         with libiconv.
33674
33675 2010-04-11  Bruno Haible  <bruno@clisp.org>
33676
33677         libunistring: Correct value of $LTLIBUNISTRING.
33678         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
33679         correct the value of $LTLIBUNISTRING.
33680
33681 2010-04-11  Bruno Haible  <bruno@clisp.org>
33682
33683         havelib: Add static libraries to LIBS in the right order.
33684         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
33685         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
33686
33687 2010-04-11  Bruno Haible  <bruno@clisp.org>
33688
33689         libunistring: Detect libunistring also when it depends on libiconv.
33690         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
33691         the second AC_LIB_HAVE_LINKFLAGS invocation.
33692
33693 2010-04-11  James Youngman  <jay@gnu.org>
33694
33695         close-stream: declare local scalars to be "const"
33696         * lib/close-stream.c (close_stream): Make boolean variables const
33697         to document the fact that we set but do not change them.
33698
33699 2010-04-11  Bruno Haible  <bruno@clisp.org>
33700
33701         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
33702
33703 2010-04-11  Jim Meyering  <meyering@redhat.com>
33704
33705         maint.mk: don't include dist-check.mk
33706         * top/maint.mk: Remove bogus include directive.
33707
33708         maint.mk: improve empty-line-at-EOF check
33709         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
33710         solution, rather than tail+Perl-based one.  The latter would read
33711         a few kilobytes from the end of each file, and did not handle empty
33712         files properly.
33713
33714         maint.mk: print the elapsed time for each syntax-check rule
33715         * top/maint.mk (sc_m_rules_): Save start time in a file.
33716         (sc_z_rules_): New rules: remove temp file and print elapsed time.
33717         (local-check): Interpose the .z rules
33718
33719 2010-04-11  Jim Meyering  <meyering@redhat.com>
33720
33721         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
33722         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
33723         empty file with one that ends in an empty line.
33724
33725 2010-04-10  Bruno Haible  <bruno@clisp.org>
33726
33727         mkdir: Make it work on mingw64.
33728         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
33729         * lib/mkdir.c: Update comment.
33730         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
33731
33732 2010-04-10  Bruno Haible  <bruno@clisp.org>
33733
33734         Don't override improved macro from newer autoconf.
33735         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
33736         autoconf >= 2.62.
33737         Reported by Joel E. Denny <jdenny@clemson.edu>.
33738
33739 2010-04-10  Jim Meyering  <meyering@redhat.com>
33740
33741         maint.mk: new syntax-check rule: prohibit empty lines at end of file
33742         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
33743
33744         maint.mk: correct a diagnostic
33745         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
33746         in diagnostic; now use $prohibit.
33747
33748 2010-04-10  Bruno Haible  <address@hidden>
33749
33750         fchownat: Fix a C++ test error on Solaris 8.
33751         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
33752         the function does not exist.
33753
33754 2010-04-10  Bruno Haible  <bruno@clisp.org>
33755
33756         vasnprintf: Add more tests.
33757         * tests/test-vasnprintf-posix.c: Include <errno.h>.
33758         (test_function): Test converting an invalid wide string.
33759
33760         vasnprintf: Correct handling of unconvertible wide string arguments.
33761         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
33762         VASNPRINTF.
33763         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
33764         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
33765         smaller than the expected maximum need for the directive. Set errno to
33766         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
33767         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
33768         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
33769         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
33770         * modules/vasnprintf (Files): Add m4/printf.m4.
33771         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33772
33773 2010-04-10  Bruno Haible  <bruno@clisp.org>
33774
33775         vasnprintf: Fix crash in %ls directive.
33776         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
33777         string is passed as argument to %ls, with no precision and no width.
33778         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33779
33780 2010-04-10  Bruno Haible  <bruno@clisp.org>
33781
33782         vasnprintf: Fix multiple test failures on mingw.
33783         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
33784         _snprintf, or snwprintf, not _snwprintf.
33785
33786 2010-04-10  Bruno Haible  <bruno@clisp.org>
33787
33788         write: Fix a C++ test error on mingw.
33789         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
33790
33791 2010-04-10  Bruno Haible  <bruno@clisp.org>
33792
33793         vasnprintf test: Reduce code duplication.
33794         * tests/test-vasnprintf.c (test_function): New function, extracted from
33795         test_vasnprintf.
33796         (test_vasnprintf, test_asnprintf): Invoke it.
33797
33798 2010-04-10  Bruno Haible  <bruno@clisp.org>
33799
33800         strnlen: Fix warning in C++ mode on MacOS X.
33801         * lib/string.in.h (strnlen): Use the modern idiom.
33802         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
33803         defining strnlen as a macro already in <config.h>.
33804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33805         REPLACE_STRNLEN.
33806         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
33807         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33808
33809 2010-04-08  James Youngman  <jay@gnu.org>
33810
33811         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33812         the example.
33813
33814 2010-04-09  Jim Meyering  <meyering@redhat.com>
33815
33816         maint.mk: print better diagnostic when there is no $(_hv_file)
33817         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33818         announce that when $(_hv_file) (aka help-version) does not exist.
33819
33820         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33821         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33822         not try to interpret its random input bytes.  Jarno Rajahalme reported
33823         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33824         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33825         (mktempd_): Likewise, just in case.
33826
33827         ftruncate: add two years to projected module removal date: 2012
33828         * m4/ftruncate.m4: Adjust comments.
33829
33830         ftruncate: mark module as obsolete; even MinGW provides it, now
33831         * modules/ftruncate (Status): Obsolete.
33832         (Notice): Say that.
33833         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33834         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33835
33836 2010-04-08  Bruno Haible  <bruno@clisp.org>
33837
33838         Fix side effects from tests-related modules.
33839         * modules/dprintf-posix (Comment): New section.
33840         * modules/fprintf-posix (Comment): Likewise.
33841         * modules/obstack-printf-posix (Comment): Likewise.
33842         * modules/printf-posix (Comment): Likewise.
33843         * modules/snprintf-posix (Comment): Likewise.
33844         * modules/sprintf-posix (Comment): Likewise.
33845         * modules/vasnprintf-posix (Comment): Likewise.
33846         * modules/vasprintf-posix (Comment): Likewise.
33847         * modules/vdprintf-posix (Comment): Likewise.
33848         * modules/vfprintf-posix (Comment): Likewise.
33849         * modules/vprintf-posix (Comment): Likewise.
33850         * modules/vsnprintf-posix (Comment): Likewise.
33851         * modules/vsprintf-posix (Comment): Likewise.
33852         * modules/xprintf-posix (Comment): Likewise.
33853         * modules/xvasprintf-posix (Comment): Likewise.
33854         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33855         * modules/floorf-tests (Depends-on): Likewise.
33856         * modules/round-tests (Depends-on): Likewise.
33857         * modules/roundf-tests (Depends-on): Likewise.
33858         * modules/trunc-tests (Depends-on): Likewise.
33859         * modules/truncf-tests (Depends-on): Likewise.
33860         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33861         'fprintf-posix' module is not present.
33862         * tests/test-floorf2.c (check): Likewise.
33863         * tests/test-trunc2.c (check): Likewise.
33864         * tests/test-truncf2.c (check): Likewise.
33865         * tests/test-round2.c (equal): Likewise.
33866         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33867
33868 2010-04-07  Karl Berry  <karl@gnu.org>
33869
33870         * config/srclist.txt,
33871         * config/srclistvars.sh,
33872         * config/srclist-update: doc fixes.
33873
33874 2010-04-07  Jim Meyering  <meyering@redhat.com>
33875
33876         maint.mk: add a PATH crosschecking syntax-check rule
33877         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33878         Useful if you use a test like the one in help-version (coreutils,
33879         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33880         printed by prog --version.
33881
33882 2010-04-06  Bruno Haible  <bruno@clisp.org>
33883
33884         Fix link error on mingw.
33885         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33886         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33887
33888 2010-04-06  Bruno Haible  <bruno@clisp.org>
33889
33890         Assume rmdir exists.
33891         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33892
33893 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33894
33895         doc: update users.txt
33896         * users.txt: Add gcal.
33897
33898 2010-04-06  Jim Meyering  <meyering@redhat.com>
33899
33900         init.sh: simply unset TMPDIR rather than risking env -i
33901         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33902         although it probably works fine on all Unix-based systems, some
33903         systems (Cygwin?) cannot tolerate a totally cleared environment.
33904         Suggestion from Eric Blake.
33905
33906 2010-04-06  Jim Meyering  <meyering@redhat.com>
33907
33908         init.sh: portability fix: use env's POSIX-specified -i option not -u
33909         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33910         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33911
33912 2010-04-05  Bruno Haible  <bruno@clisp.org>
33913
33914         btowc: Work around Cygwin 1.7.2 bug.
33915         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33916         does not map NUL to 0.
33917         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33918
33919 2010-04-05  Bruno Haible  <bruno@clisp.org>
33920
33921         Make the multithread modules work on Cygwin 1.7.2.
33922         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33923         imported symbols can be declared weak, so that it returns "no" on
33924         Cygwin 1.7.2.
33925
33926 2010-04-05  Bruno Haible  <bruno@clisp.org>
33927
33928         Use the module 'strncat'.
33929         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33930
33931         Tests for module 'strncat'.
33932         * modules/strncat-tests: New file.
33933         * tests/test-strncat.c: New file.
33934
33935         New module 'strncat'.
33936         * lib/string.in.h (strncat): New declaration.
33937         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33938         * m4/strncat.m4: New file, based on m4/memchr.m4.
33939         * modules/strncat: New file.
33940         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33941         is declared.
33942         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33943         REPLACE_STRNCAT.
33944         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33945         REPLACE_STRNCAT.
33946         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33947         module.
33948         * tests/test-string-c++.cc: Check signature of strncat.
33949
33950 2010-04-05  Jim Meyering  <meyering@redhat.com>
33951
33952         xstrtoumax-tests: convert to use init.sh
33953         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33954         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33955         Use Exit, not exit.
33956         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33957
33958         xstrtoimax-tests: convert to use init.sh
33959         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33960         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33961         Use Exit, not exit.
33962         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33963
33964 2010-04-05  Bruno Haible  <bruno@clisp.org>
33965
33966         sys_socket: Avoid #define replacements in C++ mode.
33967         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33968         warning to the function if possible, rather than #defining the symbol
33969         to a dysfunctional alias.
33970
33971 2010-04-05  Bruno Haible  <bruno@clisp.org>
33972
33973         fseeko: Fix C++ test error on mingw.
33974         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33975         gl_FUNC_FSEEKO.
33976         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33977         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33978         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33979         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33980
33981 2010-04-05  Bruno Haible  <bruno@clisp.org>
33982
33983         duplocale: Improve test output.
33984         * tests/test-duplocale.c (main): Print reason for skipped test.
33985
33986 2010-04-05  Bruno Haible  <bruno@clisp.org>
33987
33988         Assume rmdir exists.
33989         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33990         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33991
33992 2010-04-05  Bruno Haible  <bruno@clisp.org>
33993
33994         Fix link error on Solaris 8 with cc.
33995         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33996
33997 2010-04-05  Bruno Haible  <bruno@clisp.org>
33998
33999         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34000         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
34001
34002 2010-04-05  Bruno Haible  <bruno@clisp.org>
34003
34004         vasprintf: Update documentation.
34005         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
34006
34007 2010-04-05  Bruno Haible  <bruno@clisp.org>
34008
34009         ptsname: Improve test.
34010         * tests/test-ptsname.c (main): Also try the various master names of BSD
34011         systems.
34012
34013 2010-04-05  Bruno Haible  <bruno@clisp.org>
34014
34015         memchr: Avoid a possible C++ test error.
34016         * lib/string.in.h (memchr): Provide declaration if function is missing.
34017         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
34018         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
34019         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
34020         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
34021
34022 2010-04-05  Bruno Haible  <bruno@clisp.org>
34023
34024         strtok_r: Improve idiom.
34025         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
34026         AC_LIBOBJ is used.
34027
34028 2010-04-05  Bruno Haible  <bruno@clisp.org>
34029
34030         strdup: Improve idiom.
34031         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
34032         AC_LIBOBJ is used.
34033         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
34034         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
34035         when AC_LIBOBJ is used.
34036
34037 2010-04-05  Bruno Haible  <bruno@clisp.org>
34038
34039         mbsinit, mbrtowc, wcrtomb: Improve idioms.
34040         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
34041         don't set REPLACE_MBSINIT to 1.
34042         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
34043         don't set REPLACE_MBRTOWC to 1.
34044         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
34045         exist, don't set REPLACE_MBSRTOWCS to 1.
34046         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
34047         exist, don't set REPLACE_MBSNRTOWCS to 1.
34048         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
34049         don't set REPLACE_WCRTOMB to 1.
34050         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
34051         exist, don't set REPLACE_WCSRTOMBS to 1.
34052         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
34053         exist, don't set REPLACE_WCSNRTOMBS to 1.
34054
34055 2010-04-05  Bruno Haible  <bruno@clisp.org>
34056
34057         ldexpl: Improve idiom.
34058         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
34059         make sure to set HAVE_DECL_LDEXPL to 0.
34060
34061 2010-04-05  Jim Meyering  <meyering@redhat.com>
34062
34063         xstrtol-tests: convert to use init.sh
34064         * modules/xstrtol-tests (Files): Add tests/init.sh.
34065         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34066         Use Exit, not exit.
34067         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34068
34069         atexit-tests: convert to use init.sh
34070         * modules/atexit-tests (Files): Add tests/init.sh.
34071         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
34072         Use Exit, not exit.
34073         Remove uses of $EXEEXT and "./" to run a program in the current dir.
34074
34075         init.sh: fix typo
34076         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
34077
34078         init.sh: make it easier for a test script to write to the tty, ...
34079         when using automake's parallel-tests mode.
34080         * tests/init.sh (stderr_fileno_): Define overridable variable.
34081         (warn_): New function, to use it.
34082         (fail_, skip_, framework_failure_): Use warn_.
34083
34084 2010-04-04  Bruno Haible  <bruno@clisp.org>
34085
34086         btowc: Avoid warning.
34087         * lib/btowc.c: Include <stdlib.h>.
34088         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
34089
34090 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34091             Bruno Haible  <bruno@clisp.org>
34092
34093         wchar: Port to NetBSD 1.5.
34094         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
34095         * lib/wctype.in.h (WEOF): Likewise.
34096
34097 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
34098             Bruno Haible  <bruno@clisp.org>
34099
34100         Port extended stdio to NetBSD 1.5.
34101         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
34102         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
34103         older.
34104
34105 2010-04-04  Bruno Haible  <bruno@clisp.org>
34106
34107         string: Remove unused substitution.
34108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
34109         HAVE_DECL_STRERROR.
34110         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
34111
34112 2010-04-04  Bruno Haible  <bruno@clisp.org>
34113
34114         strtod: Avoid a possible C++ test error.
34115         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
34116         set REPLACE_STRTOD.
34117
34118 2010-04-04  Bruno Haible  <bruno@clisp.org>
34119
34120         strerror: Update documentation.
34121         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
34122
34123 2010-04-04  Bruno Haible  <bruno@clisp.org>
34124
34125         stdio: Fix some C++ test errors on Solaris 8 with GCC.
34126         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
34127         _GL_CXXALIAS_SYS_CAST.
34128
34129 2010-04-04  Bruno Haible  <bruno@clisp.org>
34130
34131         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
34132         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
34133         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
34134         REPLACE_FREXPL to 1.
34135         * doc/posix-functions/frexpl.texi: Update documentation.
34136
34137 2010-04-04  Bruno Haible  <bruno@clisp.org>
34138
34139         math: Fix some C++ test errors on Solaris 8 and Cygwin.
34140         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
34141
34142 2010-04-04  Bruno Haible  <bruno@clisp.org>
34143
34144         Implement nanosleep for native Windows.
34145         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
34146
34147 2010-04-04  Bruno Haible  <bruno@clisp.org>
34148
34149         math: Fix some C++ test errors on Solaris 8.
34150         * lib/math.in.h (truncf, trunc): Use simpler idiom.
34151
34152 2010-04-04  Bruno Haible  <bruno@clisp.org>
34153
34154         math: Fix some C++ test errors on Cygwin.
34155         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
34156         truncl): Provide declaration if the system does not have it.
34157         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
34158         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
34159         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
34160         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
34161         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
34162         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
34163         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
34164         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
34165         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
34166         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
34167         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
34168         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
34169         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
34170         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
34171         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
34172         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
34173         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
34174         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34175         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34176         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
34177         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
34178         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
34179
34180 2010-04-04  Bruno Haible  <bruno@clisp.org>
34181
34182         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
34183         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
34184         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
34185         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
34186         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
34187         * m4/isinf.m4 (gl_ISINF): Likewise.
34188         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
34189
34190 2010-04-04  Bruno Haible  <bruno@clisp.org>
34191
34192         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
34193         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
34194
34195 2010-04-04  Bruno Haible  <bruno@clisp.org>
34196
34197         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
34198         * modules/tmpfile (configure.ac): Update.
34199
34200         tmpfile: Fix C++ test error on mingw.
34201         * lib/stdio.in.h (tmpfile): New declaration.
34202         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
34203         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
34204         * modules/tmpfile (Depends-on): Add stdio.
34205         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
34206         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
34207         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
34208         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
34209         REPLACE_TMPFILE.
34210         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
34211
34212 2010-04-04  Bruno Haible  <bruno@clisp.org>
34213
34214         ioctl: Fix C++ test error on mingw.
34215         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
34216         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
34217         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
34218
34219 2010-04-03  Bruno Haible  <bruno@clisp.org>
34220
34221         wcwidth: Fix C++ test error on mingw.
34222         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
34223         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
34224         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
34225
34226 2010-04-03  Bruno Haible  <bruno@clisp.org>
34227
34228         nanosleep: Fix C++ test error on mingw.
34229         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
34230         * lib/time.in.h (nanosleep): Use modern idiom.
34231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
34232         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
34233         REPLACE_NANOSLEEP to 1.
34234         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
34235         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
34236
34237 2010-04-03  Bruno Haible  <bruno@clisp.org>
34238
34239         strptime: Fix C++ test error on mingw.
34240         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
34241         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
34242         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
34243         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
34244         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
34245         not REPLACE_STRPTIME.
34246         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
34247         REPLACE_STRPTIME.
34248
34249 2010-04-03  Bruno Haible  <bruno@clisp.org>
34250
34251         timegm: Fix C++ test error on mingw.
34252         * lib/time.in.h (timegm): Use modern idiom.
34253         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
34254         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
34255         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
34256         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
34257
34258 2010-04-03  Bruno Haible  <bruno@clisp.org>
34259
34260         timegm: Assume declaration if function exists.
34261         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
34262         if it exists. Don't clobber ac_cv_func_timegm.
34263
34264 2010-04-03  Bruno Haible  <bruno@clisp.org>
34265
34266         time_r: Fix C++ test error on mingw.
34267         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
34268         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
34269         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
34270         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
34271         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
34272
34273 2010-04-03  Bruno Haible  <bruno@clisp.org>
34274
34275         time_r: Minor updates.
34276         * modules/time_r (Description): Mention the provided functions.
34277         * lib/time_r.c: Don't include <string.h>.
34278         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
34279         * doc/posix-functions/localtime_r.texi: Likewise.
34280
34281 2010-04-03  Bruno Haible  <bruno@clisp.org>
34282
34283         time: Fix regression introduced on 2010-03-08.
34284         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
34285         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
34286
34287 2010-04-03  Jim Meyering  <meyering@redhat.com>
34288
34289         maint.mk: don't silently disable project-specific syntax-check rules
34290         * top/maint.mk (_prohibit_regexp): Define, to help people realize
34291         that they need to convert their project-specific syntax-check rules
34292         to use the new _sc_search_regexp.
34293
34294 2010-04-03  Bruno Haible  <bruno@clisp.org>
34295
34296         fchdir: Fix regression introduced on 2010-03-08.
34297         * lib/unistd.in.h (fchdir): Fix declaration.
34298         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
34299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
34300         REPLACE_FCHDIR.
34301         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
34302         REPLACE_FCHDIR.
34303
34304 2010-04-03  Bruno Haible  <bruno@clisp.org>
34305
34306         getpagesize: Fix C++ test error on mingw.
34307         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
34308         system does not declare the function.
34309         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
34310         declared.
34311         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34312         HAVE_DECL_GETPAGESIZE.
34313         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
34314
34315 2010-04-03  Bruno Haible  <bruno@clisp.org>
34316
34317         stdio: Make C++ tests work on mingw.
34318         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
34319         does not declare the function.
34320
34321 2010-04-03  Bruno Haible  <bruno@clisp.org>
34322
34323         ftello: Fix C++ test error on mingw.
34324         * lib/stdio.in.h (ftello): Use modern idiom.
34325         * lib/ftello.c (ftello): Renamed from rpl_ftello.
34326         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
34327         is missing and that it needs to be replaced.
34328         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
34329         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
34330         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
34331
34332 2010-04-03  Bruno Haible  <bruno@clisp.org>
34333
34334         fseeko: Fix C++ test error on mingw.
34335         * lib/stdio.in.h (fseeko): Use modern idiom.
34336         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
34337         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
34338         is missing and that it needs to be replaced.
34339         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
34340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
34341         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
34342
34343 2010-04-03  Bruno Haible  <bruno@clisp.org>
34344
34345         mkstemp: Fix C++ test error on mingw.
34346         * lib/stdlib.in.h (mkstemp): Use modern idiom.
34347         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
34348         function is missing and that it needs to be replaced.
34349         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
34350         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
34351
34352 2010-04-03  Bruno Haible  <bruno@clisp.org>
34353
34354         stpncpy: Fix C++ test error on mingw.
34355         * lib/string.in.h (stpncpy): Use modern idiom.
34356         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
34357         function is missing and that it needs to be replaced.
34358         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
34359         REPLACE_STPNCPY.
34360         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
34361
34362 2010-04-03  Bruno Haible  <bruno@clisp.org>
34363
34364         sys_stat: Fix C++ test error on mingw.
34365         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
34366         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
34367
34368 2010-04-03  Bruno Haible  <bruno@clisp.org>
34369
34370         pty: Update doc.
34371         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
34372
34373 2010-04-03  Bruno Haible  <bruno@clisp.org>
34374
34375         unistd: Fix C++ test error on mingw.
34376         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
34377
34378 2010-04-03  Bruno Haible  <bruno@clisp.org>
34379
34380         Update doc regarding mingw.
34381         * doc/glibc-functions/openpty.texi: Update regarding mingw.
34382         * doc/glibc-functions/login_tty.texi: Likewise.
34383         * doc/glibc-functions/forkpty.texi: Likewise.
34384
34385 2010-04-03  Bruno Haible  <bruno@clisp.org>
34386
34387         stdlib: Avoid compilation failure of c-strtold on mingw.
34388         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
34389
34390 2010-04-03  Bruno Haible  <bruno@clisp.org>
34391
34392         locale: Make C++ tests work on Cygwin and mingw.
34393         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
34394         cannot provide the function.
34395         Reported by Simon Josefsson.
34396
34397 2010-04-03  Bruno Haible  <bruno@clisp.org>
34398
34399         localename: Port to MacOS X 10.6.
34400         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
34401         memory layout of the locales in MacOS X 10.6 as well.
34402         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
34403
34404 2010-04-02  Bruno Haible  <bruno@clisp.org>
34405
34406         gnulib-tool: Ensure that long-running tests are executed last.
34407         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
34408         running tests after the one for the other tests.
34409
34410 2010-04-02  Bruno Haible  <bruno@clisp.org>
34411
34412         gnulib-tool: Ensure the tests in the main directory are executed first.
34413         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
34414         start with the current directory.
34415
34416 2010-04-02  Bruno Haible  <bruno@clisp.org>
34417
34418         Tests for module 'havelib', moved here from GNU gettext.
34419         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
34420         modifications.
34421         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
34422         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
34423         with modifications.
34424         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
34425         modifications.
34426         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
34427         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
34428         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
34429         with modifications.
34430         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
34431         with modifications.
34432         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
34433         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
34434         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
34435         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
34436         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
34437         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
34438         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
34439         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
34440         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
34441         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
34442         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
34443         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
34444         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
34445         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
34446         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
34447         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
34448         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
34449         with modifications.
34450         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
34451         with modifications.
34452         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
34453         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
34454         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
34455         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
34456         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
34457         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
34458         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
34459         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
34460         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
34461         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
34462         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
34463         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
34464         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
34465         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
34466         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
34467         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
34468         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
34469         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
34470         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
34471         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
34472         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
34473         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
34474         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
34475         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
34476         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
34477         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
34478         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
34479         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
34480         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
34481         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
34482         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
34483         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
34484         * tests/havelib/rpathx/rpathx.c: New file, from
34485         gettext/autoconf-lib-link.
34486         * tests/havelib/rpathx/Makefile.am: New file, from
34487         gettext/autoconf-lib-link.
34488         * tests/havelib/rpathx/configure.ac: New file, from
34489         gettext/autoconf-lib-link with modifications.
34490         * tests/havelib/rpathy/rpathy.c: New file, from
34491         gettext/autoconf-lib-link.
34492         * tests/havelib/rpathy/Makefile.am: New file, from
34493         gettext/autoconf-lib-link.
34494         * tests/havelib/rpathy/configure.ac: New file, from
34495         gettext/autoconf-lib-link with modifications.
34496         * tests/havelib/rpathz/rpathz.c: New file, from
34497         gettext/autoconf-lib-link.
34498         * tests/havelib/rpathz/Makefile.am: New file, from
34499         gettext/autoconf-lib-link.
34500         * tests/havelib/rpathz/configure.ac: New file, from
34501         gettext/autoconf-lib-link with modifications.
34502         * tests/havelib/rpathlx/usex.c: New file, from
34503         gettext/autoconf-lib-link.
34504         * tests/havelib/rpathlx/Makefile.am: New file, from
34505         gettext/autoconf-lib-link.
34506         * tests/havelib/rpathlx/configure.ac: New file, from
34507         gettext/autoconf-lib-link with modifications.
34508         * tests/havelib/rpathly/usey.c: New file, from
34509         gettext/autoconf-lib-link.
34510         * tests/havelib/rpathly/Makefile.am: New file, from
34511         gettext/autoconf-lib-link.
34512         * tests/havelib/rpathly/configure.ac: New file, from
34513         gettext/autoconf-lib-link with modifications.
34514         * tests/havelib/rpathlz/usez.c: New file, from
34515         gettext/autoconf-lib-link.
34516         * tests/havelib/rpathlz/Makefile.am: New file, from
34517         gettext/autoconf-lib-link.
34518         * tests/havelib/rpathlz/configure.ac: New file, from
34519         gettext/autoconf-lib-link with modifications.
34520         * tests/havelib/rpathlyx/usey.c: New file, from
34521         gettext/autoconf-lib-link.
34522         * tests/havelib/rpathlyx/Makefile.am: New file, from
34523         gettext/autoconf-lib-link.
34524         * tests/havelib/rpathlyx/configure.ac: New file, from
34525         gettext/autoconf-lib-link with modifications.
34526         * tests/havelib/rpathlzyx/usez.c: New file, from
34527         gettext/autoconf-lib-link.
34528         * tests/havelib/rpathlzyx/Makefile.am: New file, from
34529         gettext/autoconf-lib-link.
34530         * tests/havelib/rpathlzyx/configure.ac: New file, from
34531         gettext/autoconf-lib-link with modifications.
34532         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
34533         with modifications.
34534
34535 2010-04-02  Bruno Haible  <bruno@clisp.org>
34536
34537         gnulib-tool: Create distributed built sources also for the tests.
34538         * gnulib-tool (func_create_testdir): Also generate distributed built
34539         sources in the tests directory.
34540
34541 2010-04-02  Bruno Haible  <bruno@clisp.org>
34542
34543         gnulib-tool: Obey user's environment variables.
34544         * gnulib-tool (func_create_testdir): When creating built sources,
34545         respect the environment variables for autoconf, automake, etc. given by
34546         the user.
34547
34548 2010-04-02  Bruno Haible  <bruno@clisp.org>
34549
34550         gnulib-tool: Provide the value of --m4-base to modules.
34551         * gnulib-tool (func_import, func_create_testdir): Emit a definition
34552         of gl_m4_base.
34553
34554 2010-04-02  Eric Blake  <eblake@redhat.com>
34555
34556         maint.mk: fix some fallout
34557         * NEWS: Document the incompatible change, and its effect on cfg.mk.
34558         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
34559
34560 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34561
34562         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
34563         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
34564         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
34565         (sc_cast_of_x_alloc_return_value): Likewise.
34566         (sc_cast_of_alloca_return_value): Likewise.
34567         (sc_space_tab): Likewise.
34568         (sc_prohibit_atoi_atof): Likewise.
34569         (sc_prohibit_magic_number_exit): Likewise.
34570         (sc_error_exit_success): Likewise.
34571         (sc_file_system): Likewise.
34572         (sc_prohibit_have_config_h): Likewise.
34573         (sc_require_config_h): Likewise.
34574         (sc_prohibit_HAVE_MBRTOWC): Likewise.
34575         (sc_obsolete_symbols): Likewise.
34576         (sc_changelog): Likewise.
34577         (sc_program_name): Likewise.
34578         (sc_the_the): Likewise.
34579         (sc_trailing_blank): Likewise.
34580         (sc_two_space_separator_in_usage): Likewise.
34581         (sc_useless_cpp_parens): Likewise.
34582         (sc_GPL_version): Likewise.
34583         (sc_GFDL_version): Likewise.
34584         (sc_texinfo_acronym): Likewise.
34585         (sc_prohibit_cvs_keyword): Likewise.
34586         (sc_prohibit_stat_st_blocks): Likewise.
34587         (sc_prohibit_S_IS_definition): Likewise.
34588         (sc_redundant_const): Likewise.
34589         (sc_makefile_TAB_only_indentation): Likewise.
34590         (sc_m4_quote_check): Likewise.
34591         (sc_makefile_path_separator_check): Likewise.
34592         (sc_copyright_check): Likewise.
34593         (sc_Wundef_boolean): Likewise.
34594         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
34595
34596         maint.mk: match 0 or more whitespace-before-function-call '('
34597         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
34598         that have zero or two-and-more spaces between the function name
34599         and the open parenthesis.
34600         (sc_error_message_warn_fatal): Likewise.
34601         (sc_error_message_uppercase): Likewise.
34602         (sc_error_message_period): Likewise.
34603
34604 2010-03-31  Eric Blake  <eblake@redhat.com>
34605
34606         maint.mk: check for [ as well as test
34607         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
34608         Based on a libvirt report by Matthias Bolte.
34609
34610         gnumakefile: don't squelch _version output
34611         * top/GNUmakefile (_version): Create one-shot dependency rather
34612         than using $(shell) when version must be regenerated.
34613         (_autoreconf): Run verbosely, by default.
34614
34615         sys_time: avoid compiler warnings
34616         * lib/sys_time.in.h (includes): Ensure gcc pragma is
34617         unconditional, fixing regression from 2010-03-29.
34618         Reported by Simon Josefsson.
34619
34620 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
34621
34622         maint.mk: s/_header_without_use/_sc_header_without_use/
34623         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
34624         (sc_prohibit_assert_without_use): Use the new name.
34625         (sc_prohibit_close_stream_without_use): Likewise.
34626         (sc_prohibit_getopt_without_use): Likewise.
34627         (sc_prohibit_quotearg_without_use): Likewise.
34628         (sc_prohibit_quote_without_use): Likewise.
34629         (sc_prohibit_long_options_without_use): Likewise.
34630         (sc_prohibit_inttostr_without_use): Likewise.
34631         (sc_prohibit_ignore_value_without_use): Likewise.
34632         (sc_prohibit_error_without_use): Likewise.
34633         (sc_prohibit_xalloc_without_use): Likewise.
34634         (sc_prohibit_hash_without_use): Likewise.
34635         (sc_prohibit_hash_pjw_without_use): Likewise.
34636         (sc_prohibit_safe_read_without_use): Likewise.
34637         (sc_prohibit_argmatch_without_use): Likewise.
34638         (sc_prohibit_canonicalize_without_use): Likewise.
34639         (sc_prohibit_root_dev_ino_without_use): Likewise.
34640         (sc_prohibit_openat_without_use): Likewise.
34641         (sc_prohibit_c_ctype_without_use): Likewise.
34642         (sc_prohibit_signal_without_use): Likewise.
34643         (sc_prohibit_intprops_without_use): Likewise.
34644
34645 2010-03-30  Eric Blake  <eblake@redhat.com>
34646
34647         maint: improve module indicators
34648         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
34649         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
34650         columns, and avoid extra macro expansion.
34651
34652         fdopendir: work around FreeBSD bug
34653         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
34654         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
34655         * modules/dirent (Makefile.am): Substitute it.
34656         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
34657         declaration.
34658         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
34659         fix.
34660         Reported by Christian Weisgerber <naddy@mips.inka.de>.
34661
34662 2010-03-29  Bruno Haible  <bruno@clisp.org>
34663
34664         Emit #pragma system_header after the inclusion guard, not before.
34665         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
34666         guard that spans the entire file, not before. This enables an
34667         optimization in GCC's preprocessor.
34668         * lib/ctype.in.h: Likewise.
34669         * lib/dirent.in.h: Likewise.
34670         * lib/errno.in.h: Likewise.
34671         * lib/float.in.h: Likewise.
34672         * lib/getopt.in.h: Likewise.
34673         * lib/iconv.in.h: Likewise.
34674         * lib/langinfo.in.h: Likewise.
34675         * lib/locale.in.h: Likewise.
34676         * lib/math.in.h: Likewise.
34677         * lib/netdb.in.h: Likewise.
34678         * lib/netinet_in.in.h: Likewise.
34679         * lib/pty.in.h: Likewise.
34680         * lib/sched.in.h: Likewise.
34681         * lib/se-selinux.in.h: Likewise.
34682         * lib/search.in.h: Likewise.
34683         * lib/spawn.in.h: Likewise.
34684         * lib/stdarg.in.h: Likewise.
34685         * lib/stdint.in.h: Likewise.
34686         * lib/string.in.h: Likewise.
34687         * lib/strings.in.h: Likewise.
34688         * lib/sys_file.in.h: Likewise.
34689         * lib/sys_ioctl.in.h: Likewise.
34690         * lib/sys_time.in.h: Likewise.
34691         * lib/sys_times.in.h: Likewise.
34692         * lib/sys_utsname.in.h: Likewise.
34693         * lib/sys_wait.in.h: Likewise.
34694         * lib/sysexits.in.h: Likewise.
34695         * lib/wctype.in.h: Likewise.
34696
34697 2010-03-28  James Youngman  <jay@gnu.org>
34698
34699         save-cwd: don't leak a file descriptor when the caller execs.
34700         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
34701         saved file descriptor.
34702         * modules/save-cwd (Depends-on): Depend on cloexec.
34703
34704 2010-03-29  Bruno Haible  <bruno@clisp.org>
34705
34706         Remove vestiges of fts-lgpl module.
34707         * lib/fts_.h: Assume GNULIB_FTS is 1.
34708         * lib/fts.c: Likewise.
34709         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34710
34711 2010-03-28  Bruno Haible  <bruno@clisp.org>
34712
34713         Fix definition of tests witness macro.
34714         * gnulib-tool (func_import): Fix definition of witness macro.
34715
34716 2010-03-28  Bruno Haible  <bruno@clisp.org>
34717
34718         Fix ioctl's protoype on glibc systems.
34719         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
34720         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
34721         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
34722         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
34723         signature. If not, arrange to replace the ioctl function.
34724         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
34725         REPLACE_IOCTL.
34726         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
34727         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
34728         Reported by Ludovic Courtès <ludo@gnu.org>.
34729
34730 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
34731
34732         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
34733         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
34734         made it so grep -r --include=GLOB* ... did not work.
34735
34736 2010-03-26  Jim Meyering  <meyering@redhat.com>
34737             Eric Blake  <eblake@redhat.com>
34738
34739         maint.mk: prohibit use of test's -o and -a operators
34740         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
34741
34742 2010-03-28  Bruno Haible  <bruno@clisp.org>
34743
34744         Remove unused GNULIB_XYZ macro definitions.
34745         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
34746         invocation.
34747
34748 2010-03-28  Bruno Haible  <bruno@clisp.org>
34749
34750         Mark privileged tests modules.
34751         * modules/idpriv-drop-tests (Status): New section.
34752         * modules/idpriv-droptemp-tests (Status): New section.
34753
34754 2010-03-28  Bruno Haible  <bruno@clisp.org>
34755
34756         Split C++ tests into separate tests modules.
34757         * modules/dirent-c++-tests: New file, extracted from
34758         modules/dirent-tests.
34759         * modules/dirent-tests: Depend on it.
34760         * modules/fcntl-h-c++-tests: New file, extracted from
34761         modules/fcntl-h-tests.
34762         * modules/fcntl-h-tests: Depend on it.
34763         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
34764         * modules/glob-tests: Depend on it.
34765         * modules/iconv-h-c++-tests: New file, extracted from
34766         modules/iconv-h-tests.
34767         * modules/iconv-h-tests: Depend on it.
34768         * modules/langinfo-c++-tests: New file, extracted from
34769         modules/langinfo-tests.
34770         * modules/langinfo-tests: Depend on it.
34771         * modules/locale-c++-tests: New file, extracted from
34772         modules/locale-tests.
34773         * modules/locale-tests: Depend on it.
34774         * modules/math-c++-tests: New file, extracted from modules/math-tests.
34775         * modules/math-tests: Depend on it.
34776         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
34777         * modules/pty-tests: Depend on it.
34778         * modules/search-c++-tests: New file, extracted from
34779         modules/search-tests.
34780         * modules/search-tests: Depend on it.
34781         * modules/signal-c++-tests: New file, extracted from
34782         modules/signal-tests.
34783         * modules/signal-tests: Depend on it.
34784         * modules/spawn-c++-tests: New file, extracted from
34785         modules/spawn-tests.
34786         * modules/spawn-tests: Depend on it.
34787         * modules/stdio-c++-tests: New file, extracted from
34788         modules/stdio-tests.
34789         * modules/stdio-tests: Depend on it.
34790         * modules/stdlib-c++-tests: New file, extracted from
34791         modules/stdlib-tests.
34792         * modules/stdlib-tests: Depend on it.
34793         * modules/string-c++-tests: New file, extracted from
34794         modules/string-tests.
34795         * modules/string-tests: Depend on it.
34796         * modules/sys_ioctl-c++-tests: New file, extracted from
34797         modules/sys_ioctl-tests.
34798         * modules/sys_ioctl-tests: Depend on it.
34799         * modules/sys_select-c++-tests: New file, extracted from
34800         modules/sys_select-tests.
34801         * modules/sys_select-tests: Depend on it.
34802         * modules/sys_socket-c++-tests: New file, extracted from
34803         modules/sys_socket-tests.
34804         * modules/sys_socket-tests: Depend on it.
34805         * modules/sys_stat-c++-tests: New file, extracted from
34806         modules/sys_stat-tests.
34807         * modules/sys_stat-tests: Depend on it.
34808         * modules/sys_time-c++-tests: New file, extracted from
34809         modules/sys_time-tests.
34810         * modules/sys_time-tests: Depend on it.
34811         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34812         * modules/time-tests: Depend on it.
34813         * modules/unistd-c++-tests: New file, extracted from
34814         modules/unistd-tests.
34815         * modules/unistd-tests: Depend on it.
34816         * modules/wchar-c++-tests: New file, extracted from
34817         modules/wchar-tests.
34818         * modules/wchar-tests: Depend on it.
34819         * modules/wctype-c++-tests: New file, extracted from
34820         modules/wctype-tests.
34821         * modules/wctype-tests: Depend on it.
34822         Reported by Simon Josefsson.
34823
34824 2010-03-28  Bruno Haible  <bruno@clisp.org>
34825
34826         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34827         * gnulib-tool (func_exists_module): New function, extracted from
34828         func_verify_module.
34829         (func_verify_module): Use it.
34830         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34831         'foo' only if 'foo' exists.
34832         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34833         module.
34834
34835 2010-03-28  Bruno Haible  <bruno@clisp.org>
34836
34837         gnulib-tool: Add support for special categories of tests.
34838         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34839         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34840         (func_usage): Document them.
34841         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34842         inc_unportable_tests, inc_all_tests): New variables.
34843         (func_acceptable): Consider these variables.
34844         (func_modules_transitive_closure): Make it work when the 'Status' field
34845         consists of multiple words.
34846         (func_import): Store and restore the values of inc_cxx_tests,
34847         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34848         inc_all_tests in gnulib-comp.m4.
34849         (func_create_testdir): Set inc_all_tests to true.
34850         * doc/gnulib.texi (Extra tests modules): New section.
34851         Suggested by Jim Meyering.
34852
34853 2010-03-28  Bruno Haible  <bruno@clisp.org>
34854
34855         ansi-c++-opt: Allow turning off the C++ build by default.
34856         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34857         gl_CXX_CHOICE_DEFAULT_NO is defined.
34858         Requested by Eric Blake.
34859
34860 2010-03-28  Bruno Haible  <bruno@clisp.org>
34861
34862         unistd: Avoid #define replacements in C++ mode.
34863         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34864         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34865         setsockopt, shutdown, select): In C++, attach a warning to the function
34866         if possible, rather than #defining the symbol to a dysfunctional alias.
34867         Reported by John W. Eaton <jwe@gnu.org>.
34868
34869 2010-03-28  Bruno Haible  <bruno@clisp.org>
34870
34871         Fix link errors on mingw.
34872         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34873         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34874         $(LIBSOCKET).
34875         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34876         $(LIBSOCKET).
34877
34878 2010-03-28  Bruno Haible  <bruno@clisp.org>
34879             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34880
34881         lib-ignore: Determine different options for different compilers.
34882         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34883         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34884         Add comments.
34885         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34886         * NEWS: Mention the change.
34887
34888 2010-03-27  Bruno Haible  <bruno@clisp.org>
34889
34890         Remove unused GNULIB_XYZ macro definitions.
34891         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34892         * modules/fseek (configure.ac): Likewise.
34893         * modules/ioctl (configure.ac): Likewise.
34894         * modules/open (configure.ac): Likewise.
34895         * modules/stdlib-safer (configure.ac): Likewise.
34896
34897 2010-03-27  Bruno Haible  <bruno@clisp.org>
34898
34899         Add a remark about certain modules.
34900         * modules/malloc (Comment): New section.
34901         * modules/realloc (Comment): Likewise.
34902         * modules/sigpipe (Comment): Likewise.
34903
34904 2010-03-27  Bruno Haible  <bruno@clisp.org>
34905
34906         Resolve conflict between the two kinds of module indicators.
34907         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34908         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34909         * modules/canonicalize (configure.ac): Invoke
34910         gl_MODULE_INDICATOR_FOR_TESTS.
34911         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34912         GNULIB_XYZ.
34913         * tests/test-dirent-c++.cc: Likewise.
34914         * tests/test-dirent-safer.c: Likewise.
34915         * tests/test-dup2.c: Likewise.
34916         * tests/test-fchdir.c: Likewise.
34917         * tests/test-fcntl-h-c++.cc: Likewise.
34918         * tests/test-getopt.c: Likewise.
34919         * tests/test-getopt.h: Likewise.
34920         * tests/test-langinfo-c++.cc: Likewise.
34921         * tests/test-locale-c++.cc: Likewise.
34922         * tests/test-math-c++.cc: Likewise.
34923         * tests/test-pty-c++.cc: Likewise.
34924         * tests/test-search-c++.cc: Likewise.
34925         * tests/test-signal-c++.cc: Likewise.
34926         * tests/test-spawn-c++.cc: Likewise.
34927         * tests/test-stdio-c++.cc: Likewise.
34928         * tests/test-stdlib-c++.cc: Likewise.
34929         * tests/test-string-c++.cc: Likewise.
34930         * tests/test-sys_ioctl-c++.cc: Likewise.
34931         * tests/test-sys_select-c++.cc: Likewise.
34932         * tests/test-sys_socket-c++.cc: Likewise.
34933         * tests/test-sys_stat-c++.cc: Likewise.
34934         * tests/test-sys_time-c++.cc: Likewise.
34935         * tests/test-time-c++.cc: Likewise.
34936         * tests/test-unistd-c++.cc: Likewise.
34937         * tests/test-wchar-c++.cc: Likewise.
34938         * tests/uninorm/test-u8-nfc.c: Likewise.
34939         * tests/uninorm/test-u8-nfd.c: Likewise.
34940         * tests/uninorm/test-u8-nfkc.c: Likewise.
34941         * tests/uninorm/test-u8-nfkd.c: Likewise.
34942         * tests/uninorm/test-u16-nfc.c: Likewise.
34943         * tests/uninorm/test-u16-nfd.c: Likewise.
34944         * tests/uninorm/test-u16-nfkc.c: Likewise.
34945         * tests/uninorm/test-u16-nfkd.c: Likewise.
34946         * tests/uninorm/test-u32-nfc.c: Likewise.
34947         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34948         * tests/uninorm/test-u32-nfd.c: Likewise.
34949         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34950         * tests/uninorm/test-u32-nfkc.c: Likewise.
34951         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34952         * tests/uninorm/test-u32-nfkd.c: Likewise.
34953         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34954         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34955
34956 2010-03-27  Bruno Haible  <bruno@clisp.org>
34957
34958         Distinguish two kinds of module indicators.
34959         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34960         gl_MODULE_INDICATOR.
34961         (gl_MODULE_INDICATOR): New macro.
34962         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34963         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34964         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34965         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34966         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34967         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34968         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34969         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34970         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34971         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34972         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34973         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34974         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34975         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34976         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34977         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34978         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34979         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34980         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34981         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34982         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34983         * modules/cloexec (configure.ac): Likewise.
34984         * modules/getopt-gnu (configure.ac): Likewise.
34985         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34986         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34987         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34988         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34989
34990 2010-03-27  Bruno Haible  <bruno@clisp.org>
34991
34992         New module description field 'Comment'.
34993         * gnulib-tool: New option --extract-comment.
34994         (func_usage): Document it.
34995         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34996         (func_get_comment): New function.
34997         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34998
34999 2010-03-27  Bruno Haible  <bruno@clisp.org>
35000
35001         Addendum to 2010-02-07 commit.
35002         * gnulib-tool (func_usage): Document --extract-applicability option.
35003
35004 2010-03-27  Bruno Haible  <bruno@clisp.org>
35005
35006         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
35007         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
35008         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
35009         rather than link errors.
35010
35011 2010-03-27  Bruno Haible  <bruno@clisp.org>
35012
35013         Avoid side effects from tests-related modules on the compilation of lib.
35014         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
35015         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
35016         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
35017         parameter. Emit into AM_CPPFLAGS a definition of the designated C
35018         macro.
35019         (func_import): Define a witness macro. Assign it a value that depends
35020         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
35021         tests-related modules.
35022         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
35023         Reported by Jim Meyering.
35024
35025 2010-03-27  Bruno Haible  <bruno@clisp.org>
35026
35027         Factorize common .m4 code.
35028         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
35029         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
35030         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
35031         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
35032         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
35033         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
35034         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
35035         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
35036         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
35037         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
35038         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
35039         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
35040         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
35041         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
35042         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
35043         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
35044         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
35045         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
35046         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
35047         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
35048         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
35049         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
35050         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
35051         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
35052         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
35053         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
35054         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
35055         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
35056         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
35057         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
35058         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
35059         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
35060
35061 2010-03-27  Bruno Haible  <bruno@clisp.org>
35062
35063         Fix a compilation error on Cygwin with g++ >= 4.3.
35064         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
35065         if it is undefined or if we alias it to chmod.
35066         (lstat): Don't warn about the use of this function if it is undefined
35067         or if we alias it to stat.
35068         Reported by Simon Josefsson.
35069
35070 2010-03-27  Bruno Haible  <bruno@clisp.org>
35071
35072         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
35073         * modules/getlogin (configure.ac): Update.
35074
35075         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
35076         * modules/getlogin_r (configure.ac): Update.
35077
35078         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
35079         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
35080         * modules/inet_ntop (configure.ac): Update.
35081
35082         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
35083         * modules/inet_pton (configure.ac): Update.
35084
35085         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
35086         * modules/mbslen (configure.ac): Update.
35087
35088         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
35089         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
35090         * modules/forkpty (configure.ac): Update.
35091         * modules/openpty (configure.ac): Update.
35092
35093 2010-03-26  Simon Josefsson  <simon@josefsson.org>
35094
35095         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
35096         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
35097
35098 2010-03-25  Eric Blake  <eblake@redhat.com>
35099
35100         maint: use pragma consistently across replacement headers
35101         * lib/ctype.in.h (system_header): Hoist for consistent placement.
35102         * lib/dirent.in.h (system_header): Likewise.
35103         * lib/errno.in.h (system_header): Likewise.
35104         * lib/float.in.h (system_header): Likewise.
35105         * lib/getopt.in.h (system_header): Likewise.
35106         * lib/iconv.in.h (system_header): Likewise.
35107         * lib/inttypes.in.h (system_header): Likewise.
35108         * lib/langinfo.in.h (system_header): Likewise.
35109         * lib/locale.in.h (system_header): Likewise.
35110         * lib/math.in.h (system_header): Likewise.
35111         * lib/netdb.in.h (system_header): Likewise.
35112         * lib/netinet_in.in.h (system_header): Likewise.
35113         * lib/pty.in.h (system_header): Likewise.
35114         * lib/sched.in.h (system_header): Likewise.
35115         * lib/se-selinux.in.h (system_header): Likewise.
35116         * lib/search.in.h (system_header): Likewise.
35117         * lib/spawn.in.h (system_header): Likewise.
35118         * lib/stdarg.in.h (system_header): Likewise.
35119         * lib/stdint.in.h (system_header): Likewise.
35120         * lib/string.in.h (system_header): Likewise.
35121         * lib/strings.in.h (system_header): Likewise.
35122         * lib/sys_file.in.h (system_header): Likewise.
35123         * lib/sys_ioctl.in.h (system_header): Likewise.
35124         * lib/sys_socket.in.h (system_header): Likewise.
35125         * lib/sys_times.in.h (system_header): Likewise.
35126         * lib/sys_utsname.in.h (system_header): Likewise.
35127         * lib/sys_wait.in.h (system_header): Likewise.
35128         * lib/sysexits.in.h (system_header): Likewise.
35129         * lib/unistd.in.h (system_header): Likewise.
35130         * lib/wctype.in.h (system_header): Likewise.
35131
35132         arpa/inet: fix mingw compilation warning
35133         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
35134         Reported by Matthew Bolte.
35135
35136 2010-03-25  Bruno Haible  <bruno@clisp.org>
35137
35138         Avoid collision between gnulib wrapper and libintl wrapper.
35139         * lib/printf.c (printf): Don't define if a printf wrapper is already
35140         defined in intl/printf.c.
35141         Reported by Michel Boaventura <michel@michelboaventura.com>.
35142
35143 2010-03-25  Bruno Haible  <bruno@clisp.org>
35144
35145         Use ANSI C.
35146         * lib/readutmp.h (getutent): Provide ANSI C prototype.
35147
35148 2010-03-25  Bruno Haible  <bruno@clisp.org>
35149
35150         Minor formatting changes.
35151         * lib/acosl.c: Insert space before function argument list.
35152         * lib/argz.c: Likewise.
35153         * lib/asinl.c: Likewise.
35154         * lib/expl.c: Likewise.
35155         * lib/gen-uni-tables.c: Likewise.
35156         * lib/gettext.h: Likewise.
35157         * lib/glthread/lock.h: Likewise.
35158         * lib/tanl.c: Likewise.
35159         * lib/uniname/uniname.c: Likewise.
35160         * tests/test-idpriv-drop.c: Likewise.
35161         * tests/test-idpriv-droptemp.c: Likewise.
35162         * tests/test-lock.c: Likewise.
35163         * tests/test-tls.c: Likewise.
35164         * lib/argp-help.c: Insert space before function-like macro argument
35165         list.
35166         * lib/memcmp.c: Likewise.
35167         * tests/test-base64.c: Likewise.
35168         * lib/localename.c: Insert space before sizeof's argument list.
35169         * lib/safe-alloc.h: Likewise.
35170         * lib/file-set.h: Insert space before macro argument list.
35171         * tests/test-argp.c: Likewise.
35172         * lib/argp-namefrob.h: Insert space before function parameter list.
35173         * lib/getaddrinfo.c: Likewise.
35174         * lib/netdb.in.h: Likewise.
35175         * lib/parse-duration.h: Likewise.
35176         * lib/parse-duration.c: Likewise.
35177         * lib/poll.c: Likewise.
35178         * lib/select.c: Likewise.
35179         * lib/trim.h: Likewise.
35180         * tests/test-usleep.c: Likewise.
35181         * lib/ldexpl.c: Insert space before function parameter list and before
35182         function argument list.
35183         * lib/logl.c: Likewise.
35184         * lib/sqrtl.c: Likewise.
35185         * lib/trim.c: Likewise.
35186         * lib/cosl.c: Use GNU style indentation. Insert space before function
35187         argument list.
35188         * lib/sinl.c: Likewise.
35189         * lib/tsearch.c: Insert space after 'for'.
35190         Reported by Jim Meyering.
35191
35192 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
35193
35194         * maint.mk (sc_Wundef_boolean): Check for the presence of the
35195         config header before grepping, as it's not present before
35196         autoreconf/configure are run.  Reported by Simon Josefsson.
35197
35198 2010-03-23  Bruno Haible  <bruno@clisp.org>
35199
35200         pt_chown: Make it work with automake < 1.11.
35201         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
35202         Reported by Simon Josefsson.
35203
35204 2010-03-23  Bruno Haible  <bruno@clisp.org>
35205
35206         pt_chown: Don't depend on GPLed modules.
35207         * lib/pt_chown.c: Don't include idpriv.h.
35208         (main): Don't drop privileges.
35209         * modules/pt_chown (Depends-on): Remove idpriv-drop.
35210         Reported by Simon Josefsson.
35211
35212 2010-03-24  Simon Josefsson  <simon@josefsson.org>
35213
35214         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
35215         suggestions from karl@freefriends.org (Karl Berry).
35216
35217 2010-03-22  Eric Blake  <eblake@redhat.com>
35218
35219         gethostname: further tweaks
35220         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
35221         are overriding gethostname.
35222         Suggested by Bruno Haible.
35223
35224 2010-03-21  Bruno Haible  <bruno@clisp.org>
35225
35226         Fix comments.
35227         * lib/forkpty.c (rpl_forkpty): Fix comment.
35228         * lib/openpty.c (rpl_openpty): Likewise.
35229         Reported by Eric Blake.
35230
35231 2010-03-22  Eric Blake  <eblake@redhat.com>
35232
35233         gethostname: fix build on mingw
35234         * lib/unistd.in.h (includes): Work around fact that mingw
35235         <winsock2.h> re-includes <unistd.h>, by avoiding any
35236         redeclarations if we are being included by <winsock2.h>.
35237         Reported by Matthias Bolte.
35238
35239 2010-03-21  Bruno Haible  <bruno@clisp.org>
35240
35241         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35242         * lib/forkpty.c (forkpty): New replacement function, from glibc with
35243         modifications.
35244         * lib/pty.in.h (forkpty): Update declaration. Add comments.
35245         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
35246         provide the replacement.
35247         * modules/forkpty (Depends-on): Add openpty, login_tty.
35248         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
35249         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
35250         * doc/glibc-functions/forkpty.texi: More supported platforms.
35251         * config/srclist.txt: Add forkpty.c (commented).
35252
35253 2010-03-21  Bruno Haible  <bruno@clisp.org>
35254
35255         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
35256         (Makefile.am): Verify that PTY_LIB is defined.
35257
35258         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
35259
35260 2010-03-21  Bruno Haible  <bruno@clisp.org>
35261
35262         Tests for module 'login_tty'.
35263         * modules/login_tty-tests: New file.
35264         * tests/test-login_tty.c: New file.
35265
35266         New module 'login_tty'.
35267         * lib/login_tty.c: New file.
35268         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
35269         * modules/login_tty: New file.
35270         * doc/glibc-functions/login_tty.texi: Mention the new module.
35271
35272 2010-03-21  Bruno Haible  <bruno@clisp.org>
35273
35274         login_tty: Documentation.
35275         * doc/glibc-functions/login_tty.texi: New file.
35276         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
35277
35278 2010-03-21  Bruno Haible  <bruno@clisp.org>
35279
35280         pty: Consistent macro naming.
35281         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
35282         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
35283         * modules/pty (configure.ac): Update.
35284
35285 2010-03-21  Bruno Haible  <bruno@clisp.org>
35286
35287         Tests for openpty: Make stricter.
35288         * tests/test-openpty.c (main): Add test of canonical processing and
35289         erase.
35290         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
35291
35292         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
35293         * lib/openpty.c (openpty): New replacement function.
35294         * lib/pty.in.h: Include <termios.h>.
35295         (openpty): Update declaration. Add comments.
35296         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
35297         is not declared, arrange to provide the replacement. Check for _getpty
35298         and posix_openpt.
35299         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
35300         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
35301         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
35302         * modules/pty-tests (test_pty_c___LDADD): New variable.
35303         * doc/glibc-functions/openpty.texi: More supported platforms.
35304
35305 2010-03-21  Bruno Haible  <bruno@clisp.org>
35306
35307         setenv: Tweaks.
35308         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
35309         the test program.
35310         * doc/posix-functions/setenv.texi: Update platforms list.
35311
35312 2010-03-21  Bruno Haible  <bruno@clisp.org>
35313
35314         New module 'unlockpt'.
35315         * lib/unlockpt.c: New file, from glibc with modifications.
35316         * m4/unlockpt.m4: New file.
35317         * modules/unlockpt: New file.
35318         * lib/stdlib.in.h (unlockpt): New declaration.
35319         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
35320         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
35321         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
35322         HAVE_UNLOCKPT.
35323         * doc/posix-functions/unlockpt.texi: Mention the new module.
35324         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
35325         * config/srclist.txt: Add unlockpt.c (commented).
35326
35327 2010-03-21  Jim Meyering  <meyering@redhat.com>
35328
35329         maint.mk: prohibit inclusion of "intprops.h" without use
35330         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
35331
35332 2010-03-21  Bruno Haible  <bruno@clisp.org>
35333
35334         New module 'grantpt'.
35335         * lib/grantpt.c: New file, from glibc with modifications.
35336         * m4/grantpt.m4: New file.
35337         * modules/grantpt: New file.
35338         * lib/stdlib.in.h (grantpt): New declaration.
35339         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
35340         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
35341         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
35342         HAVE_GRANTPT.
35343         * doc/posix-functions/grantpt.texi: Mention the new module.
35344         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
35345         * config/srclist.txt: Add grantpt.c (commented).
35346
35347 2010-03-21  Bruno Haible  <bruno@clisp.org>
35348
35349         New module 'pt_chown'.
35350         * lib/pt_chown.c: New file, from glibc with modifications.
35351         * lib/pty-private.h: New file, from glibc with modifications.
35352         * modules/pt_chown: New file.
35353         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
35354
35355 2010-03-21  Bruno Haible  <bruno@clisp.org>
35356
35357         Tests for module 'ptsname'.
35358         * modules/ptsname-tests: New file.
35359         * tests/test-ptsname.c: New file.
35360
35361         New module 'ptsname'.
35362         * lib/ptsname.c: New file, from glibc with modifications.
35363         * m4/ptsname.m4: New file.
35364         * modules/ptsname: New file.
35365         * lib/stdlib.in.h (ptsname): New declaration.
35366         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
35367         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
35368         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
35369         HAVE_PTSNAME.
35370         * doc/posix-functions/ptsname.texi: Mention the new module.
35371         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
35372         * config/srclist.txt: Add ptsname.c (commented).
35373
35374 2010-03-21  Bruno Haible  <bruno@clisp.org>
35375
35376         Tests for module 'ttyname_r'.
35377         * modules/ttyname_r-tests: New file.
35378         * tests/test-ttyname_r.c: New file.
35379
35380         New module 'ttyname_r'.
35381         * lib/ttyname_r.c: New file.
35382         * m4/ttyname_r.m4: New file.
35383         * modules/ttyname_r: New file.
35384         * lib/unistd.in.h (ttyname_r): New declaration.
35385         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
35386         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
35387         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
35388         HAVE_TTYNAME_R.
35389         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
35390         * doc/posix-functions/ttyname_r.texi: Mention the new module.
35391
35392 2010-03-20  Bruno Haible  <bruno@clisp.org>
35393
35394         signal: Undefine macro definitions in C++ mode.
35395         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
35396         sigfillset): Undefine macro definitions from the system header in C++
35397         mode.
35398         Reported by John W. Eaton <jwe@gnu.org>.
35399
35400 2010-03-20  Bruno Haible  <bruno@clisp.org>
35401
35402         Ensure no #include statements inside extern "C" { ... }.
35403         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
35404         contain #include statements.
35405         * lib/time.in.h: Likewise.
35406
35407 2010-03-20  Bruno Haible  <bruno@clisp.org>
35408
35409         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
35410         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
35411         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
35412         Reported by John W. Eaton <jwe@gnu.org>.
35413
35414 2010-03-20  Bruno Haible  <bruno@clisp.org>
35415
35416         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
35417         Reported by Jim Meyering.
35418
35419 2010-03-20  Bruno Haible  <bruno@clisp.org>
35420
35421         pipe: Set errno upon failure.
35422         * lib/pipe.h: Specify that when -1 is returned, errno is set.
35423         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
35424         errno value in error message.
35425
35426 2010-03-20  Bruno Haible  <bruno@clisp.org>
35427             Jim Meyering  <meyering@redhat.com>
35428
35429         lchown: Avoid "unused variable" warning.
35430         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
35431
35432 2010-03-20  Bruno Haible  <bruno@clisp.org>
35433
35434         Work around unlink() bug on MacOS X 10.5.6.
35435         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
35436         attempting to unlink a parent directory.
35437         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
35438         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
35439         activate for the replacement function.
35440         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
35441
35442 2010-03-20  Bruno Haible  <bruno@clisp.org>
35443
35444         Fix link errors on Solaris 8.
35445         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
35446         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
35447
35448 2010-03-19  Jim Meyering  <meyering@redhat.com>
35449
35450         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
35451         The _LIBC implementation of build_range_exp correctly honors the
35452         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
35453         However, the non-_LIBC implementation would ignore that syntax-bit
35454         flag and return REG_ERANGE unconditionally.
35455         This change makes it honor that flag.
35456         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
35457         Make two pointer parameters "const".
35458         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
35459         (parse_bracket_exp): Update caller.
35460
35461         regex.m4: correct the reversed range endpoint ([b-a]) test
35462         * m4/regex.m4: When requiring that [b-a] evoke failure,
35463         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
35464         test pass once again for x86-based systems.
35465
35466 2010-03-19  Bruno Haible  <bruno@clisp.org>
35467
35468         scandir: Fix link error on Solaris 8.
35469         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
35470         macros.
35471
35472 2010-03-19  Bruno Haible  <bruno@clisp.org>
35473
35474         getusershell: Fix documentation.
35475         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
35476         module.
35477         * doc/glibc-functions/setusershell.texi: Likewise.
35478
35479         getusershell: Provide declaration, missing on Solaris 9.
35480         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
35481         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
35482         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
35483         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
35484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35485         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
35486         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
35487         HAVE_GETUSERSHELL.
35488         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
35489
35490 2010-03-19  Bruno Haible  <bruno@clisp.org>
35491
35492         wctype: Provide iswblank function.
35493         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
35494         exists and is fine.
35495         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
35496         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
35497         * tests/test-wctype.c (main): Re-enable the iswblank tests.
35498         * doc/posix-functions/iswblank.texi: Update.
35499
35500 2010-03-19  Bruno Haible  <bruno@clisp.org>
35501
35502         Tests of module 'pty' in C++ mode.
35503         * modules/pty-tests: New file.
35504         * tests/test-pty-c++.cc: New file.
35505         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35506
35507 2010-03-19  Eric Blake  <eblake@redhat.com>
35508
35509         logb: fix documentation
35510         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
35511         1.5 declaration bug.
35512
35513         forkpty, openpty: prefer glibc's const-safe prototype
35514         * lib/forkpty.c (rpl_forkpty): New file.
35515         * lib/openpty.c (rpl_openpty): Likewise.
35516         * modules/forkpty (Files): Distribute it.
35517         * modules/openpty (Files): Likewise.
35518         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
35519         check...
35520         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
35521         replacement for for non-const BSD signature.
35522         * modules/pty (Makefile.am): Substitute witnesses.
35523         * lib/pty.in.h (forkpty, openpty): Declare replacements.
35524         * tests/test-forkpty.c: Update signature check.
35525         * tests/test-openpty.c: Likewise.
35526         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
35527         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35528
35529         forkpty, openpty: split functions into new modules
35530         * modules/pty (Makefile.am): Substitute new witnesses.
35531         (Libraries): Move library detection...
35532         * modules/forkpty: ...into new module.
35533         * modules/openpty: Another new module.
35534         * modules/pty-tests: Rename and split...
35535         * modules/forkpty-tests: ...to this...
35536         * modules/openpty-tests: ...and this.
35537         * tests/test-pty.c: Rename and split...
35538         * tests/test-forkpty.c: ...to this...
35539         * tests/test-openpty.c: ...and this.
35540         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
35541         (gl_PTY): Split library searching...
35542         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
35543         (gl_FORKPTY, gl_OPENPTY): New macros.
35544         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
35545         * NEWS: Mention the split.
35546         * MODULES.html.sh (Misc): Document the modules.
35547         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
35548         * doc/glibc-functions/openpty.texi (openpty): Likewise.
35549
35550         pty: improve replacement header
35551         * lib/pty.in.h: New file.
35552         * modules/pty (Files): Ship it.
35553         (Makefile.am): Always build replacement.
35554         * m4/pty.m4: Rename...
35555         * m4/pty_h.m4: ...to this.
35556         (gl_PTY): Modernize setting of witness macros; update check of
35557         forkpty to take proper advantage of cache.
35558         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
35559
35560         getopt: avoid compiler warning
35561         * lib/getopt.c (attribute_hidden): Remove unused macro.
35562
35563 2010-03-18  Bruno Haible  <bruno@clisp.org>
35564
35565         Fix link errors on Solaris 8.
35566         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
35567         * modules/search-tests (test_search_c___LDADD): Likewise.
35568         * modules/signal-tests (test_signal_c___LDADD): Likewise.
35569         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
35570         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
35571         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
35572         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
35573         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
35574         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
35575
35576 2010-03-18  Bruno Haible  <bruno@clisp.org>
35577
35578         Fix bug introduced on 2010-03-14.
35579         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
35580         (gl_SPAWN_H): Require it.
35581         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
35582         Reported by Simon Josefsson.
35583
35584 2010-03-18  Bruno Haible  <bruno@clisp.org>
35585
35586         Fix typo introduced on 2009-12-31.
35587         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
35588         posix_spawn_file_actions_adddup2.
35589
35590 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
35591         and Eric Blake  <eblake@redhat.com>
35592
35593         test-vc-list-files-git: make more robust
35594         * tests/test-vc-list-files-git.sh: Unset problematic environment
35595         variables.  Chain commands together.
35596
35597 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
35598
35599         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
35600         `AC_CHECK_DECL' invocation.
35601
35602 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
35603
35604         * lib/inttostr.c (inttostr): Make sure the invocation of verify
35605         appears before executable statements. Suggested by Petr Sumbera
35606         <Petr.Sumbera@Sun.COM>.
35607
35608 2010-03-14  Bruno Haible  <bruno@clisp.org>
35609
35610         * tests/test-flock.c (test_exclusive): Comment out a test that causes
35611         portability problems. Instead use a simpler test.
35612         (main): Check that invalid arguments are rejected only on Linux.
35613
35614 2010-03-14  Bruno Haible  <bruno@clisp.org>
35615
35616         Fix bug introduced on 2009-12-31.
35617         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
35618         gl_PREREQ_SYS_H_WINSOCK2 always.
35619         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
35620         SYS_SOCKET_H variable.
35621         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
35622         Update comments.
35623         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
35624         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35625         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35626         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35627         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
35628
35629 2010-03-14  Bruno Haible  <bruno@clisp.org>
35630
35631         Fix values returned by sinl, cosl.
35632         * lib/trigl.h: Add specification comments.
35633         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
35634         that combines the values from the precomputed table with the values of
35635         the Chebyshev polynomials.
35636
35637 2010-03-14  Bruno Haible  <bruno@clisp.org>
35638
35639         Fix compilation error when modules 'posix_spawn[p]' are not used.
35640         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
35641         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
35642
35643 2010-03-14  Bruno Haible  <bruno@clisp.org>
35644
35645         Fix compilation error on mingw when module 'time_r' is not used.
35646         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
35647         is 1.
35648         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
35649         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35650         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
35651         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
35652
35653 2010-03-14  Bruno Haible  <bruno@clisp.org>
35654
35655         Fix compilation error with Sun C.
35656         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
35657         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
35658         instead of GCC specific ULONG_LONG_MAX.
35659         * lib/xstrtoll.c: Likewise.
35660         * lib/xstrtoull.c: Likewise.
35661
35662 2010-03-13  Bruno Haible  <bruno@clisp.org>
35663
35664         Allow the user to disable C++ code and tests.
35665         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
35666         (gl_PROG_ANSI_CXX): Require it.
35667
35668 2010-03-13  Bruno Haible  <bruno@clisp.org>
35669
35670         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
35671         cases.
35672
35673 2010-03-13  Bruno Haible  <bruno@clisp.org>
35674
35675         Test that gnulib does not break the standard C++ headers.
35676         * tests/test-locale-c++2.cc: New file.
35677         * modules/locale-tests (Files): Add it.
35678         (Makefile.am): Compile it for test-locale-c++.
35679         * tests/test-math-c++2.cc: New file.
35680         * modules/math-tests (Files): Add it.
35681         (Makefile.am): Compile it for test-math-c++.
35682         * tests/test-signal-c++2.cc: New file.
35683         * modules/signal-tests (Files): Add it.
35684         (Makefile.am): Compile it for test-signal-c++.
35685         * tests/test-stdio-c++2.cc: New file.
35686         * modules/stdio-tests (Files): Add it.
35687         (Makefile.am): Compile it for test-stdio-c++.
35688         * tests/test-stdlib-c++2.cc: New file.
35689         * modules/stdlib-tests (Files): Add it.
35690         (Makefile.am): Compile it for test-stdlib-c++.
35691         * tests/test-string-c++2.cc: New file.
35692         * modules/string-tests (Files): Add it.
35693         (Makefile.am): Compile it for test-string-c++.
35694         * tests/test-time-c++2.cc: New file.
35695         * modules/time-tests (Files): Add it.
35696         (Makefile.am): Compile it for test-time-c++.
35697         Reported by John W. Eaton <jwe@gnu.org>.
35698
35699 2010-03-13  Bruno Haible  <bruno@clisp.org>
35700
35701         * gnulib-tool (func_usage): Clarify which options are available for
35702         --create-testdir and --create-megatestdir.
35703
35704 2010-03-13  Bruno Haible  <bruno@clisp.org>
35705
35706         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
35707         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
35708         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
35709         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
35710         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
35711         when appropriate.
35712         Reported by Jim Meyering.
35713
35714 2010-03-12  Simon Josefsson  <simon@josefsson.org>
35715
35716         * gnulib-tool (func_import): Explain origin of code.
35717
35718 2010-03-12  Bruno Haible  <bruno@clisp.org>
35719
35720         Fix problem with automake's definition of CXXLINK.
35721         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
35722         Reported by Simon Josefsson and Ludovic Courtès.
35723
35724 2010-03-12  Bruno Haible  <bruno@clisp.org>
35725
35726         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
35727         stable releases.
35728
35729 2010-03-11  Bruno Haible  <bruno@clisp.org>
35730
35731         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
35732         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
35733         whether the system provides one variant or multiple variants of the
35734         function.
35735         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
35736         C++ compilers.
35737         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
35738         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
35739         Reported by Jim Meyering.
35740
35741 2010-03-09  Simon Josefsson  <simon@josefsson.org>
35742
35743         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
35744
35745 2010-03-08  Bruno Haible  <bruno@clisp.org>
35746
35747         gnulib-tool: Add support for --libtool in --create-testdir.
35748         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
35749         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
35750
35751 2010-03-08  Eric Blake  <eblake@redhat.com>
35752
35753         gnulib-tool.texi: mention possibility of git submodule
35754         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
35755         submodules.
35756         * doc/.gitignore: Ignore another generated file.
35757
35758 2010-03-08  Karl Berry  <karl@gnu.org>
35759
35760         * doc/gnulib-tool.texi (VCS Issues): Mention third option
35761         of committing gnulib files while skipping others.
35762
35763 2010-03-07  Bruno Haible  <bruno@clisp.org>
35764
35765         Tests of module 'wctype' in C++ mode.
35766         * tests/test-wctype-c++.cc: New file.
35767         * modules/wctype-tests (Files): Add it and tests/signature.h.
35768         (Depends-on): Add ansi-c++-opt.
35769         (Makefile.am): Arrange to compile and run test-wctype-c++.
35770
35771         Tests of module 'wchar' in C++ mode.
35772         * tests/test-wchar-c++.cc: New file.
35773         * modules/wchar-tests (Files): Add it and tests/signature.h.
35774         (Depends-on): Add ansi-c++-opt.
35775         (Makefile.am): Arrange to compile and run test-wchar-c++.
35776         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
35777         gl_MODULE_INDICATOR.
35778
35779         Tests of module 'unistd' in C++ mode.
35780         * tests/test-unistd-c++.cc: New file.
35781         * modules/unistd-tests (Files): Add it and tests/signature.h.
35782         (Depends-on): Add ansi-c++-opt.
35783         (Makefile.am): Arrange to compile and run test-unistd-c++.
35784         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
35785         gl_MODULE_INDICATOR.
35786
35787         Tests of module 'time' in C++ mode.
35788         * tests/test-time-c++.cc: New file.
35789         * modules/time-tests (Files): Add it and tests/signature.h.
35790         (Depends-on): Add ansi-c++-opt.
35791         (Makefile.am): Arrange to compile and run test-time-c++.
35792         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35793
35794         Tests of module 'sys_time' in C++ mode.
35795         * tests/test-sys_time-c++.cc: New file.
35796         * modules/sys_time-tests (Files): Add it and tests/signature.h.
35797         (Depends-on): Add ansi-c++-opt.
35798         (Makefile.am): Arrange to compile and run test-sys_time-c++.
35799         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
35800         gl_MODULE_INDICATOR.
35801
35802         Tests of module 'sys_stat' in C++ mode.
35803         * tests/test-sys_stat-c++.cc: New file.
35804         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
35805         (Depends-on): Add ansi-c++-opt.
35806         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
35807         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
35808         gl_MODULE_INDICATOR.
35809
35810         Tests of module 'sys_socket' in C++ mode.
35811         * tests/test-sys_socket-c++.cc: New file.
35812         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35813         (Depends-on): Add ansi-c++-opt.
35814         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35815         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35816         gl_MODULE_INDICATOR.
35817
35818         Tests of module 'sys_select' in C++ mode.
35819         * tests/test-sys_select-c++.cc: New file.
35820         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35821         (Depends-on): Add ansi-c++-opt.
35822         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35823         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35824         gl_MODULE_INDICATOR.
35825
35826         Tests of module 'sys_ioctl' in C++ mode.
35827         * tests/test-sys_ioctl-c++.cc: New file.
35828         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35829         (Depends-on): Add ansi-c++-opt.
35830         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35831         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35832         gl_MODULE_INDICATOR.
35833
35834         Tests of module 'string' in C++ mode.
35835         * tests/test-string-c++.cc: New file.
35836         * modules/string-tests (Files): Add it and tests/signature.h.
35837         (Depends-on): Add ansi-c++-opt.
35838         (Makefile.am): Arrange to compile and run test-string-c++.
35839         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35840         gl_MODULE_INDICATOR.
35841
35842         Tests of module 'stdlib' in C++ mode.
35843         * tests/test-stdlib-c++.cc: New file.
35844         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35845         (Depends-on): Add ansi-c++-opt.
35846         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35847         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35848         gl_MODULE_INDICATOR.
35849
35850         Tests of module 'stdio' in C++ mode.
35851         * tests/test-stdio-c++.cc: New file.
35852         * modules/stdio-tests (Files): Add it and tests/signature.h.
35853         (Depends-on): Add ansi-c++-opt.
35854         (Makefile.am): Arrange to compile and run test-stdio-c++.
35855         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35856         gl_MODULE_INDICATOR.
35857
35858         Tests of module 'spawn' in C++ mode.
35859         * tests/test-spawn-c++.cc: New file.
35860         * modules/spawn-tests (Files): Add it and tests/signature.h.
35861         (Depends-on): Add ansi-c++-opt.
35862         (Makefile.am): Arrange to compile and run test-spawn-c++.
35863         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35864         gl_MODULE_INDICATOR.
35865
35866         Tests of module 'signal' in C++ mode.
35867         * tests/test-signal-c++.cc: New file.
35868         * modules/signal-tests (Files): Add it and tests/signature.h.
35869         (Depends-on): Add ansi-c++-opt.
35870         (Makefile.am): Arrange to compile and run test-signal-c++.
35871         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35872         gl_MODULE_INDICATOR.
35873
35874         Tests of module 'search' in C++ mode.
35875         * tests/test-search-c++.cc: New file.
35876         * modules/search-tests (Files): Add it and tests/signature.h.
35877         (Depends-on): Add ansi-c++-opt.
35878         (Makefile.am): Arrange to compile and run test-search-c++.
35879         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35880         gl_MODULE_INDICATOR.
35881
35882         Tests of module 'math' in C++ mode.
35883         * tests/test-math-c++.cc: New file.
35884         * modules/math-tests (Files): Add it and tests/signature.h.
35885         (Depends-on): Add ansi-c++-opt.
35886         (Makefile.am): Arrange to compile and run test-math-c++.
35887         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35888
35889         Tests of module 'locale' in C++ mode.
35890         * tests/test-locale-c++.cc: New file.
35891         * modules/locale-tests (Files): Add it and tests/signature.h.
35892         (Depends-on): Add ansi-c++-opt.
35893         (Makefile.am): Arrange to compile and run test-locale-c++.
35894         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35895         gl_MODULE_INDICATOR.
35896
35897         Tests of module 'langinfo' in C++ mode.
35898         * tests/test-langinfo-c++.cc: New file.
35899         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35900         (Depends-on): Add ansi-c++-opt.
35901         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35902         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35903         gl_MODULE_INDICATOR.
35904
35905         Tests of module 'iconv-h' in C++ mode.
35906         * tests/test-iconv-h-c++.cc: New file.
35907         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35908         (Depends-on): Add ansi-c++-opt.
35909         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35910
35911         Tests of module 'glob' in C++ mode.
35912         * tests/test-glob-c++.cc: New file.
35913         * modules/glob-tests (Files): Add it.
35914         (Depends-on): Add ansi-c++-opt.
35915         (Makefile.am): Arrange to compile and run test-glob-c++.
35916
35917         Tests of module 'fcntl-h' in C++ mode.
35918         * tests/test-fcntl-h-c++.cc: New file.
35919         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35920         (Depends-on): Add ansi-c++-opt.
35921         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35922         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35923         gl_MODULE_INDICATOR.
35924
35925         Tests of module 'dirent' in C++ mode.
35926         * tests/test-dirent-c++.cc: New file.
35927         * modules/dirent-tests (Files): Add it and tests/signature.h.
35928         (Depends-on): Add ansi-c++-opt.
35929         (Makefile.am): Arrange to compile and run test-dirent-c++.
35930         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35931         gl_MODULE_INDICATOR.
35932
35933         New module 'ansi-c++-opt'.
35934         * modules/ansi-c++-opt: New file.
35935         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35936
35937         Document C++ namespace mode.
35938         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35939
35940         wctype: Avoid #define replacements in C++ mode.
35941         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35942         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35943         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35944         In C++, define a namespaced alias symbol.
35945         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35946         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35947         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35948         rule.
35949
35950         wchar: Avoid #define replacements in C++ mode.
35951         * lib/wchar.in.h: Include c++defs.h.
35952         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35953         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35954         symbol.
35955         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35956         * modules/wchar (Depends-on): Add c++defs.
35957         (Makefile.am): Update wchar.h rule.
35958
35959         unistd: Avoid #define replacements in C++ mode.
35960         * lib/unistd.in.h: Include c++defs.h.
35961         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35962         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35963         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35964         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35965         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35966         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35967         symbol.
35968         (environ): Update.
35969         * modules/unistd (Depends-on): Add c++defs.
35970         (Makefile.am): Update unistd.h rule.
35971
35972         time: Avoid #define replacements in C++ mode.
35973         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35974         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35975         define a namespaced alias symbol.
35976         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35977         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35978         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35979         * modules/time (Depends-on): Add c++defs, warn-on-use.
35980         (Makefile.am): Update time.h rule.
35981         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35982         * modules/nanosleep (configure.ac): Likewise.
35983         * modules/strptime (configure.ac): Likewise.
35984         * modules/timegm (configure.ac): Likewise.
35985
35986         sys_time: Avoid #define replacements in C++ mode.
35987         * lib/sys_time.in.h: Include c++defs.h.
35988         (gettimeofday): In C++, define a namespaced alias symbol.
35989         * modules/sys_time (Depends-on): Add c++defs.
35990         (Makefile.am): Update sys/time.h rule.
35991
35992         sys_stat: Avoid #define replacements in C++ mode.
35993         * lib/sys_stat.in.h: Include c++defs.h.
35994         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35995         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35996         namespaced alias symbol.
35997         In C++, define a namespaced alias symbol.
35998         * modules/sys_stat (Depends-on): Add c++defs.
35999         (Makefile.am): Update sys/stat.h rule.
36000
36001         sys_socket: Avoid #define replacements in C++ mode.
36002         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
36003         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
36004         definitions also when the system has a <sys/socket.h>.
36005         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
36006         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
36007         In C++, define a namespaced alias symbol.
36008         * modules/sys_socket (Depends-on): Add c++defs.
36009         (Makefile.am): Update sys/socket.h rule.
36010
36011         sys_select: Avoid #define replacements in C++ mode.
36012         * lib/sys_select.in.h: Include c++defs.h. Enable the function
36013         definitions also when the system has a <sys/select.h>.
36014         (select): In C++, define a namespaced alias symbol.
36015         * modules/sys_select (Depends-on): Add c++defs.
36016         (Makefile.am): Update sys/select.h rule.
36017
36018         sys_ioctl: Avoid #define replacements in C++ mode.
36019         * lib/sys_ioctl.in.h: Include c++defs.h.
36020         (ioctl): In C++, define a namespaced alias symbol.
36021         * modules/sys_ioctl (Depends-on): Add c++defs.
36022         (Makefile.am): Update sys/ioctl.h rule.
36023
36024         string: Avoid #define replacements in C++ mode.
36025         * lib/string.in.h: Include c++defs.h.
36026         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
36027         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36028         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36029         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
36030         strsignal, strverscmp): In C++, define a namespaced alias symbol.
36031         * modules/string (Depends-on): Add c++defs.
36032         (Makefile.am): Update string.h rule.
36033
36034         stdlib: Avoid #define replacements in C++ mode.
36035         * lib/stdlib.in.h: Include c++defs.h.
36036         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
36037         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
36038         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
36039         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
36040         symbol.
36041         * modules/stdlib (Depends-on): Add c++defs.
36042         (Makefile.am): Update stdlib.h rule.
36043
36044         stdio: Avoid #define replacements in C++ mode.
36045         * lib/stdio.in.h: Include c++defs.h.
36046         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
36047         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
36048         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
36049         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
36050         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
36051         namespaced alias symbol.
36052         * modules/stdio (Depends-on): Add c++defs.
36053         (Makefile.am): Update stdio.h rule.
36054
36055         spawn: Avoid #define replacements in C++ mode.
36056         * lib/spawn.in.h: Include c++defs.h.
36057         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36058         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36059         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36060         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36061         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36062         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36063         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36064         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36065         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36066         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36067         In C++, define a namespaced alias symbol.
36068         * modules/spawn (Depends-on): Add c++defs.
36069         (Makefile.am): Update spawn.h rule.
36070
36071         signal: Avoid #define replacements in C++ mode.
36072         * lib/signal.in.h: Include c++defs.h.
36073         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36074         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
36075         namespaced alias symbol.
36076         * modules/signal (Depends-on): Add c++defs.
36077         (Makefile.am): Update signal.h rule.
36078
36079         search: Avoid #define replacements in C++ mode.
36080         * lib/search.in.h: Include c++defs.h.
36081         (_gl_search_compar_fn, _gl_search_action_fn): New types.
36082         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
36083         symbol.
36084         * modules/search (Depends-on): Add c++defs.
36085         (Makefile.am): Update search.h rule.
36086
36087         math: Avoid #define replacements in C++ mode.
36088         * lib/math.in.h: Include c++defs.h.
36089         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
36090         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
36091         trunc, truncl): In C++, define a namespaced alias symbol.
36092         * modules/math (Depends-on): Add c++defs.
36093         (Makefile.am): Update math.h rule.
36094
36095         locale: Avoid #define replacements in C++ mode.
36096         * lib/locale.in.h: Include c++defs.h.
36097         (duplocale): In C++, define a namespaced alias symbol.
36098         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
36099         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
36100         * modules/locale (Depends-on): Add c++defs.
36101         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
36102
36103         langinfo: Avoid #define replacements in C++ mode.
36104         * lib/langinfo.in.h: Include c++defs.h.
36105         (nl_langinfo): In C++, define a namespaced alias symbol.
36106         * modules/langinfo (Depends-on): Add c++defs.
36107         (Makefile.am): Update langinfo.h rule.
36108
36109         iconv-h: Avoid #define replacements in C++ mode.
36110         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
36111         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
36112         symbol.
36113         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
36114         whenever iconv is present.
36115         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
36116         (Makefile.am): Update iconv.h rule.
36117
36118         glob: Avoid #define replacements in C++ mode.
36119         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
36120         (_gl_glob_errfunc_fn): New type.
36121         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
36122         symbol.
36123         * modules/glob (Depends-on): Add c++defs, warn-on-use.
36124         (Makefile.am): Update glob.h rule.
36125
36126         fcntl-h: Avoid #define replacements in C++ mode.
36127         * lib/fcntl.in.h: Include c++defs.h.
36128         (fcntl, open, openat): In C++, define a namespaced alias symbol.
36129         * modules/fcntl-h (Depends-on): Add c++defs.
36130         (Makefile.am): Update fcntl.h rule.
36131
36132         dirent: Avoid #define replacements in C++ mode.
36133         * lib/dirent.in.h: Include c++defs.h.
36134         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
36135         namespaced alias symbol.
36136         (dirfd): Update declaration.
36137         * modules/dirent (Depends-on): Add c++defs.
36138         (Makefile.am): Update dirent.h rule.
36139
36140         ctype: Make it usable in C++ code.
36141         * lib/ctype.in.h: Include c++defs.h.
36142         (isblank): Declare as extern "C".
36143         * modules/ctype (Depends-on): Add c++defs.
36144         (Makefile.am): Update ctype.h rule.
36145
36146         New module 'c++defs'.
36147         * modules/c++defs: New file.
36148         * build-aux/c++defs.h: New file.
36149         Reported by John W. Eaton <jwe@gnu.org>.
36150
36151 2010-03-07  Bruno Haible  <bruno@clisp.org>
36152
36153         logb: Provide missing declaration for Cygwin.
36154         * lib/math.in.h (logb): New declaration.
36155         * m4/logb.m4: New file.
36156         * modules/logb (Files): Add m4/logb.m4.
36157         (Depends-on): Add math.
36158         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
36159         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
36160         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
36161         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
36162         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
36163
36164 2010-03-07  Bruno Haible  <bruno@clisp.org>
36165
36166         Fix test-cond link error.
36167         * tests/test-cond.c: Include <stdio.h>.
36168
36169 2010-03-07  Bruno Haible  <bruno@clisp.org>
36170
36171         Fix test-dirent-safer link error.
36172         * modules/dirent-safer-tests (Makefile.am): Define
36173         test_dirent_safer_LDADD.
36174
36175 2010-03-07  Bruno Haible  <bruno@clisp.org>
36176
36177         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
36178         among default module list.
36179
36180 2010-03-07  Bruno Haible  <bruno@clisp.org>
36181
36182         Fix link error on platforms with GNU libiconv.
36183         * modules/unistr/u8-strcoll-tests (Makefile): Define
36184         test_u8_strcoll_LDADD.
36185         * modules/unistr/u16-strcoll-tests (Makefile): Define
36186         test_u16_strcoll_LDADD.
36187         * modules/unistr/u32-strcoll-tests (Makefile): Define
36188         test_u32_strcoll_LDADD.
36189
36190 2010-03-07  Bruno Haible  <bruno@clisp.org>
36191
36192         Use POSIX declarations for socket functions.
36193         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
36194         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
36195         rpl_sendto): Change declaration to match POSIX.
36196         * lib/connect.c (rpl_connect): Likewise.
36197         * lib/accept.c (rpl_accept): Likewise.
36198         * lib/bind.c (rpl_bind): Likewise.
36199         * lib/getpeername.c (rpl_getpeername): Likewise.
36200         * lib/getsockname.c (rpl_getsockname): Likewise.
36201         * lib/recv.c (rpl_recv): Likewise.
36202         * lib/send.c (rpl_send): Likewise.
36203         * lib/recvfrom.c (rpl_recvfrom): Likewise.
36204         * lib/sendto.c (rpl_sendto): Likewise.
36205
36206 2010-03-06  Bruno Haible  <bruno@clisp.org>
36207
36208         Clarify access, euidaccess, faccessat.
36209         * doc/posix-functions/faccessat.texi: Mention security problem under
36210         "Other problems", not "Portability problems".
36211         * doc/posix-functions/access.texi: Likewise. Mention a related security
36212         problem.
36213         * doc/glibc-functions/euidaccess.texi: Mention security problems.
36214         * lib/euidaccess.c: Add comments about platforms.
36215         * lib/unistd.in.h (access, euidaccess): Add warnings.
36216
36217 2010-03-07  Bruno Haible  <bruno@clisp.org>
36218
36219         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
36220         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
36221         (POSIX_SPAWN_SETSCHEDULER): Likewise.
36222         (POSIX_SPAWN_USEVFORK): Define in a way that works when
36223         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36224         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
36225         declare when POSIX_SPAWN_SETSCHEDULER is zero.
36226         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
36227         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
36228         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
36229         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
36230         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
36231         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
36232         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
36233         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
36234         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
36235         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
36236         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
36237         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
36238         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
36239         Likewise.
36240         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
36241         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
36242         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
36243         Likewise.
36244         * tests/test-spawn.c (main): Make it work when
36245         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
36246
36247 2010-03-07  Bruno Haible  <bruno@clisp.org>
36248
36249         Fix incorrect Makefile.am generation in German locale.
36250         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36251         Execute sed command with character range in C locale.
36252
36253 2010-03-06  Bruno Haible  <bruno@clisp.org>
36254
36255         Tests for module 'iconv-h'.
36256         * modules/iconv-h-tests: New file.
36257         * tests/test-iconv-h.c: New file.
36258
36259         New module 'iconv-h'.
36260         * modules/iconv-h: New file.
36261         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
36262         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
36263         (configure.ac): Remove gl_ICONV_H.
36264         (Makefile.am): Remove rule for iconv.h.
36265
36266 2010-03-06  Bruno Haible  <bruno@clisp.org>
36267
36268         More consistent naming of *.m4 files.
36269         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
36270         * modules/wctype (Files): Update.
36271
36272         More consistent naming of *.m4 files.
36273         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
36274         * modules/wchar (Files): Update.
36275
36276 2010-03-06  Jim Meyering  <meyering@redhat.com>
36277
36278         euidaccess: relax license to LGPLv2+
36279         * modules/euidaccess (License): Relax to LGPLv2+.
36280
36281 2010-03-06  Bruno Haible  <bruno@clisp.org>
36282
36283         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
36284         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
36285         (Makefile.am): Augment lib_SOURCES instead.
36286
36287 2010-03-04  Jim Meyering  <meyering@redhat.com>
36288
36289         utime: remove obsolete module
36290         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
36291         unnecessary for years, and has been marked as obsolete for 10 months.
36292         * modules/utime: Remove file.
36293         * lib/utime.c: Remove file.
36294         * m4/utime.m4: Remove file.
36295         * m4/utimes-null.m4: Remove file.
36296         * doc/posix-functions/utime.texi (utime): Remove reference to
36297         the module.  Move the sole "fixed by gnulib" item into the
36298         "problems not fixed by Gnulib" list.
36299         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
36300
36301 2010-03-05  Simon Josefsson  <simon@josefsson.org>
36302
36303         * modules/exit (License): Relax license to LGPLv2+.
36304         (Status): Mark as obsolete.
36305         * NEWS: Mention deprecated 'exit' module.
36306         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
36307         of now obsolete 'exit'.
36308
36309 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36310
36311         fts-lgpl: remove unused module
36312         * modules/fts-lgpl: Remove.
36313         * MODULES.html.sh (func_all_modules): Adjust.
36314         * check-module (find_included_lib_files): Adjust.
36315         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
36316
36317 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
36318
36319         copy-acl: enhance Solaris ACL error handling
36320         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
36321         * lib/set-mode-acl.c (qset_acl): Likewise.
36322
36323 2010-03-02  Bruno Haible  <bruno@clisp.org>
36324
36325         spawn: Don't override the system defined values on FreeBSD 8.
36326         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
36327         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
36328         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
36329         if HAVE_POSIX_SPAWN is 1.
36330         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
36331
36332 2010-03-01  Bruno Haible  <bruno@clisp.org>
36333
36334         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
36335         regarding Automake.
36336
36337 2010-02-25  Bruno Haible  <bruno@clisp.org>
36338
36339         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
36340         * gnulib-tool: Define 'echo' as a function only before the ksh alias
36341         setting, not afterwards.
36342         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
36343
36344 2010-02-24  Eric Blake  <eblake@redhat.com>
36345
36346         bootstrap, git-version-gen: use timestamp
36347         * build-aux/git-version-gen (scriptversion): Force UTC.
36348         * build-aux/bootstrap (scriptversion): New variable.
36349
36350         bootstrap: allow older git
36351         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
36352         older than 1.6.4.  Requested by the libvirt project.
36353
36354 2010-02-23  Eric Blake  <eblake@redhat.com>
36355
36356         warn-on-use: work with old autoconf
36357         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
36358         AS_VAR semantics of autoconf 2.60.
36359         Reported by Bruno Haible.
36360
36361         bootstrap: improve some comments
36362         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
36363         clarification comments.
36364
36365         gettimeofday: provide correct function
36366         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
36367         when replacement is declared, otherwise provide gettimeofday.
36368         Reported by Michael Goffioul.
36369
36370 2010-02-23  Jim Meyering  <meyering@redhat.com>
36371
36372         lib-ignore: relax license to "unlimited", not LGPLv2+
36373         * modules/lib-ignore (License): Relax to "unlimited".
36374
36375 2010-02-23  Jim Meyering  <meyering@redhat.com>
36376
36377         lib-ignore: relax license to LGPLv2+
36378         * modules/lib-ignore (License): Relax to LGPLv2+.
36379
36380 2010-02-22  Eric Blake  <eblake@redhat.com>
36381
36382         lseek: avoid bash 3.2 broken pipe bug
36383         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
36384         warning from bash 3.2.
36385         Reported by Ben Pfaff, with analysis from Bruno Haible.
36386
36387         bootstrap: support non-FSF copyright holder
36388         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
36389         bootstrap.conf override of COPYRIGHT_HOLDER.
36390         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
36391
36392         bootstrap: interoperate with gettext 0.14.1
36393         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
36394
36395         bootstrap: allow for alternate submodule location
36396         * build-aux/bootstrap (gnulib_path): New variable; use instead of
36397         hardcoding submodule location.
36398         (gnulib_mk): Allow direct use of Makefile.am.
36399
36400         bootstrap: use GNULIB_SRCDIR to reduce disk usage
36401         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
36402         rather than reconfiguring where the submodule points.
36403
36404         gettimeofday: restore support for platforms that lack function
36405         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
36406         replacement if function is missing.
36407         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
36408         * modules/sys_time (Makefile.am): Substitute it.
36409         * lib/sys_time.in.h (gettimeofday): Check it.
36410         Reported by Michael Goffioul.
36411
36412 2010-02-21  Bruno Haible  <bruno@clisp.org>
36413
36414         * lib/stdio.in.h (obstack_printf): Fix typo.
36415
36416 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
36417
36418         vc-list-files: use bzr ls's -R option
36419         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
36420         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
36421
36422 2010-02-21  Jim Meyering  <meyering@redhat.com>
36423
36424         init.sh: fix EXEEXT shims to work also for names like test-prog
36425         * tests/init.sh: Re-exec a better shell, when needed.
36426         If the current shell lacks support for posix $(...), an init.sh-using
36427         test will now try to find a shell that supports that.  If EXEEXT is
36428         nonempty, we also require support for hyphen-in-alias-name and shell
36429         substitutions like ${var#glob}.  Failure to find such a shell results
36430         in a skipped test.
36431
36432 2010-02-21  Bruno Haible  <bruno@clisp.org>
36433
36434         Really work around around "broken pipe" error message from bash 3.2.
36435         * gnulib-tool (func_reset_sigpipe): Remove function.
36436         (echo): In bash 3.2, define to a function that uses printf.
36437         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
36438
36439 2010-02-20  Bruno Haible  <bruno@clisp.org>
36440
36441         Restore support for automake 1.9.6 with autoconf 2.61.
36442         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
36443         Reported by James Youngman <jay@gnu.org>.
36444
36445 2010-02-20  Bruno Haible  <bruno@clisp.org>
36446
36447         Improve *printf warning condition.
36448         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
36449         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
36450         and the function is overridden due to SIGPIPE emulation.
36451
36452 2010-02-20  Bruno Haible  <bruno@clisp.org>
36453
36454         * lib/stdio.in.h: Tweak comments.
36455
36456 2010-02-19  Bruno Haible  <bruno@clisp.org>
36457
36458         Make it easier to find modules. New gnulib-tool option '--find'.
36459         * gnulib-tool: New option --find.
36460         (func_usage): Document it.
36461         (func_sanitize_modulelist): New function, extracted from
36462         func_all_modules.
36463         (func_all_modules): Invoke it.
36464         * doc/gnulib-tool.texi (Which modules?): New node.
36465
36466 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
36467
36468         * lib/sys_select.in.h: Provide select replacement even if
36469         sys/select.h exists on a system, for Interix.
36470
36471 2010-02-18  Jim Meyering  <meyering@redhat.com>
36472
36473         init.sh: don't use $(...) just yet
36474         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
36475         to accommodate e.g., Solaris' /bin/sh.
36476
36477 2010-02-17  Bruno Haible  <bruno@clisp.org>
36478
36479         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
36480         Reported by Ludovic Courtès <ludo@gnu.org>.
36481
36482 2010-02-16  Simon Josefsson  <simon@josefsson.org>
36483
36484         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
36485         linking with -lintl.
36486
36487 2010-02-17  Simon Josefsson  <simon@josefsson.org>
36488
36489         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
36490         if not provided by the system's netdb.h.  Reported by
36491         ludo@gnu.org (Ludovic Courtès).
36492
36493 2010-02-15  Jim Meyering  <meyering@redhat.com>
36494
36495         init.sh: improve portability and efficiency
36496         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
36497         "dummy" in a for loop.
36498         Use '!', not '^' to select the complement of a character set used
36499         in a "case" statement.
36500         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
36501         Suggestions from Eric Blake.
36502
36503         init.sh: automatically accommodate programs with the .exe suffix
36504         Automatically arrange for an invocation of "prog" to execute the
36505         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
36506         may use the simpler "prog", yet still work when built on a system
36507         that requires specifying the added suffix.
36508         Do this by constructing a function named "prog" that invokes
36509         "prog.exe" for each .exe file in selected directories.
36510         * tests/init.sh (find_exe_basenames_): New function.
36511         (create_exe_shim_functions_): New function.
36512         (path_prepend_): Use it.
36513
36514         maint.mk: mark syntax-check sc_*.m rules as .PHONY
36515         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
36516         "make -t syntax-check" doesn't create a ton of sc_*.m files.
36517
36518 2010-02-14  Jim Meyering  <meyering@redhat.com>
36519
36520         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
36521         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
36522         (sc_prohibit_hash_pjw_without_use): New rule.
36523
36524         maint.mk: allow the default upload destination dir to be overridden
36525         * top/maint.mk (upload_dest_dir_): Define with a default that
36526         preserves the status quo.
36527         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
36528         Reported by Peter Simons.
36529
36530         maint.mk: prohibit inclusion of "hash.h" without_use
36531         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
36532
36533 2010-02-10  Jim Meyering  <meyering@redhat.com>
36534
36535         maint.mk: prohibit inclusion of "ignore-value.h" without_use
36536         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
36537
36538 2010-02-09  Eric Blake  <ebb9@byu.net>
36539         and Bruno Haible  <bruno@clisp.org>
36540
36541         obstack-printf-posix: ensure declaration
36542         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
36543         extracted from gl_FUNC_OBSTACK_PRINTF.
36544         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
36545         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
36546         Likewise.
36547         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
36548         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
36549         0.
36550
36551 2010-02-08  Bruno Haible  <bruno@clisp.org>
36552
36553         gnulib-tool: Fix typo in 2010-02-07 commit.
36554         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
36555         Reported by Eric Blake.
36556
36557 2010-02-07  Bruno Haible  <bruno@clisp.org>
36558
36559         gnulib-tool: Fix up caching patches.
36560         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
36561         option --no-cache. Use associative arrays when supported by the shell.
36562         (sed_comments): New variable.
36563         (modcache): Renamed from do_cache.
36564         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
36565         abbreviate unnecessarily.
36566         (have_associative): New variable.
36567         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
36568         way also for ksh and zsh.
36569         (func_init_sed_convert_to_cache_statements): New function, extracted
36570         from func_cache_lookup_module. Add support for associative arrays.
36571         Don't set the c_MODULE_cached variable here. Ignore all lines before
36572         the first field header. Remove only the final newline, not all trailing
36573         newlines. Support empty fields correctly. Limit the use of 'eval' to
36574         assignments.
36575         (func_get_description, func_get_status, func_get_notice,
36576         func_get_applicability, func_get_filelist, func_get_dependencies,
36577         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
36578         func_get_automake_snippet, func_get_include_directive,
36579         func_get_link_directive, func_get_license, func_get_maintainer):
36580         Update documentation. List the unoptimized code first. Add support for
36581         associative arrays. Limit the use of 'eval' to assignments.
36582         (func_get_applicability): Undo stylistic pessimisations.
36583         (func_get_automake_snippet, func_get_include_directive): Reduce code
36584         duplication.
36585         (func_modules_transitive_closure, func_modules_add_dummy,
36586         func_modules_notice, func_modules_to_filelist, func_add_file,
36587         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
36588         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
36589         func_create_testdir, func_create_megatestdir): Update documentation.
36590
36591 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36592
36593         * gnulib-tool (func_cache_lookup_module): Store the module name
36594         belonging to the cache variable; error out if two different
36595         module names map to the same cache variable name.
36596
36597 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36598
36599         gnulib-tool: Make caching optional.
36600         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
36601         Update matching short versions of --no-changelog.
36602         (func_usage): Update.
36603         (sed_extract_cache_prog): Renamed from ...
36604         (sed_extract_prog): ... this; revert to old extraction script.
36605         (func_get_description, func_get_status)
36606         (func_get_notice, func_get_applicability, func_get_filelist)
36607         (func_get_dependencies, func_get_autoconf_early_snippet)
36608         (func_get_autoconf_snippet, func_get_automake_snippet)
36609         (func_get_include_directive, func_get_link_directive)
36610         (func_get_license, func_get_maintainer): If $do_cache is false,
36611         use old, non-caching extraction scripts.
36612         Suggestion by Bruno Haible.
36613
36614 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36615
36616         gnulib-tool: cache module metainformation.
36617         * gnulib-tool (sed_extract_prog): Match newline before each
36618         header, and rewrite header to a shell variable suffix.
36619         (func_cache_var, func_cache_lookup_module): New functions,
36620         to turn a module name into a cache variable prefix, and to
36621         look up and cache module metainformation.
36622         (func_get_description, func_get_status)
36623         (func_get_notice, func_get_applicability, func_get_filelist)
36624         (func_get_dependencies, func_get_autoconf_early_snippet)
36625         (func_get_autoconf_snippet, func_get_automake_snippet)
36626         (func_get_include_directive, func_get_link_directive)
36627         (func_get_license, func_get_maintainer): Use
36628         func_cache_lookup_module.
36629
36630 2010-02-07  Bruno Haible  <bruno@clisp.org>
36631
36632         fnctl: Fix missing dependency.
36633         * modules/fcntl (Depends-on): Add getdtablesize.
36634         Reported by John W. Eaton <jwe@gnu.org>.
36635
36636 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36637
36638         Argp: fix recognition of short alias options.
36639
36640         * lib/argp-parse.c (convert_options): Fix improper use of
36641         `|' between character values.
36642         * tests/test-argp.c (group1_option): New alias option
36643         --read (-r).
36644         (group1_parser): Special handling for 'r'.
36645         (test15): New test case.
36646         (test_fun): Add test15.
36647         * tests/test-argp-2.sh: Update expected --help and --usage
36648         outputs.
36649
36650 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
36651
36652         * tests/test-argp.c: Fix indentation.
36653
36654 2010-02-04  Eric Blake  <ebb9@byu.net>
36655
36656         gettimeofday: expose type of second argument
36657         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
36658         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
36659         * tests/test-gettimeofday.c: Use it to silence warning.
36660         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
36661         the issue.
36662
36663 2010-02-03  Jim Meyering  <meyering@redhat.com>
36664
36665         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
36666         * lib/regcomp.c (TYPE_SIGNED): Define.
36667         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
36668
36669         regcomp.c: avoid a new -Wshadow warning
36670         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
36671
36672 2010-02-01  Jim Meyering  <meyering@redhat.com>
36673
36674         removing useless parentheses in cpp #define directives
36675         For motivation, see commit c0221df4, "define STREQ(a,b)
36676         consistently, removing useless parentheses"
36677         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
36678         * lib/mountlist.c (MNT_IGNORE): Likewise.
36679         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
36680
36681 2010-02-01  Eric Blake  <ebb9@byu.net>
36682
36683         sys_time: use link-warning
36684         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
36685         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
36686         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
36687         * modules/sys_time (Depends-on): Add warn-on-use.
36688         (Makefile.am): Always build replacement.
36689         (configure.ac): Update substitutions.
36690         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
36691         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
36692         bother with SYS_TIME_H.
36693         * modules/gettimeofday (configure.ac): Declare indicator.
36694         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
36695         in use.
36696
36697         closein-tests: silence compiler warning
36698         * tests/test-closein.c (main): Ignore fread result.
36699         * modules/closein-tests (Depends-on): Add ignore-value.
36700
36701         tests: silence warning about system return
36702         * tests/test-areadlink-with-size.c (main): Ignore system result.
36703         * tests/test-areadlink.c (main): Likewise.
36704         * tests/test-areadlinkat-with-size.c (main): Likewise.
36705         * tests/test-areadlinkat.c (main): Likewise.
36706         * tests/test-canonicalize-lgpl.c (main): Likewise.
36707         * tests/test-canonicalize.c (main): Likewise.
36708         * tests/test-chown.c (main): Likewise.
36709         * tests/test-fchownat.c (main): Likewise.
36710         * tests/test-fdutimensat.c (main): Likewise.
36711         * tests/test-fstatat.c (main): Likewise.
36712         * tests/test-futimens.c (main): Likewise.
36713         * tests/test-lchown.c (main): Likewise.
36714         * tests/test-link.c (main): Likewise.
36715         * tests/test-linkat.c (main): Likewise.
36716         * tests/test-lstat.c (main): Likewise.
36717         * tests/test-mkdir.c (main): Likewise.
36718         * tests/test-mkdirat.c (main): Likewise.
36719         * tests/test-mkfifo.c (main): Likewise.
36720         * tests/test-mkfifoat.c (main): Likewise.
36721         * tests/test-mknod.c (main): Likewise.
36722         * tests/test-readlink.c (main): Likewise.
36723         * tests/test-remove.c (main): Likewise.
36724         * tests/test-rename.c (main): Likewise.
36725         * tests/test-renameat.c (main): Likewise.
36726         * tests/test-rmdir.c (main): Likewise.
36727         * tests/test-symlink.c (main): Likewise.
36728         * tests/test-symlinkat.c (main): Likewise.
36729         * tests/test-unlink.c (main): Likewise.
36730         * tests/test-unlinkat.c (main): Likewise.
36731         * tests/test-utimens.c (main): Likewise.
36732         * tests/test-utimensat.c (main): Likewise.
36733         * modules/areadlink-tests (Depends-on): Add ignore-value.
36734         * modules/areadlink-with-size-tests (Depends-on): Likewise.
36735         * modules/areadlinkat-tests (Depends-on): Likewise.
36736         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
36737         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
36738         * modules/canonicalize-tests (Depends-on): Likewise.
36739         * modules/chown-tests (Depends-on): Likewise.
36740         * modules/fdutimensat-tests (Depends-on): Likewise.
36741         * modules/futimens-tests (Depends-on): Likewise.
36742         * modules/lchown-tests (Depends-on): Likewise.
36743         * modules/link-tests (Depends-on): Likewise.
36744         * modules/linkat-tests (Depends-on): Likewise.
36745         * modules/lstat-tests (Depends-on): Likewise.
36746         * modules/mkdir-tests (Depends-on): Likewise.
36747         * modules/mkfifo-tests (Depends-on): Likewise.
36748         * modules/mkfifoat-tests (Depends-on): Likewise.
36749         * modules/mknod-tests (Depends-on): Likewise.
36750         * modules/openat-tests (Depends-on): Likewise.
36751         * modules/readlink-tests (Depends-on): Likewise.
36752         * modules/remove-tests (Depends-on): Likewise.
36753         * modules/rename-tests (Depends-on): Likewise.
36754         * modules/renameat-tests (Depends-on): Likewise.
36755         * modules/rmdir-tests (Depends-on): Likewise.
36756         * modules/symlink-tests (Depends-on): Likewise.
36757         * modules/symlinkat-tests (Depends-on): Likewise.
36758         * modules/unlink-tests (Depends-on): Likewise.
36759         * modules/utimens-tests (Depends-on): Likewise.
36760         * modules/utimensat-tests (Depends-on): Likewise.
36761
36762 2010-01-31  Bruno Haible  <bruno@clisp.org>
36763
36764         Perform the same test for many <math.h> functions.
36765         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
36766         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
36767         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
36768         of gl_MATHFUNC.
36769         * modules/acos (configure.ac): Likewise.
36770         * modules/asin (configure.ac): Likewise.
36771         * modules/atan (configure.ac): Likewise.
36772         * modules/atan2 (configure.ac): Likewise.
36773         * modules/cbrt (configure.ac): Likewise.
36774         * modules/copysign (configure.ac): Likewise.
36775         * modules/cos (configure.ac): Likewise.
36776         * modules/cosh (configure.ac): Likewise.
36777         * modules/erf (configure.ac): Likewise.
36778         * modules/erfc (configure.ac): Likewise.
36779         * modules/exp (configure.ac): Likewise.
36780         * modules/fmod (configure.ac): Likewise.
36781         * modules/hypot (configure.ac): Likewise.
36782         * modules/j0 (configure.ac): Likewise.
36783         * modules/j1 (configure.ac): Likewise.
36784         * modules/jn (configure.ac): Likewise.
36785         * modules/lgamma (configure.ac): Likewise.
36786         * modules/log (configure.ac): Likewise.
36787         * modules/log10 (configure.ac): Likewise.
36788         * modules/log1p (configure.ac): Likewise.
36789         * modules/pow (configure.ac): Likewise.
36790         * modules/remainder (configure.ac): Likewise.
36791         * modules/sin (configure.ac): Likewise.
36792         * modules/sinh (configure.ac): Likewise.
36793         * modules/tan (configure.ac): Likewise.
36794         * modules/tanh (configure.ac): Likewise.
36795         * modules/y0 (configure.ac): Likewise.
36796         * modules/y1 (configure.ac): Likewise.
36797         * modules/yn (configure.ac): Likewise.
36798         Suggested by Paolo Bonzini.
36799
36800 2010-01-31  Bruno Haible  <bruno@clisp.org>
36801
36802         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
36803
36804 2010-01-31  Bruno Haible  <bruno@clisp.org>
36805
36806         Work around getdelim() bug on FreeBSD 8.0.
36807         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
36808         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
36809         not work.
36810         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36811         is 1.
36812         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36813         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36814         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36815         a non-zero size.
36816         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36817
36818 2010-01-31  Bruno Haible  <bruno@clisp.org>
36819
36820         Work around getline() bug on FreeBSD 8.0.
36821         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36822         and a non-zero size.
36823         * tests/test-getline.c (main): Likewise.
36824         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36825         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36826
36827 2010-01-28  Eric Blake  <ebb9@byu.net>
36828
36829         regex: fix build failure
36830         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36831         platforms.
36832
36833 2010-01-28  Jim Meyering  <meyering@redhat.com>
36834
36835         regex: do not ignore memory allocation failure
36836         * lib/regex_internal.c (create_cd_newstate): Detect
36837         re_node_set_init_copy failure.   Extracted from glibc commit
36838         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36839
36840         regex: sync more white-space changes from libc
36841         * lib/regex_internal.c: White-space only changes.
36842         * lib/regexec.c: Likewise.
36843
36844         regex: add many uses of __attribute_warn_unused_result__
36845         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36846         * lib/regexec.c: Likewise.
36847         Extracted from a messy glibc commit.
36848
36849         regcomp.c: spelling and merge-artifact from glibc
36850         * lib/regcomp.c: Merge remainder of glibc's
36851         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36852
36853         regcomp.c: sync white-space changes from glibc
36854         * lib/regcomp.c: Merge to accommodate white space
36855         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36856
36857         regcomp.c: do not ignore internal return values
36858         * lib/regcomp.c: Do not ignore internal return values.
36859         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36860         but without its white-space changes and spelling fixes.
36861
36862         regex_internal.h: define __attribute_warn_unused_result__
36863         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36864
36865         maint: add a syntax-check rule to check for vulnerable Makefile.in
36866         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36867
36868 2010-01-27  Jim Meyering  <meyering@redhat.com>
36869
36870         ncftpput-ftp: clean up spaces
36871         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36872         Remove trailing blanks.
36873
36874 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36875
36876         * build-aux/git-version-gen: Fix copyright statement.
36877         * build-aux/gnupload: Likewise.
36878         * tests/test-arcfour.c: Likewise.
36879         * tests/test-arctwo.c: Likewise.
36880         * tests/test-count-one-bits.c: Likewise.
36881         * tests/test-crc.c: Likewise.
36882         * tests/test-des.c: Likewise.
36883         * tests/test-gc-arcfour.c: Likewise.
36884         * tests/test-gc-arctwo.c: Likewise.
36885         * tests/test-gc-des.c: Likewise.
36886         * tests/test-gc-hmac-md5.c: Likewise.
36887         * tests/test-gc-hmac-sha1.c: Likewise.
36888         * tests/test-gc-md2.c: Likewise.
36889         * tests/test-gc-md4.c: Likewise.
36890         * tests/test-gc-md5.c: Likewise.
36891         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36892         * tests/test-gc-rijndael.c: Likewise.
36893         * tests/test-gc-sha1.c: Likewise.
36894         * tests/test-gc.c: Likewise.
36895         * tests/test-gethostname.c: Likewise.
36896         * tests/test-gettimeofday.c: Likewise.
36897         * tests/test-hash.c: Likewise.
36898         * tests/test-hmac-md5.c: Likewise.
36899         * tests/test-hmac-sha1.c: Likewise.
36900         * tests/test-md2.c: Likewise.
36901         * tests/test-md4.c: Likewise.
36902         * tests/test-md5.c: Likewise.
36903         * tests/test-memchr.c: Likewise.
36904         * tests/test-memchr2.c: Likewise.
36905         * tests/test-memcmp.c: Likewise.
36906         * tests/test-memmem.c: Likewise.
36907         * tests/test-memrchr.c: Likewise.
36908         * tests/test-rawmemchr.c: Likewise.
36909         * tests/test-read-file.c: Likewise.
36910         * tests/test-rijndael.c: Likewise.
36911         * tests/test-sockets.c: Likewise.
36912         * tests/test-strchrnul.c: Likewise.
36913         * tests/test-strstr.c: Likewise.
36914         * tests/test-strtod.c: Likewise.
36915         * build-aux/ncftpput-ftp: Likewise.
36916
36917 2010-01-26  Eric Blake  <ebb9@byu.net>
36918
36919         ignore-value: update recommended header name
36920         * modules/ignore-value (Include): Only use <> for headers that
36921         exist in glibc.
36922
36923 2010-01-26  Jim Meyering  <meyering@redhat.com>
36924
36925         test-userspec.c: avoid compiler warnings
36926         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36927         and "initialization discards qualifiers..." warnings.
36928         Put the first "uid" in its own scope, and make char* members "const".
36929
36930 2010-01-25  Bruno Haible  <bruno@clisp.org>
36931
36932         gnulib-tool: Make warning diagnostics consistent.
36933         * gnulib-tool (func_warning): New function.
36934         Use it everywhere where gnulib-tool produces output to stderr and it is
36935         not a fatal error.
36936
36937 2010-01-25  Bruno Haible  <bruno@clisp.org>
36938
36939         Fix test dependencies.
36940         * modules/xstrtol-tests (Depends-on): Add inttypes.
36941         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36942
36943 2010-01-25 Pádraig Brady <P@draigBrady.com>
36944
36945         syntax-check: detect incorrect boolean macro values in config.h
36946         * modules/maintainer-makefile (configure.ac): Parameterize the location
36947         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36948         The logic is from Eric Blake and the location indicated by Jim Meyering.
36949         Note the more natural CONFIG_HEADER name is prohibited by automake
36950         for backwards compatibility reasons.
36951         * top/maint.mk (sc_Wundef_boolean): New rule.
36952
36953 2010-01-25  Jim Meyering  <meyering@redhat.com>
36954
36955         bootstrap: detect MacOS 10.6's shasum, too
36956         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36957         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36958
36959 2010-01-23  Jim Meyering  <meyering@redhat.com>
36960
36961         xstrtoll: new module
36962         * modules/xstrtoll: New file.
36963         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36964         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36965         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36966         ./configure fails if you use this module and lack "long long".
36967         * modules/xstrtoll-tests: New module.
36968         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36969         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36970         new init.sh-based test framework.
36971
36972 2010-01-24  Bruno Haible  <bruno@clisp.org>
36973
36974         Tests for module 'yn'.
36975         * modules/yn-tests: New file.
36976         * tests/test-yn.c: New file.
36977
36978         Tests for module 'y1'.
36979         * modules/y1-tests: New file.
36980         * tests/test-y1.c: New file.
36981
36982         Tests for module 'y0'.
36983         * modules/y0-tests: New file.
36984         * tests/test-y0.c: New file.
36985
36986         Tests for module 'tanh'.
36987         * modules/tanh-tests: New file.
36988         * tests/test-tanh.c: New file.
36989
36990         Tests for module 'tan'.
36991         * modules/tan-tests: New file.
36992         * tests/test-tan.c: New file.
36993
36994         Tests for module 'sqrt'.
36995         * modules/sqrt-tests: New file.
36996         * tests/test-sqrt.c: New file.
36997
36998         Tests for module 'sinh'.
36999         * modules/sinh-tests: New file.
37000         * tests/test-sinh.c: New file.
37001
37002         Tests for module 'sin'.
37003         * modules/sin-tests: New file.
37004         * tests/test-sin.c: New file.
37005
37006         Tests for module 'rint'.
37007         * modules/rint-tests: New file.
37008         * tests/test-rint.c: New file.
37009
37010         Tests for module 'remainder'.
37011         * modules/remainder-tests: New file.
37012         * tests/test-remainder.c: New file.
37013
37014         Tests for module 'pow'.
37015         * modules/pow-tests: New file.
37016         * tests/test-pow.c: New file.
37017
37018         Tests for module 'nextafter'.
37019         * modules/nextafter-tests: New file.
37020         * tests/test-nextafter.c: New file.
37021
37022         Tests for module 'modf'.
37023         * modules/modf-tests: New file.
37024         * tests/test-modf.c: New file.
37025
37026         Tests for module 'logb'.
37027         * modules/logb-tests: New file.
37028         * tests/test-logb.c: New file.
37029
37030         Tests for module 'log1p'.
37031         * modules/log1p-tests: New file.
37032         * tests/test-log1p.c: New file.
37033
37034         Tests for module 'log10'.
37035         * modules/log10-tests: New file.
37036         * tests/test-log10.c: New file.
37037
37038         Tests for module 'log'.
37039         * modules/log-tests: New file.
37040         * tests/test-log.c: New file.
37041
37042         Tests for module 'lgamma'.
37043         * modules/lgamma-tests: New file.
37044         * tests/test-lgamma.c: New file.
37045
37046         Tests for module 'ldexp'.
37047         * modules/ldexp-tests: New file.
37048         * tests/test-ldexp.c: New file.
37049
37050         Tests for module 'jn'.
37051         * modules/jn-tests: New file.
37052         * tests/test-jn.c: New file.
37053
37054         Tests for module 'j1'.
37055         * modules/j1-tests: New file.
37056         * tests/test-j1.c: New file.
37057
37058         Tests for module 'j0'.
37059         * modules/j0-tests: New file.
37060         * tests/test-j0.c: New file.
37061
37062         Tests for module 'hypot'.
37063         * modules/hypot-tests: New file.
37064         * tests/test-hypot.c: New file.
37065
37066         Tests for module 'fmod'.
37067         * modules/fmod-tests: New file.
37068         * tests/test-fmod.c: New file.
37069
37070         Tests for module 'fabs'.
37071         * modules/fabs-tests: New file.
37072         * tests/test-fabs.c: New file.
37073
37074         Tests for module 'exp'.
37075         * modules/exp-tests: New file.
37076         * tests/test-exp.c: New file.
37077
37078         Tests for module 'erfc'.
37079         * modules/erfc-tests: New file.
37080         * tests/test-erfc.c: New file.
37081
37082         Tests for module 'erf'.
37083         * modules/erf-tests: New file.
37084         * tests/test-erf.c: New file.
37085
37086         Tests for module 'cosh'.
37087         * modules/cosh-tests: New file.
37088         * tests/test-cosh.c: New file.
37089
37090         Tests for module 'cos'.
37091         * modules/cos-tests: New file.
37092         * tests/test-cos.c: New file.
37093
37094         Tests for module 'copysign'.
37095         * modules/copysign-tests: New file.
37096         * tests/test-copysign.c: New file.
37097
37098         Tests for module 'cbrt'.
37099         * modules/cbrt-tests: New file.
37100         * tests/test-cbrt.c: New file.
37101
37102         Tests for module 'atan2'.
37103         * modules/atan2-tests: New file.
37104         * tests/test-atan2.c: New file.
37105
37106         Tests for module 'atan'.
37107         * modules/atan-tests: New file.
37108         * tests/test-atan.c: New file.
37109
37110         Tests for module 'asin'.
37111         * modules/asin-tests: New file.
37112         * tests/test-asin.c: New file.
37113
37114         Tests for module 'acos'.
37115         * modules/acos-tests: New file.
37116         * tests/test-acos.c: New file.
37117
37118 2010-01-24  Bruno Haible  <bruno@clisp.org>
37119
37120         Fix tests for common <math.h> functions.
37121         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
37122         code snippet that references the function pointer, rather than merely
37123         calling the function. Substitute the FUNC_LIBM variable.
37124         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
37125         * modules/acos (configure.ac): Likewise.
37126         * modules/asin (configure.ac): Likewise.
37127         * modules/atan (configure.ac): Likewise.
37128         * modules/atan2 (configure.ac): Likewise.
37129         * modules/cbrt (configure.ac): Likewise.
37130         * modules/copysign (configure.ac): Likewise.
37131         * modules/cos (configure.ac): Likewise.
37132         * modules/cosh (configure.ac): Likewise.
37133         * modules/erf (configure.ac): Likewise.
37134         * modules/erfc (configure.ac): Likewise.
37135         * modules/exp (configure.ac): Likewise.
37136         * modules/fabs (configure.ac): Likewise.
37137         * modules/fmod (configure.ac): Likewise.
37138         * modules/hypot (configure.ac): Likewise.
37139         * modules/j0 (configure.ac): Likewise.
37140         * modules/j1 (configure.ac): Likewise.
37141         * modules/jn (configure.ac): Likewise.
37142         * modules/ldexp (configure.ac): Likewise.
37143         * modules/lgamma (configure.ac): Likewise.
37144         * modules/log (configure.ac): Likewise.
37145         * modules/log10 (configure.ac): Likewise.
37146         * modules/log1p (configure.ac): Likewise.
37147         * modules/logb (configure.ac): Likewise.
37148         * modules/modf (configure.ac): Likewise.
37149         * modules/nextafter (configure.ac): Likewise.
37150         * modules/pow (configure.ac): Likewise.
37151         * modules/remainder (configure.ac): Likewise.
37152         * modules/rint (configure.ac): Likewise.
37153         * modules/sin (configure.ac): Likewise.
37154         * modules/sinh (configure.ac): Likewise.
37155         * modules/tan (configure.ac): Likewise.
37156         * modules/tanh (configure.ac): Likewise.
37157         * modules/y0 (configure.ac): Likewise.
37158         * modules/y1 (configure.ac): Likewise.
37159         * modules/yn (configure.ac): Likewise.
37160
37161 2010-01-24  Bruno Haible  <bruno@clisp.org>
37162
37163         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
37164         * tests/test-acosl.c (x): New variable.
37165         (main): Store argument in x and fetch it from x.
37166         * tests/test-asinl.c (x): New variable.
37167         (main): Store argument in x and fetch it from x.
37168         * tests/test-atanl.c (x): New variable.
37169         (main): Store argument in x and fetch it from x.
37170         * tests/test-cosl.c (x): New variable.
37171         (main): Store argument in x and fetch it from x.
37172         * tests/test-expl.c (x): New variable.
37173         (main): Store argument in x and fetch it from x.
37174         * tests/test-logl.c (x): New variable.
37175         (main): Store argument in x and fetch it from x.
37176         * tests/test-sinl.c (x): New variable.
37177         (main): Store argument in x and fetch it from x.
37178         * tests/test-sqrtl.c (x): New variable.
37179         (main): Store argument in x and fetch it from x.
37180         * tests/test-tanl.c (x): New variable.
37181         (main): Store argument in x and fetch it from x.
37182
37183 2010-01-24  Bruno Haible  <bruno@clisp.org>
37184
37185         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
37186         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
37187         assignments to the initial TESTS_ENVIRONMENT.
37188         * doc/gnulib.texi (Unit test modules): Document it.
37189         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
37190         TESTS_ENVIRONMENT.
37191         * modules/btowc-tests (Makefile.am): Likewise.
37192         * modules/c-stack-tests (Makefile.am): Likewise.
37193         * modules/c-strcase-tests (Makefile.am): Likewise.
37194         * modules/copy-file-tests (Makefile.am): Likewise.
37195         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
37196         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
37197         * modules/mbrtowc-tests (Makefile.am): Likewise.
37198         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37199         * modules/mbscasestr-tests (Makefile.am): Likewise.
37200         * modules/mbschr-tests (Makefile.am): Likewise.
37201         * modules/mbscspn-tests (Makefile.am): Likewise.
37202         * modules/mbsinit-tests (Makefile.am): Likewise.
37203         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37204         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
37205         * modules/mbspbrk-tests (Makefile.am): Likewise.
37206         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37207         * modules/mbsrchr-tests (Makefile.am): Likewise.
37208         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
37209         * modules/mbsspn-tests (Makefile.am): Likewise.
37210         * modules/mbsstr-tests (Makefile.am): Likewise.
37211         * modules/nl_langinfo-tests (Makefile.am): Likewise.
37212         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
37213         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37214         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37215         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37216         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37217         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
37218         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37219         * modules/wcrtomb-tests (Makefile.am): Likewise.
37220         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
37221         * modules/wcsrtombs-tests (Makefile.am): Likewise.
37222         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
37223         assignments from TESTS_ENVIRONMENT.
37224         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
37225         augmentation.
37226         * modules/argp-version-etc-tests (Makefile.am): Likewise.
37227         * modules/atexit-tests (Makefile.am): Likewise.
37228         * modules/binary-io-tests (Makefile.am): Likewise.
37229         * modules/closein-tests (Makefile.am): Likewise.
37230         * modules/dprintf-posix-tests (Makefile.am): Likewise.
37231         * modules/exclude-tests (Makefile.am): Likewise.
37232         * modules/fflush-tests (Makefile.am): Likewise.
37233         * modules/fpending-tests (Makefile.am): Likewise.
37234         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37235         * modules/freadahead-tests (Makefile.am): Likewise.
37236         * modules/freadptr-tests (Makefile.am): Likewise.
37237         * modules/freadseek-tests (Makefile.am): Likewise.
37238         * modules/fseek-tests (Makefile.am): Likewise.
37239         * modules/fseeko-tests (Makefile.am): Likewise.
37240         * modules/ftell-tests (Makefile.am): Likewise.
37241         * modules/ftello-tests (Makefile.am): Likewise.
37242         * modules/idpriv-drop-tests (Makefile.am): Likewise.
37243         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
37244         * modules/lseek-tests (Makefile.am): Likewise.
37245         * modules/parse-duration-tests (Makefile.am): Likewise.
37246         * modules/perror-tests (Makefile.am): Likewise.
37247         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
37248         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
37249         * modules/pipe-tests (Makefile.am): Likewise.
37250         * modules/pread-tests (Makefile.am): Likewise.
37251         * modules/printf-posix-tests (Makefile.am): Likewise.
37252         * modules/select-tests (Makefile.am): Likewise.
37253         * modules/sigpipe-tests (Makefile.am): Likewise.
37254         * modules/tsearch-tests (Makefile.am): Likewise.
37255         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
37256         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
37257         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37258         * modules/uniwidth/width-tests (Makefile.am): Likewise.
37259         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
37260         * modules/version-etc-tests (Makefile.am): Likewise.
37261         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37262         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37263         * modules/xalloc-die-tests (Makefile.am): Likewise.
37264         * modules/xprintf-posix-tests (Makefile.am): Likewise.
37265         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37266         * modules/xstrtol-tests (Makefile.am): Likewise.
37267         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37268         * modules/yesno-tests (Makefile.am): Likewise.
37269         Suggested by Jim Meyering.
37270
37271 2010-01-24  Bruno Haible  <bruno@clisp.org>
37272
37273         More documentation.
37274         * doc/gnulib.texi (Writing modules): New chapter.
37275         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
37276         the new chapter.
37277
37278 2010-01-24  Jim Meyering  <meyering@redhat.com>
37279
37280         maint.mk: do not prepend "./" after filtering
37281         * top/maint.mk (_prepend_srcdir_prefix): New variable
37282         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
37283         "./" when $(srcdir) is ".".
37284
37285         define STREQ(a,b) consistently, removing useless parentheses
37286         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
37287         since the only risk is that "a" or "b" contains an unparenthesized
37288         comma, but if either did that, STREQ would have 3 or more arguments.
37289         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
37290         * lib/fts.c (STREQ): Remove unnecessary parentheses.
37291         * lib/hash-triple.c (STREQ): Likewise.
37292         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
37293         * lib/getugroups.c (STREQ): Likewise.
37294
37295 2010-01-23  Jim Meyering  <meyering@redhat.com>
37296
37297         maint.mk: fix syntax-check in a non-srcdir build directory
37298         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
37299         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
37300
37301 2010-01-22  Jim Meyering  <meyering@redhat.com>
37302
37303         userspec: add unit tests
37304         * tests/test-userspec.c: New file.
37305         * modules/userspec-tests: Likewise.
37306
37307 2010-01-21  Jim Meyering  <meyering@redhat.com>
37308
37309         maint.mk: handle source file names containing "." robustly
37310         * top/maint.mk (_dot_escaped_srcdir): Define.
37311         (VC_LIST): Use it in LHS of sed substitution.
37312
37313 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
37314
37315         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
37316         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
37317         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
37318         from a non-srcdir build.
37319
37320 2010-01-20  Eric Blake  <ebb9@byu.net>
37321
37322         warn-on-use: use instead of link-warning
37323         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
37324         * modules/unistd (Depends-on, Makefile.am): Likewise.
37325         * modules/arpa_inet (Depends-on): Replace link-warning with
37326         warn-on-use.
37327         (Makefile.am): Update rules accordingly.
37328         * modules/ctype (Depends-on, Makefile.am): Likewise.
37329         * modules/dirent (Depends-on, Makefile.am): Likewise.
37330         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
37331         * modules/inttypes (Depends-on, Makefile.am): Likewise.
37332         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37333         * modules/locale (Depends-on, Makefile.am): Likewise.
37334         * modules/math (Depends-on, Makefile.am): Likewise.
37335         * modules/search (Depends-on, Makefile.am): Likewise.
37336         * modules/signal (Depends-on, Makefile.am): Likewise.
37337         * modules/spawn (Depends-on, Makefile.am): Likewise.
37338         * modules/stdlib (Depends-on, Makefile.am): Likewise.
37339         * modules/string (Depends-on, Makefile.am): Likewise.
37340         * modules/strings (Depends-on, Makefile.am): Likewise.
37341         * modules/sys_file (Depends-on, Makefile.am): Likewise.
37342         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
37343         * modules/sys_select (Depends-on, Makefile.am): Likewise.
37344         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
37345         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
37346         * modules/sys_times (Depends-on, Makefile.am): Likewise.
37347         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37348         * modules/wchar (Depends-on, Makefile.am): Likewise.
37349         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
37350         should be poisoned.
37351         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
37352         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
37353         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
37354         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37355         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37356         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
37357         * m4/math_h.m4 (gl_MATH_H): Likewise.
37358         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37359         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
37360         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37361         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
37362         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
37363         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
37364         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
37365         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
37366         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
37367         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37368         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
37369         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
37370         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37371         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
37372         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
37373         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37374         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
37375         GL_LINK_WARNING.
37376         * lib/ctype.in.h: Likewise.
37377         * lib/dirent.in.h: Likewise.
37378         * lib/fcntl.in.h: Likewise.
37379         * lib/inttypes.in.h: Likewise.
37380         * lib/langinfo.in.h: Likewise.
37381         * lib/locale.in.h: Likewise.
37382         * lib/math.in.h: Likewise.
37383         * lib/search.in.h: Likewise.
37384         * lib/signal.in.h: Likewise.
37385         * lib/spawn.in.h: Likewise.
37386         * lib/stdio.in.h: Likewise.
37387         * lib/stdlib.in.h: Likewise.
37388         * lib/string.in.h: Likewise.
37389         * lib/strings.in.h: Likewise.
37390         * lib/sys_file.in.h: Likewise.
37391         * lib/sys_ioctl.in.h: Likewise.
37392         * lib/sys_select.in.h: Likewise.
37393         * lib/sys_socket.in.h: Likewise.
37394         * lib/sys_stat.in.h: Likewise.
37395         * lib/sys_times.in.h: Likewise.
37396         * lib/sys_utsname.in.h: Likewise.
37397         * lib/unistd.in.h: Likewise.
37398         * lib/wchar.in.h: Likewise.
37399
37400 2010-01-20  Bruno Haible  <bruno@clisp.org>
37401
37402         Avoid duplicate -lm.
37403         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
37404         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
37405         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
37406         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
37407         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
37408         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
37409         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
37410         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
37411         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
37412         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
37413         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
37414         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
37415         Reported by Paolo Bonzini.
37416
37417 2010-01-19  Bruno Haible  <bruno@clisp.org>
37418
37419         langinfo, nl_langinfo: Relicense under LGPLv2+.
37420         * modules/langinfo (License): Change to LGPLv2+.
37421         * modules/nl_langinfo (License): Likewise.
37422         Patch by David Lutterkort <lutter@redhat.com>.
37423
37424 2010-01-19  Bruno Haible  <bruno@clisp.org>
37425
37426         Avoid compilation error with cc on OSF/1 5.1.
37427         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
37428         statement, not before.
37429         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37430
37431 2010-01-18  Bruno Haible  <bruno@clisp.org>
37432
37433         Avoid a link error due to the __printf__ symbol.
37434         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
37435         and 2.6.x.
37436         (__format__, __printf__): Remove definitions.
37437         * lib/argp-fmtstream.h: Likewise.
37438         * lib/argp.h: Likewise.
37439         * lib/error.h: Likewise.
37440         * lib/vasnprintf.h: Likewise.
37441         * lib/xprintf.h: Likewise.
37442         * lib/xvasprintf.h: Likewise.
37443         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37444
37445 2010-01-18  Bruno Haible  <bruno@clisp.org>
37446
37447         Tests for module 'tanl'.
37448         * modules/tanl-tests: New file.
37449         * tests/test-tanl.c: New file.
37450
37451         Tests for module 'sqrtl'.
37452         * modules/sqrtl-tests: New file.
37453         * tests/test-sqrtl.c: New file.
37454
37455         Tests for module 'sinl'.
37456         * modules/sinl-tests: New file.
37457         * tests/test-sinl.c: New file.
37458
37459         Tests for module 'logl'.
37460         * modules/logl-tests: New file.
37461         * tests/test-logl.c: New file.
37462
37463         Tests for module 'expl'.
37464         * modules/expl-tests: New file.
37465         * tests/test-expl.c: New file.
37466
37467         Tests for module 'cosl'.
37468         * modules/cosl-tests: New file.
37469         * tests/test-cosl.c: New file.
37470
37471         Tests for module 'atanl'.
37472         * modules/atanl-tests: New file.
37473         * tests/test-atanl.c: New file.
37474
37475         Tests for module 'asinl'.
37476         * modules/asinl-tests: New file.
37477         * tests/test-asinl.c: New file.
37478
37479         Tests for module 'acosl'.
37480         * modules/acosl-tests: New file.
37481         * tests/test-acosl.c: New file.
37482
37483         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37484         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
37485         tanl): Use the standard gnulib idiom.
37486         * lib/cosl.c: Don't include trigl.c and sincosl.c.
37487         * lib/sinl.c: Likewise.
37488         * lib/tanl.c: Don't include trigl.c.
37489         (kernel_tanl): Make static.
37490         * lib/sincosl.c: Include trigl.h first.
37491         * lib/trigl.c: Likewise.
37492         * m4/acosl.m4: New file.
37493         * m4/asinl.m4: New file.
37494         * m4/atanl.m4: New file.
37495         * m4/cosl.m4: New file.
37496         * m4/expl.m4: New file.
37497         * m4/logl.m4: New file.
37498         * m4/sinl.m4: New file.
37499         * m4/sqrtl.m4: New file.
37500         * m4/tanl.m4: New file.
37501         * m4/mathl.m4: Remove file.
37502         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
37503         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
37504         Don't initialize GNULIB_MATHL.
37505         * modules/acosl: New file.
37506         * modules/asinl: New file.
37507         * modules/atanl: New file.
37508         * modules/cosl: New file.
37509         * modules/expl: New file.
37510         * modules/logl: New file.
37511         * modules/sinl: New file.
37512         * modules/sqrtl: New file.
37513         * modules/tanl: New file.
37514         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
37515         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
37516         substitute GNULIB_MATHL.
37517         * modules/mathl: Rewritten.
37518         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
37519         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
37520         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
37521         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
37522         * doc/posix-functions/expl.texi: Mention the 'expl' module.
37523         * doc/posix-functions/logl.texi: Mention the 'logl' module.
37524         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
37525         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
37526         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
37527
37528 2010-01-18  Bruno Haible  <bruno@clisp.org>
37529
37530         sqrt: Make gl_FUNC_SQRT requirable.
37531         * m4/sqrt.m4: New file.
37532         * modules/sqrt (Files): Add it.
37533         (configure.ac): Invoke gl_FUNC_SQRT.
37534
37535 2010-01-18  Bruno Haible  <bruno@clisp.org>
37536
37537         New modules for common <math.h> functions.
37538         * m4/mathfunc.m4: New file.
37539         * modules/acos: New file.
37540         * modules/asin: New file.
37541         * modules/atan: New file.
37542         * modules/atan2: New file.
37543         * modules/cbrt: New file.
37544         * modules/copysign: New file.
37545         * modules/cos: New file.
37546         * modules/cosh: New file.
37547         * modules/erf: New file.
37548         * modules/erfc: New file.
37549         * modules/exp: New file.
37550         * modules/fabs: New file.
37551         * modules/fmod: New file.
37552         * modules/hypot: New file.
37553         * modules/j0: New file.
37554         * modules/j1: New file.
37555         * modules/jn: New file.
37556         * modules/ldexp: New file.
37557         * modules/lgamma: New file.
37558         * modules/log: New file.
37559         * modules/log10: New file.
37560         * modules/log1p: New file.
37561         * modules/logb: New file.
37562         * modules/modf: New file.
37563         * modules/nextafter: New file.
37564         * modules/pow: New file.
37565         * modules/remainder: New file.
37566         * modules/rint: New file.
37567         * modules/sin: New file.
37568         * modules/sinh: New file.
37569         * modules/sqrt: New file.
37570         * modules/tan: New file.
37571         * modules/tanh: New file.
37572         * modules/y0: New file.
37573         * modules/y1: New file.
37574         * modules/yn: New file.
37575         * doc/posix-functions/acos.texi: Mention the 'acos' module.
37576         * doc/posix-functions/asin.texi: Mention the 'asin' module.
37577         * doc/posix-functions/atan.texi: Mention the 'atan' module.
37578         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
37579         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
37580         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
37581         * doc/posix-functions/cos.texi: Mention the 'cos' module.
37582         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
37583         * doc/posix-functions/erf.texi: Mention the 'erf' module.
37584         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
37585         * doc/posix-functions/exp.texi: Mention the 'exp' module.
37586         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
37587         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
37588         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
37589         * doc/posix-functions/j0.texi: Mention the 'j0' module.
37590         * doc/posix-functions/j1.texi: Mention the 'j1' module.
37591         * doc/posix-functions/jn.texi: Mention the 'jn' module.
37592         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
37593         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
37594         * doc/posix-functions/log.texi: Mention the 'log' module.
37595         * doc/posix-functions/log10.texi: Mention the 'log10' module.
37596         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
37597         * doc/posix-functions/logb.texi: Mention the 'logb' module.
37598         * doc/posix-functions/modf.texi: Mention the 'modf' module.
37599         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
37600         * doc/posix-functions/pow.texi: Mention the 'pow' module.
37601         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
37602         * doc/posix-functions/rint.texi: Mention the 'rint' module.
37603         * doc/posix-functions/sin.texi: Mention the 'sin' module.
37604         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
37605         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
37606         * doc/posix-functions/tan.texi: Mention the 'tan' module.
37607         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
37608         * doc/posix-functions/y0.texi: Mention the 'y0' module.
37609         * doc/posix-functions/y1.texi: Mention the 'y1' module.
37610         * doc/posix-functions/yn.texi: Mention the 'yn' module.
37611
37612 2010-01-18  Jim Meyering  <meyering@redhat.com>
37613
37614         ignore-value: relax license to LGPLv2+
37615         * modules/ignore-value (License): Relax to LGPLv2+.
37616
37617         getdate: don't leak when TZ contains two or more '"'s
37618         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
37619         double quote in TZ after the first one.
37620
37621         readtokens: do not leak internal token_lengths buffer
37622         * lib/readtokens.c (readtokens): Free the local, lengths,
37623         when the supplied "token_lengths" parameter is NULL.
37624
37625 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37626
37627         Fix a couple of missing LIBTHREAD link failures on AIX.
37628         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
37629         $(LIBTHREAD).
37630         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
37631
37632         Link test-poll against INET_PTON_LIB.
37633         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
37634         for inet_pton on Solaris 10.
37635
37636 2010-01-17  Bruno Haible  <bruno@clisp.org>
37637
37638         unistdio/*-sprintf: Fix typo in module description.
37639         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
37640         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
37641         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
37642         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
37643         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
37644         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
37645         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
37646         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37647
37648 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37649
37650         gnulib-tool: fix filelist for AIX, HP-UX ksh.
37651         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
37652         variables in shell case patterns, for AIX and HP-UX ksh.
37653
37654         Split large sed scripts, for HP-UX sed.
37655         * modules/stdio: Split sed scripts around 50 sed commands,
37656         to avoid HP-UX limit of 99 commands, in the near future.
37657         * modules/string: Likewise.
37658         * modules/unistd: Likewise.
37659
37660         gnulib-tool: avoid writing in the current directory.
37661         * gnulib-tool (func_emit_lib_Makefile_am)
37662         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
37663         not in the current directory, so concurrent gnulib-tool
37664         instances do not interfere.
37665
37666 2010-01-16  Jim Meyering  <meyering@redhat.com>
37667
37668         doc: update users.txt
37669         * users.txt: Add grep.
37670         (diffutils, gzip): Update URLs.
37671
37672 2010-01-12  Bruno Haible  <bruno@clisp.org>
37673
37674         posix_spawn: Avoid test failure on Cygwin.
37675         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
37676         characters.
37677         Reported by Simon Josefsson.
37678
37679 2010-01-12  Bruno Haible  <bruno@clisp.org>
37680
37681         * tests/test-cond.c (main): When skipping the test, show the reason.
37682
37683 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37684
37685         * lib/striconv.c (str_cd_iconv): Avoid if before free.
37686
37687 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37688
37689         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
37690         VC_LIST_ALWAYS_EXCLUDE_REGEX.
37691
37692 2010-01-12  Eric Blake  <ebb9@byu.net>
37693
37694         build: guarantee AS_VAR_IF
37695         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
37696         (gl_AS_VAR_IF): Move...
37697         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
37698         Reported by Simon Josefsson.
37699
37700 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37701
37702         * lib/stdio.in.h: Fix typo.
37703
37704 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37705
37706         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
37707         libgpg-error.
37708
37709 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37710
37711         * tests/test-xalloc-die.sh: Use $EXEEXT.
37712
37713 2010-01-12  Simon Josefsson  <simon@josefsson.org>
37714             Bruno Haible  <bruno@clisp.org>
37715
37716         getlogin, getlogin_r: Avoid test failure.
37717         * tests/test-getlogin.c: Include <stdio.h>.
37718         (main): Skip the test when the function fails because stdin is not a
37719         tty.
37720         * tests/test-getlogin_r.c: Include <stdio.h>.
37721         (main): Skip the test when the function fails because stdin is not a
37722         tty.
37723
37724 2010-01-11  Eric Blake  <ebb9@byu.net>
37725
37726         tests: avoid more large file warnings
37727         * tests/test-fflush.c: Avoid warning about ftell use.
37728         * tests/test-fseek.c: Avoid warning about fseek use.
37729
37730 2010-01-10  Bruno Haible  <bruno@clisp.org>
37731
37732         nproc: Work better on Linux when /proc and /sys are not mounted.
37733         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
37734         as lower bound when, on glibc/Linux systems,
37735         sysconf (_SC_NPROCESSORS_CONF) returns 1.
37736         Suggested by Pádraig Brady <P@draigbrady.com>.
37737         Reported by Dmitry V. Levin <ldv@altlinux.org>.
37738
37739         nproc: Refactor.
37740         * lib/nproc.c (num_processors_via_affinity_mask): New function,
37741         extracted from num_processors.
37742         (num_processors): Call it.
37743
37744 2010-01-11  Jim Meyering  <meyering@redhat.com>
37745
37746         utimecmp: avoid new warning from upcoming gcc-4.5.0
37747         * lib/utimecmp.c (BILLION): Define using #define rather than an
37748         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
37749
37750 2010-01-11  Eric Blake  <ebb9@byu.net>
37751
37752         math: add portability warnings for classification macros
37753         * modules/math (Depends-on): Add warn-on-use.
37754         (Makefile.am): Provide new substitutions.
37755         * m4/math_h.m4 (gl_MATH_H): Require inline.
37756         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
37757         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
37758         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
37759         implement warnings.
37760
37761         unistd: warn on use of environ without module
37762         * modules/unistd (Depends-on): Add warn-on-use.
37763         (Makefile.am): Provide new substitutions.
37764         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
37765         * lib/unistd.in.h (environ): Wrap with a warning helper function.
37766
37767         stdio: warn on suspicious uses
37768         * modules/stdio (Depends-on): Add warn-on-use.
37769         (Makefile.am): Provide new substitutions.
37770         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
37771         fseeko.
37772         * lib/stdio.in.h (gets): Always warn on use.
37773         (fseek, ftell): Adjust when warnings are issued, and honor
37774         _GL_NO_LARGE_FILES as a way to silence the warning.
37775         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
37776         any warning about large file offsets.
37777         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
37778         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
37779         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
37780         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
37781         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
37782         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
37783         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
37784         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
37785
37786         warn-on-use: new module
37787         * modules/warn-on-use: New file.
37788         * build-aux/warn-on-use.h: Likewise.
37789         * m4/warn-on-use.m4: Likewise.
37790         * MODULES.html.sh (Support for building): Mention it.
37791
37792 2010-01-10  Bruno Haible  <bruno@clisp.org>
37793
37794         Tests for module 'unistr/u32-strdup'.
37795         * modules/unistr/u32-strdup-tests: New file.
37796         * tests/unistr/test-u32-strdup.c: New file.
37797
37798         Tests for module 'unistr/u16-strdup'.
37799         * modules/unistr/u16-strdup-tests: New file.
37800         * tests/unistr/test-u16-strdup.c: New file.
37801
37802         Tests for module 'unistr/u8-strdup'.
37803         * modules/unistr/u8-strdup-tests: New file.
37804         * tests/unistr/test-u8-strdup.c: New file.
37805         * tests/unistr/test-strdup.h: New file.
37806
37807         Tests for module 'unistr/u32-strncmp'.
37808         * modules/unistr/u32-strncmp-tests: New file.
37809         * tests/unistr/test-u32-strncmp.c: New file.
37810
37811         Tests for module 'unistr/u16-strncmp'.
37812         * modules/unistr/u16-strncmp-tests: New file.
37813         * tests/unistr/test-u16-strncmp.c: New file.
37814
37815         Tests for module 'unistr/u8-strncmp'.
37816         * modules/unistr/u8-strncmp-tests: New file.
37817         * tests/unistr/test-u8-strncmp.c: New file.
37818         * tests/unistr/test-strncmp.h: New file.
37819
37820         Tests for module 'unistr/u32-strcoll'.
37821         * modules/unistr/u32-strcoll-tests: New file.
37822         * tests/unistr/test-u32-strcoll.c: New file.
37823
37824         Tests for module 'unistr/u16-strcoll'.
37825         * modules/unistr/u16-strcoll-tests: New file.
37826         * tests/unistr/test-u16-strcoll.c: New file.
37827
37828         Tests for module 'unistr/u8-strcoll'.
37829         * modules/unistr/u8-strcoll-tests: New file.
37830         * tests/unistr/test-u8-strcoll.c: New file.
37831
37832         Tests for module 'unistr/u32-strcmp'.
37833         * modules/unistr/u32-strcmp-tests: New file.
37834         * tests/unistr/test-u32-strcmp.c: New file.
37835         * tests/unistr/test-u32-strcmp.h: New file.
37836
37837         Tests for module 'unistr/u16-strcmp'.
37838         * modules/unistr/u16-strcmp-tests: New file.
37839         * tests/unistr/test-u16-strcmp.c: New file.
37840         * tests/unistr/test-u16-strcmp.h: New file.
37841
37842         Tests for module 'unistr/u8-strcmp'.
37843         * modules/unistr/u8-strcmp-tests: New file.
37844         * tests/unistr/test-u8-strcmp.c: New file.
37845         * tests/unistr/test-u8-strcmp.h: New file.
37846         * tests/unistr/test-strcmp.h: New file.
37847
37848         Tests for module 'unistr/u32-strncat'.
37849         * modules/unistr/u32-strncat-tests: New file.
37850         * tests/unistr/test-u32-strncat.c: New file.
37851
37852         Tests for module 'unistr/u16-strncat'.
37853         * modules/unistr/u16-strncat-tests: New file.
37854         * tests/unistr/test-u16-strncat.c: New file.
37855
37856         Tests for module 'unistr/u8-strncat'.
37857         * modules/unistr/u8-strncat-tests: New file.
37858         * tests/unistr/test-u8-strncat.c: New file.
37859         * tests/unistr/test-strncat.h: New file.
37860
37861         Tests for module 'unistr/u32-strcat'.
37862         * modules/unistr/u32-strcat-tests: New file.
37863         * tests/unistr/test-u32-strcat.c: New file.
37864
37865         Tests for module 'unistr/u16-strcat'.
37866         * modules/unistr/u16-strcat-tests: New file.
37867         * tests/unistr/test-u16-strcat.c: New file.
37868
37869         Tests for module 'unistr/u8-strcat'.
37870         * modules/unistr/u8-strcat-tests: New file.
37871         * tests/unistr/test-u8-strcat.c: New file.
37872         * tests/unistr/test-strcat.h: New file.
37873
37874         Tests for module 'unistr/u32-stpncpy'.
37875         * modules/unistr/u32-stpncpy-tests: New file.
37876         * tests/unistr/test-u32-stpncpy.c: New file.
37877
37878         Tests for module 'unistr/u16-stpncpy'.
37879         * modules/unistr/u16-stpncpy-tests: New file.
37880         * tests/unistr/test-u16-stpncpy.c: New file.
37881
37882         Tests for module 'unistr/u8-stpncpy'.
37883         * modules/unistr/u8-stpncpy-tests: New file.
37884         * tests/unistr/test-u8-stpncpy.c: New file.
37885         * tests/unistr/test-stpncpy.h: New file.
37886
37887         Tests for module 'unistr/u32-strncpy'.
37888         * modules/unistr/u32-strncpy-tests: New file.
37889         * tests/unistr/test-u32-strncpy.c: New file.
37890
37891         Tests for module 'unistr/u16-strncpy'.
37892         * modules/unistr/u16-strncpy-tests: New file.
37893         * tests/unistr/test-u16-strncpy.c: New file.
37894
37895         Tests for module 'unistr/u8-strncpy'.
37896         * modules/unistr/u8-strncpy-tests: New file.
37897         * tests/unistr/test-u8-strncpy.c: New file.
37898         * tests/unistr/test-strncpy.h: New file.
37899
37900         Tests for module 'unistr/u32-stpcpy'.
37901         * modules/unistr/u32-stpcpy-tests: New file.
37902         * tests/unistr/test-u32-stpcpy.c: New file.
37903
37904         Tests for module 'unistr/u16-stpcpy'.
37905         * modules/unistr/u16-stpcpy-tests: New file.
37906         * tests/unistr/test-u16-stpcpy.c: New file.
37907
37908         Tests for module 'unistr/u8-stpcpy'.
37909         * modules/unistr/u8-stpcpy-tests: New file.
37910         * tests/unistr/test-u8-stpcpy.c: New file.
37911         * tests/unistr/test-stpcpy.h: New file.
37912
37913         Tests for module 'unistr/u32-strcpy'.
37914         * modules/unistr/u32-strcpy-tests: New file.
37915         * tests/unistr/test-u32-strcpy.c: New file.
37916
37917         Tests for module 'unistr/u16-strcpy'.
37918         * modules/unistr/u16-strcpy-tests: New file.
37919         * tests/unistr/test-u16-strcpy.c: New file.
37920
37921         Tests for module 'unistr/u8-strcpy'.
37922         * modules/unistr/u8-strcpy-tests: New file.
37923         * tests/unistr/test-u8-strcpy.c: New file.
37924         * tests/unistr/test-strcpy.h: New file.
37925
37926         Tests for module 'unistr/u32-strnlen'.
37927         * modules/unistr/u32-strnlen-tests: New file.
37928         * tests/unistr/test-u32-strnlen.c: New file.
37929
37930         Tests for module 'unistr/u16-strnlen'.
37931         * modules/unistr/u16-strnlen-tests: New file.
37932         * tests/unistr/test-u16-strnlen.c: New file.
37933
37934         Tests for module 'unistr/u8-strnlen'.
37935         * modules/unistr/u8-strnlen-tests: New file.
37936         * tests/unistr/test-u8-strnlen.c: New file.
37937         * tests/unistr/test-strnlen.h: New file.
37938
37939         Tests for module 'unistr/u32-strlen'.
37940         * modules/unistr/u32-strlen-tests: New file.
37941         * tests/unistr/test-u32-strlen.c: New file.
37942
37943         Tests for module 'unistr/u16-strlen'.
37944         * modules/unistr/u16-strlen-tests: New file.
37945         * tests/unistr/test-u16-strlen.c: New file.
37946
37947         Tests for module 'unistr/u8-strlen'.
37948         * modules/unistr/u8-strlen-tests: New file.
37949         * tests/unistr/test-u8-strlen.c: New file.
37950
37951         Tests for module 'unistr/u32-prev'.
37952         * modules/unistr/u32-prev-tests: New file.
37953         * tests/unistr/test-u32-prev.c: New file.
37954
37955         Tests for module 'unistr/u16-prev'.
37956         * modules/unistr/u16-prev-tests: New file.
37957         * tests/unistr/test-u16-prev.c: New file.
37958
37959         Tests for module 'unistr/u8-prev'.
37960         * modules/unistr/u8-prev-tests: New file.
37961         * tests/unistr/test-u8-prev.c: New file.
37962
37963         Tests for module 'unistr/u32-next'.
37964         * modules/unistr/u32-next-tests: New file.
37965         * tests/unistr/test-u32-next.c: New file.
37966
37967         Tests for module 'unistr/u16-next'.
37968         * modules/unistr/u16-next-tests: New file.
37969         * tests/unistr/test-u16-next.c: New file.
37970
37971         Tests for module 'unistr/u8-next'.
37972         * modules/unistr/u8-next-tests: New file.
37973         * tests/unistr/test-u8-next.c: New file.
37974
37975         Tests for module 'unistr/u32-strmbtouc'.
37976         * modules/unistr/u32-strmbtouc-tests: New file.
37977         * tests/unistr/test-u32-strmbtouc.c: New file.
37978
37979         Tests for module 'unistr/u16-strmbtouc'.
37980         * modules/unistr/u16-strmbtouc-tests: New file.
37981         * tests/unistr/test-u16-strmbtouc.c: New file.
37982
37983         Tests for module 'unistr/u8-strmbtouc'.
37984         * modules/unistr/u8-strmbtouc-tests: New file.
37985         * tests/unistr/test-u8-strmbtouc.c: New file.
37986
37987         Tests for module 'unistr/u32-strmblen'.
37988         * modules/unistr/u32-strmblen-tests: New file.
37989         * tests/unistr/test-u32-strmblen.c: New file.
37990
37991         Tests for module 'unistr/u16-strmblen'.
37992         * modules/unistr/u16-strmblen-tests: New file.
37993         * tests/unistr/test-u16-strmblen.c: New file.
37994
37995         Tests for module 'unistr/u8-strmblen'.
37996         * modules/unistr/u8-strmblen-tests: New file.
37997         * tests/unistr/test-u8-strmblen.c: New file.
37998
37999         Tests for module 'unistr/u32-cpy-alloc'.
38000         * modules/unistr/u32-cpy-alloc-tests: New file.
38001         * tests/unistr/test-u32-cpy-alloc.c: New file.
38002
38003         Tests for module 'unistr/u16-cpy-alloc'.
38004         * modules/unistr/u16-cpy-alloc-tests: New file.
38005         * tests/unistr/test-u16-cpy-alloc.c: New file.
38006
38007         Tests for module 'unistr/u8-cpy-alloc'.
38008         * modules/unistr/u8-cpy-alloc-tests: New file.
38009         * tests/unistr/test-u8-cpy-alloc.c: New file.
38010         * tests/unistr/test-cpy-alloc.h: New file.
38011
38012         Tests for module 'unistr/u32-mbsnlen'.
38013         * modules/unistr/u32-mbsnlen-tests: New file.
38014         * tests/unistr/test-u32-mbsnlen.c: New file.
38015
38016         Tests for module 'unistr/u16-mbsnlen'.
38017         * modules/unistr/u16-mbsnlen-tests: New file.
38018         * tests/unistr/test-u16-mbsnlen.c: New file.
38019
38020         Tests for module 'unistr/u8-mbsnlen'.
38021         * modules/unistr/u8-mbsnlen-tests: New file.
38022         * tests/unistr/test-u8-mbsnlen.c: New file.
38023
38024         Tests for module 'unistr/u32-chr'.
38025         * modules/unistr/u32-chr-tests: New file.
38026         * tests/unistr/test-u32-chr.c: New file.
38027
38028         Tests for module 'unistr/u16-chr'.
38029         * modules/unistr/u16-chr-tests: New file.
38030         * tests/unistr/test-u16-chr.c: New file.
38031
38032         Tests for module 'unistr/u8-chr'.
38033         * modules/unistr/u8-chr-tests: New file.
38034         * tests/unistr/test-u8-chr.c: New file.
38035         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
38036
38037         Tests for module 'unistr/u32-cmp2'.
38038         * modules/unistr/u32-cmp2-tests: New file.
38039         * tests/unistr/test-u32-cmp2.c: New file.
38040
38041         Tests for module 'unistr/u16-cmp2'.
38042         * modules/unistr/u16-cmp2-tests: New file.
38043         * tests/unistr/test-u16-cmp2.c: New file.
38044
38045         Tests for module 'unistr/u8-cmp2'.
38046         * modules/unistr/u8-cmp2-tests: New file.
38047         * tests/unistr/test-u8-cmp2.c: New file.
38048         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
38049
38050         Tests for module 'unistr/u32-cmp'.
38051         * modules/unistr/u32-cmp-tests: New file.
38052         * tests/unistr/test-u32-cmp.c: New file.
38053
38054         Tests for module 'unistr/u16-cmp'.
38055         * modules/unistr/u16-cmp-tests: New file.
38056         * tests/unistr/test-u16-cmp.c: New file.
38057
38058         Tests for module 'unistr/u8-cmp'.
38059         * modules/unistr/u8-cmp-tests: New file.
38060         * tests/unistr/test-u8-cmp.c: New file.
38061         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
38062
38063         Tests for module 'unistr/u32-set'.
38064         * modules/unistr/u32-set-tests: New file.
38065         * tests/unistr/test-u32-set.c: New file.
38066
38067         Tests for module 'unistr/u16-set'.
38068         * modules/unistr/u16-set-tests: New file.
38069         * tests/unistr/test-u16-set.c: New file.
38070
38071         Tests for module 'unistr/u8-set'.
38072         * modules/unistr/u8-set-tests: New file.
38073         * tests/unistr/test-u8-set.c: New file.
38074         * tests/unistr/test-set.h: New file.
38075
38076         Tests for module 'unistr/u32-move'.
38077         * modules/unistr/u32-move-tests: New file.
38078         * tests/unistr/test-u32-move.c: New file.
38079
38080         Tests for module 'unistr/u16-move'.
38081         * modules/unistr/u16-move-tests: New file.
38082         * tests/unistr/test-u16-move.c: New file.
38083
38084         Tests for module 'unistr/u8-move'.
38085         * modules/unistr/u8-move-tests: New file.
38086         * tests/unistr/test-u8-move.c: New file.
38087         * tests/unistr/test-move.h: New file.
38088
38089         Tests for module 'unistr/u32-cpy'.
38090         * modules/unistr/u32-cpy-tests: New file.
38091         * tests/unistr/test-u32-cpy.c: New file.
38092
38093         Tests for module 'unistr/u16-cpy'.
38094         * modules/unistr/u16-cpy-tests: New file.
38095         * tests/unistr/test-u16-cpy.c: New file.
38096
38097         Tests for module 'unistr/u8-cpy'.
38098         * modules/unistr/u8-cpy-tests: New file.
38099         * tests/unistr/test-u8-cpy.c: New file.
38100         * tests/unistr/test-cpy.h: New file.
38101
38102 2010-01-09  Bruno Haible  <bruno@clisp.org>
38103
38104         Tests for module 'unistr/u32-uctomb'.
38105         * modules/unistr/u32-uctomb-tests: New file.
38106         * tests/unistr/test-u32-uctomb.c: New file.
38107
38108         Tests for module 'unistr/u16-uctomb'.
38109         * modules/unistr/u16-uctomb-tests: New file.
38110         * tests/unistr/test-u16-uctomb.c: New file.
38111
38112         Tests for module 'unistr/u8-uctomb'.
38113         * modules/unistr/u8-uctomb-tests: New file.
38114         * tests/unistr/test-u8-uctomb.c: New file.
38115
38116         Tests for module 'unistr/u32-mbtoucr'.
38117         * modules/unistr/u32-mbtoucr-tests: New file.
38118         * tests/unistr/test-u32-mbtoucr.c: New file.
38119
38120         Tests for module 'unistr/u16-mbtoucr'.
38121         * modules/unistr/u16-mbtoucr-tests: New file.
38122         * tests/unistr/test-u16-mbtoucr.c: New file.
38123
38124         Tests for module 'unistr/u8-mbtoucr'.
38125         * modules/unistr/u8-mbtoucr-tests: New file.
38126         * tests/unistr/test-u8-mbtoucr.c: New file.
38127
38128         Tests for module 'unistr/u32-mbtouc'.
38129         * modules/unistr/u32-mbtouc-tests: New file.
38130         * tests/unistr/test-u32-mbtouc.c: New file.
38131
38132         Tests for module 'unistr/u16-mbtouc'.
38133         * modules/unistr/u16-mbtouc-tests: New file.
38134         * tests/unistr/test-u16-mbtouc.c: New file.
38135
38136         Tests for module 'unistr/u8-mbtouc'.
38137         * modules/unistr/u8-mbtouc-tests: New file.
38138         * tests/unistr/test-u8-mbtouc.c: New file.
38139
38140         Tests for module 'unistr/u32-mbtouc-unsafe'.
38141         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
38142         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
38143         * tests/unistr/test-u32-mbtouc.h: New file.
38144
38145         Tests for module 'unistr/u16-mbtouc-unsafe'.
38146         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
38147         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
38148         * tests/unistr/test-u16-mbtouc.h: New file.
38149
38150         Tests for module 'unistr/u8-mbtouc-unsafe'.
38151         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
38152         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
38153         * tests/unistr/test-u8-mbtouc.h: New file.
38154
38155         Tests for module 'unistr/u32-mblen'.
38156         * modules/unistr/u32-mblen-tests: New file.
38157         * tests/unistr/test-u32-mblen.c: New file.
38158
38159         Tests for module 'unistr/u16-mblen'.
38160         * modules/unistr/u16-mblen-tests: New file.
38161         * tests/unistr/test-u16-mblen.c: New file.
38162
38163         Tests for module 'unistr/u8-mblen'.
38164         * modules/unistr/u8-mblen-tests: New file.
38165         * tests/unistr/test-u8-mblen.c: New file.
38166
38167         Tests for module 'unistr/u32-to-u16'.
38168         * modules/unistr/u32-to-u16-tests: New file.
38169         * tests/unistr/test-u32-to-u16.c: New file.
38170
38171         Tests for module 'unistr/u32-to-u8'.
38172         * modules/unistr/u32-to-u8-tests: New file.
38173         * tests/unistr/test-u32-to-u8.c: New file.
38174
38175         Tests for module 'unistr/u16-to-u32'.
38176         * modules/unistr/u16-to-u32-tests: New file.
38177         * tests/unistr/test-u16-to-u32.c: New file.
38178
38179         Tests for module 'unistr/u16-to-u8'.
38180         * modules/unistr/u16-to-u8-tests: New file.
38181         * tests/unistr/test-u16-to-u8.c: New file.
38182
38183         Tests for module 'unistr/u8-to-u32'.
38184         * modules/unistr/u8-to-u32-tests: New file.
38185         * tests/unistr/test-u8-to-u32.c: New file.
38186
38187         Tests for module 'unistr/u8-to-u16'.
38188         * modules/unistr/u8-to-u16-tests: New file.
38189         * tests/unistr/test-u8-to-u16.c: New file.
38190
38191         Tests for module 'unistr/u32-check'.
38192         * modules/unistr/u32-check-tests: New file.
38193         * tests/unistr/test-u32-check.c: New file.
38194
38195         Tests for module 'unistr/u16-check'.
38196         * modules/unistr/u16-check-tests: New file.
38197         * tests/unistr/test-u16-check.c: New file.
38198
38199         Tests for module 'unistr/u8-check'.
38200         * modules/unistr/u8-check-tests: New file.
38201         * tests/unistr/test-u8-check.c: New file.
38202
38203         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
38204         (category_equals): New function.
38205         (main): Add more tests.
38206         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
38207
38208         * tests/unictype/test-bidi_byname.c (main): Add more tests.
38209
38210 2010-01-10  Bruno Haible  <bruno@clisp.org>
38211
38212         unistr/u*-strcoll: Try harder to distinguish different strings.
38213         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
38214         compare s1 and s2 to see if they are different.
38215
38216 2010-01-10  Bruno Haible  <bruno@clisp.org>
38217
38218         unistr/u*-stpncpy: Fix the return value.
38219         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
38220         description of the return value consistent with stpncpy in glibc.
38221         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
38222         written non-NUL unit.
38223
38224 2010-01-10  Bruno Haible  <bruno@clisp.org>
38225
38226         unistr/u*-next: Add missing dependencies.
38227         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
38228         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
38229         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
38230
38231 2010-01-10  Bruno Haible  <bruno@clisp.org>
38232
38233         unistr/u8-mbsnlen: Fix return value for incomplete character.
38234         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
38235         u8_mblen.
38236         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
38237         Remove unistr/u8-mblen.
38238         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
38239         u16_mblen.
38240         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
38241         Remove unistr/u16-mblen.
38242
38243 2010-01-10  Bruno Haible  <bruno@clisp.org>
38244
38245         wchar: Fix compilation error when <wchar.h> is used from coreutils.
38246         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
38247         Reported by Brian Gough <bjg@gnu.org> and
38248         Chris Clayton <chris2553@googlemail.com> via
38249         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
38250
38251 2010-01-09  Bruno Haible  <bruno@clisp.org>
38252
38253         unistr/u16-to-u32: Reject invalid input.
38254         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
38255         u16_mbtouc.
38256         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
38257         Remove unistr/u16-mbtouc.
38258
38259         unistr/u16-to-u8: Reject invalid input.
38260         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
38261         u16_mbtouc.
38262         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
38263         Remove unistr/u16-mbtouc.
38264
38265         unistr/u8-to-u32: Reject invalid input.
38266         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
38267         u8_mbtouc.
38268         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
38269         Remove unistr/u8-mbtouc.
38270
38271         unistr/u8-to-u16: Reject invalid input.
38272         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
38273         u8_mbtouc.
38274         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
38275         Remove unistr/u8-mbtouc.
38276
38277 2010-01-09  Bruno Haible  <bruno@clisp.org>
38278
38279         Tests for module 'getlogin'.
38280         * modules/getlogin-tests: New file.
38281         * tests/test-getlogin.c: New file.
38282
38283         New module 'getlogin'.
38284         * lib/unistd.in.h (getlogin): New declaration.
38285         * lib/getlogin.c: New file.
38286         * m4/getlogin.m4: New file.
38287         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
38288         HAVE_GETLOGIN.
38289         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
38290         HAVE_GETLOGIN.
38291         * modules/getlogin: New file.
38292         * doc/posix-functions/getlogin.texi: Mention the new module.
38293         Reported by John W. Eaton <jwe@gnu.org>.
38294
38295 2010-01-09  Bruno Haible  <bruno@clisp.org>
38296
38297         getlogin_r: Support for native Windows.
38298         * lib/getlogin_r.c: Include <windows.h>
38299         (getlogin_r): Implement for native Windows.
38300         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
38301         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
38302         via John W. Eaton <jwe@gnu.org>.
38303
38304 2010-01-09  Bruno Haible  <bruno@clisp.org>
38305
38306         getlogin_r: Small fixes.
38307         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
38308         succeeds.
38309         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
38310         before testing whether getlogin_r is declared. No need to set
38311         HAVE_DECL_GETLOGIN_R to 1.
38312         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
38313
38314 2010-01-09  Bruno Haible  <bruno@clisp.org>
38315
38316         * lib/unistd.in.h (getlogin_r): Add comment.
38317
38318 2010-01-09  Bruno Haible  <bruno@clisp.org>
38319
38320         Tests for module 'getlogin_r'.
38321         * modules/getlogin_r-tests: New file.
38322         * tests/test-getlogin_r.c: New file.
38323
38324 2010-01-09  Jim Meyering  <meyering@redhat.com>
38325
38326         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
38327         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
38328         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
38329
38330 2010-01-08  Simon Josefsson  <simon@josefsson.org>
38331
38332         * lib/dup2.c (rpl_dup2): Improve comment.
38333
38334 2010-01-08  Eric Blake  <ebb9@byu.net>
38335
38336         maint.mk: allow packages to add makefile @@ exceptions
38337         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
38338         (sc_makefile_check): Rename...
38339         (sc_makefile_at_at_check): ...to this, and use hook.
38340
38341         dup2: work around mingw bug
38342         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
38343         Reported by Simon Josefsson.
38344
38345 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
38346
38347         glob: Fix C++ compilation.
38348         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
38349         C++.
38350
38351 2010-01-07  Bruno Haible  <bruno@clisp.org>
38352
38353         Fix indentation of wctype.in.h, broken since 2007-01-06.
38354         * lib/wctype.in.h: Fix indentation of preprocessor directives.
38355
38356 2010-01-07  Bruno Haible  <bruno@clisp.org>
38357
38358         mbslen: Avoid collision with system function.
38359         * lib/string.in.h [MirBSD]: Include <wchar.h>.
38360         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
38361         * m4/mbslen.m4: New file.
38362         * modules/mbslen (Files): Add it.
38363         (configure.ac): Invoke gl_MBSLEN.
38364         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
38365         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
38366         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
38367         via Ian Beckwith <ianb@erislabs.net>.
38368
38369 2010-01-07  Bruno Haible  <bruno@clisp.org>
38370
38371         dirent: Document the last fix.
38372         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
38373
38374 2010-01-07  Bruno Haible  <bruno@clisp.org>
38375
38376         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
38377         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
38378         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
38379         va_list are defined.
38380         * doc/posix-headers/stdio.texi: Document the bug of missing types.
38381         Reported by Eric Blake.
38382
38383 2010-01-07  Bruno Haible  <bruno@clisp.org>
38384
38385         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
38386         * modules/xlist (Depends-on): Add 'list',
38387         * modules/xoset (Depends-on): Add 'oset'.
38388         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38389
38390 2010-01-07  Bruno Haible  <bruno@clisp.org>
38391
38392         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
38393         * doc/posix-functions/strncasecmp.texi: Likewise.
38394
38395 2010-01-07  Bruno Haible  <bruno@clisp.org>
38396
38397         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
38398
38399 2010-01-07  John W. Eaton  <jwe@octave.org>
38400
38401         wctype: allow C++ use
38402         * lib/wctype.in.h: Add extern "C" block for C++.
38403
38404 2010-01-06  Eric Blake  <ebb9@byu.net>
38405
38406         maint.mk: detect incorrect GFDL usage
38407         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
38408
38409 2010-01-06  Jim Meyering  <meyering@redhat.com>
38410         and Eric Blake  <ebb9@byu.net>
38411
38412         maint.mk: ignore multi-line copyright in NEWS
38413         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
38414
38415 2010-01-06  Eric Blake  <ebb9@byu.net>
38416
38417         select: add missing dependency
38418         * modules/select-tests (Depends-on): Move sockets dependency...
38419         * modules/select (Depends-on): ...here.
38420         Reported by Ian Beckwith.
38421
38422         doc: regenerate INSTALL
38423         * doc/INSTALL: Reflect recent autoconf update.
38424         * doc/INSTALL.ISO: Likewise.
38425         * doc/INSTALL.UTF-8: Likewise.
38426
38427         pread: fix compilation on glibc
38428         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
38429         Reported by Ralf Wildenhues.
38430
38431         dirent: fix test failure
38432         * lib/dirent.in.h (includes): Guarantee ino_t.
38433         Reported by Ralf Wildenhues.
38434
38435 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
38436
38437         linkat, renameat: avoid bad free
38438         * lib/at-func2.c (at_func2): Fix typo.
38439         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
38440
38441 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38442
38443         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
38444         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
38445         to avoid failure of symlink test later.
38446
38447 2010-01-06  Eric Blake  <ebb9@byu.net>
38448
38449         stdio, unistd: guarantee ssize_t
38450         * lib/unistd.in.h (includes): Ensure that types required by POSIX
38451         2008 are exposed when needed.
38452         * lib/stdio.in.h (includes): Likewise.
38453         Reported by Ralf Wildenhues.
38454
38455 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
38456
38457         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
38458         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
38459         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
38460
38461 2010-01-06  Jim Meyering  <meyering@redhat.com>
38462
38463         readtokens: this module *does* require xalloc.h
38464         It uses only functions that were omitted by the old syntax-check rule.
38465         * lib/readtokens.c: Include "xalloc.h" once again.
38466         * modules/readtokens (Depends-on): Add xalloc.
38467         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
38468
38469 2010-01-05  Eric Blake  <ebb9@byu.net>
38470
38471         maint: support 'make announcement' from a VPATH build
38472         * top/maint.mk (announcement): Look for correct NEWS file.
38473
38474 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
38475
38476         utimens (fdutimens): ignore a negative FD, per contract
38477         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
38478         when we have a valid file descriptor.  Otherwise, using a brand
38479         new glibc (with just-patched futimens that now fails with EBADF)
38480         would cause this function to fail with ENOSYS.
38481         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
38482         See also http://bugzilla.redhat.com/552320.
38483
38484 2010-01-05  Eric Blake  <ebb9@byu.net>
38485
38486         strcase: document what it provides
38487         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
38488         gnulib module.
38489         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
38490         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
38491
38492 2010-01-05  Jim Meyering  <meyering@redhat.com>
38493
38494         maint: remove useless inclusions of "xalloc.h"
38495         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
38496         * lib/readtokens.c: Likewise.
38497         * lib/same.c: Likewise.
38498         * modules/getloadavg (Depends-on): Remove xalloc.
38499         * modules/readtokens: Likewise.
38500         * modules/same: Likewise.
38501
38502         maint.mk: include 4 more function names in alloca.h-checking regexp
38503         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
38504         regexp.  Before, we would give a false-positive (saying alloca.h
38505         is included unnecessarily) when the only uses involved omitted symbols.
38506
38507         xalloc.h: use consistent formatting
38508         * lib/xalloc.h: Move declarations to start in the first column.
38509
38510 2010-01-05  Eric Blake  <ebb9@byu.net>
38511
38512         mkdir: avoid xalloc
38513         * lib/mkdir.c (includes): Drop unused header.
38514         Reported by John W. Eaton.
38515
38516 2010-01-04  Jim Meyering  <meyering@redhat.com>
38517
38518         nl_langinfo: avoid configure-time syntax error
38519         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
38520         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
38521         the empty string.  Don't let that provoke a shell syntax error.
38522
38523         regcomp, regexec, fnmatch: avoid array bounds read error
38524         * lib/regcomp.c (build_equiv_class): From glibc:
38525         Use only the low 24 bits of a findidx return value as an index
38526         into the weights array.  Patch by Ulrich Drepper:
38527         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
38528         * lib/regexec.c (check_node_accept_bytes): Likewise.
38529         * lib/fnmatch_loop.c (FCT): Likewise.
38530
38531         regcomp: skip collseq lookup when there are no rules
38532         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
38533         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
38534
38535         regcomp: recognize ill-formed { } expressions
38536         * lib/regcomp.c (parse_dup_op): From glibc:
38537         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
38538
38539         regcomp: fix typo in comment
38540         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
38541         s/satisfy/satisfies/.
38542
38543         regcomp: sync from glibc: remove dead store
38544         * lib/regcomp.c (duplicate_node_closure): Remove useless
38545         search_duplicated_node call and dead store.
38546
38547         regcomp: sync from glibc; always use nl_langinfo
38548         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
38549         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
38550         * modules/regex (Depends-on): Add nl_langinfo.
38551
38552 2010-01-04  Eric Blake  <ebb9@byu.net>
38553
38554         fdopendir: fix configure test
38555         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
38556
38557 2010-01-01  Bruno Haible  <bruno@clisp.org>
38558
38559         wchar: Remove unused configure check.
38560         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
38561
38562 2010-01-01  Eric Blake  <ebb9@byu.net>
38563
38564         headers: make check of system header explicit
38565         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
38566         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
38567         ourselves.
38568         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38569         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38570         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38571         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
38572         internals.
38573         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
38574         missing.
38575         Suggested by Bruno Haible.
38576
38577 2010-01-01  Jim Meyering  <meyering@redhat.com>
38578
38579         ChangeLog: tweak to eliminate unnecessary copyright line
38580         * ChangeLog: Remove a copyright line that was mistakenly updated
38581         by today's update-copyright run.  Reported by Eric Blake.
38582
38583         test-update-copyright: don't let envvar setting cause test failure
38584         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38585
38586 2010-01-01  Bruno Haible  <bruno@clisp.org>
38587
38588         localename: Avoid gcc warning.
38589         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
38590         function if it is not used.
38591
38592 2010-01-01  Jim Meyering  <meyering@redhat.com>
38593
38594         update nearly all FSF copyright year lists to include 2010
38595         Use the same procedure as for 2009, outlined in
38596         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
38597
38598         version-etc: set COPYRIGHT_YEAR to 2010
38599         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
38600
38601 2009-12-31  Eric Blake  <ebb9@byu.net>
38602
38603         doc: correct availability of cygwin 1.5.x getopt
38604         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
38605         variables.
38606         * doc/posix-functions/opterr.texi (opterr): Likewise.
38607         * doc/posix-functions/optind.texi (optind): Likewise.
38608         * doc/posix-functions/optopt.texi (optopt): Likewise.
38609         * doc/posix-functions/tzname.texi (tzname): Likewise.
38610
38611         openat: update maintainer
38612         * modules/openat (Maintainer): Add myself.
38613
38614         utimens: avoid shadowing warning
38615         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
38616         buffers into one, to avoid shadowing, as well as avoiding a
38617         redundant stat.
38618         Reported by Jim Meyering.
38619
38620         test-dup2: avoid compiler warning
38621         * tests/test-dup2.c (is_inheritable): Only define if used.
38622
38623 2010-01-01  Bruno Haible  <bruno@clisp.org>
38624
38625         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
38626         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
38627         defined, use wctomb instead of wcrtomb.
38628
38629 2010-01-01  Bruno Haible  <bruno@clisp.org>
38630
38631         iconv: Reject native Solaris iconv.
38632         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
38633         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
38634
38635 2009-12-31  Bruno Haible  <bruno@clisp.org>
38636
38637         * tests/test-signal.c (main): Remove test of 'SIG'.
38638
38639 2009-12-31  Bruno Haible  <bruno@clisp.org>
38640
38641         spawn: Fix incomplete fix.
38642         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38643         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38644         warnings for GNULIB_POSIXCHECK again.
38645         Reported by Eric Blake.
38646
38647 2009-12-31  Bruno Haible  <bruno@clisp.org>
38648
38649         Avoid namespace pollution on glibc systems.
38650         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
38651         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
38652         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
38653         glibc systems.
38654
38655 2009-12-31  Bruno Haible  <bruno@clisp.org>
38656
38657         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
38658         (gl_REPLACE_WCHAR_H): Turn into a no-op.
38659         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
38660         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
38661         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
38662         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
38663         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
38664
38665 2009-12-31  Bruno Haible  <bruno@clisp.org>
38666
38667         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
38668         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
38669         afterwards.
38670
38671 2009-12-31  Bruno Haible  <bruno@clisp.org>
38672
38673         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
38674         SYS_UTSNAME_H.
38675
38676 2009-12-31  Bruno Haible  <bruno@clisp.org>
38677
38678         spawn: Fix misapplied patch.
38679         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
38680         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
38681         warnings for GNULIB_POSIXCHECK.
38682
38683 2009-12-31  Bruno Haible  <bruno@clisp.org>
38684
38685         times: Update after sys_times changed.
38686         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
38687         * modules/times (Files): Add it.
38688         (configure.ac): Invoke gl_FUNC_TIMES.
38689
38690 2009-12-31  Bruno Haible  <bruno@clisp.org>
38691
38692         Use AC_C_INLINE where necessary.
38693         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
38694         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
38695         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
38696         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
38697         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38698         * m4/mbiter.m4 (gl_MBITER): Likewise.
38699         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
38700         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
38701         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
38702         * modules/u64 (configure.ac): Likewise.
38703
38704 2009-12-31  Bruno Haible  <bruno@clisp.org>
38705
38706         Use AC_C_INLINE instead of module 'inline' where possible.
38707         * modules/inline (Description): Clarify purpose.
38708         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
38709         * modules/count-one-bits (Depends-on): Remove inline.
38710         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
38711         * modules/openat (Depends-on): Remove inline.
38712         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
38713         instead of depending on module 'inline'.
38714         * modules/filevercmp (Depends-on, configure.ac): Likewise.
38715         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
38716         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
38717         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
38718         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
38719         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
38720         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
38721         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
38722         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
38723         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
38724         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
38725         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
38726         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
38727         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
38728         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
38729         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
38730         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
38731         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
38732         Likewise.
38733         * modules/unictype/property-ascii-hex-digit (Depends-on,
38734         configure.ac): Likewise.
38735         * modules/unictype/property-bidi-arabic-digit (Depends-on,
38736         configure.ac): Likewise.
38737         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
38738         configure.ac): Likewise.
38739         * modules/unictype/property-bidi-block-separator (Depends-on,
38740         configure.ac): Likewise.
38741         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
38742         configure.ac): Likewise.
38743         * modules/unictype/property-bidi-common-separator (Depends-on,
38744         configure.ac): Likewise.
38745         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
38746         Likewise.
38747         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
38748         configure.ac): Likewise.
38749         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
38750         configure.ac): Likewise.
38751         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
38752         configure.ac): Likewise.
38753         * modules/unictype/property-bidi-european-digit (Depends-on,
38754         configure.ac): Likewise.
38755         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
38756         configure.ac): Likewise.
38757         * modules/unictype/property-bidi-left-to-right (Depends-on,
38758         configure.ac): Likewise.
38759         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
38760         configure.ac): Likewise.
38761         * modules/unictype/property-bidi-other-neutral (Depends-on,
38762         configure.ac): Likewise.
38763         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
38764         Likewise.
38765         * modules/unictype/property-bidi-segment-separator (Depends-on,
38766         configure.ac): Likewise.
38767         * modules/unictype/property-bidi-whitespace (Depends-on,
38768         configure.ac): Likewise.
38769         * modules/unictype/property-combining (Depends-on, configure.ac):
38770         Likewise.
38771         * modules/unictype/property-composite (Depends-on, configure.ac):
38772         Likewise.
38773         * modules/unictype/property-currency-symbol (Depends-on,
38774         configure.ac): Likewise.
38775         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
38776         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
38777         Likewise.
38778         * modules/unictype/property-default-ignorable-code-point (Depends-on,
38779         configure.ac): Likewise.
38780         * modules/unictype/property-deprecated (Depends-on, configure.ac):
38781         Likewise.
38782         * modules/unictype/property-diacritic (Depends-on, configure.ac):
38783         Likewise.
38784         * modules/unictype/property-extender (Depends-on, configure.ac):
38785         Likewise.
38786         * modules/unictype/property-format-control (Depends-on, configure.ac):
38787         Likewise.
38788         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
38789         Likewise.
38790         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
38791         Likewise.
38792         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
38793         Likewise.
38794         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
38795         Likewise.
38796         * modules/unictype/property-hyphen (Depends-on, configure.ac):
38797         Likewise.
38798         * modules/unictype/property-id-continue (Depends-on, configure.ac):
38799         Likewise.
38800         * modules/unictype/property-id-start (Depends-on, configure.ac):
38801         Likewise.
38802         * modules/unictype/property-ideographic (Depends-on, configure.ac):
38803         Likewise.
38804         * modules/unictype/property-ids-binary-operator (Depends-on,
38805         configure.ac): Likewise.
38806         * modules/unictype/property-ids-trinary-operator (Depends-on,
38807         configure.ac): Likewise.
38808         * modules/unictype/property-ignorable-control (Depends-on,
38809         configure.ac): Likewise.
38810         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38811         Likewise.
38812         * modules/unictype/property-join-control (Depends-on, configure.ac):
38813         Likewise.
38814         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38815         Likewise.
38816         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38817         Likewise.
38818         * modules/unictype/property-logical-order-exception (Depends-on,
38819         configure.ac): Likewise.
38820         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38821         Likewise.
38822         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38823         * modules/unictype/property-non-break (Depends-on, configure.ac):
38824         Likewise.
38825         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38826         Likewise.
38827         * modules/unictype/property-numeric (Depends-on, configure.ac):
38828         Likewise.
38829         * modules/unictype/property-other-alphabetic (Depends-on,
38830         configure.ac): Likewise.
38831         * modules/unictype/property-other-default-ignorable-code-point
38832         (Depends-on, configure.ac): Likewise.
38833         * modules/unictype/property-other-grapheme-extend (Depends-on,
38834         configure.ac): Likewise.
38835         * modules/unictype/property-other-id-continue (Depends-on,
38836         configure.ac): Likewise.
38837         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38838         Likewise.
38839         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38840         Likewise.
38841         * modules/unictype/property-other-math (Depends-on, configure.ac):
38842         Likewise.
38843         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38844         Likewise.
38845         * modules/unictype/property-paired-punctuation (Depends-on,
38846         configure.ac): Likewise.
38847         * modules/unictype/property-paragraph-separator (Depends-on,
38848         configure.ac): Likewise.
38849         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38850         Likewise.
38851         * modules/unictype/property-pattern-white-space (Depends-on,
38852         configure.ac): Likewise.
38853         * modules/unictype/property-private-use (Depends-on, configure.ac):
38854         Likewise.
38855         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38856         Likewise.
38857         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38858         Likewise.
38859         * modules/unictype/property-radical (Depends-on, configure.ac):
38860         Likewise.
38861         * modules/unictype/property-sentence-terminal (Depends-on,
38862         configure.ac): Likewise.
38863         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38864         Likewise.
38865         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38866         * modules/unictype/property-terminal-punctuation (Depends-on,
38867         configure.ac): Likewise.
38868         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38869         Likewise.
38870         * modules/unictype/property-unassigned-code-value (Depends-on,
38871         configure.ac): Likewise.
38872         * modules/unictype/property-unified-ideograph (Depends-on,
38873         configure.ac): Likewise.
38874         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38875         Likewise.
38876         * modules/unictype/property-variation-selector (Depends-on,
38877         configure.ac): Likewise.
38878         * modules/unictype/property-white-space (Depends-on, configure.ac):
38879         Likewise.
38880         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38881         Likewise.
38882         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38883         Likewise.
38884         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38885         Likewise.
38886         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38887         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38888         Likewise.
38889
38890 2009-12-31  Bruno Haible  <bruno@clisp.org>
38891
38892         Remove unnecessary AC_C_INLINE invocation.
38893         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38894         since 2009-08-21.
38895
38896 2009-12-31  Jim Meyering  <meyering@redhat.com>
38897
38898         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38899         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38900         With this change, we can all remove the gpg_key_ID = ... definition
38901         from our respective cfg.mk files.
38902
38903         maint.mk: create announcement template in ~/, not in /tmp
38904         * top/maint.mk (emit_upload_commands): Adjust.
38905         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38906         Remove temporary file, .ci-msg.
38907
38908 2009-12-31  Eric Blake  <ebb9@byu.net>
38909
38910         link-warning: always build headers with link warnings
38911         * modules/arpa_inet (Makefile.am): Always build replacement
38912         header.
38913         * modules/ctype (Makefile.am): Likewise.
38914         * modules/dirent (Makefile.am): Likewise.
38915         * modules/inttypes (Makefile.am): Likewise.
38916         * modules/langinfo (Makefile.am): Likewise.
38917         * modules/locale (Makefile.am): Likewise.
38918         * modules/spawn (Makefile.am): Likewise.
38919         * modules/sys_file (Makefile.am): Likewise.
38920         * modules/sys_ioctl (Makefile.am): Likewise.
38921         * modules/sys_select (Makefile.am): Likewise.
38922         * modules/sys_socket (Makefile.am): Likewise.
38923         * modules/sys_times (Makefile.am): Likewise.
38924         * modules/sys_utsname (Makefile.am): Likewise.
38925         * modules/sys_wait (Makefile.am): Likewise.
38926         * modules/wchar (Makefile.am): Likewise.
38927         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38928         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38929         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38930         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38931         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38932         Likewise.
38933         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38934         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38935         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38936         Likewise.
38937         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38938         Likewise.
38939         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38940         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38941         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38942         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38943         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38944         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38945         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38946         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38947         (gl_WCHAR_H_DEFAULTS): Likewise.
38948
38949 2009-12-31  Eric Blake  <ebb9@byu.net>
38950
38951         signal, spawn: use link warnings
38952         * lib/signal.in.h (sigset_t): Make unconditional.
38953         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38954         (sigpending, sigprocmask, sigaction): Add link warnings.
38955         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38956         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38957         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38958         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38959         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38960         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38961         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38962         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38963         (posix_spawn_file_actions_destroy)
38964         (posix_spawn_file_actions_addopen)
38965         (posix_spawn_file_actions_addclose)
38966         (posix_spawn_file_actions_adddup2): Likewise.
38967         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38968         * tests/test-signal.c (main): Enhance test.
38969
38970         spawn: improve wrapper support
38971         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38972         (gl_SPAWN_H_DEFAULTS): New defaults.
38973         * modules/spawn (Makefile.am): Substitute them.
38974         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38975         Only declare if missing or broken.
38976
38977         sys_times, sys_utsname: use include_next
38978         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38979         header.
38980         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38981         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38982         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38983         * modules/sys_times (Depends-on): Add include_next.
38984         (Makefile.am): Substitute additional values.
38985         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38986         * lib/sys_times.in.h (includes): Include native header, if
38987         available.
38988         * lib/sys_utsname.in.h (includes): Likewise.
38989         * tests/test-sys_times.c (main): Enhance test.
38990
38991         fdutimensat: revert prior patch
38992         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38993         utimens.h.
38994         Reported by Bruno Haible.
38995
38996 2009-12-30  Eric Blake  <ebb9@byu.net>
38997
38998         sys_wait: drop link-warning dependency
38999         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
39000         link-warning efforts.
39001         * lib/sys_wait.in.h: Likewise.
39002
39003         fdutimensat: remove bogus dependency
39004         * modules/fdutimensat (Depends-on): Drop inline.
39005
39006         unistd: fix typo
39007         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
39008
39009 2009-12-30  Bruno Haible  <bruno@clisp.org>
39010
39011         Fix compilation error with Solaris cc.
39012         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
39013         * lib/unicase/u16-is-invariant.c: Likewise.
39014         * lib/unicase/u32-is-invariant.c: Likewise.
39015         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39016
39017 2009-12-30  Bruno Haible  <bruno@clisp.org>
39018
39019         Fix test crash.
39020         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
39021         locales.
39022         Reported by Simon Josefsson <simon@josefsson.org>.
39023
39024 2009-12-30  Bruno Haible  <bruno@clisp.org>
39025
39026         Fix compilation error on most platforms.
39027         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
39028         Reported by Simon Josefsson <simon@josefsson.org>
39029         and Nelson H. F. Beebe <beebe@math.utah.edu>.
39030
39031 2009-12-30  Eric Blake  <ebb9@byu.net>
39032
39033         futimens, utimensat: work around ntfs-3g bug
39034         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
39035         a ctime bug is present, and expand workaround to cover ntfs-3g.
39036         * lib/utimens.c (fdutimens, lutimens): Likewise.
39037         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
39038         (validate_timespec): Adjust return value.
39039         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
39040         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39041         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
39042
39043 2009-12-29  Eric Blake  <ebb9@byu.net>
39044
39045         link-warning: make usage consistent
39046         * modules/ctype (Depends-on): Add link-warning.
39047         (Makefile.am): Update rules accordingly.
39048         * modules/langinfo (Depends-on, Makefile.am): Likewise.
39049         * modules/locale (Depends-on, Makefile.am): Likewise.
39050         * modules/sys_file (Makefile.am): Likewise.
39051         * modules/getopt-posix (Makefile.am): Delete unused link warning
39052         efforts.
39053         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
39054         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
39055         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
39056         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
39057
39058         stdio: remove unused variables
39059         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
39060         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
39061         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
39062
39063         tests: test more substitute headers
39064         * modules/ctype-tests: New file.
39065         * modules/dirent-tests: Likewise.
39066         * modules/spawn-tests: Likewise.
39067         * modules/sys_file-tests: Likewise.
39068         * modules/sys_ioctl-tests: Likewise.
39069         * modules/sys_wait-tests: Likewise.
39070         * tests/test-ctype.c: Likewise.
39071         * tests/test-dirent.c: Likewise.
39072         * tests/test-spawn.c: Likewise.
39073         * tests/test-sys_file.c: Likewise.
39074         * tests/test-sys_ioctl.c: Likewise.
39075         * tests/test-sys_wait.c: Likewise.
39076         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
39077         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
39078         whether or not flock is in use.
39079
39080         tests: remove License section from module
39081         * modules/arpa_inet-tests: Remove unneeded section.
39082         * modules/byteswap-tests: Likewise.
39083         * modules/ceilf-tests: Likewise.
39084         * modules/ceill-tests: Likewise.
39085         * modules/crypto/des-tests: Likewise.
39086         * modules/crypto/gc-arcfour-tests: Likewise.
39087         * modules/crypto/gc-arctwo-tests: Likewise.
39088         * modules/crypto/gc-des-tests: Likewise.
39089         * modules/crypto/gc-hmac-md5-tests: Likewise.
39090         * modules/crypto/gc-hmac-sha1-tests: Likewise.
39091         * modules/crypto/gc-md2-tests: Likewise.
39092         * modules/crypto/gc-md4-tests: Likewise.
39093         * modules/crypto/gc-md5-tests: Likewise.
39094         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
39095         * modules/crypto/gc-rijndael-tests: Likewise.
39096         * modules/crypto/gc-sha1-tests: Likewise.
39097         * modules/crypto/gc-tests: Likewise.
39098         * modules/crypto/md2-tests: Likewise.
39099         * modules/crypto/md4-tests: Likewise.
39100         * modules/fcntl-h-tests: Likewise.
39101         * modules/floorf-tests: Likewise.
39102         * modules/floorl-tests: Likewise.
39103         * modules/frexp-nolibm-tests: Likewise.
39104         * modules/frexp-tests: Likewise.
39105         * modules/frexpl-nolibm-tests: Likewise.
39106         * modules/frexpl-tests: Likewise.
39107         * modules/getaddrinfo-tests: Likewise.
39108         * modules/inttypes-tests: Likewise.
39109         * modules/isfinite-tests: Likewise.
39110         * modules/isinf-tests: Likewise.
39111         * modules/ldexpl-tests: Likewise.
39112         * modules/locale-tests: Likewise.
39113         * modules/math-tests: Likewise.
39114         * modules/netdb-tests: Likewise.
39115         * modules/netinet_in-tests: Likewise.
39116         * modules/printf-frexp-tests: Likewise.
39117         * modules/printf-frexpl-tests: Likewise.
39118         * modules/priv-set-tests: Likewise.
39119         * modules/random_r-tests: Likewise.
39120         * modules/round-tests: Likewise.
39121         * modules/roundf-tests: Likewise.
39122         * modules/roundl-tests: Likewise.
39123         * modules/search-tests: Likewise.
39124         * modules/select-tests: Likewise.
39125         * modules/signal-tests: Likewise.
39126         * modules/stdbool-tests: Likewise.
39127         * modules/stddef-tests: Likewise.
39128         * modules/stdint-tests: Likewise.
39129         * modules/stdio-tests: Likewise.
39130         * modules/stdlib-tests: Likewise.
39131         * modules/string-tests: Likewise.
39132         * modules/strings-tests: Likewise.
39133         * modules/sys_select-tests: Likewise.
39134         * modules/sys_socket-tests: Likewise.
39135         * modules/sys_stat-tests: Likewise.
39136         * modules/sys_time-tests: Likewise.
39137         * modules/sys_utsname-tests: Likewise.
39138         * modules/sysexits-tests: Likewise.
39139         * modules/time-tests: Likewise.
39140         * modules/trunc-tests: Likewise.
39141         * modules/truncf-tests: Likewise.
39142         * modules/truncl-tests: Likewise.
39143         * modules/tsearch-tests: Likewise.
39144         * modules/unistd-tests: Likewise.
39145         * modules/wchar-tests: Likewise.
39146         * modules/wctype-tests: Likewise.
39147
39148         tests: fix license on several tests
39149         * tests/test-des.c: Update to GPLv3+.
39150         * tests/test-flock.c: Likewise.
39151         * tests/test-fsync.c: Likewise.
39152         * tests/test-futimens.h: Likewise.
39153         * tests/test-gc-arcfour.c: Likewise.
39154         * tests/test-gc-arctwo.c: Likewise.
39155         * tests/test-gc-des.c: Likewise.
39156         * tests/test-gc-hmac-md5.c: Likewise.
39157         * tests/test-gc-hmac-sha1.c: Likewise.
39158         * tests/test-gc-md2.c: Likewise.
39159         * tests/test-gc-md4.c: Likewise.
39160         * tests/test-gc-md5.c: Likewise.
39161         * tests/test-gc-pbkdf2-sha1.c: Likewise.
39162         * tests/test-gc-rijndael.c: Likewise.
39163         * tests/test-gc-sha1.c: Likewise.
39164         * tests/test-gc.c: Likewise.
39165         * tests/test-getcwd.c: Likewise.
39166         * tests/test-link.c: Likewise.
39167         * tests/test-link.h: Likewise.
39168         * tests/test-lutimens.h: Likewise.
39169         * tests/test-md2.c: Likewise.
39170         * tests/test-md4.c: Likewise.
39171         * tests/test-mkdir.h: Likewise.
39172         * tests/test-rename.c: Likewise.
39173         * tests/test-rename.h: Likewise.
39174         * tests/test-safe-alloc.c: Likewise.
39175         * tests/test-utimens-common.h: Likewise.
39176         * tests/test-utimens.h: Likewise.
39177
39178         maint: sync license texts
39179         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
39180         * doc/gpl-3.0.texi: Revert copyright year update.
39181         * doc/lgpl-3.0.texi: Likewise.
39182
39183 2009-12-29  Jim Meyering  <meyering@redhat.com>
39184
39185         update nearly all FSF copyright year lists to include 2009
39186         The files named by the following are exempted:
39187             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
39188               test -f "$dst" && { echo "$dst"; continue; }
39189               test -d "$dst" || continue
39190               echo "$dst"/$(basename "$src")
39191             done > exempt
39192             git ls-files tests/unictype >> exempt
39193         In the remaining files, convert to all-interval notation if
39194         - there is already at least one year interval like 2000-2003
39195         - the file is maintained by me
39196         - the file is in lib/uni*/, where that style already prevails
39197         Otherwise, use update-copyright's default.
39198
39199 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39200         and Eric Blake  <ebb9@byu.net>
39201
39202         tests: don't require debug system() to pass
39203         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
39204         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39205         * tests/test-unlink.h (test_unlink_func): Likewise.
39206         * tests/test-fstatat.c (main): ...into callers.
39207         * tests/test-lstat.c (main): Likewise.
39208         * tests/test-rmdir.c (main): Likewise.
39209         * tests/test-unlink.c (main): Likewise.
39210         * tests/test-unlinkat.c (main): Likewise.
39211         * tests/test-areadlink-with-size.c (main): Don't require a
39212         debug-only system call to pass, aiding cross-testing to mingw.
39213         * tests/test-areadlink.c (main): Likewise.
39214         * tests/test-areadlinkat-with-size.c (main): Likewise.
39215         * tests/test-areadlinkat.c (main): Likewise.
39216         * tests/test-canonicalize-lgpl.c (main): Likewise.
39217         * tests/test-canonicalize.c (main): Likewise.
39218         * tests/test-chown.c (main): Likewise.
39219         * tests/test-fchownat.c (main): Likewise.
39220         * tests/test-lchown.c (main): Likewise.
39221         * tests/test-fdutimensat.c (main): Likewise.
39222         * tests/test-futimens.c (main): Likewise.
39223         * tests/test-link.c (main): Likewise.
39224         * tests/test-linkat.c (main): Likewise.
39225         * tests/test-mkdir.c (main): Likewise.
39226         * tests/test-mkdirat.c (main): Likewise.
39227         * tests/test-mkfifo.c (main): Likewise.
39228         * tests/test-mkfifoat.c (main): Likewise.
39229         * tests/test-mknod.c (main): Likewise.
39230         * tests/test-readlink.c (main): Likewise.
39231         * tests/test-remove.c (main): Likewise.
39232         * tests/test-rename.c (main): Likewise.
39233         * tests/test-renameat.c (main): Likewise.
39234         * tests/test-symlink.c (main): Likewise.
39235         * tests/test-symlinkat.c (main): Likewise.
39236         * tests/test-utimens.c (main): Likewise.
39237         * tests/test-utimensat.c (main): Likewise.
39238
39239 2009-12-29  Simon Josefsson  <simon@josefsson.org>
39240
39241         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
39242         on $(UNUSED_PARAMETER_H) to avoid build failure.
39243
39244 2009-12-28  Jim Meyering  <meyering@redhat.com>
39245
39246         update-copyright: you may specify a max. line length other than 72
39247         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
39248
39249         maint: use consistent FSF copyright line syntax
39250         * lib/posixtm.c: Add missing comma in FSF copyright line.
39251         * lib/posixtm.h: Likewise.
39252         * lib/getugroups.c: Add missing ", Inc.".
39253
39254         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
39255         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
39256         FSF copyright line.  Remove trailing blanks.
39257
39258 2009-12-28  Eric Blake  <ebb9@byu.net>
39259
39260         test-dup2: reduce dependencies
39261         * modules/cloexec (Configure.ac): Set witness.
39262         * modules/dup2-tests (Depends-on): Drop cloexec.
39263         * tests/test-dup2.c (main): Skip portion of test if cloexec module
39264         not present.
39265         Suggested by Bruno Haible.
39266
39267 2009-12-26  Bruno Haible  <bruno@clisp.org>
39268
39269         Remove an unneeded dependency.
39270         * modules/fseterr (Depends-on): Remove dup2.
39271
39272 2009-12-26  Eric Blake  <ebb9@byu.net>
39273
39274         tests: use macros.h in more places
39275         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
39276         (ASSERT_STREAM): Provide default of stderr.
39277         * tests/test-dirent-safer.c: Include macros.h, using alternate
39278         stream for assertions.
39279         * tests/test-dup-safer.c: Likewise.
39280         * tests/test-freopen-safer.c: Likewise.
39281         * tests/test-getopt.c: Likewise.
39282         * tests/test-openat-safer.c: Likewise.
39283         * tests/test-pipe.c: Likewise.
39284         * tests/test-popen-safer.c: Likewise.
39285         * modules/dirent-safer-tests (Files): Include macros.h.
39286         * modules/unistd-safer-tests (Files): Likewise.
39287         * modules/freopen-safer-tests (Files): Likewise.
39288         * modules/getopt-posix-tests (Files): Likewise.
39289         * modules/openat-safer-tests (Files): Likewise.
39290         * modules/pipe-tests (Files): Likewise.
39291
39292 2009-12-26  Bruno Haible  <bruno@clisp.org>
39293
39294         javacomp: Portability fix.
39295         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
39296         that it also works on Solaris.
39297
39298 2009-12-26  Bruno Haible  <bruno@clisp.org>
39299
39300         localename: Fix storage allocation of gl_locale_name_thread's result.
39301         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
39302         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
39303         all platforms that have 'uselocale'.
39304         (gl_locale_name_thread_unsafe): New function, extracted from
39305         gl_locale_name_thread.
39306         (gl_locale_name_thread): Call struniq on all platforms that have
39307         'uselocale'.
39308         * tests/test-localename.c (test_locale_name_thread): Check that the
39309         resulting strings are permanently allocated.
39310         * modules/localename-tests (Depends-on): Add strdup.
39311
39312 2009-12-26  Bruno Haible  <bruno@clisp.org>
39313
39314         * tests/test-localename.c (categories): Fill in the strings.
39315
39316 2009-12-26  Jim Meyering  <meyering@redhat.com>
39317
39318         isdir: complete the removal of m4/isdir.m4
39319         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
39320
39321         isdir: clean up, since at least grep still uses it
39322         * lib/isdir.c: Include "isdir.h".
39323         (S_ISDIR): Remove now-unneeded definition.
39324         * modules/isdir (Files): Add lib/isdir.h.
39325         * lib/isdir.h: New file, with declaration.
39326         * m4/isdir.m4: Remove file -- unneeded.
39327
39328 2009-12-25  Bruno Haible  <bruno@clisp.org>
39329
39330         selinux-h: Make generated .h files standalone.
39331         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
39332         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
39333         * lib/se-selinux.in.h: Likewise.
39334         * modules/selinux-h (Depends-on): Add unused-parameter.
39335         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
39336         selinux/selinux.h and selinux/context.h.
39337         Suggested by Eric Blake.
39338
39339 2009-12-25  Bruno Haible  <bruno@clisp.org>
39340
39341         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
39342         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
39343         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
39344         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
39345         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
39346
39347 2009-12-24  Bruno Haible  <bruno@clisp.org>
39348
39349         openat: Fix warning.
39350         * lib/openat-proc.c: Include <unistd.h>.
39351
39352 2009-12-24  Bruno Haible  <bruno@clisp.org>
39353
39354         New module 'unused-parameter'.
39355         * build-aux/unused-parameter.h: New file, extracted from earlier
39356         gnulib-common.m4.
39357         * modules/unused-parameter: New file.
39358         * lib/unistr.h: Include unused-parameter.h.
39359         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
39360         _GL_UNUSED.
39361         * modules/unistr/base (Depends-on): Add unused-parameter.
39362
39363 2009-12-24  Bruno Haible  <bruno@clisp.org>
39364
39365         Add missing dependencies to 'extensions' module.
39366         * m4/extensions.m4: Add comment.
39367         * modules/accept4 (Depends-on): Add extensions.
39368         * modules/dup3 (Depends-on): Likewise.
39369         * modules/fcntl (Depends-on): Likewise.
39370         * modules/futimens (Depends-on): Likewise.
39371         * modules/mknod (Depends-on): Likewise.
39372         * modules/pipe2 (Depends-on): Likewise.
39373         * modules/stat-time (Depends-on): Likewise.
39374         * modules/strcasestr-simple (Depends-on): Likewise.
39375         * modules/strsignal (Depends-on): Likewise.
39376         * modules/utimensat (Depends-on): Likewise.
39377         * modules/localcharset (Depends-on): Likewise. Needed because of
39378         gl_FCNTL_O_FLAGS.
39379         * modules/wcrtomb (Depends-on): Likewise. Needed because of
39380         AC_TYPE_MBSTATE_T.
39381         * modules/wcsnrtombs (Depends-on): Likewise.
39382         * modules/wcsrtombs (Depends-on): Likewise.
39383
39384 2009-12-24  Bruno Haible  <bruno@clisp.org>
39385
39386         binary-io: Avoid gcc warning due to SET_BINARY.
39387         * lib/binary-io.h (SET_BINARY): Cast the result to void.
39388         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
39389
39390 2009-12-24  Bruno Haible  <bruno@clisp.org>
39391
39392         Avoid future namespace pollution on glibc systems.
39393         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
39394         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
39395         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
39396         glibc systems.
39397
39398 2009-12-24  Bruno Haible  <bruno@clisp.org>
39399
39400         Refactor common macros used in tests.
39401         * tests/macros.h: New file.
39402         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
39403         and/or <stdlib.h>, if appropriate.
39404         (ASSERT, SIZEOF): Remove macros.
39405         * tests/test-areadlink-with-size.c: Likewise.
39406         * tests/test-areadlinkat.c: Likewise.
39407         * tests/test-areadlinkat-with-size.c: Likewise.
39408         * tests/test-argmatch.c: Likewise.
39409         * tests/test-argv-iter.c: Likewise.
39410         * tests/test-array-mergesort.c: Likewise.
39411         * tests/test-array_list.c: Likewise.
39412         * tests/test-array_oset.c: Likewise.
39413         * tests/test-avltree_list.c: Likewise.
39414         * tests/test-avltree_oset.c: Likewise.
39415         * tests/test-avltreehash_list.c: Likewise.
39416         * tests/test-base64.c: Likewise.
39417         * tests/test-binary-io.c: Likewise.
39418         * tests/test-bitrotate.c: Likewise.
39419         * tests/test-btowc.c: Likewise.
39420         * tests/test-byteswap.c: Likewise.
39421         * tests/test-c-ctype.c: Likewise.
39422         * tests/test-c-stack.c: Likewise.
39423         * tests/test-c-strcasecmp.c: Likewise.
39424         * tests/test-c-strcasestr.c: Likewise.
39425         * tests/test-c-strncasecmp.c: Likewise.
39426         * tests/test-c-strstr.c: Likewise.
39427         * tests/test-canonicalize-lgpl.c: Likewise.
39428         * tests/test-canonicalize.c: Likewise.
39429         * tests/test-carray_list.c: Likewise.
39430         * tests/test-ceilf1.c: Likewise.
39431         * tests/test-ceilf2.c: Likewise.
39432         * tests/test-ceill.c: Likewise.
39433         * tests/test-chown.c: Likewise.
39434         * tests/test-cloexec.c: Likewise.
39435         * tests/test-copy-acl.c: Likewise.
39436         * tests/test-copy-file.c: Likewise.
39437         * tests/test-count-one-bits.c: Likewise.
39438         * tests/test-dprintf-posix.c: Likewise.
39439         * tests/test-dup2.c: Likewise.
39440         * tests/test-dup3.c: Likewise.
39441         * tests/test-duplocale.c: Likewise.
39442         * tests/test-fbufmode.c: Likewise.
39443         * tests/test-fchdir.c: Likewise.
39444         * tests/test-fchownat.c: Likewise.
39445         * tests/test-fcntl-safer.c: Likewise.
39446         * tests/test-fcntl.c: Likewise.
39447         * tests/test-fdopendir.c: Likewise.
39448         * tests/test-fdutimensat.c: Likewise.
39449         * tests/test-fflush2.c: Likewise.
39450         * tests/test-file-has-acl.c: Likewise.
39451         * tests/test-filevercmp.c: Likewise.
39452         * tests/test-flock.c: Likewise.
39453         * tests/test-floorf1.c: Likewise.
39454         * tests/test-floorf2.c: Likewise.
39455         * tests/test-floorl.c: Likewise.
39456         * tests/test-fnmatch.c: Likewise.
39457         * tests/test-fopen.h: Likewise.
39458         * tests/test-fpending.c: Likewise.
39459         * tests/test-fprintf-posix.c: Likewise.
39460         * tests/test-fpurge.c: Likewise.
39461         * tests/test-freadable.c: Likewise.
39462         * tests/test-freadahead.c: Likewise.
39463         * tests/test-freading.c: Likewise.
39464         * tests/test-freadptr.c: Likewise.
39465         * tests/test-freadptr2.c: Likewise.
39466         * tests/test-freadseek.c: Likewise.
39467         * tests/test-freopen.c: Likewise.
39468         * tests/test-frexp.c: Likewise.
39469         * tests/test-frexpl.c: Likewise.
39470         * tests/test-fseek.c: Likewise.
39471         * tests/test-fseeko.c: Likewise.
39472         * tests/test-fstatat.c: Likewise.
39473         * tests/test-fstrcmp.c: Likewise.
39474         * tests/test-fsync.c: Likewise.
39475         * tests/test-ftell.c: Likewise.
39476         * tests/test-ftello.c: Likewise.
39477         * tests/test-func.c: Likewise.
39478         * tests/test-futimens.c: Likewise.
39479         * tests/test-fwritable.c: Likewise.
39480         * tests/test-fwriting.c: Likewise.
39481         * tests/test-getcwd.c: Likewise.
39482         * tests/test-getdate.c: Likewise.
39483         * tests/test-getdelim.c: Likewise.
39484         * tests/test-getdtablesize.c: Likewise.
39485         * tests/test-getgroups.c: Likewise.
39486         * tests/test-getline.c: Likewise.
39487         * tests/test-getndelim2.c: Likewise.
39488         * tests/test-glob.c: Likewise.
39489         * tests/test-hash.c: Likewise.
39490         * tests/test-i-ring.c: Likewise.
39491         * tests/test-iconv-utf.c: Likewise.
39492         * tests/test-iconv.c: Likewise.
39493         * tests/test-idpriv-drop.c: Likewise.
39494         * tests/test-idpriv-droptemp.c: Likewise.
39495         * tests/test-inet_ntop.c: Likewise.
39496         * tests/test-inet_pton.c: Likewise.
39497         * tests/test-isblank.c: Likewise.
39498         * tests/test-isfinite.c: Likewise.
39499         * tests/test-isinf.c: Likewise.
39500         * tests/test-isnan.c: Likewise.
39501         * tests/test-isnand.h: Likewise.
39502         * tests/test-isnanf.h: Likewise.
39503         * tests/test-isnanl.h: Likewise.
39504         * tests/test-lchown.c: Likewise.
39505         * tests/test-ldexpl.c: Likewise.
39506         * tests/test-link.c: Likewise.
39507         * tests/test-linkat.c: Likewise.
39508         * tests/test-linked_list.c: Likewise.
39509         * tests/test-linkedhash_list.c: Likewise.
39510         * tests/test-localename.c: Likewise.
39511         * tests/test-lseek.c: Likewise.
39512         * tests/test-lstat.c: Likewise.
39513         * tests/test-mbmemcasecmp.c: Likewise.
39514         * tests/test-mbmemcasecoll.c: Likewise.
39515         * tests/test-mbrtowc.c: Likewise.
39516         * tests/test-mbscasecmp.c: Likewise.
39517         * tests/test-mbscasestr1.c: Likewise.
39518         * tests/test-mbscasestr2.c: Likewise.
39519         * tests/test-mbscasestr3.c: Likewise.
39520         * tests/test-mbscasestr4.c: Likewise.
39521         * tests/test-mbschr.c: Likewise.
39522         * tests/test-mbscspn.c: Likewise.
39523         * tests/test-mbsinit.c: Likewise.
39524         * tests/test-mbsncasecmp.c: Likewise.
39525         * tests/test-mbsnrtowcs.c: Likewise.
39526         * tests/test-mbspbrk.c: Likewise.
39527         * tests/test-mbspcasecmp.c: Likewise.
39528         * tests/test-mbsrchr.c: Likewise.
39529         * tests/test-mbsrtowcs.c: Likewise.
39530         * tests/test-mbsspn.c: Likewise.
39531         * tests/test-mbsstr1.c: Likewise.
39532         * tests/test-mbsstr2.c: Likewise.
39533         * tests/test-mbsstr3.c: Likewise.
39534         * tests/test-memchr.c: Likewise.
39535         * tests/test-memchr2.c: Likewise.
39536         * tests/test-memcmp.c: Likewise.
39537         * tests/test-memmem.c: Likewise.
39538         * tests/test-memrchr.c: Likewise.
39539         * tests/test-mkdir.c: Likewise.
39540         * tests/test-mkdirat.c: Likewise.
39541         * tests/test-mkfifo.c: Likewise.
39542         * tests/test-mkfifoat.c: Likewise.
39543         * tests/test-mknod.c: Likewise.
39544         * tests/test-nanosleep.c: Likewise.
39545         * tests/test-nl_langinfo.c: Likewise.
39546         * tests/test-obstack-printf.c: Likewise.
39547         * tests/test-open.c: Likewise.
39548         * tests/test-openat.c: Likewise.
39549         * tests/test-pipe-filter-gi1.c: Likewise.
39550         * tests/test-pipe-filter-gi2-main.c: Likewise.
39551         * tests/test-pipe-filter-ii1.c: Likewise.
39552         * tests/test-pipe-filter-ii2-main.c: Likewise.
39553         * tests/test-pipe2.c: Likewise.
39554         * tests/test-popen.h: Likewise.
39555         * tests/test-posixtm.c: Likewise.
39556         * tests/test-pread.c: Likewise.
39557         * tests/test-printf-frexp.c: Likewise.
39558         * tests/test-printf-frexpl.c: Likewise.
39559         * tests/test-printf-posix.c: Likewise.
39560         * tests/test-priv-set.c: Likewise.
39561         * tests/test-quotearg.c: Likewise.
39562         * tests/test-random_r.c: Likewise.
39563         * tests/test-rawmemchr.c: Likewise.
39564         * tests/test-rbtree_list.c: Likewise.
39565         * tests/test-rbtree_oset.c: Likewise.
39566         * tests/test-rbtreehash_list.c: Likewise.
39567         * tests/test-readlink.c: Likewise.
39568         * tests/test-remove.c: Likewise.
39569         * tests/test-rename.c: Likewise.
39570         * tests/test-renameat.c: Likewise.
39571         * tests/test-rmdir.c: Likewise.
39572         * tests/test-round1.c: Likewise.
39573         * tests/test-roundf1.c: Likewise.
39574         * tests/test-roundl.c: Likewise.
39575         * tests/test-safe-alloc.c: Likewise.
39576         * tests/test-sameacls.c: Likewise.
39577         * tests/test-set-mode-acl.c: Likewise.
39578         * tests/test-setenv.c: Likewise.
39579         * tests/test-sigaction.c: Likewise.
39580         * tests/test-signbit.c: Likewise.
39581         * tests/test-sleep.c: Likewise.
39582         * tests/test-snprintf-posix.c: Likewise.
39583         * tests/test-snprintf.c: Likewise.
39584         * tests/test-sprintf-posix.c: Likewise.
39585         * tests/test-stat-time.c: Likewise.
39586         * tests/test-stat.c: Likewise.
39587         * tests/test-strcasestr.c: Likewise.
39588         * tests/test-strchrnul.c: Likewise.
39589         * tests/test-strerror.c: Likewise.
39590         * tests/test-striconv.c: Likewise.
39591         * tests/test-striconveh.c: Likewise.
39592         * tests/test-striconveha.c: Likewise.
39593         * tests/test-strsignal.c: Likewise.
39594         * tests/test-strstr.c: Likewise.
39595         * tests/test-strtod.c: Likewise.
39596         * tests/test-strverscmp.c: Likewise.
39597         * tests/test-symlink.c: Likewise.
39598         * tests/test-symlinkat.c: Likewise.
39599         * tests/test-trunc1.c: Likewise.
39600         * tests/test-trunc2.c: Likewise.
39601         * tests/test-truncf1.c: Likewise.
39602         * tests/test-truncf2.c: Likewise.
39603         * tests/test-truncl.c: Likewise.
39604         * tests/test-uname.c: Likewise.
39605         * tests/test-unlink.c: Likewise.
39606         * tests/test-unlinkat.c: Likewise.
39607         * tests/test-unsetenv.c: Likewise.
39608         * tests/test-usleep.c: Likewise.
39609         * tests/test-utimens.c: Likewise.
39610         * tests/test-utimensat.c: Likewise.
39611         * tests/test-vasnprintf-posix.c: Likewise.
39612         * tests/test-vasnprintf-posix2.c: Likewise.
39613         * tests/test-vasnprintf.c: Likewise.
39614         * tests/test-vasprintf-posix.c: Likewise.
39615         * tests/test-vasprintf.c: Likewise.
39616         * tests/test-vdprintf-posix.c: Likewise.
39617         * tests/test-vfprintf-posix.c: Likewise.
39618         * tests/test-vprintf-posix.c: Likewise.
39619         * tests/test-vsnprintf-posix.c: Likewise.
39620         * tests/test-vsnprintf.c: Likewise.
39621         * tests/test-vsprintf-posix.c: Likewise.
39622         * tests/test-wcrtomb.c: Likewise.
39623         * tests/test-wcsnrtombs.c: Likewise.
39624         * tests/test-wcsrtombs.c: Likewise.
39625         * tests/test-wctype.c: Likewise.
39626         * tests/test-wcwidth.c: Likewise.
39627         * tests/test-xfprintf-posix.c: Likewise.
39628         * tests/test-xmemdup0.c: Likewise.
39629         * tests/test-xprintf-posix.c: Likewise.
39630         * tests/test-xvasprintf.c: Likewise.
39631         * tests/unicase/test-locale-language.c: Likewise.
39632         * tests/unicase/test-mapping-part1.h: Likewise.
39633         * tests/unicase/test-predicate-part1.h: Likewise.
39634         * tests/unicase/test-u8-casecmp.c: Likewise.
39635         * tests/unicase/test-u8-casecoll.c: Likewise.
39636         * tests/unicase/test-u8-casefold.c: Likewise.
39637         * tests/unicase/test-u8-is-cased.c: Likewise.
39638         * tests/unicase/test-u8-is-casefolded.c: Likewise.
39639         * tests/unicase/test-u8-is-lowercase.c: Likewise.
39640         * tests/unicase/test-u8-is-titlecase.c: Likewise.
39641         * tests/unicase/test-u8-is-uppercase.c: Likewise.
39642         * tests/unicase/test-u8-tolower.c: Likewise.
39643         * tests/unicase/test-u8-totitle.c: Likewise.
39644         * tests/unicase/test-u8-toupper.c: Likewise.
39645         * tests/unicase/test-u16-casecmp.c: Likewise.
39646         * tests/unicase/test-u16-casecoll.c: Likewise.
39647         * tests/unicase/test-u16-casefold.c: Likewise.
39648         * tests/unicase/test-u16-is-cased.c: Likewise.
39649         * tests/unicase/test-u16-is-casefolded.c: Likewise.
39650         * tests/unicase/test-u16-is-lowercase.c: Likewise.
39651         * tests/unicase/test-u16-is-titlecase.c: Likewise.
39652         * tests/unicase/test-u16-is-uppercase.c: Likewise.
39653         * tests/unicase/test-u16-tolower.c: Likewise.
39654         * tests/unicase/test-u16-totitle.c: Likewise.
39655         * tests/unicase/test-u16-toupper.c: Likewise.
39656         * tests/unicase/test-u32-casecmp.c: Likewise.
39657         * tests/unicase/test-u32-casecoll.c: Likewise.
39658         * tests/unicase/test-u32-casefold.c: Likewise.
39659         * tests/unicase/test-u32-is-cased.c: Likewise.
39660         * tests/unicase/test-u32-is-casefolded.c: Likewise.
39661         * tests/unicase/test-u32-is-lowercase.c: Likewise.
39662         * tests/unicase/test-u32-is-titlecase.c: Likewise.
39663         * tests/unicase/test-u32-is-uppercase.c: Likewise.
39664         * tests/unicase/test-u32-tolower.c: Likewise.
39665         * tests/unicase/test-u32-totitle.c: Likewise.
39666         * tests/unicase/test-u32-toupper.c: Likewise.
39667         * tests/unicase/test-ulc-casecmp.c: Likewise.
39668         * tests/unicase/test-ulc-casecoll.c: Likewise.
39669         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39670         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39671         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39672         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39673         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39674         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39675         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39676         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39677         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39678         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39679         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39680         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39681         * tests/unictype/test-bidi_byname.c: Likewise.
39682         * tests/unictype/test-bidi_name.c: Likewise.
39683         * tests/unictype/test-bidi_of.c: Likewise.
39684         * tests/unictype/test-bidi_test.c: Likewise.
39685         * tests/unictype/test-block_list.c: Likewise.
39686         * tests/unictype/test-block_of.c: Likewise.
39687         * tests/unictype/test-block_test.c: Likewise.
39688         * tests/unictype/test-categ_and.c: Likewise.
39689         * tests/unictype/test-categ_and_not.c: Likewise.
39690         * tests/unictype/test-categ_byname.c: Likewise.
39691         * tests/unictype/test-categ_name.c: Likewise.
39692         * tests/unictype/test-categ_none.c: Likewise.
39693         * tests/unictype/test-categ_of.c: Likewise.
39694         * tests/unictype/test-categ_or.c: Likewise.
39695         * tests/unictype/test-categ_test_withtable.c: Likewise.
39696         * tests/unictype/test-combining.c: Likewise.
39697         * tests/unictype/test-decdigit.c: Likewise.
39698         * tests/unictype/test-digit.c: Likewise.
39699         * tests/unictype/test-mirror.c: Likewise.
39700         * tests/unictype/test-numeric.c: Likewise.
39701         * tests/unictype/test-pr_byname.c: Likewise.
39702         * tests/unictype/test-pr_test.c: Likewise.
39703         * tests/unictype/test-predicate-part1.h: Likewise.
39704         * tests/unictype/test-scripts.c: Likewise.
39705         * tests/unictype/test-sy_c_ident.c: Likewise.
39706         * tests/unictype/test-sy_java_ident.c: Likewise.
39707         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
39708         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
39709         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
39710         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
39711         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
39712         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
39713         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
39714         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
39715         * tests/uninorm/test-canonical-decomposition.c: Likewise.
39716         * tests/uninorm/test-compat-decomposition.c: Likewise.
39717         * tests/uninorm/test-composition.c: Likewise.
39718         * tests/uninorm/test-decomposing-form.c: Likewise.
39719         * tests/uninorm/test-decomposition.c: Likewise.
39720         * tests/uninorm/test-u8-nfc.c: Likewise.
39721         * tests/uninorm/test-u8-nfd.c: Likewise.
39722         * tests/uninorm/test-u8-nfkc.c: Likewise.
39723         * tests/uninorm/test-u8-nfkd.c: Likewise.
39724         * tests/uninorm/test-u8-normcmp.c: Likewise.
39725         * tests/uninorm/test-u8-normcoll.c: Likewise.
39726         * tests/uninorm/test-u16-nfc.c: Likewise.
39727         * tests/uninorm/test-u16-nfd.c: Likewise.
39728         * tests/uninorm/test-u16-nfkc.c: Likewise.
39729         * tests/uninorm/test-u16-nfkd.c: Likewise.
39730         * tests/uninorm/test-u16-normcmp.c: Likewise.
39731         * tests/uninorm/test-u16-normcoll.c: Likewise.
39732         * tests/uninorm/test-u32-nfc.c: Likewise.
39733         * tests/uninorm/test-u32-nfd.c: Likewise.
39734         * tests/uninorm/test-u32-nfkc.c: Likewise.
39735         * tests/uninorm/test-u32-nfkd.c: Likewise.
39736         * tests/uninorm/test-u32-normalize-big.c: Likewise.
39737         * tests/uninorm/test-u32-normcmp.c: Likewise.
39738         * tests/uninorm/test-u32-normcoll.c: Likewise.
39739         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
39740         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39741         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39742         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39743         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39744         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39745         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39746         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39747         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39748         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39749         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39750         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39751         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39752         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39753         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39754         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39755         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39756         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39757         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39758         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39759         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39760         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39761         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39762         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39763         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39764         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39765         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39766         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39767         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39768         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
39769         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
39770         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
39771         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
39772         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39773         * tests/uniwidth/test-u8-width.c: Likewise.
39774         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39775         * tests/uniwidth/test-u16-width.c: Likewise.
39776         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39777         * tests/uniwidth/test-u32-width.c: Likewise.
39778         * tests/uniwidth/test-uc_width.c: Likewise.
39779         * tests/uniwidth/test-uc_width2.c: Likewise.
39780         * modules/acl-tests (Files): Add tests/macros.h.
39781         * modules/areadlink-tests (Files): Likewise.
39782         * modules/areadlink-with-size-tests (Files): Likewise.
39783         * modules/areadlinkat-tests (Files): Likewise.
39784         * modules/areadlinkat-with-size-tests (Files): Likewise.
39785         * modules/argmatch-tests (Files): Likewise.
39786         * modules/argv-iter-tests (Files): Likewise.
39787         * modules/array-list-tests (Files): Likewise.
39788         * modules/array-mergesort-tests (Files): Likewise.
39789         * modules/array-oset-tests (Files): Likewise.
39790         * modules/avltree-list-tests (Files): Likewise.
39791         * modules/avltree-oset-tests (Files): Likewise.
39792         * modules/avltreehash-list-tests (Files): Likewise.
39793         * modules/base64-tests (Files): Likewise.
39794         * modules/binary-io-tests (Files): Likewise.
39795         * modules/bitrotate-tests (Files): Likewise.
39796         * modules/btowc-tests (Files): Likewise.
39797         * modules/byteswap-tests (Files): Likewise.
39798         * modules/c-ctype-tests (Files): Likewise.
39799         * modules/c-stack-tests (Files): Likewise.
39800         * modules/c-strcase-tests (Files): Likewise.
39801         * modules/c-strcasestr-tests (Files): Likewise.
39802         * modules/c-strstr-tests (Files): Likewise.
39803         * modules/canonicalize-lgpl-tests (Files): Likewise.
39804         * modules/canonicalize-tests (Files): Likewise.
39805         * modules/carray-list-tests (Files): Likewise.
39806         * modules/ceilf-tests (Files): Likewise.
39807         * modules/ceill-tests (Files): Likewise.
39808         * modules/chown-tests (Files): Likewise.
39809         * modules/cloexec-tests (Files): Likewise.
39810         * modules/copy-file-tests (Files): Likewise.
39811         * modules/count-one-bits-tests (Files): Likewise.
39812         * modules/dprintf-posix-tests (Files): Likewise.
39813         * modules/dup2-tests (Files): Likewise.
39814         * modules/dup3-tests (Files): Likewise.
39815         * modules/duplocale-tests (Files): Likewise.
39816         * modules/fbufmode-tests (Files): Likewise.
39817         * modules/fchdir-tests (Files): Likewise.
39818         * modules/fcntl-safer-tests (Files): Likewise.
39819         * modules/fcntl-tests (Files): Likewise.
39820         * modules/fdopendir-tests (Files): Likewise.
39821         * modules/fdutimensat-tests (Files): Likewise.
39822         * modules/fflush-tests (Files): Likewise.
39823         * modules/filevercmp-tests (Files): Likewise.
39824         * modules/flock-tests (Files): Likewise.
39825         * modules/floorf-tests (Files): Likewise.
39826         * modules/floorl-tests (Files): Likewise.
39827         * modules/fnmatch-tests (Files): Likewise.
39828         * modules/fopen-safer-tests (Files): Likewise.
39829         * modules/fopen-tests (Files): Likewise.
39830         * modules/fpending-tests (Files): Likewise.
39831         * modules/fprintf-posix-tests (Files): Likewise.
39832         * modules/fpurge-tests (Files): Likewise.
39833         * modules/freadable-tests (Files): Likewise.
39834         * modules/freadahead-tests (Files): Likewise.
39835         * modules/freading-tests (Files): Likewise.
39836         * modules/freadptr-tests (Files): Likewise.
39837         * modules/freadseek-tests (Files): Likewise.
39838         * modules/freopen-tests (Files): Likewise.
39839         * modules/frexp-nolibm-tests (Files): Likewise.
39840         * modules/frexp-tests (Files): Likewise.
39841         * modules/frexpl-nolibm-tests (Files): Likewise.
39842         * modules/frexpl-tests (Files): Likewise.
39843         * modules/fseek-tests (Files): Likewise.
39844         * modules/fseeko-tests (Files): Likewise.
39845         * modules/fstrcmp-tests (Files): Likewise.
39846         * modules/fsync-tests (Files): Likewise.
39847         * modules/ftell-tests (Files): Likewise.
39848         * modules/ftello-tests (Files): Likewise.
39849         * modules/func-tests (Files): Likewise.
39850         * modules/futimens-tests (Files): Likewise.
39851         * modules/fwritable-tests (Files): Likewise.
39852         * modules/fwriting-tests (Files): Likewise.
39853         * modules/getcwd-tests (Files): Likewise.
39854         * modules/getdate-tests (Files): Likewise.
39855         * modules/getdelim-tests (Files): Likewise.
39856         * modules/getdtablesize-tests (Files): Likewise.
39857         * modules/getgroups-tests (Files): Likewise.
39858         * modules/getline-tests (Files): Likewise.
39859         * modules/getndelim2-tests (Files): Likewise.
39860         * modules/glob-tests (Files): Likewise.
39861         * modules/hash-tests (Files): Likewise.
39862         * modules/i-ring-tests (Files): Likewise.
39863         * modules/iconv-tests (Files): Likewise.
39864         * modules/iconv_open-utf-tests (Files): Likewise.
39865         * modules/idpriv-drop-tests (Files): Likewise.
39866         * modules/idpriv-droptemp-tests (Files): Likewise.
39867         * modules/inet_ntop-tests (Files): Likewise.
39868         * modules/inet_pton-tests (Files): Likewise.
39869         * modules/isblank-tests (Files): Likewise.
39870         * modules/isfinite-tests (Files): Likewise.
39871         * modules/isinf-tests (Files): Likewise.
39872         * modules/isnan-tests (Files): Likewise.
39873         * modules/isnand-nolibm-tests (Files): Likewise.
39874         * modules/isnand-tests (Files): Likewise.
39875         * modules/isnanf-nolibm-tests (Files): Likewise.
39876         * modules/isnanf-tests (Files): Likewise.
39877         * modules/isnanl-nolibm-tests (Files): Likewise.
39878         * modules/isnanl-tests (Files): Likewise.
39879         * modules/lchown-tests (Files): Likewise.
39880         * modules/ldexpl-tests (Files): Likewise.
39881         * modules/link-tests (Files): Likewise.
39882         * modules/linkat-tests (Files): Likewise.
39883         * modules/linked-list-tests (Files): Likewise.
39884         * modules/linkedhash-list-tests (Files): Likewise.
39885         * modules/localename-tests (Files): Likewise.
39886         * modules/lseek-tests (Files): Likewise.
39887         * modules/lstat-tests (Files): Likewise.
39888         * modules/mbmemcasecmp-tests (Files): Likewise.
39889         * modules/mbmemcasecoll-tests (Files): Likewise.
39890         * modules/mbrtowc-tests (Files): Likewise.
39891         * modules/mbscasecmp-tests (Files): Likewise.
39892         * modules/mbscasestr-tests (Files): Likewise.
39893         * modules/mbschr-tests (Files): Likewise.
39894         * modules/mbscspn-tests (Files): Likewise.
39895         * modules/mbsinit-tests (Files): Likewise.
39896         * modules/mbsncasecmp-tests (Files): Likewise.
39897         * modules/mbsnrtowcs-tests (Files): Likewise.
39898         * modules/mbspbrk-tests (Files): Likewise.
39899         * modules/mbspcasecmp-tests (Files): Likewise.
39900         * modules/mbsrchr-tests (Files): Likewise.
39901         * modules/mbsrtowcs-tests (Files): Likewise.
39902         * modules/mbsspn-tests (Files): Likewise.
39903         * modules/mbsstr-tests (Files): Likewise.
39904         * modules/memchr-tests (Files): Likewise.
39905         * modules/memchr2-tests (Files): Likewise.
39906         * modules/memcmp-tests (Files): Likewise.
39907         * modules/memmem-tests (Files): Likewise.
39908         * modules/memrchr-tests (Files): Likewise.
39909         * modules/mkdir-tests (Files): Likewise.
39910         * modules/mkfifo-tests (Files): Likewise.
39911         * modules/mkfifoat-tests (Files): Likewise.
39912         * modules/mknod-tests (Files): Likewise.
39913         * modules/nanosleep-tests (Files): Likewise.
39914         * modules/nl_langinfo-tests (Files): Likewise.
39915         * modules/obstack-printf-tests (Files): Likewise.
39916         * modules/open-tests (Files): Likewise.
39917         * modules/openat-tests (Files): Likewise.
39918         * modules/pipe-filter-gi-tests (Files): Likewise.
39919         * modules/pipe-filter-ii-tests (Files): Likewise.
39920         * modules/pipe2-tests (Files): Likewise.
39921         * modules/popen-safer-tests (Files): Likewise.
39922         * modules/popen-tests (Files): Likewise.
39923         * modules/posixtm-tests (Files): Likewise.
39924         * modules/pread-tests (Files): Likewise.
39925         * modules/printf-frexp-tests (Files): Likewise.
39926         * modules/printf-frexpl-tests (Files): Likewise.
39927         * modules/printf-posix-tests (Files): Likewise.
39928         * modules/priv-set-tests (Files): Likewise.
39929         * modules/quotearg-tests (Files): Likewise.
39930         * modules/random_r-tests (Files): Likewise.
39931         * modules/rawmemchr-tests (Files): Likewise.
39932         * modules/rbtree-list-tests (Files): Likewise.
39933         * modules/rbtree-oset-tests (Files): Likewise.
39934         * modules/rbtreehash-list-tests (Files): Likewise.
39935         * modules/readlink-tests (Files): Likewise.
39936         * modules/remove-tests (Files): Likewise.
39937         * modules/rename-tests (Files): Likewise.
39938         * modules/renameat-tests (Files): Likewise.
39939         * modules/rmdir-tests (Files): Likewise.
39940         * modules/round-tests (Files): Likewise.
39941         * modules/roundf-tests (Files): Likewise.
39942         * modules/roundl-tests (Files): Likewise.
39943         * modules/safe-alloc-tests (Files): Likewise.
39944         * modules/setenv-tests (Files): Likewise.
39945         * modules/sigaction-tests (Files): Likewise.
39946         * modules/signbit-tests (Files): Likewise.
39947         * modules/sleep-tests (Files): Likewise.
39948         * modules/snprintf-posix-tests (Files): Likewise.
39949         * modules/snprintf-tests (Files): Likewise.
39950         * modules/sprintf-posix-tests (Files): Likewise.
39951         * modules/stat-tests (Files): Likewise.
39952         * modules/stat-time-tests (Files): Likewise.
39953         * modules/strcasestr-tests (Files): Likewise.
39954         * modules/strchrnul-tests (Files): Likewise.
39955         * modules/strerror-tests (Files): Likewise.
39956         * modules/striconv-tests (Files): Likewise.
39957         * modules/striconveh-tests (Files): Likewise.
39958         * modules/striconveha-tests (Files): Likewise.
39959         * modules/strsignal-tests (Files): Likewise.
39960         * modules/strstr-tests (Files): Likewise.
39961         * modules/strtod-tests (Files): Likewise.
39962         * modules/strverscmp-tests (Files): Likewise.
39963         * modules/symlink-tests (Files): Likewise.
39964         * modules/symlinkat-tests (Files): Likewise.
39965         * modules/trunc-tests (Files): Likewise.
39966         * modules/truncf-tests (Files): Likewise.
39967         * modules/truncl-tests (Files): Likewise.
39968         * modules/uname-tests (Files): Likewise.
39969         * modules/unicase/cased-tests (Files): Likewise.
39970         * modules/unicase/ignorable-tests (Files): Likewise.
39971         * modules/unicase/locale-language-tests (Files): Likewise.
39972         * modules/unicase/tolower-tests (Files): Likewise.
39973         * modules/unicase/totitle-tests (Files): Likewise.
39974         * modules/unicase/toupper-tests (Files): Likewise.
39975         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39976         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39977         * modules/unicase/u8-casefold-tests (Files): Likewise.
39978         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39979         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39980         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39981         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39982         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39983         * modules/unicase/u8-tolower-tests (Files): Likewise.
39984         * modules/unicase/u8-totitle-tests (Files): Likewise.
39985         * modules/unicase/u8-toupper-tests (Files): Likewise.
39986         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39987         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39988         * modules/unicase/u16-casefold-tests (Files): Likewise.
39989         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39990         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39991         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39992         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39993         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39994         * modules/unicase/u16-tolower-tests (Files): Likewise.
39995         * modules/unicase/u16-totitle-tests (Files): Likewise.
39996         * modules/unicase/u16-toupper-tests (Files): Likewise.
39997         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39998         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39999         * modules/unicase/u32-casefold-tests (Files): Likewise.
40000         * modules/unicase/u32-is-cased-tests (Files): Likewise.
40001         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
40002         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
40003         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
40004         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
40005         * modules/unicase/u32-tolower-tests (Files): Likewise.
40006         * modules/unicase/u32-totitle-tests (Files): Likewise.
40007         * modules/unicase/u32-toupper-tests (Files): Likewise.
40008         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
40009         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
40010         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
40011         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
40012         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
40013         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
40014         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
40015         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
40016         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
40017         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
40018         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
40019         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
40020         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
40021         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
40022         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
40023         * modules/unictype/bidicategory-name-tests (Files): Likewise.
40024         * modules/unictype/bidicategory-of-tests (Files): Likewise.
40025         * modules/unictype/bidicategory-test-tests (Files): Likewise.
40026         * modules/unictype/block-list-tests (Files): Likewise.
40027         * modules/unictype/block-of-tests (Files): Likewise.
40028         * modules/unictype/block-test-tests (Files): Likewise.
40029         * modules/unictype/category-C-tests (Files): Likewise.
40030         * modules/unictype/category-Cc-tests (Files): Likewise.
40031         * modules/unictype/category-Cf-tests (Files): Likewise.
40032         * modules/unictype/category-Cn-tests (Files): Likewise.
40033         * modules/unictype/category-Co-tests (Files): Likewise.
40034         * modules/unictype/category-Cs-tests (Files): Likewise.
40035         * modules/unictype/category-L-tests (Files): Likewise.
40036         * modules/unictype/category-Ll-tests (Files): Likewise.
40037         * modules/unictype/category-Lm-tests (Files): Likewise.
40038         * modules/unictype/category-Lo-tests (Files): Likewise.
40039         * modules/unictype/category-Lt-tests (Files): Likewise.
40040         * modules/unictype/category-Lu-tests (Files): Likewise.
40041         * modules/unictype/category-M-tests (Files): Likewise.
40042         * modules/unictype/category-Mc-tests (Files): Likewise.
40043         * modules/unictype/category-Me-tests (Files): Likewise.
40044         * modules/unictype/category-Mn-tests (Files): Likewise.
40045         * modules/unictype/category-N-tests (Files): Likewise.
40046         * modules/unictype/category-Nd-tests (Files): Likewise.
40047         * modules/unictype/category-Nl-tests (Files): Likewise.
40048         * modules/unictype/category-No-tests (Files): Likewise.
40049         * modules/unictype/category-P-tests (Files): Likewise.
40050         * modules/unictype/category-Pc-tests (Files): Likewise.
40051         * modules/unictype/category-Pd-tests (Files): Likewise.
40052         * modules/unictype/category-Pe-tests (Files): Likewise.
40053         * modules/unictype/category-Pf-tests (Files): Likewise.
40054         * modules/unictype/category-Pi-tests (Files): Likewise.
40055         * modules/unictype/category-Po-tests (Files): Likewise.
40056         * modules/unictype/category-Ps-tests (Files): Likewise.
40057         * modules/unictype/category-S-tests (Files): Likewise.
40058         * modules/unictype/category-Sc-tests (Files): Likewise.
40059         * modules/unictype/category-Sk-tests (Files): Likewise.
40060         * modules/unictype/category-Sm-tests (Files): Likewise.
40061         * modules/unictype/category-So-tests (Files): Likewise.
40062         * modules/unictype/category-Z-tests (Files): Likewise.
40063         * modules/unictype/category-Zl-tests (Files): Likewise.
40064         * modules/unictype/category-Zp-tests (Files): Likewise.
40065         * modules/unictype/category-Zs-tests (Files): Likewise.
40066         * modules/unictype/category-and-not-tests (Files): Likewise.
40067         * modules/unictype/category-and-tests (Files): Likewise.
40068         * modules/unictype/category-byname-tests (Files): Likewise.
40069         * modules/unictype/category-name-tests (Files): Likewise.
40070         * modules/unictype/category-none-tests (Files): Likewise.
40071         * modules/unictype/category-of-tests (Files): Likewise.
40072         * modules/unictype/category-or-tests (Files): Likewise.
40073         * modules/unictype/category-test-withtable-tests (Files): Likewise.
40074         * modules/unictype/combining-class-tests (Files): Likewise.
40075         * modules/unictype/ctype-alnum-tests (Files): Likewise.
40076         * modules/unictype/ctype-alpha-tests (Files): Likewise.
40077         * modules/unictype/ctype-blank-tests (Files): Likewise.
40078         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
40079         * modules/unictype/ctype-digit-tests (Files): Likewise.
40080         * modules/unictype/ctype-graph-tests (Files): Likewise.
40081         * modules/unictype/ctype-lower-tests (Files): Likewise.
40082         * modules/unictype/ctype-print-tests (Files): Likewise.
40083         * modules/unictype/ctype-punct-tests (Files): Likewise.
40084         * modules/unictype/ctype-space-tests (Files): Likewise.
40085         * modules/unictype/ctype-upper-tests (Files): Likewise.
40086         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
40087         * modules/unictype/decimal-digit-tests (Files): Likewise.
40088         * modules/unictype/digit-tests (Files): Likewise.
40089         * modules/unictype/mirror-tests (Files): Likewise.
40090         * modules/unictype/numeric-tests (Files): Likewise.
40091         * modules/unictype/property-alphabetic-tests (Files): Likewise.
40092         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
40093         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
40094         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
40095         Likewise.
40096         * modules/unictype/property-bidi-block-separator-tests (Files):
40097         Likewise.
40098         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
40099         Likewise.
40100         * modules/unictype/property-bidi-common-separator-tests (Files):
40101         Likewise.
40102         * modules/unictype/property-bidi-control-tests (Files): Likewise.
40103         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
40104         Likewise.
40105         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
40106         Likewise.
40107         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
40108         Likewise.
40109         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
40110         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
40111         Likewise.
40112         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
40113         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
40114         Likewise.
40115         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
40116         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
40117         * modules/unictype/property-bidi-segment-separator-tests (Files):
40118         Likewise.
40119         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
40120         * modules/unictype/property-byname-tests (Files): Likewise.
40121         * modules/unictype/property-combining-tests (Files): Likewise.
40122         * modules/unictype/property-composite-tests (Files): Likewise.
40123         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
40124         * modules/unictype/property-dash-tests (Files): Likewise.
40125         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
40126         * modules/unictype/property-default-ignorable-code-point-tests (Files):
40127         Likewise.
40128         * modules/unictype/property-deprecated-tests (Files): Likewise.
40129         * modules/unictype/property-diacritic-tests (Files): Likewise.
40130         * modules/unictype/property-extender-tests (Files): Likewise.
40131         * modules/unictype/property-format-control-tests (Files): Likewise.
40132         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
40133         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
40134         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
40135         * modules/unictype/property-hex-digit-tests (Files): Likewise.
40136         * modules/unictype/property-hyphen-tests (Files): Likewise.
40137         * modules/unictype/property-id-continue-tests (Files): Likewise.
40138         * modules/unictype/property-id-start-tests (Files): Likewise.
40139         * modules/unictype/property-ideographic-tests (Files): Likewise.
40140         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
40141         * modules/unictype/property-ids-trinary-operator-tests (Files):
40142         Likewise.
40143         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
40144         * modules/unictype/property-iso-control-tests (Files): Likewise.
40145         * modules/unictype/property-join-control-tests (Files): Likewise.
40146         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
40147         * modules/unictype/property-line-separator-tests (Files): Likewise.
40148         * modules/unictype/property-logical-order-exception-tests (Files):
40149         Likewise.
40150         * modules/unictype/property-lowercase-tests (Files): Likewise.
40151         * modules/unictype/property-math-tests (Files): Likewise.
40152         * modules/unictype/property-non-break-tests (Files): Likewise.
40153         * modules/unictype/property-not-a-character-tests (Files): Likewise.
40154         * modules/unictype/property-numeric-tests (Files): Likewise.
40155         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
40156         * modules/unictype/property-other-default-ignorable-code-point-tests
40157         (Files): Likewise.
40158         * modules/unictype/property-other-grapheme-extend-tests (Files):
40159         Likewise.
40160         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
40161         * modules/unictype/property-other-id-start-tests (Files): Likewise.
40162         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
40163         * modules/unictype/property-other-math-tests (Files): Likewise.
40164         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
40165         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
40166         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
40167         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
40168         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
40169         * modules/unictype/property-private-use-tests (Files): Likewise.
40170         * modules/unictype/property-punctuation-tests (Files): Likewise.
40171         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
40172         * modules/unictype/property-radical-tests (Files): Likewise.
40173         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
40174         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
40175         * modules/unictype/property-space-tests (Files): Likewise.
40176         * modules/unictype/property-terminal-punctuation-tests (Files):
40177         Likewise.
40178         * modules/unictype/property-test-tests (Files): Likewise.
40179         * modules/unictype/property-titlecase-tests (Files): Likewise.
40180         * modules/unictype/property-unassigned-code-value-tests (Files):
40181         Likewise.
40182         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
40183         * modules/unictype/property-uppercase-tests (Files): Likewise.
40184         * modules/unictype/property-variation-selector-tests (Files): Likewise.
40185         * modules/unictype/property-white-space-tests (Files): Likewise.
40186         * modules/unictype/property-xid-continue-tests (Files): Likewise.
40187         * modules/unictype/property-xid-start-tests (Files): Likewise.
40188         * modules/unictype/property-zero-width-tests (Files): Likewise.
40189         * modules/unictype/scripts-tests (Files): Likewise.
40190         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
40191         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
40192         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
40193         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
40194         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
40195         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
40196         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
40197         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
40198         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
40199         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
40200         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
40201         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
40202         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
40203         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
40204         * modules/uninorm/composition-tests (Files): Likewise.
40205         * modules/uninorm/decomposing-form-tests (Files): Likewise.
40206         * modules/uninorm/decomposition-tests (Files): Likewise.
40207         * modules/uninorm/filter-tests (Files): Likewise.
40208         * modules/uninorm/nfc-tests (Files): Likewise.
40209         * modules/uninorm/nfd-tests (Files): Likewise.
40210         * modules/uninorm/nfkc-tests (Files): Likewise.
40211         * modules/uninorm/nfkd-tests (Files): Likewise.
40212         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
40213         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
40214         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
40215         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
40216         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
40217         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
40218         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
40219         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
40220         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
40221         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
40222         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
40223         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
40224         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
40225         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
40226         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
40227         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
40228         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
40229         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
40230         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
40231         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
40232         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
40233         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
40234         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
40235         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
40236         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
40237         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
40238         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
40239         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
40240         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
40241         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
40242         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
40243         * modules/uniwidth/u8-width-tests (Files): Likewise.
40244         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
40245         * modules/uniwidth/u16-width-tests (Files): Likewise.
40246         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
40247         * modules/uniwidth/u32-width-tests (Files): Likewise.
40248         * modules/uniwidth/width-tests (Files): Likewise.
40249         * modules/unlink-tests (Files): Likewise.
40250         * modules/unsetenv-tests (Files): Likewise.
40251         * modules/usleep-tests (Files): Likewise.
40252         * modules/utimens-tests (Files): Likewise.
40253         * modules/utimensat-tests (Files): Likewise.
40254         * modules/vasnprintf-posix-tests (Files): Likewise.
40255         * modules/vasnprintf-tests (Files): Likewise.
40256         * modules/vasprintf-posix-tests (Files): Likewise.
40257         * modules/vasprintf-tests (Files): Likewise.
40258         * modules/vdprintf-posix-tests (Files): Likewise.
40259         * modules/vfprintf-posix-tests (Files): Likewise.
40260         * modules/vprintf-posix-tests (Files): Likewise.
40261         * modules/vsnprintf-posix-tests (Files): Likewise.
40262         * modules/vsnprintf-tests (Files): Likewise.
40263         * modules/vsprintf-posix-tests (Files): Likewise.
40264         * modules/wcrtomb-tests (Files): Likewise.
40265         * modules/wcsnrtombs-tests (Files): Likewise.
40266         * modules/wcsrtombs-tests (Files): Likewise.
40267         * modules/wctype-tests (Files): Likewise.
40268         * modules/wcwidth-tests (Files): Likewise.
40269         * modules/xmemdup0-tests (Files): Likewise.
40270         * modules/xprintf-posix-tests (Files): Likewise.
40271         * modules/xvasprintf-tests (Files): Likewise.
40272
40273 2009-12-24  Eric Blake  <ebb9@byu.net>
40274
40275         test-nanosleep: fix typo
40276         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
40277         patch.
40278         Reported by Bruno Haible.
40279
40280 2009-12-24  Bruno Haible  <bruno@clisp.org>
40281
40282         Reduce namespace pollution on glibc systems.
40283         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
40284         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
40285         systems.
40286         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
40287         <getopt.h> on glibc systems.
40288         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
40289         systems.
40290         * lib/fcntl.c: Include <unistd.h> here instead.
40291
40292 2009-12-24  Bruno Haible  <bruno@clisp.org>
40293
40294         * lib/stdlib.in.h (includes): Fix typo in today's commit.
40295
40296 2009-12-24  Eric Blake  <ebb9@byu.net>
40297
40298         tests: add signature checks
40299         * tests/signature.h (SIGNATURE_CHECK): New file.
40300         * modules/atexit-tests (Files): Use it.
40301         * modules/btowc-tests (Files): Likewise.
40302         * modules/canonicalize-lgpl-tests (Files): Likewise.
40303         * modules/ceilf-tests (Files): Likewise.
40304         * modules/ceill-tests (Files): Likewise.
40305         * modules/chown-tests (Files): Likewise.
40306         * modules/dprintf-posix-tests (Files): Likewise.
40307         * modules/dup2-tests (Files): Likewise.
40308         * modules/dup3-tests (Files): Likewise.
40309         * modules/duplocale-tests (Files): Likewise.
40310         * modules/fchdir-tests (Files): Likewise.
40311         * modules/fcntl-tests (Files): Likewise.
40312         * modules/fdopendir-tests (Files): Likewise.
40313         * modules/fflush-tests (Files): Likewise.
40314         * modules/flock-tests (Files): Likewise.
40315         * modules/floorf-tests (Files): Likewise.
40316         * modules/floorl-tests (Files): Likewise.
40317         * modules/fnmatch-tests (Files): Likewise.
40318         * modules/fopen-tests (Files): Likewise.
40319         * modules/fprintf-posix-tests (Files): Likewise.
40320         * modules/freopen-tests (Files): Likewise.
40321         * modules/frexp-nolibm-tests (Files): Likewise.
40322         * modules/frexp-tests (Files): Likewise.
40323         * modules/frexpl-nolibm-tests (Files): Likewise.
40324         * modules/frexpl-tests (Files): Likewise.
40325         * modules/fseek-tests (Files): Likewise.
40326         * modules/fseeko-tests (Files): Likewise.
40327         * modules/fsync-tests (Files): Likewise.
40328         * modules/ftell-tests (Files): Likewise.
40329         * modules/ftello-tests (Files): Likewise.
40330         * modules/futimens-tests (Files): Likewise.
40331         * modules/getaddrinfo-tests (Files): Likewise.
40332         * modules/getcwd-tests (Files): Likewise.
40333         * modules/getdelim-tests (Files): Likewise.
40334         * modules/getdtablesize-tests (Files): Likewise.
40335         * modules/getgroups-tests (Files): Likewise.
40336         * modules/gethostname-tests (Files): Likewise.
40337         * modules/getline-tests (Files): Likewise.
40338         * modules/getopt-posix-tests (Files): Likewise.
40339         * modules/gettimeofday-tests (Files): Likewise.
40340         * modules/glob-tests (Files): Likewise.
40341         * modules/iconv-tests (Files): Likewise.
40342         * modules/inet_ntop-tests (Files): Likewise.
40343         * modules/inet_pton-tests (Files): Likewise.
40344         * modules/isblank-tests (Files): Likewise.
40345         * modules/lchown-tests (Files): Likewise.
40346         * modules/ldexpl-tests (Files): Likewise.
40347         * modules/link-tests (Files): Likewise.
40348         * modules/linkat-tests (Files): Likewise.
40349         * modules/lseek-tests (Files): Likewise.
40350         * modules/lstat-tests (Files): Likewise.
40351         * modules/mbrtowc-tests (Files): Likewise.
40352         * modules/mbsinit-tests (Files): Likewise.
40353         * modules/mbsnrtowcs-tests (Files): Likewise.
40354         * modules/mbsrtowcs-tests (Files): Likewise.
40355         * modules/memchr-tests (Files): Likewise.
40356         * modules/memcmp-tests (Files): Likewise.
40357         * modules/memmem-tests (Files): Likewise.
40358         * modules/memrchr-tests (Files): Likewise.
40359         * modules/mkdir-tests (Files): Likewise.
40360         * modules/mkfifo-tests (Files): Likewise.
40361         * modules/mkfifoat-tests (Files): Likewise.
40362         * modules/mknod-tests (Files): Likewise.
40363         * modules/nanosleep-tests (Files): Likewise.
40364         * modules/nl_langinfo-tests (Files): Likewise.
40365         * modules/obstack-printf-tests (Files): Likewise.
40366         * modules/open-tests (Files): Likewise.
40367         * modules/openat-tests (Files): Likewise.
40368         * modules/perror-tests (Files): Likewise.
40369         * modules/pipe2-tests (Files): Likewise.
40370         * modules/poll-tests (Files): Likewise.
40371         * modules/popen-tests (Files): Likewise.
40372         * modules/posix_spawn-tests (Files): Likewise.
40373         * modules/posix_spawnp-tests (Files): Likewise.
40374         * modules/pread-tests (Files): Likewise.
40375         * modules/printf-posix-tests (Files): Likewise.
40376         * modules/pty-tests (Files): Likewise.
40377         * modules/random_r-tests (Files): Likewise.
40378         * modules/rawmemchr-tests (Files): Likewise.
40379         * modules/readlink-tests (Files): Likewise.
40380         * modules/remove-tests (Files): Likewise.
40381         * modules/rename-tests (Files): Likewise.
40382         * modules/renameat-tests (Files): Likewise.
40383         * modules/rmdir-tests (Files): Likewise.
40384         * modules/round-tests (Files): Likewise.
40385         * modules/roundf-tests (Files): Likewise.
40386         * modules/roundl-tests (Files): Likewise.
40387         * modules/select-tests (Files): Likewise.
40388         * modules/setenv-tests (Files): Likewise.
40389         * modules/sigaction-tests (Files): Likewise.
40390         * modules/sleep-tests (Files): Likewise.
40391         * modules/snprintf-posix-tests (Files): Likewise.
40392         * modules/snprintf-tests (Files): Likewise.
40393         * modules/sprintf-posix-tests (Files): Likewise.
40394         * modules/stat-tests (Files): Likewise.
40395         * modules/strcasestr-tests (Files): Likewise.
40396         * modules/strchrnul-tests (Files): Likewise.
40397         * modules/strerror-tests (Files): Likewise.
40398         * modules/strsignal-tests (Files): Likewise.
40399         * modules/strstr-tests (Files): Likewise.
40400         * modules/strtod-tests (Files): Likewise.
40401         * modules/strverscmp-tests (Files): Likewise.
40402         * modules/symlink-tests (Files): Likewise.
40403         * modules/symlinkat-tests (Files): Likewise.
40404         * modules/times-tests (Files): Likewise.
40405         * modules/trunc-tests (Files): Likewise.
40406         * modules/truncf-tests (Files): Likewise.
40407         * modules/truncl-tests (Files): Likewise.
40408         * modules/tsearch-tests (Files): Likewise.
40409         * modules/uname-tests (Files): Likewise.
40410         * modules/unlink-tests (Files): Likewise.
40411         * modules/unsetenv-tests (Files): Likewise.
40412         * modules/usleep-tests (Files): Likewise.
40413         * modules/utimensat-tests (Files): Likewise.
40414         * modules/vasprintf-tests (Files): Likewise.
40415         * modules/vdprintf-posix-tests (Files): Likewise.
40416         * modules/vfprintf-posix-tests (Files): Likewise.
40417         * modules/vprintf-posix-tests (Files): Likewise.
40418         * modules/vsnprintf-posix-tests (Files): Likewise.
40419         * modules/vsnprintf-tests (Files): Likewise.
40420         * modules/vsprintf-posix-tests (Files): Likewise.
40421         * modules/wcrtomb-tests (Files): Likewise.
40422         * modules/wcsnrtombs-tests (Files): Likewise.
40423         * modules/wcsrtombs-tests (Files): Likewise.
40424         * modules/wcwidth-tests (Files): Likewise.
40425         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
40426         * tests/test-isinf.c (isinf): Likewise.
40427         * tests/test-isnan.c (isnan): Likewise.
40428         * tests/test-signbit.c (signbit): Likewise.
40429         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
40430         declaration, either as macro or with correct signature.
40431         (select): Ensure function under test is declared with correct
40432         signature in correct header.
40433         * tests/test-atexit.c (atexit): Likewise.
40434         * tests/test-btowc.c (btowc): Likewise.
40435         * tests/test-canonicalize-lgpl.c (realpath)
40436         (canonicalize_file_name): Likewise.
40437         * tests/test-ceilf1.c (ceilf): Likewise.
40438         * tests/test-ceill.c (ceill): Likewise.
40439         * tests/test-chown.c (chown): Likewise.
40440         * tests/test-dprintf-posix.c (dprintf): Likewise.
40441         * tests/test-dup2.c (dup2): Likewise.
40442         * tests/test-dup3.c (dup3): Likewise.
40443         * tests/test-duplocale.c (duplocale): Likewise.
40444         * tests/test-fchdir.c (fchdir): Likewise.
40445         * tests/test-fchownat.c (fchownat): Likewise.
40446         * tests/test-fcntl.c (fcntl): Likewise.
40447         * tests/test-fdopendir.c (fdopendir): Likewise.
40448         * tests/test-fflush.c (fflush): Likewise.
40449         * tests/test-flock.c (flock): Likewise.
40450         * tests/test-floorf1.c (floorf): Likewise.
40451         * tests/test-floorl.c (floorl): Likewise.
40452         * tests/test-fnmatch.c (fnmatch): Likewise.
40453         * tests/test-fopen.c (fopen): Likewise.
40454         * tests/test-fprintf-posix.c (fprintf): Likewise.
40455         * tests/test-freopen.c (freopen): Likewise.
40456         * tests/test-frexp.c (frexp): Likewise.
40457         * tests/test-frexpl.c (frexpl): Likewise.
40458         * tests/test-fseek.c (fseek): Likewise.
40459         * tests/test-fseeko.c (fseeko): Likewise.
40460         * tests/test-fstatat.c (fstatat): Likewise.
40461         * tests/test-fsync.c (fsync): Likewise.
40462         * tests/test-ftell.c (ftell): Likewise.
40463         * tests/test-ftello.c (ftello): Likewise.
40464         * tests/test-futimens.c (futimens): Likewise.
40465         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
40466         (gai_strerror): Likewise.
40467         * tests/test-getcwd.c (getcwd): Likewise.
40468         * tests/test-getdelim.c (getdelim): Likewise.
40469         * tests/test-getdtablesize.c (getdtablesize): Likewise.
40470         * tests/test-getgroups.c (getgroups): Likewise.
40471         * tests/test-gethostname.c (gethostname): Likewise.
40472         * tests/test-getline.c (getline): Likewise.
40473         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
40474         Likewise.
40475         * tests/test-gettimeofday.c (gettimeofday): Likewise.
40476         * tests/test-glob.c (glob, globfree): Likewise.
40477         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
40478         * tests/test-inet_ntop.c (inet_ntop): Likewise.
40479         * tests/test-inet_pton.c (inet_pton): Likewise.
40480         * tests/test-isblank.c (isblank): Likewise.
40481         * tests/test-lchown.c (lchown): Likewise.
40482         * tests/test-ldexpl.c (ldexpl): Likewise.
40483         * tests/test-link.c (link): Likewise.
40484         * tests/test-linkat.c (linkat): Likewise.
40485         * tests/test-lseek.c (lseek): Likewise.
40486         * tests/test-lstat.c (lstat): Likewise.
40487         * tests/test-mbrtowc.c (mbrtowc): Likewise.
40488         * tests/test-mbsinit.c (mbsinit): Likewise.
40489         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
40490         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
40491         * tests/test-memchr.c (memchr): Likewise.
40492         * tests/test-memcmp.c (memcmp): Likewise.
40493         * tests/test-memmem.c (memmem): Likewise.
40494         * tests/test-memrchr.c (memrchr): Likewise.
40495         * tests/test-mkdir.c (mkdir): Likewise.
40496         * tests/test-mkdirat.c (mkdirat): Likewise.
40497         * tests/test-mkfifo.c (mkfifo): Likewise.
40498         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
40499         * tests/test-mknod.c (mknod): Likewise.
40500         * tests/test-nanosleep.c (nanosleep): Likewise.
40501         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
40502         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
40503         Likewise.
40504         * tests/test-open.c (open): Likewise.
40505         * tests/test-openat.c (openat): Likewise.
40506         * tests/test-perror.c (perror): Likewise.
40507         * tests/test-pipe2.c (pipe2): Likewise.
40508         * tests/test-poll.c (poll): Likewise.
40509         * tests/test-popen.c (popen, pclose): Likewise.
40510         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
40511         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
40512         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
40513         (posix_spawn_file_actions_destroy)
40514         (posix_spawn_file_actions_addclose)
40515         (posix_spawn_file_actions_addopen)
40516         (posix_spawn_file_actions_adddup2): Likewise.
40517         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
40518         * tests/test-pread.c (pread): Likewise.
40519         * tests/test-printf-posix.c (printf): Likewise.
40520         * tests/test-pty.c (openpty, forkpty): Likewise.
40521         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
40522         (random_r): Likewise.
40523         * tests/test-rawmemchr.c (rawmemchr): Likewise.
40524         * tests/test-readlink.c (readlink): Likewise.
40525         * tests/test-remove.c (remove): Likewise.
40526         * tests/test-rename.c (rename): Likewise.
40527         * tests/test-renameat.c (renameat): Likewise.
40528         * tests/test-rmdir.c (rmdir): Likewise.
40529         * tests/test-round1.c (round): Likewise.
40530         * tests/test-roundf1.c (roundf): Likewise.
40531         * tests/test-roundl.c (roundl): Likewise.
40532         * tests/test-setenv.c (setenv): Likewise.
40533         * tests/test-sigaction.c (sigaction): Likewise.
40534         * tests/test-sleep.c (sleep): Likewise.
40535         * tests/test-snprintf.c (snprintf): Likewise.
40536         * tests/test-sprintf-posix.c (sprintf): Likewise.
40537         * tests/test-stat.c (stat): Likewise.
40538         * tests/test-stpncpy.c (stpncpy): Likewise.
40539         * tests/test-strcasestr.c (strcasestr): Likewise.
40540         * tests/test-strchrnul.c (strchrnul): Likewise.
40541         * tests/test-strerror.c (strerror): Likewise.
40542         * tests/test-strsignal.c (strsignal): Likewise.
40543         * tests/test-strstr.c (strstr): Likewise.
40544         * tests/test-strtod.c (strtod): Likewise.
40545         * tests/test-strverscmp.c (strverscmp): Likewise.
40546         * tests/test-symlink.c (symlink): Likewise.
40547         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
40548         * tests/test-times.c (times): Likewise.
40549         * tests/test-trunc1.c (trunc): Likewise.
40550         * tests/test-truncf1.c (truncf): Likewise.
40551         * tests/test-truncl.c (truncl): Likewise.
40552         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
40553         Likewise.
40554         * tests/test-uname.c (uname): Likewise.
40555         * tests/test-unlink.c (unlink): Likewise.
40556         * tests/test-unlinkat.c (unlinkat): Likewise.
40557         * tests/test-unsetenv.c (unsetenv): Likewise.
40558         * tests/test-usleep.c (usleep): Likewise.
40559         * tests/test-utimensat.c (utimensat): Likewise.
40560         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
40561         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
40562         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
40563         * tests/test-vprintf-posix.c (vprintf): Likewise.
40564         * tests/test-vsnprintf.c (vsnprintf): Likewise.
40565         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
40566         * tests/test-wcrtomb.c (wcrtomb): Likewise.
40567         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
40568         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
40569         * tests/test-wcwidth.c (wcwidth): Likewise.
40570
40571         build: pull in conditional headers during GNULIB_POSIXCHECK
40572         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
40573         definitions from any conditionally-included headers.
40574         * lib/stdlib.in.h (includes): Likewise.
40575         * lib/unistd.in.h (includes): Likewise.
40576
40577 2009-12-24  Bruno Haible  <bruno@clisp.org>
40578
40579         * tests/test-argv-iter.c: Include header file being tested immediately
40580         after config.h.
40581         * tests/test-base64.c: Likewise.
40582         * tests/test-flock.c: Likewise.
40583         * tests/test-fsync.c: Likewise.
40584         * tests/test-getdate.c: Likewise.
40585         * tests/test-getndelim2.c: Likewise.
40586         * tests/test-isfinite.c: Likewise.
40587         * tests/test-isinf.c: Likewise.
40588         * tests/test-strerror.c: Likewise.
40589         * tests/test-strsignal.c: Likewise.
40590
40591 2009-12-23  Eric Blake  <ebb9@byu.net>
40592
40593         unistd: work around cygwin bug
40594         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
40595         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
40596         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40597
40598 2009-12-23  Bruno Haible  <bruno@clisp.org>
40599
40600         localename: More tests.
40601         * tests/test-localename.c (SIZEOF): New macro.
40602         (categories): New variable.
40603         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
40604         test_locale_name_default): Add test w.r.t. thread locale.
40605         (test_locale_name_thread): New function.
40606         (main): Invoke it.
40607
40608         localename: Make aware of thread locale.
40609         * lib/localename.h (gl_locale_name_thread): New declaration.
40610         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
40611         behaviour with respect to thread locale.
40612         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
40613         <langinfo.h>, glthread/lock.h.
40614         (SIZE_BITS): New macro.
40615         (string_hash): New function.
40616         (struct hash_node): New type.
40617         (HASH_TABLE_SIZE): New macro.
40618         (struniq_hash_table, struniq_lock): New variables.
40619         (struniq): New function.
40620         (gl_locale_name_thread): New function.
40621         (gl_locale_name): Invoke it.
40622         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
40623         * modules/localename (Depends-on): Add lock.
40624         Reported by Mike Gran <spk121@yahoo.com>.
40625
40626 2009-12-23  Eric Blake  <ebb9@byu.net>
40627
40628         va-args: new module
40629         * modules/va-args: New file.
40630         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
40631         * MODULES.html.sh (Core language properties): Mention it.
40632
40633         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
40634         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
40635         named alias for __attribute__((__unused__)).
40636         * lib/chown.c: Update client.
40637         * lib/fchmodat.c: Likewise.
40638         * lib/fts.c: Likewise.
40639         * lib/getdate.y: Likewise.
40640         * lib/getgroups.c: Likewise.
40641         * lib/getopt.c: Likewise.
40642         * lib/getugroups.c: Likewise.
40643         * lib/mkdir.c: Likewise.
40644         * lib/mkfifo.c: Likewise.
40645         * lib/mkfifoat.c: Likewise.
40646         * lib/mknod.c: Likewise.
40647         * lib/mknodat.c: Likewise.
40648         * lib/readlink.c: Likewise.
40649         * lib/se-context.in.h: Likewise.
40650         * lib/se-selinux.in.h: Likewise.
40651         * lib/sockets.c: Likewise.
40652         * lib/symlink.c: Likewise.
40653         * lib/symlinkat.c: Likewise.
40654         * lib/unicodeio.c: Likewise.
40655         * lib/unistr.h: Likewise.
40656         * tests/test-areadlink.c: Likewise.
40657         * tests/test-areadlinkat.c: Likewise.
40658         * tests/test-filenamecat.c: Likewise.
40659         * tests/test-fseeko.c: Likewise.
40660         * tests/test-ftello.c: Likewise.
40661         * tests/test-getdate.c: Likewise.
40662         * tests/test-getgroups.c: Likewise.
40663         * tests/test-gethostname.c: Likewise.
40664         * tests/test-quotearg.c: Likewise.
40665         * tests/test-version-etc.c: Likewise.
40666         * tests/test-xalloc-die.c: Likewise.
40667         * tests/test-xfprintf-posix.c: Likewise.
40668         * tests/test-xprintf-posix.c: Likewise.
40669         * tests/test-xvasprintf.c: Likewise.
40670
40671         tests: avoid compiler warnings
40672         * tests/test-fcntl.c (main): Delete unused parameters.
40673         * tests/test-freopen-safer.c (main): Likewise.
40674         * tests/test-xalloc-die.c (main): Mark unused parameters.
40675         * tests/test-fseeko.c (main): Likewise.
40676         * tests/test-ftello.c (main): Likewise.
40677         * tests/test-nanosleep.c (main): Avoid declaration warning.
40678         * tests/test-sleep.c (main): Likewise.
40679         * tests/test-unsetenv.c (main): Silence warning about string
40680         literal.
40681         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
40682
40683 2009-12-23  Bruno Haible  <bruno@clisp.org>
40684
40685         * tests/test-localename.c (test_locale_name): New function, extracted
40686         from main. Also test mixed situations.
40687         (test_locale_name_posix, test_locale_name_environ,
40688         test_locale_name_default): New functions.
40689         (main): Invoke them all.
40690         * modules/localename-tests (configure.ac): Test for newlocale.
40691
40692 2009-12-23  Bruno Haible  <bruno@clisp.org>
40693
40694         unistd: Ensure getcwd gets declared before being overridden.
40695         * lib/unistd.in.h: Conditionally include <io.h>.
40696
40697 2009-12-22  Bruno Haible  <bruno@clisp.org>
40698
40699         wchar: Diagnose broken combination of glibc and gcc versions and flags.
40700         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
40701         (gl_WCHAR_H): Invoke it.
40702         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
40703         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
40704         Reported by Karl Berry <karl@freefriends.org>.
40705
40706 2009-12-22  Eric Blake  <ebb9@byu.net>
40707
40708         math, unistd: avoid redundant includes
40709         * lib/math.in.h (isnan): No need to re-include <math.h>.
40710         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
40711
40712         getsubopt: work around cygwin bug
40713         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
40714         avoid conflicting with system getsubopt.
40715         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
40716         bug.
40717
40718         getopt: synchronize from glibc
40719         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
40720         parameter order.  Adjust all callers.
40721         (_getopt_internal_r, main): Adjust quoting in error messages.
40722         Drop considerations for outdated POSIX 1003.2 error message.
40723         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
40724         callers.
40725         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
40726
40727         test-getopt: test stderr behavior
40728         * modules/getopt-posix-tests (Depends-on): Add dup2.
40729         * tests/test-getopt.c (ASSERT): Avoid stderr.
40730         (main): Move stderr to a temporary file.
40731         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
40732         Instead, add parameter to inform caller if output occurred.
40733         (test_getopt): Adjust all existing tests to expect silence, and
40734         add new tests of leading ":".
40735         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40736         glibc shortcomings with leading "-:" or "+:" in optstring.
40737         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40738         Likewise.
40739         * doc/posix-functions/getopt.texi (getopt): Likewise.
40740
40741         test-getopt: enhance test
40742         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
40743         supports optind=0.
40744         * tests/test-getopt.c (OPTIND_MIN): Move...
40745         * tests/test-getopt.h (OPTIND_MIN): ...here.
40746         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
40747         Require that optind=0 works, since modern BSD supports it in
40748         addition to optreset, and since coreutils expects it.
40749         (test_getopt_long_only): New test.
40750         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
40751         glibc shortcomings with 'W;', and enforcement of optind=0.
40752         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40753         Likewise.
40754
40755 2009-12-21  Bruno Haible  <bruno@clisp.org>
40756
40757         localename: Improvements for MacOS X and Cygwin.
40758         * lib/localename.h (gl_locale_name_environ): New declaration.
40759         * lib/localename.c (gl_locale_name_environ): New function, extracted from
40760         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
40761         (gl_locale_name_posix): Invoke it.
40762         (gl_locale_name_default): Add comments. Use Windows native API also on
40763         Cygwin.
40764
40765 2009-12-21  Bruno Haible  <bruno@clisp.org>
40766
40767         Update list of Win32 locale ids.
40768         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
40769         (LANG_SAMI): Renamed from LANG_SAAMI.
40770         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
40771         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
40772         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
40773         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
40774         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
40775         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
40776         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
40777         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
40778         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
40779         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
40780         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
40781         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
40782         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
40783         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
40784         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
40785         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
40786         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
40787         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
40788         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
40789         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
40790         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
40791         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
40792         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
40793         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
40794         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
40795         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
40796         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
40797         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
40798         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
40799         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
40800         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
40801         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
40802         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
40803         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
40804         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
40805         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
40806         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
40807         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
40808         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
40809         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
40810         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40811         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40812         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40813         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40814         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40815         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40816         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40817         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40818         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40819         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40820         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40821         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40822         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40823         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40824         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40825         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40826         Add more languages and countries for Sami, Sorbian. Add more countries
40827         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40828         for Pashto. Change country for Syriac, Tswana.
40829
40830 2009-12-21  Eric Blake  <ebb9@byu.net>
40831
40832         test-utimens: avoid spurious failure
40833         * tests/test-chown.h (nap): Factor...
40834         * tests/nap.h: ...into new file.
40835         * tests/test-lchown.h (nap): Avoid duplication.
40836         * tests/test-utimens-common.h (nap): Use shared implementation,
40837         necessary on file systems with 1-second resolution.
40838         * modules/chown-tests (Files): Include new file.
40839         * modules/fdutimensat-tests (Files): Likewise.
40840         * modules/futimens-tests (Files): Likewise.
40841         * modules/lchown-tests (Files): Likewise.
40842         * modules/openat-tests (Files): Likewise.
40843         * modules/utimens-tests (Files): Likewise.
40844         * modules/utimensat-tests (Files): Likewise.
40845
40846 2009-12-19  Eric Blake  <ebb9@byu.net>
40847
40848         futimens, utimensat: work around Linux bug
40849         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40850         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40851         * lib/utimensat.c (rpl_utimensat): Work around it.
40852         * lib/futimens.c (rpl_futimens): Adjust comment.
40853
40854         utimens: work around Linux ctime bug
40855         * lib/utimens.c (detect_ctime_bug): New helper function.
40856         (update_timespec): Differentiate between workaround needed for
40857         this bug vs. what is needed for systems that lack utimensat.
40858         (fdutimens, lutimens): Work around bug.
40859
40860         utimens: check for ctime update
40861         * tests/test-utimens-common.h (check_ctime): Define.
40862         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40863         * tests/test-futimens.h (test_futimens): Likewise.
40864         * tests/test-lutimens.h (test_lutimens): Likewise.
40865         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40866         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40867
40868 2009-12-19  Bruno Haible  <bruno@clisp.org>
40869
40870         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40871         * tests/test-dprintf-posix2.sh: New file.
40872         * tests/test-dprintf-posix2.c: New file.
40873         * modules/dprintf-posix-tests (Files): Add them.
40874         (configure.ac): Check for getrlimit and setrlimit.
40875         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40876
40877 2009-12-19  Bruno Haible  <bruno@clisp.org>
40878
40879         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40880         * tests/test-fprintf-posix3.sh: New file.
40881         * tests/test-fprintf-posix3.c: New file.
40882         * modules/fprintf-posix-tests (Files): Add them.
40883         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40884
40885 2009-12-19  Eric Blake  <ebb9@byu.net>
40886
40887         dirfd: fix prototype
40888         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40889         * lib/dirfd.c (dirfd): Likewise.
40890
40891         canonicalize: reduce memory usage
40892         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40893         allocation to size.
40894         Reported by Solar Designer <solar@openwall.com>.
40895
40896 2009-12-19  Bruno Haible  <bruno@clisp.org>
40897
40898         New module attribute 'Applicability'.
40899         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40900         * gnulib-tool: New option --extract-applicability.
40901         (func_usage): Document it.
40902         (sed_extract_prog): Recognize it.
40903         (func_get_applicability): New function.
40904         (func_import): Generalize handling of 'link-warning' module.
40905         * modules/link-warning (Applicability): New section.
40906         * modules/arg-nonnull (Applicability): New section.
40907         Repoted by Simon Josefsson <simon@josefsson.org>.
40908
40909 2009-12-19  Bruno Haible  <bruno@clisp.org>
40910
40911         fflush: tweak
40912         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40913         * lib/fseeko.c (rpl_fseeko): Likewise.
40914
40915 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40916
40917         * lib/gl_list.h: Fix typo in comment.
40918
40919 2009-12-16  Eric Blake  <ebb9@byu.net>
40920
40921         fcntl: use to simplify other modules
40922         * modules/cloexec (Depends-on): Add fcntl.
40923         * modules/fchdir (Depends-on): Likewise.
40924         * modules/fd-safer-flag (Depends-on): Likewise.
40925         * modules/unistd-safer (Depends-on): Likewise.
40926         * modules/dup3 (configure.ac): Set module indicator.
40927         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40928         missing.
40929         * lib/fchdir.c (_gl_register_dup): Fix comment.
40930         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40931         * lib/dup-safer.c (dup_safer): Likewise.
40932         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40933         * lib/dup3.c (dup3): Likewise.
40934         * tests/test-fchdir.c (main): Enhance test.
40935         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40936
40937         fcntl: port portions of fcntl to mingw
40938         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40939         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40940         replacement for mingw.
40941         * modules/fcntl (Description): Update.
40942         (Depends-on): Add dup2.
40943         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40944         * modules/fcntl-h (Makefile.am): Substitute it.
40945         * lib/fcntl.in.h (fcntl): Update declaration.
40946         (F_DUPFD, F_GETFD): New macros, when needed.
40947         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40948         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40949         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40950         we now guarantee.
40951
40952         fcntl: work around cygwin bug in F_DUPFD
40953         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40954         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40955         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40956         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40957         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40958
40959         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40960         * modules/fcntl (Files): List new files.
40961         (configure.ac): Run a test.
40962         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40963         * lib/fcntl.c (rpl_fcntl): Likewise.
40964         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40965         (gl_FCNTL_H): Always replace fcntl.h.
40966         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40967         * lib/fcntl.in.h (fcntl): Declare replacement.
40968         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40969         needed, plus a witness.
40970         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40971         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40972         * tests/test-fcntl.c: New file.
40973         * modules/fcntl-tests: Likewise.
40974
40975         binary-io: avoid potential compilation warning
40976         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40977         directives.
40978
40979         fflush: avoid compilation error on NetBSD
40980         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40981         between off_t and fpos_t, since the latter is sometimes a struct.
40982         * lib/fseeko.c (rpl_fseeko): Likewise.
40983         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40984
40985 2009-12-15  Eric Blake  <ebb9@byu.net>
40986
40987         fcntl-h, stdio, sys_ioctl: fix declarations
40988         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40989         function must not take arguments.
40990         * lib/sys_ioctl.in.h (ioctl): Likewise.
40991         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40992         (open): Add a link warning.
40993
40994 2009-12-15  Jim Meyering  <meyering@redhat.com>
40995
40996         areadlink, areadlink-with-size: relax license to LGPLv2+
40997         * modules/areadlink (License): Relax to LGPLv2+.
40998         * modules/areadlink-with-size (License): Likewise.
40999
41000 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
41001             Bruno Haible  <bruno@clisp.org>
41002
41003         *printf: Fix memory leak.
41004         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
41005         * lib/vfprintf.c (vfprintf): Likewise.
41006         * lib/dprintf.c (dprintf): Likewise.
41007         * lib/vdprintf.c (vdprintf): Likewise.
41008
41009 2009-12-14  Eric Blake  <ebb9@byu.net>
41010
41011         accept4: adjust module dependencies
41012         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
41013
41014         utimens: one more try at avoiding compiler warning
41015         * lib/utimens.c (lutimens): Lower scope of result.
41016
41017 2009-12-13  Bruno Haible  <bruno@clisp.org>
41018
41019         Move the malloc checking from module 'list' to new module 'xlist'.
41020         * modules/xlist: New file.
41021         * lib/gl_xlist.h: New file.
41022         * lib/gl_xlist.c: New file.
41023         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
41024         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
41025         gl_list_add_last, gl_list_add_before, gl_list_add_after,
41026         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
41027         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
41028         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
41029         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
41030         gl_sortedlist_nx_add): New declarations.
41031         (struct gl_list_implementation): Rename and change methods accordingly.
41032         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
41033         (gl_list_nx_create): Renamed from gl_list_create.
41034         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41035         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41036         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41037         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41038         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41039         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41040         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41041         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41042         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
41043         gl_list_create_empty.
41044         (gl_list_nx_create): Renamed from gl_list_create.
41045         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
41046         (gl_list_nx_set_at): Renamed from gl_list_set_at.
41047         (gl_list_nx_add_first): Renamed from gl_list_add_first.
41048         (gl_list_nx_add_last): Renamed from gl_list_add_last.
41049         (gl_list_nx_add_before): Renamed from gl_list_add_before.
41050         (gl_list_nx_add_after): Renamed from gl_list_add_after.
41051         (gl_list_nx_add_at): Renamed from gl_list_add_at.
41052         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
41053         * lib/gl_array_list.c: Don't include xalloc.h.
41054         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
41055         NULL upon out-of-memory.
41056         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
41057         out-of-memory.
41058         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
41059         Change return type to 'int'.
41060         (gl_array_nx_set_at): Renamed from gl_array_set_at.
41061         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41062         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
41063         upon out-of-memory.
41064         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
41065         upon out-of-memory.
41066         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
41067         upon out-of-memory.
41068         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
41069         upon out-of-memory.
41070         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
41071         out-of-memory.
41072         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
41073         Update.
41074         (gl_array_list_implementation): Update.
41075         * lib/gl_carray_list.c: Don't include xalloc.h.
41076         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
41077         Return NULL upon out-of-memory.
41078         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
41079         out-of-memory.
41080         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
41081         Change return type to 'int'.
41082         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
41083         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
41084         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
41085         upon out-of-memory.
41086         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
41087         upon out-of-memory.
41088         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
41089         out-of-memory.
41090         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
41091         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
41092         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
41093         Update.
41094         (gl_carray_list_implementation): Update.
41095         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
41096         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
41097         gl_linked_create_empty. Return NULL upon out-of-memory.
41098         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
41099         out-of-memory.
41100         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
41101         Change return type to 'int'. Return -1 upon out-of-memory.
41102         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
41103         out-of-memory.
41104         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
41105         upon out-of-memory.
41106         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
41107         upon out-of-memory.
41108         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
41109         NULL upon out-of-memory.
41110         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
41111         upon out-of-memory.
41112         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
41113         out-of-memory.
41114         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
41115         Update.
41116         * lib/gl_linked_list.c: Don't include xalloc.h.
41117         (gl_linked_list_implementation): Update.
41118         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
41119         (add_to_bucket): Change return type to 'int'.
41120         (gl_linkedhash_list_implementation): Update.
41121         * lib/gl_anytree_list1.h (free_subtree): New function.
41122         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
41123         gl_tree_create_empty. Return NULL upon out-of-memory.
41124         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
41125         Change return type to 'int'. Return -1 upon out-of-memory.
41126         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
41127         out-of-memory.
41128         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
41129         (gl_tree_remove_node): New function, moved here from
41130         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
41131         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
41132         Update.
41133         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
41134         malloc, not xmalloc. Return NULL upon out-of-memory.
41135         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41136         out-of-memory.
41137         (gl_tree_remove_node_from_tree): New function, extracted from
41138         gl_tree_remove_node.
41139         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41140         upon out-of-memory.
41141         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41142         out-of-memory.
41143         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41144         upon out-of-memory.
41145         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41146         upon out-of-memory.
41147         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41148         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
41149         not xmalloc. Return NULL upon out-of-memory.
41150         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
41151         out-of-memory.
41152         (gl_tree_remove_node_from_tree): New function, extracted from
41153         gl_tree_remove_node.
41154         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
41155         upon out-of-memory.
41156         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
41157         out-of-memory.
41158         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
41159         upon out-of-memory.
41160         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
41161         upon out-of-memory.
41162         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
41163         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
41164         gl_anytree_list1.h before gl_anyavltree_list2.h.
41165         (gl_avltree_list_implementation): Update.
41166         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
41167         gl_anytree_list1.h before gl_anyavltree_list2.h.
41168         (gl_rbtree_list_implementation): Update.
41169         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
41170         Change return type to 'int'. Return -1 upon out-of-memory. Use
41171         __builtin_expect.
41172         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
41173         (gl_avltreehash_list_implementation): Update.
41174         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
41175         (gl_rbtreehash_list_implementation): Update.
41176         * modules/array-list (Depends-on): Remove xalloc.
41177         * modules/carray-list (Depends-on): Likewise.
41178         * modules/linked-list (Depends-on): Likewise.
41179         * modules/linkedhash-list (Depends-on): Likewise.
41180         * modules/avltree-list (Depends-on): Likewise.
41181         * modules/rbtree-list (Depends-on): Likewise.
41182         * modules/avltreehash-list (Depends-on): Likewise.
41183         * modules/rbtreehash-list (Depends-on): Likewise.
41184
41185         * modules/xsublist: New file.
41186         * lib/gl_xsublist.h: New file.
41187         * lib/gl_xsublist.c: New file.
41188         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
41189         (gl_sublist_nx_create): New declaration.
41190         * lib/gl_sublist.c: Don't include xalloc.h.
41191         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
41192         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
41193         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
41194         Change return type to 'int'. Return -1 upon out-of-memory.
41195         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
41196         upon out-of-memory.
41197         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
41198         NULL upon out-of-memory.
41199         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
41200         upon out-of-memory.
41201         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
41202         NULL upon out-of-memory.
41203         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
41204         NULL upon out-of-memory.
41205         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
41206         upon out-of-memory.
41207         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
41208         (gl_sublist_list_implementation): Update.
41209         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
41210         upon out-of-memory.
41211         * modules/sublist (Depends-on): Remove xalloc.
41212
41213         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
41214         * tests/test-carray_list.c: Likewise.
41215         * tests/test-linked_list.c: Likewise.
41216         * tests/test-linkedhash_list.c: Likewise.
41217         * tests/test-avltree_list.c: Likewise.
41218         * tests/test-rbtree_list.c: Likewise.
41219         * tests/test-avltreehash_list.c: Likewise.
41220         * tests/test-rbtreehash_list.c: Likewise.
41221         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
41222         * modules/carray-list-tests (Makefile.am): Likewise.
41223         * modules/linked-list-tests (Makefile.am): Likewise.
41224         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41225         * modules/avltree-list-tests (Makefile.am): Likewise.
41226         * modules/rbtree-list-tests (Makefile.am): Likewise.
41227         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41228         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41229
41230         * NEWS: Mention the changes.
41231
41232         * lib/clean-temp.c: Include gl_xlist.h.
41233         * modules/clean-temp (Depends-on): Add xlist.
41234
41235         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
41236         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
41237
41238         * tests/test-array_oset.c: Include gl_xlist.h.
41239         * modules/array-oset-tests (Depends-on): Add xlist.
41240
41241         Reported by José E. Marchesi <jemarch@gnu.org>.
41242
41243 2009-12-13  Bruno Haible  <bruno@clisp.org>
41244
41245         Move the malloc checking from module 'oset' to new module 'xoset'.
41246         * modules/xoset: New file.
41247         * lib/gl_xoset.h: New file.
41248         * lib/gl_xoset.c: New file.
41249         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
41250         declarations.
41251         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
41252         (struct gl_oset_implementation): Rename and change methods accordingly.
41253         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
41254         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41255         'int'. Mark as __warn_unused_result__.
41256         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
41257         gl_oset_create_empty.
41258         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
41259         'int'.
41260         * lib/gl_array_oset.c: Don't include xalloc.h.
41261         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
41262         malloc, not xmalloc.
41263         (grow): Change return type to 'int'. Don't call xalloc_die.
41264         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
41265         to 'int'.
41266         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
41267         'int'.
41268         (gl_array_oset_implementation): Update.
41269         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
41270         gl_tree_create_empty.
41271         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
41272         'int'.
41273         * lib/gl_avltree_oset.c: Don't include xalloc.h.
41274         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41275         xmalloc.
41276         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41277         not xmalloc.
41278         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41279         xmalloc.
41280         (gl_avltree_oset_implementation): Update.
41281         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
41282         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
41283         xmalloc.
41284         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
41285         not xmalloc.
41286         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
41287         xmalloc.
41288         (gl_rbtree_oset_implementation): Update.
41289         * modules/array-oset (Depends-on): Remove xalloc.
41290         * modules/avltree-oset (Depends-on): Likewise.
41291         * modules/rbtree-oset (Depends-on): Likewise.
41292         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
41293         * tests/test-avltree_oset.c: Likewise.
41294         * tests/test-rbtree_oset.c: Likewise.
41295         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
41296         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
41297         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41298         * NEWS: Mention the change.
41299
41300 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
41301
41302         maint.mk: allow a project to override release-prep commands
41303         * top/maint.mk (alpha, beta, stable): Move release-preparatory
41304         commands into a new rule.
41305         (release-prep): New rule.
41306         (release-prep-hook): New overridable variable.
41307
41308 2009-12-13  Bruno Haible  <bruno@clisp.org>
41309
41310         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
41311
41312 2009-12-13  Jim Meyering  <meyering@redhat.com>
41313
41314         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
41315         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
41316
41317 2009-12-12  Bruno Haible  <bruno@clisp.org>
41318
41319         duplocale: Tweak.
41320         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
41321
41322 2009-12-12  Karl Berry  <karl@gnu.org>
41323
41324         * config/srclist.txt (strtoll.c): tab changes, no more sync.
41325
41326 2009-12-12  Bruno Haible  <bruno@clisp.org>
41327
41328         * m4/po.m4: Undo incorrect untabification.
41329
41330 2009-12-12  Bruno Haible  <bruno@clisp.org>
41331
41332         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
41333         * modules/c-strtod (Depends-on): Add locale.
41334         * modules/c-strtold (Depends-on): Likewise.
41335
41336 2009-12-12  Bruno Haible  <bruno@clisp.org>
41337
41338         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
41339
41340 2009-12-11  Eric Blake  <ebb9@byu.net>
41341
41342         setenv: relax requirement in light of POSIX ruling
41343         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
41344         not NULL.
41345         * tests/test-setenv.c (main): Relax test.
41346         * tests/test-unsetenv.c (main): Likewise.
41347         * doc/posix-functions/setenv.texi (setenv): Document this.
41348         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41349
41350 2009-12-11  Bruno Haible  <bruno@clisp.org>
41351
41352         New module 'fd-safer-flag'.
41353         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
41354         * lib/dup-safer.c (dup_safer_flag): Remove function.
41355         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
41356         * lib/fd-safer.c (fd_safer_flag): Remove function.
41357         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
41358         * modules/cloexec (configure.ac): Drop indicator macro.
41359         * modules/fd-safer-flag: New file.
41360         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
41361         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
41362         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
41363
41364 2009-12-11  Bruno Haible  <bruno@clisp.org>
41365
41366         Tests for module 'nl_langinfo'.
41367         * modules/nl_langinfo-tests: New file.
41368         * tests/test-nl_langinfo.sh: New file.
41369         * tests/test-nl_langinfo.c: New file.
41370
41371         New module 'nl_langinfo'.
41372         * lib/nl_langinfo.c: New file.
41373         * m4/nl_langinfo.m4: New file.
41374         * modules/nl_langinfo: New file.
41375         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
41376
41377 2009-12-11  Bruno Haible  <bruno@clisp.org>
41378
41379         Tests for module 'langinfo'.
41380         * modules/langinfo-tests: New file.
41381         * tests/test-langinfo.c: New file.
41382
41383         New module 'langinfo'.
41384         * lib/langinfo.in.h: New file.
41385         * m4/langinfo_h.m4: New file.
41386         * modules/langinfo: New file.
41387         * doc/posix-headers/langinfo.texi: Mention the new module.
41388
41389 2009-12-11  Bruno Haible  <bruno@clisp.org>
41390
41391         * lib/config.charset: Untabify.
41392
41393 2009-12-11  Bruno Haible  <bruno@clisp.org>
41394
41395         * modules/unistd-safer (configure.ac): Drop indicator macro.
41396
41397 2009-12-11  Bruno Haible  <bruno@clisp.org>
41398
41399         Move pipe2-safer code to its own file.
41400         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
41401         * lib/pipe-safer.c (pipe2_safer): Remove function.
41402         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
41403         (Makefile.am): Add it to lib_SOURCES.
41404
41405 2009-12-10  Bruno Haible  <bruno@clisp.org>
41406
41407         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
41408
41409 2009-12-10  Bruno Haible  <bruno@clisp.org>
41410
41411         Declare which arguments expect non-NULL values, for GCC and clang.
41412         * build-aux/arg-nonnull.h: New file.
41413         * modules/arg-nonnull: New file.
41414         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
41415         (inet_ntop, inet_pton): Use it.
41416         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
41417         (closedir, dirfd, opendir, scandir, alphasort): Use it.
41418         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
41419         (open, openat): Use it.
41420         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
41421         (fnmatch): Use it.
41422         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
41423         (getopt, getopt_long, getopt_long_only): Use it.
41424         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
41425         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
41426         Use it.
41427         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
41428         (iconv_open): Use it.
41429         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
41430         (strtoimax, strtoumax): Use it.
41431         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
41432         (duplocale): Use it.
41433         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
41434         (frexp, frexpl): Use it.
41435         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
41436         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
41437         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
41438         (tsearch, tfind, tdelete, twalk): Use it.
41439         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
41440         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
41441         sigpending): Use it.
41442         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
41443         (posix_spawn, posix_spawnp, posix_spawnattr_init,
41444         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
41445         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
41446         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
41447         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
41448         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
41449         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
41450         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
41451         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
41452         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
41453         Use it.
41454         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
41455         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
41456         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
41457         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
41458         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
41459         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
41460         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
41461         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
41462         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
41463         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
41464         strtoull, unsetenv): Use it.
41465         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
41466         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
41467         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
41468         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
41469         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
41470         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
41471         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
41472         (strcasecmp, strncasecmp): Use it.
41473         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
41474         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
41475         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
41476         rpl_setsockopt): Use it.
41477         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
41478         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
41479         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
41480         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
41481         (gettimeofday): Use it.
41482         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
41483         (times): Use it.
41484         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
41485         (uname): Use it.
41486         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
41487         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
41488         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
41489         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
41490         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
41491         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
41492         unlinkat, write): Use it.
41493         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
41494         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
41495         * lib/argv-iter.h: Include arg-nonnull.h.
41496         (_ATTRIBUTE_NONNULL_): Remove macro.
41497         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
41498         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
41499         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
41500         optimization.
41501         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
41502         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
41503         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
41504         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
41505         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
41506         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
41507         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
41508         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
41509         * modules/arpa_inet (Depends-on): Add arg-nonnull.
41510         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
41511         * modules/dirent (Depends-on): Add arg-nonnull.
41512         (Makefile.am): Insert arg-nonnull.h into dirent.h.
41513         * modules/fcntl-h (Depends-on): Add arg-nonnull.
41514         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
41515         * modules/fnmatch (Depends-on): Add arg-nonnull.
41516         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
41517         * modules/getopt-posix (Depends-on): Add arg-nonnull.
41518         (Makefile.am): Insert arg-nonnull.h into getopt.h.
41519         * modules/glob (Depends-on): Add arg-nonnull.
41520         (Makefile.am): Insert arg-nonnull.h into glob.h.
41521         * modules/iconv_open (Depends-on): Add arg-nonnull.
41522         (Makefile.am): Insert arg-nonnull.h into iconv.h.
41523         * modules/inttypes (Depends-on): Add arg-nonnull.
41524         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
41525         * modules/locale (Depends-on): Add arg-nonnull.
41526         (Makefile.am): Insert arg-nonnull.h into locale.h.
41527         * modules/math (Depends-on): Add arg-nonnull.
41528         (Makefile.am): Insert arg-nonnull.h into math.h.
41529         * modules/netdb (Depends-on): Add arg-nonnull.
41530         (Makefile.am): Insert arg-nonnull.h into netdb.h.
41531         * modules/search (Depends-on): Add arg-nonnull.
41532         (Makefile.am): Insert arg-nonnull.h into search.h.
41533         * modules/signal (Depends-on): Add arg-nonnull.
41534         (Makefile.am): Insert arg-nonnull.h into signal.h.
41535         * modules/spawn (Depends-on): Add arg-nonnull.
41536         (Makefile.am): Insert arg-nonnull.h into spawn.h.
41537         * modules/stdio (Depends-on): Add arg-nonnull.
41538         (Makefile.am): Insert arg-nonnull.h into stdio.h.
41539         * modules/stdlib (Depends-on): Add arg-nonnull.
41540         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
41541         * modules/string (Depends-on): Add arg-nonnull.
41542         (Makefile.am): Insert arg-nonnull.h into string.h.
41543         * modules/strings (Depends-on): Add arg-nonnull.
41544         (Makefile.am): Insert arg-nonnull.h into strings.h.
41545         * modules/sys_socket (Depends-on): Add arg-nonnull.
41546         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
41547         * modules/sys_stat (Depends-on): Add arg-nonnull.
41548         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
41549         * modules/sys_time (Depends-on): Add arg-nonnull.
41550         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
41551         * modules/sys_times (Depends-on): Add arg-nonnull.
41552         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
41553         * modules/sys_utsname (Depends-on): Add arg-nonnull.
41554         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
41555         * modules/time (Depends-on): Add arg-nonnull.
41556         (Makefile.am): Insert arg-nonnull.h into time.h.
41557         * modules/unistd (Depends-on): Add arg-nonnull.
41558         (Makefile.am): Insert arg-nonnull.h into unistd.h.
41559         * modules/wchar (Depends-on): Add arg-nonnull.
41560         (Makefile.am): Insert arg-nonnull.h into wchar.h.
41561         * modules/argv-iter (Depends-on): Add arg-nonnull.
41562         * tests/test-canonicalize.c (null_ptr): New function.
41563         (main): Use it.
41564         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
41565         (main): Use it.
41566         * tests/test-memmem.c (null_ptr): New function.
41567         (main): Use it.
41568         Reported by Jim Meyering.
41569
41570 2009-12-10  Bruno Haible  <bruno@clisp.org>
41571
41572         Use spaces for indentation, not tabs.
41573         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
41574         * m4/*.m4: Untabify.
41575         * build-aux/*.h: Untabify.
41576         * tests/**/*.[hc]: Untabify.
41577         * README: New section "Indent with spaces, not TABs", based on
41578         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
41579         * NEWS: Mention the change.
41580
41581 2009-12-10  Bruno Haible  <bruno@clisp.org>
41582
41583         pty test: Fix link error.
41584         * modules/pty-tests (Makefile.am): Add the default LDADD value to
41585         test_pty_LDADD.
41586
41587 2009-12-07  Simon Josefsson  <simon@josefsson.org>
41588
41589         * modules/pty: New file.
41590         * modules/pty-tests: New file.
41591         * m4/pty.m4: New file.
41592         * tests/test-pty.c: New file.
41593         * doc/glibc-headers/pty.texi: Modified.
41594         * doc/glibc-functions/forkpty.texi: Modified.
41595         * doc/glibc-functions/openpty.texi: Modified.
41596
41597 2009-12-10  Bruno Haible  <bruno@clisp.org>
41598
41599         Avoid syntax error in C++ mode.
41600         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
41601
41602 2009-12-10  Bruno Haible  <bruno@clisp.org>
41603
41604         Use sed with option -e.
41605         * gnulib-tool (func_version, func_emit_copyright_notice,
41606         func_emit_initmacro_end, func_import, func_create_testdir): Pass
41607         option -e to sed.
41608         * modules/link-warning (Makefile.am): Likewise.
41609
41610 2009-12-10  Jim Meyering  <meyering@redhat.com>
41611
41612         mgetgroups: do not write bytes beyond end of malloc'd buffer
41613         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
41614         username, we call getgroups with a one-element-shorter buffer,
41615         but still told it the length was original, max_n_groups.
41616
41617 2009-12-09  Eric Blake  <ebb9@byu.net>
41618
41619         cloexec: relax license
41620         * modules/cloexec (Maintainer): Add myself.
41621         (License): Use LGPL, not GPL.
41622
41623         link-warning: optimize generation
41624         * modules/link-warning (Makefile.am): Reduce process usage.
41625
41626 2009-12-09  Bruno Haible  <bruno@clisp.org>
41627
41628         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
41629         workaround was added on 2009-11-17.
41630
41631 2009-12-09  Jim Meyering  <meyering@redhat.com>
41632             Bruno Haible  <bruno@clisp.org>
41633
41634         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
41635         * modules/link-warning (Makefile.am): Make the comment-removing sed
41636         command more robust in the face of bootstrap-prepended comment lines.
41637
41638 2009-12-09  Bruno Haible  <bruno@clisp.org>
41639
41640         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
41641         most one group.
41642
41643 2009-12-09  Simon Josefsson <simon@josefsson.org>
41644             Bruno Haible  <bruno@clisp.org>
41645
41646         * build-aux/link-warning.h: Add copyright notice.
41647         * modules/link-warning (Makefile.am): Generate link-warning.h from
41648         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
41649         * NEWS: Mention change in link-warning module.
41650         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
41651         * modules/dirent (Makefile.am): Add dependency to dirent.h.
41652         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
41653         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
41654         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
41655         * modules/math (Makefile.am): Add dependency to math.h.
41656         * modules/search (Makefile.am): Add dependency to search.h.
41657         * modules/signal (Makefile.am): Add dependency to signal.h.
41658         * modules/spawn (Makefile.am): Add dependency to spawn.h.
41659         * modules/stdio (Makefile.am): Add dependency to stdio.h.
41660         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
41661         * modules/string (Makefile.am): Add dependency to string.h.
41662         * modules/strings (Makefile.am): Add dependency to strings.h.
41663         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
41664         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
41665         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
41666         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
41667         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
41668         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
41669         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
41670         * modules/unistd (Makefile.am): Add dependency to unistd.h.
41671         * modules/wchar (Makefile.am): Add dependency to wchar.h.
41672
41673 2009-12-09  Bruno Haible  <bruno@clisp.org>
41674
41675         fchdir: Optimize away rpl_fstat when possible.
41676         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
41677         REPLACE_OPEN_DIRECTORY.
41678         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
41679
41680 2009-12-09  Bruno Haible  <bruno@clisp.org>
41681
41682         * lib/fchdir.c: Update comment.
41683
41684 2009-12-09  Bruno Haible  <bruno@clisp.org>
41685
41686         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
41687
41688 2009-12-08  Eric Blake  <ebb9@byu.net>
41689
41690         fchdir: avoid memory leak on re-registration.
41691         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
41692
41693 2009-12-08  Jim Meyering  <meyering@redhat.com>
41694
41695         init.sh: avoid Solaris 10 /bin/sh portability problem
41696         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
41697         sourced script:
41698           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
41699           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
41700           bar
41701         tests/init.sh relied on that, accepting a --set-path=DIR argument,
41702         and two tests used that idiom.
41703         * tests/init.sh: Update suggested usage comments.
41704         (path_prepend_): New function, to be used in place
41705         of the --src-path=DIR option.
41706         (setup_): Move PATH-prepending code into path_prepend_.
41707         * tests/test-pread.sh: Adapt to new usage.
41708         * tests/test-xalloc-die.sh: Likewise.
41709
41710 2009-12-08  Simon Josefsson  <simon@josefsson.org>
41711
41712         * doc/gnulib.texi (Glibc pty.h): Add.
41713         * doc/glibc-functions/forkpty.texi: Add.
41714         * doc/glibc-functions/openpty.texi: Add.
41715         Suggested by Bruno Haible.
41716
41717 2009-12-08  Eric Blake  <ebb9@byu.net>
41718
41719         fchdir: fix logic bugs
41720         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
41721         * tests/test-fchdir.c (main): Enhance test.
41722         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
41723         is in use.
41724
41725         dup2: fix logic bugs
41726         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
41727         REPLACE_DUP2 to decide when rpl_dup2 is needed.
41728         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
41729         exists.
41730         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
41731
41732 2009-12-07  Eric Blake  <ebb9@byu.net>
41733
41734         unlink: fix m4 detection
41735         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
41736
41737         unistd-safer: add unit test
41738         * modules/unistd-safer-tests: New file.
41739         * tests/test-dup-safer.c: Likewise.
41740         * tests/test-cloexec.c (setmode): Avoid compiler warning.
41741         * tests/test-dup2.c (setmode): Likewise.
41742         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
41743
41744         cloexec: preserve text vs. binary across dup_cloexec
41745         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
41746         mode.
41747         * modules/dup2-tests (Depends-on): Add binary-io.
41748         * modules/cloexec-tests (Depends-on): Likewise.
41749         * tests/test-dup2.c (setmode, is_mode): New helpers.
41750         (main): Add tests that translation mode is preserved.
41751         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
41752         Reported by Bruno Haible.
41753
41754         mgetgroups: reduce duplicate listings
41755         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
41756         resulting array.
41757         * tests/test-chown.h (test_chown): Simplify client.
41758         * tests/test-lchown.h (test_lchown): Likewise.
41759
41760 2009-12-06  Bruno Haible  <bruno@clisp.org>
41761
41762         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
41763         value.
41764
41765 2009-12-06  Bruno Haible  <bruno@clisp.org>
41766
41767         * lib/progname.c: Include stdio.h, stdlib.h.
41768         (set_program_name): Reject a NULL argument.
41769
41770 2009-12-05  Eric Blake  <ebb9@byu.net>
41771
41772         pipe2-safer: new module
41773         * modules/pipe2-safer: New file.
41774         * lib/unistd-safer.h (pipe2_safer): New prototype.
41775         * lib/unistd--.h (pipe2): New wrapper.
41776         * lib/pipe-safer.c (pipe2_safer): New function.
41777         * modules/pipe (Depends-on): Add pipe2-safer.
41778         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
41779
41780         stdlib-safer: preserve cloexec flag for mkostemp[s]
41781         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
41782         fd_safer_flag.
41783
41784         unistd-safer: allow preservation of cloexec status via flag
41785         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
41786         prototypes.
41787         * lib/dup-safer.c (dup_safer_flag): New function.
41788         * lib/fd-safer.c (fd_safer_flag): Likewise.
41789         * modules/cloexec (configure.ac): Set witness.
41790
41791         test-dup2: enhance test
41792         * modules/dup2-tests (Depends-on): Add cloexec.
41793         * tests/test-dup2.c (main): Enhance test.
41794
41795         cloexec: add dup_cloexec
41796         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
41797         header and comments.
41798         * lib/cloexec.c (set_cloexec_flag): Add comments.
41799         (dup_cloexec): New function, with mingw implementation borrowed
41800         from...
41801         * lib/w32spawn.h (dup_noinherit): ...here.
41802         * modules/execute (Depends-on): Add cloexec.
41803         * modules/pipe (Depends-on): Likewise.
41804         * modules/cloexec (Depends-on): Add dup2.
41805         * modules/cloexec-tests (Files): New file.
41806         * tests/test-cloexec.c: Likewise.
41807
41808         test-xalloc-die: fix test for mingw
41809         * modules/xalloc-die-tests (Files): Add tests/init.sh.
41810         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41811         directory and .exe suffix off argv[0] output.
41812
41813         test-fseeko: fix test for mingw
41814         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41815         than undefining fseek, so test will pass on mingw.
41816
41817 2009-12-05  Bruno Haible  <bruno@clisp.org>
41818
41819         * lib/progname.h (set_program_name): Clarify specification.
41820         * lib/progname.c (set_program_name): Likewise.
41821         Reported by Jim Meyering.
41822
41823 2009-12-05  Jim Meyering  <meyering@redhat.com>
41824
41825         maint.mk: backslash-escape parens in default regexp
41826         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41827         backslash-escape the literal parentheses.
41828
41829         maint.mk: news-date-check: use grep -E
41830         * top/maint.mk (today): Define a Make variable, not a...
41831         (news-date-check): ...shell variable.
41832         (news-date-regexp): Use the Make variable.
41833         Use grep's -E option.  Change the failing diagnostic to mention
41834         the variable, $(news-date-regexp).
41835
41836 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41837
41838         maintainer-makefile: allow customization of NEWS entry format
41839         * top/maint.mk (news-date-regexp): New overridable variable.
41840         (news-date-check): Use it.
41841
41842 2009-12-04  Eric Blake  <ebb9@byu.net>
41843
41844         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41845         * lib/mgetgroups.h (xgetgroups): New prototype.
41846         * lib/mgetgroups.c (xgetgroups): New wrapper.
41847         (mgetgroups): Handle ENOSYS.
41848         * modules/mgetgroups (Depends-on): Add realloc.
41849         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41850
41851         mgetgroups: avoid argument promotion issues with -1
41852         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41853         for invalid gid_t.
41854         * tests/test-chown.h (getegid, test_chown): Likewise.
41855         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41856
41857 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41858
41859         exclude: Fix header file problems.
41860         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41861
41862 2009-12-01  Jim Meyering  <meyering@redhat.com>
41863
41864         fts: fts_open: do not let an empty string cause immediate failure
41865         This is required in support of GNU rm, for which the command
41866         "rm A '' B" must process and remove both A and B, in spite of
41867         the empty string argument.
41868         * lib/fts.c (fts_open): Do not let the presence of an empty string
41869         cause fts_open to fail immediately.  Most fts-using tools must be
41870         able to process all arguments, in order, and can be expected to
41871         diagnose such arguments themselves.
41872
41873 2009-11-30  Eric Blake  <ebb9@byu.net>
41874
41875         utimens: fix compilation error
41876         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41877         Declare variable at right scope.
41878
41879 2009-11-29  Jim Meyering  <meyering@redhat.com>
41880
41881         bootstrap: handle perl-5.11's changed --version output
41882         * build-aux/bootstrap (get_version): Handle perl separately,
41883         since perl-5.11's --version output is different.
41884
41885 2009-11-28  Jim Meyering  <meyering@redhat.com>
41886
41887         userspec: depend on the inttostr module, too
41888         * modules/userspec (Depends-on): Add inttostr.
41889
41890         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41891         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41892         number of MAXUID when it evaluates to (uid_t) -1.
41893         Likewise for group ID.  Reported by Matt McCutchen in
41894         <http://savannah.gnu.org/bugs/?28113>
41895
41896         userspec: reformat to use spaces, not TABs
41897         * lib/userspec.c: Expand TABs to spaces.
41898         Add Emacs' "indent-tabs-mode: nil" hint.
41899
41900 2009-11-27  Eric Blake  <ebb9@byu.net>
41901
41902         getopt-gnu: flush out another BSD bug
41903         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41904         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41905         flush out BSD bug.
41906         * tests/test-getopt.h (test_getopt): End lists with NULL.
41907         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41908         (test_getopt_long_posix): Enhance test.
41909         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41910         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41911         getopt-gnu.
41912         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41913         Likewise.
41914
41915 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41916
41917         * modules/idpriv-droptemp-tests (Notice): Fix text.
41918
41919 2009-11-27  Jim Meyering  <meyering@redhat.com>
41920
41921         test-xalloc-die: avoid spurious failure due to libtool argv difference
41922         In a libtool-enabled project, this test would fail due to a difference
41923         in the emitted program name, e.g.,
41924         -test-xalloc-die: memory exhausted
41925         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41926         Use program to avoid that.
41927         * modules/xalloc-die-tests (Depends-on): Add progname.
41928         * tests/test-xalloc-die.c: Include progname.h".
41929         (program_name): Remove decl.
41930         (main): Call set_program_name.
41931         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41932
41933 2009-11-26  Richard Jones  <rjones@redhat.com>
41934
41935         w32sock: leave win32 error in place.
41936         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41937
41938 2009-11-26  Eric Blake  <ebb9@byu.net>
41939
41940         init.sh: suggest to use skip_ and fail_ functions in comments
41941         * tests/init.sh: Add a sentence.
41942
41943 2009-11-25  Bruno Haible  <bruno@clisp.org>
41944
41945         init.sh: add documentation in comments
41946         * tests/init.sh: Add some developer and user documentation.
41947
41948 2009-11-26  Jim Meyering  <meyering@redhat.com>
41949
41950         init.sh: accommodate even those who specify bogus srcdir manually
41951         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41952         configure-time tests to be sanitized, so that there is no need to
41953         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41954         (with no double quotes) suffices.  However, since tests may be
41955         invoked manually, and since you may explicitly set srcdir to the
41956         name of a directory containing spaces, do quote its uses here.
41957         * tests/test-pread.sh: Likewise.
41958         Suggested by Bruno Haible.
41959
41960         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41961         * tests/test-pread.sh: Write no data into the pipe, because
41962         test-pread actually reads none.  This avoids a diagnostic,
41963         "bash: echo: write error: Broken pipe", that arises in the unusual
41964         event something is ignoring SIGPIPE, and might be interpreted
41965         as some sort of failure.  Reported by Bruno Haible.
41966
41967 2009-11-25  Jim Meyering  <meyering@redhat.com>
41968
41969         test-pread: cover failure with ESPIPE and EINVAL
41970         * tests/test-pread.c (main): Test for failure, too.
41971         * tests/test-pread.sh: Invoke with stdin on a pipe.
41972         Suggested by Eric Blake.
41973
41974         pread: improvement and fix
41975         * modules/pread (Depends-on): Depend on lseek, for portability to
41976         e.g., mingw.  Suggested by Eric Blake.
41977         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41978
41979         unistd.in.h: correct declaration of pread
41980         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41981         Reported by Richard W.M. Jones.
41982
41983         test-pread.sh: distribute the test script
41984         * modules/pread-tests (Files): Include test-pread.sh.
41985
41986         test-pread.sh: clean up
41987         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41988         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41989         That is unnecessary, since it's always ".".
41990         Suggestion from Eric Blake.
41991
41992         test-pread.sh: make executable
41993         * tests/test-pread.sh: Set executable bit.
41994         Reported by Eric Blake.
41995
41996         correct typo in test-pread.sh
41997         * tests/test-pread.sh: Add #! line.
41998
41999         test pread
42000         * tests/test-pread.c: New file.
42001         * tests/test-pread.sh: Likewise.
42002         * modules/pread-tests: Likewise.
42003
42004         pread: new module
42005         * modules/pread: New file.
42006         * lib/unistd.in.h (pread): Define/declare.
42007         * lib/pread.c (pread): New file.
42008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
42009         * modules/unistd (Makefile.am): Substitute witnesses.
42010         * doc/posix-functions/pread.texi (pread): Update.
42011         * MODULES.html.sh: Add pread.
42012
42013 2009-11-25  Jim Meyering  <meyering@redhat.com>
42014
42015         tests/init.sh: new file to be used via most *.sh tests
42016         * tests/init.sh: New file.
42017
42018 2009-11-25  Eric Blake  <ebb9@byu.net>
42019
42020         utimens: work around older Linux failure with symlinks
42021         * lib/utimens.c (lutimensat_works_really): New variable.
42022         (fdutimens, lutimens): Use it to manage kernels that support
42023         nanosecond times on files, but not on symlinks.
42024         Reported by OndÅ™ej Vašík.
42025
42026         utimes: fix configure grammar
42027         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
42028
42029 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
42030
42031         regex: Fix fastmap for multibyte character ranges.
42032         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
42033         characters when a multibyte character range is included.
42034
42035 2009-11-22  Andy Wingo  <wingo@pobox.com>
42036
42037         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
42038         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
42039
42040 2009-11-24  Bruno Haible  <bruno@clisp.org>
42041
42042         doc: Most *_l functions exist in MacOS X 10.5.
42043         * doc/posix-functions/duplocale.texi: Update platforms list.
42044         * doc/posix-functions/freelocale.texi: Likewise.
42045         * doc/posix-functions/newlocale.texi: Likewise.
42046         * doc/posix-functions/uselocale.texi: Likewise.
42047         * doc/posix-functions/isalnum_l.texi: Likewise.
42048         * doc/posix-functions/isalpha_l.texi: Likewise.
42049         * doc/posix-functions/isblank_l.texi: Likewise.
42050         * doc/posix-functions/iscntrl_l.texi: Likewise.
42051         * doc/posix-functions/isdigit_l.texi: Likewise.
42052         * doc/posix-functions/isgraph_l.texi: Likewise.
42053         * doc/posix-functions/islower_l.texi: Likewise.
42054         * doc/posix-functions/isprint_l.texi: Likewise.
42055         * doc/posix-functions/ispunct_l.texi: Likewise.
42056         * doc/posix-functions/isspace_l.texi: Likewise.
42057         * doc/posix-functions/isupper_l.texi: Likewise.
42058         * doc/posix-functions/iswalnum_l.texi: Likewise.
42059         * doc/posix-functions/iswalpha_l.texi: Likewise.
42060         * doc/posix-functions/iswblank_l.texi: Likewise.
42061         * doc/posix-functions/iswcntrl_l.texi: Likewise.
42062         * doc/posix-functions/iswctype_l.texi: Likewise.
42063         * doc/posix-functions/iswdigit_l.texi: Likewise.
42064         * doc/posix-functions/iswgraph_l.texi: Likewise.
42065         * doc/posix-functions/iswlower_l.texi: Likewise.
42066         * doc/posix-functions/iswprint_l.texi: Likewise.
42067         * doc/posix-functions/iswpunct_l.texi: Likewise.
42068         * doc/posix-functions/iswspace_l.texi: Likewise.
42069         * doc/posix-functions/iswupper_l.texi: Likewise.
42070         * doc/posix-functions/iswxdigit_l.texi: Likewise.
42071         * doc/posix-functions/isxdigit_l.texi: Likewise.
42072         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
42073         * doc/posix-functions/strcasecmp_l.texi: Likewise.
42074         * doc/posix-functions/strcoll_l.texi: Likewise.
42075         * doc/posix-functions/strfmon_l.texi: Likewise.
42076         * doc/posix-functions/strftime_l.texi: Likewise.
42077         * doc/posix-functions/strncasecmp_l.texi: Likewise.
42078         * doc/posix-functions/strxfrm_l.texi: Likewise.
42079         * doc/posix-functions/tolower_l.texi: Likewise.
42080         * doc/posix-functions/toupper_l.texi: Likewise.
42081         * doc/posix-functions/towctrans_l.texi: Likewise.
42082         * doc/posix-functions/towlower_l.texi: Likewise.
42083         * doc/posix-functions/towupper_l.texi: Likewise.
42084         * doc/posix-functions/wcscoll_l.texi: Likewise.
42085         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
42086         * doc/posix-functions/wctrans_l.texi: Likewise.
42087         * doc/posix-functions/wctype_l.texi: Likewise.
42088         * doc/glibc-functions/strptime_l.texi: Likewise.
42089         * doc/glibc-functions/strtod_l.texi: Likewise.
42090         * doc/glibc-functions/strtof_l.texi: Likewise.
42091         * doc/glibc-functions/strtol_l.texi: Likewise.
42092         * doc/glibc-functions/strtold_l.texi: Likewise.
42093         * doc/glibc-functions/strtoll_l.texi: Likewise.
42094         * doc/glibc-functions/strtoul_l.texi: Likewise.
42095         * doc/glibc-functions/strtoull_l.texi: Likewise.
42096         * doc/glibc-functions/wcsftime_l.texi: Likewise.
42097         * doc/glibc-functions/wcstod_l.texi: Likewise.
42098         * doc/glibc-functions/wcstof_l.texi: Likewise.
42099         * doc/glibc-functions/wcstol_l.texi: Likewise.
42100         * doc/glibc-functions/wcstold_l.texi: Likewise.
42101         * doc/glibc-functions/wcstoll_l.texi: Likewise.
42102         * doc/glibc-functions/wcstoul_l.texi: Likewise.
42103         * doc/glibc-functions/wcstoull_l.texi: Likewise.
42104
42105 2009-11-24  Bruno Haible  <bruno@clisp.org>
42106
42107         duplocale: Fix logic bug.
42108         * lib/duplocale.c: Don't include <langinfo.h>.
42109         (_NL_LOCALE_NAME): Remove macro.
42110         (rpl_duplocale): Use setlocale instead of nl_langinfo.
42111         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
42112
42113 2009-11-23  Jim Meyering  <meyering@redhat.com>
42114
42115         test-update-copyright: don't hard-code /usr/bin/perl
42116         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
42117         perl to print the current year.  Gilles Espinasse reported that
42118         the replaced use of perl was hard-coded as /usr/bin/perl.
42119
42120 2009-11-23  Bruno Haible  <bruno@clisp.org>
42121
42122         duplocale: Add support for glibc 2.3.x.
42123         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
42124
42125 2009-11-22  Bruno Haible  <bruno@clisp.org>
42126
42127         vasnprintf: Tiny optimization.
42128         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
42129         MacOS X.
42130
42131 2009-11-22  Bruno Haible  <bruno@clisp.org>
42132
42133         Tests for module 'duplocale'.
42134         * modules/duplocale-tests: New file.
42135         * tests/test-duplocale.c: New file.
42136
42137         New module 'duplocale'.
42138         * m4/duplocale.m4: New file.
42139         * lib/locale.in.h (duplocale): New declaration.
42140         * lib/duplocale.c: New file.
42141         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
42142         gl_LOCALE_H_DEFAULTS): New macros.
42143         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
42144         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
42145         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
42146         REPLACE_DUPLOCALE.
42147         * modules/duplocale: New file.
42148         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
42149
42150 2009-11-22  Bruno Haible  <bruno@clisp.org>
42151
42152         * modules/locale-tests (configure.ac): Test for newlocale function.
42153         * tests/test-locale.c: When the system has extended locale functions,
42154         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
42155
42156         locale: Make locale_t available when possible.
42157         * lib/locale.in.h: Include <xlocale.h> when it exists.
42158         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
42159         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
42160         * modules/locale (Depends-on): Add extensions.
42161         (Makefile.am): Also substitute HAVE_XLOCALE_H.
42162         * doc/posix-headers/locale.texi: Document the problem with locale_t.
42163
42164 2009-11-22  Bruno Haible  <bruno@clisp.org>
42165
42166         Add comments.
42167         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
42168         invocation.
42169         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
42170         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
42171         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
42172
42173 2009-11-22  Bruno Haible  <bruno@clisp.org>
42174
42175         error: account for the possibility of freopen (stdout).
42176         * lib/error.c: Include <unistd.h>.
42177         (flush_stdout): New function, extracted from error and error_at_line.
42178         Determine stdout's fd dynamically.
42179         (error, error_at_line): Invoke flush_stdout.
42180         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
42181         * modules/error (Depends-on): Add unistd.
42182
42183 2009-11-22  Bruno Haible  <bruno@clisp.org>
42184
42185         diffseq: Add comment.
42186         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
42187
42188 2009-11-22  Jim Meyering  <meyering@redhat.com>
42189
42190         c-stack: avoid defining an unused static function
42191         * lib/c-stack.c (find_stack_direction): Do not define this function
42192         when it will not be used.
42193
42194         diffseq: avoid spurious gcc warnings
42195         * lib/diffseq.h (IF_LINT2): Define.
42196         (compareseq): Use it to initialize two members of "part".
42197         This avoids two used-uninitialized warnings.
42198
42199 2009-11-21  Jim Meyering  <meyering@redhat.com>
42200
42201         c-stack: avoid "ignoring return value of `write'" warning
42202         * lib/c-stack.c: Include "ignore-value.h".
42203         (die): Explicitly ignore each write return value.
42204         * modules/c-stack (Depends-on): Add ignore-value.
42205
42206 2009-11-21  Bruno Haible  <bruno@clisp.org>
42207
42208         diffseq: reduce scope of variable 'best'.
42209         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
42210         variable, earlier used for two different purposes.
42211
42212 2009-11-21  Jim Meyering  <meyering@redhat.com>
42213
42214         diffseq: remove useless assignment to "best"
42215         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
42216         assignment.  At that point "best" is already guaranteed to be zero.
42217
42218 2009-11-20  Eric Blake  <ebb9@byu.net>
42219
42220         build: mention ftp redirector in release announcements
42221         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
42222         values that used to come from cfg.mk; mention FTP redirect URL.
42223         * build-aux/announce-gen: Mention the mirror list.
42224         Suggested by Karl Berry.
42225
42226         nanosleep: improve port to mingw
42227         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
42228         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
42229         LIB_NANOSLEEP, but only when needed.
42230         * modules/select (Link): Document LIBSOCKET.
42231         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
42232         enough.
42233
42234         nanosleep: work around cygwin bug
42235         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
42236         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
42237         bug.
42238         (getnow): Delete, not needed.
42239         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
42240         LIB_CLOCK_GETTIME.
42241         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
42242         clock-time, gettime.
42243         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
42244         bug.
42245         * modules/nanosleep-tests: New test.
42246         * tests/test-nanosleep.c: New file.
42247
42248         sleep: work around cygwin bug
42249         * lib/sleep.c (rpl_sleep): Work around the bug.
42250         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
42251         (gl_PREREQ_SLEEP): Delete unused macro.
42252         * modules/sleep (Depends-on): Add verify.
42253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42254         * modules/unistd (Makefile.am): Substitute witness.
42255         * lib/unistd.in.h (sleep): Update prototype.
42256         * doc/posix-functions/sleep.texi (sleep): Document the bug.
42257         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
42258         * modules/sleep-tests (Depends-on): Check for alarm.
42259
42260 2009-11-20  Jim Meyering  <meyering@redhat.com>
42261
42262         maint.mk: improve sc_prohibit_magic_number_exit
42263         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
42264         so it does not match uses like System.exit(1).
42265         Add comments showing how to correct all offenders.
42266
42267 2009-11-19  Eric Blake  <ebb9@byu.net>
42268
42269         xalloc-die-tests: add missing library
42270         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
42271
42272         test-xvasprintf: silence compiler warnings
42273         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
42274         empty string from gcc.
42275
42276 2009-11-19  Jim Meyering  <meyering@redhat.com>
42277
42278         xfreopen: new module, from coreutils
42279         * modules/xfreopen: New module.
42280         * lib/xfreopen.c: New file.
42281         * lib/xfreopen.h: New file.
42282         * MODULES.html.sh (File stream based Input/Output"): Add it.
42283
42284 2009-11-19  Eric Blake  <ebb9@byu.net>
42285
42286         manywarnings: depend on warnings
42287         * modules/manywarnings (Depends-on): Add warnings.
42288
42289         build: avoid compiler warnings
42290         * lib/select.c (rpl_select): Delete unused variable.
42291         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
42292
42293 2009-11-18  Eric Blake  <ebb9@byu.net>
42294
42295         tests: avoid false negative with --with-packager
42296         * tests/test-version-etc.sh: Discard packager information.
42297         * tests/test-argp-version-etc-1.sh: Likewise.
42298         Reported by Mike Frysinger.
42299
42300         utimens: fix regression on Solaris
42301         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
42302         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
42303         can only change fd timestamps via futimesat.  Instead, use an
42304         additional witness macro to avoid BSD bug.
42305         Reported by Jim Meyering.
42306
42307 2009-11-17  Eric Blake  <ebb9@byu.net>
42308
42309         usleep: use it to simplify tests
42310         * modules/stat-time-tests (Depends-on): Add usleep.
42311         (configure.ac): Drop usleep check.
42312         * modules/chown-tests (Depends-on, configure.ac): Likewise.
42313         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
42314         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
42315         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
42316         * modules/openat-tests (Depends-on, configure.ac): Likewise.
42317         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
42318         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
42319         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
42320         Likewise.
42321         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
42322         * tests/test-lchown.h (nap): Likewise.
42323         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
42324         * tests/test-stat-time.c (nap): Likewise.
42325         * tests/test-utimens-common.h (nap): Update comments.
42326
42327         usleep: new module
42328         * modules/usleep: New file.
42329         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
42330         * lib/usleep.c (usleep): Likewise.
42331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42332         * modules/unistd (Makefile.am): Substitute witnesses.
42333         * lib/unistd.in.h (usleep): Add declaration.
42334         * doc/pastposix-functions/usleep.texi (usleep): Document this.
42335         * MODULES.html.sh (Date and time): Likewise.
42336         * modules/usleep-tests (Depends-on): New test.
42337         * tests/test-usleep.c: New file.
42338
42339         chown: work around OpenBSD bug
42340         * lib/chown.c (rpl_chown): Work around the bug.
42341         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
42342         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
42343         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
42344         * modules/chown (Depends-on): Add stdbool.
42345         * modules/lchown (Depends-on): Likewise.
42346         * doc/posix-functions/chown.texi (chown): Document the bug.
42347         * doc/posix-functions/lchown.texi (lchown): Likewise.
42348         * tests/test-lchown.h (test_chown): Relax test.
42349
42350         mkstemp: avoid conflict with C++ keyword template
42351         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
42352         * lib/mkostemp.c (mkostemp): Likewise.
42353         * lib/mkostemps.c (mkostemps): Likewise.
42354         * lib/mkstemp.c (mkstemp): Likewise.
42355         * lib/mkstemps.c (mkstemps): Likewise.
42356
42357         xalloc-die-tests: optimize
42358         * tests/test-xalloc-die.sh: Reduce number of processes.
42359
42360 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42361
42362         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
42363         patch from ludo@gnu.org (Ludovic Courtès).
42364
42365 2009-11-17  Jim Meyering  <meyering@redhat.com>
42366
42367         version-etc: use proper license string
42368         * modules/version-etc (License): Use LGPL, not LGPLv3+.
42369         * modules/version-etc-fsf: Likewise.
42370
42371 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42372
42373         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
42374         printed to stdout.  Deal with EOL differences.
42375
42376 2009-11-17  Eric Blake  <ebb9@byu.net>
42377
42378         unsetenv: work around Solaris bug
42379         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
42380         * lib/unsetenv.c (rpl_unsetenv): Work around it.
42381         Reported by Jim Meyering.
42382
42383         vasnprintf: avoid compiler warnings
42384         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
42385         variables.
42386         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
42387
42388 2009-11-17  Simon Josefsson  <simon@josefsson.org>
42389
42390         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
42391         settings since xalloc-die is no longer the self test,
42392         xalloc-die.sh is.
42393
42394 2009-11-17  Jim Meyering  <meyering@redhat.com>
42395
42396         test-xalloc-die.sh: make the code agree with the commit log
42397         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
42398         at the end, just in case you happen to have a test-xalloc-die
42399         program in some other PATH directory.
42400
42401         test-xalloc-die.sh: fix a portability bug
42402         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
42403         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
42404         Otherwise, argv[0] (as often seen in diagnostics) would be too
42405         system-dependent, sometimes with, and sometimes without the leading "./".
42406
42407         version-etc-fsf: relax license to LGPLv3+
42408         * modules/version-etc-fsf (License): Relax license.
42409
42410 2009-11-16  Eric Blake  <ebb9@byu.net>
42411
42412         xalloc-die-tests: avoid printing null pointer
42413         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
42414         shell script.
42415         * tests/test-xalloc-die.c (program_name): Declare.
42416         * tests/test-xalloc-die.sh (tmpfiles): New file.
42417
42418         setenv, unsetenv: work around various bugs
42419         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
42420         (setenv) [HAVE_SETENV]: Work around bugs.
42421         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
42422         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
42423         for bugs.
42424         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
42425         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
42426         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
42427         * modules/stdlib (Makefile.am): Update substitutions.
42428         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
42429         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
42430         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
42431         * modules/setenv-tests: New test.
42432         * modules/unsetenv-tests: Likewise.
42433         * tests/test-setenv.c: New file.
42434         * tests/test-unsetenv.c: Likewise.
42435
42436 2009-11-16  Jim Meyering  <meyering@redhat.com>
42437
42438         version-etc: relax license to LGPLv3+
42439         * modules/version-etc (License): Relax license.
42440
42441         better AC_REQUIRE expanded-before-required-warning avoidance
42442         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
42443         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
42444         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
42445         which is no longer needed.
42446
42447 2009-11-16  Eric Blake  <ebb9@byu.net>
42448
42449         test-freading: clean up temporary file
42450         * tests/test-freading.c (main): Remove file on success, and use
42451         ASSERT more liberally.
42452         Reported by Jim Meyering.
42453
42454 2009-11-16  Jim Meyering  <meyering@redhat.com>
42455
42456         avoid new AC_REQUIRE expanded-before-required warnings
42457         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
42458         merely using it.
42459         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
42460         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
42461
42462 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42463
42464         * tests/test-xalloc-die.c: New file.
42465         * modules/xalloc-die-tests: New file.
42466         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
42467         XFAIL_TESTS so it can be appended by modules.
42468
42469 2009-11-15  Simon Josefsson  <simon@josefsson.org>
42470
42471         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
42472         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
42473
42474 2009-11-14  Eric Blake  <ebb9@byu.net>
42475
42476         fnmatch: avoid compiler warning
42477         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
42478         to silence compiler warning about mismatch signedness in ?:.
42479         Reported by Robert Millan.
42480
42481         intprops: add double-inclusion guard
42482         * lib/intprops.h: Allow idempotent includes.
42483         Suggested by Bruce Korb.
42484
42485         openat: detect Solaris fchownat bug
42486         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
42487         penalizing glibc chownat when only lchownat is broken.
42488         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
42489         trailing slash bugs.
42490         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
42491         * modules/openat-tests (Files): Include more files.
42492         (Depends-on): Add mgetgroups, sleep, stat-time.
42493         (configure.ac): Add additional checks.
42494         (Makefile.am): Build new test.
42495         * tests/test-fchownat.c: New file.
42496
42497         lchown: detect Solaris and FreeBSD bug
42498         * lib/lchown.c (rpl_lchown): Work around bug.
42499         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
42500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42501         * modules/unistd (Makefile.am): Populate it.
42502         * lib/unistd.in.h (lchown): Update declaration.
42503         * doc/posix-functions/lchown.texi (lchown): Document the bug.
42504         * modules/lchown-tests: New file.
42505         * tests/test-lchown.h (test_lchown): Likewise.
42506         * tests/test-lchown.c (main): Likewise.
42507
42508         chown: detect Solaris and FreeBSD bug
42509         * lib/chown.c (rpl_chown): Work around bug.
42510         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
42511         (gl_PREREQ_CHOWN): Delete.
42512         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42513         * modules/unistd (Makefile.am): Populate it.
42514         * lib/unistd.in.h (chown): Update declaration.
42515         * lib/lchown.c (chown): Update client.
42516         * modules/lchown (Depends-on): Add lstat.
42517         * doc/posix-functions/chown.texi (chown): Document the bug.
42518         * doc/posix-functions/getgroups.texi (getgroups): Document
42519         getgroups pitfall.
42520         * modules/chown-tests: New file.
42521         * tests/test-chown.h (test_chown): Likewise.
42522         * tests/test-chown.c (main): Likewise.
42523
42524 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
42525
42526         gnulib-tool: correctly detect absence of m4 directories
42527         * gnulib-tool: Avoid extra newline on data passed to wc -l.
42528
42529 2009-11-14  Jim Meyering  <meyering@redhat.com>
42530
42531         maint.mk: Prohibit inclusion of "xalloc.h" without use.
42532         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42533
42534 2009-11-14  John W. Eaton  <jwe@gnu.org>
42535
42536         strftime.h: wrap function declaration in extern "C" block
42537         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
42538
42539 2009-11-13  Eric Blake  <ebb9@byu.net>
42540
42541         getgroups: avoid compiler warning
42542         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
42543
42544         getgroups: work around FreeBSD bug
42545         * lib/getgroups.c (rpl_getgroups): Work around the bug.
42546         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
42547         * doc/posix-functions/getgroups.texi (getgroups): Document it.
42548         * tests/test-getgroups.c (main): Fix buffer overrun.
42549
42550         getgroups: avoid compilation failure
42551         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
42552         * modules/getgroups (Depends-on): Add stdint.
42553
42554 2009-11-13  Jim Meyering  <meyering@redhat.com>
42555
42556         test-getgroups: avoid compilation failure
42557         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
42558
42559 2009-11-13  Eric Blake  <ebb9@byu.net>
42560
42561         mgetgroups: new module, taken from coreutils
42562         * modules/mgetgroups: New file.
42563         * lib/mgetgroups.h: Likewise.
42564         * lib/mgetgroups.c (mgetgroups): Likewise.
42565         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
42566         * MODULES.html.sh (Users and groups): Mention it.
42567
42568         getgroups: don't expose GETGROUPS_T to user
42569         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
42570         an element at a time if GETGROUPS_T is wrong size.
42571         * lib/getugroups.h (getugroups): Change signature.
42572         * lib/unistd.in.h (getgroups): Likewise.
42573         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
42574         signature needs fixing.
42575         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
42576         AC_TYPE_GETGROUPS.
42577         * modules/group-member (Depends-on): Add getgroups.
42578         * lib/group-member.c (group_info, get_group_info): Use gid_t.
42579         (group_member): Rely on getgroups replacement.
42580         * lib/getugroups.c (getugroups): Use gid_t.
42581         * tests/test-getgroups.c (main): Likewise.
42582         * NEWS: Mention the signature change.
42583         * doc/posix-functions/getgroups.texi (getgroups): Mention the
42584         problem with signature.
42585         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
42586         GETGROUPS_T is still useful for setgroups.
42587
42588         getgroups, getugroups: provide stubs for mingw
42589         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
42590         * lib/getugroups.c (getugroups): Likewise.
42591         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
42592         function.  Modernize replacement scheme.
42593         (gl_PREREQ_GETGROUPS): Delete.
42594         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
42595         * modules/getgroups (configure.ac): Declare witness.
42596         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
42597         * modules/unistd (Depends-on): Substitute witness.
42598         * lib/unistd.in.h (getgroups): Declare replacement.
42599
42600         getgroups: avoid calling exit
42601         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
42602         drop xalloc.
42603         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
42604         dependencies.
42605         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
42606         exiting, in the rare case of malloc failure.
42607
42608         getgroups: fix logic error
42609         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
42610         has more than 20 groups.
42611         * modules/getgroups-tests: New test.
42612         * tests/test-getgroups.c: New file.
42613
42614 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42615
42616         * tests/test-base64.c: Improve.
42617
42618 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42619
42620         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
42621         Blake <ebb9@byu.net>.
42622
42623 2009-11-13  Simon Josefsson  <simon@josefsson.org>
42624
42625         * tests/test-xvasprintf.c: Add %s%s related checks.
42626
42627 2009-11-12  Eric Blake  <ebb9@byu.net>
42628
42629         version-etc: match standards.texi style
42630         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
42631         and use <> only for URLs.
42632
42633 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
42634
42635         fts: do not fail on a submount during traversal
42636         * lib/fts.c (fts_build): Read the stat info again after opening
42637         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
42638         Original report at http://bugzilla.redhat.com/501848.
42639
42640 2009-11-12  Jim Meyering  <meyering@redhat.com>
42641
42642         bootstrap: sync from coreutils
42643         * build-aux/bootstrap (bootstrap_epilogue): New function.
42644         Use git_modules_config in one more place.  This make bootstrap's
42645         --gnulib-srcdir option more useful for testing.
42646
42647         bootstrap: generalize autoheader check
42648         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
42649         AC_CONFIG_HEADERS.
42650
42651 2009-11-11  Eric Blake  <ebb9@byu.net>
42652
42653         mkfifoat: use new modules for Solaris and BSD bugs
42654         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
42655         * lib/mkfifoat.c (mknodat): Split...
42656         * lib/mknodat.c (mknodat): ...into new file.
42657         * modules/mkfifoat (Files): Ship new file.
42658         (Depends-on): Add mkfifo, mknod.
42659         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
42660         (Depends-on): Add symlink.
42661         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
42662         redundant with test_mkfifo.h.
42663         (do_mkfifoat, do_mknodat): New helpers.
42664
42665         mknod: new module
42666         * modules/mknod: New file.
42667         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
42668         * lib/mknod.c (mknod): Likewise.
42669         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42670         defaults.
42671         * modules/sys_stat (Makefile.am): Substitute them.
42672         * lib/sys_stat.in.h (mknod): Declare replacement.
42673         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42674         Document it.
42675         * doc/posix-functions/mknod.texi (mknod): Likewise.
42676         * modules/mknod-tests: New test.
42677         * tests/test-mknod.c: Likewise.
42678
42679         mkfifo: new module
42680         * modules/mkfifo: New file.
42681         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
42682         * lib/mkfifo.c (mkfifo): Likewise.
42683         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
42684         defaults.
42685         * modules/sys_stat (Makefile.am): Substitute them.
42686         * lib/sys_stat.in.h (mkfifo): Declare replacement.
42687         * MODULES.html.sh (Support for systems lacking POSIX:2008):
42688         Document it.
42689         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
42690         * modules/mkfifo-tests: New test.
42691         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
42692         from test-mkfifoat.c.
42693         * tests/test-mkfifo.c: New file.
42694
42695         readlink: detect FreeBSD bug
42696         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
42697         slash on symlink.
42698         * doc/posix-functions/readlink.texi (readlink): Document the bug.
42699         * tests/test-readlink.h (test_readlink): Enhance test.
42700
42701         symlink: detect FreeBSD bug
42702         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
42703         slash on symlink.
42704         * doc/posix-functions/symlink.texi (symlink): Document the bug.
42705         * tests/test-symlink.h (test_symlink): Enhance test.
42706
42707 2009-11-10  Eric Blake  <ebb9@byu.net>
42708
42709         link: detect FreeBSD bug
42710         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
42711         symlink.
42712         * doc/posix-functions/link.texi (link): Document the bug.
42713         * tests/test-link.h (test_link): Enhance test.
42714         * tests/test-linkat.c (main): Update caller.
42715
42716         unlink, remove: detect FreeBSD bug
42717         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
42718         slash on symlink.
42719         * doc/posix-functions/unlink.texi (unlink): Document the bug.
42720         * doc/posix-functions/remove.texi (remove): Likewise.
42721         * tests/test-unlink.h (test_unlink): Enhance test.
42722         * tests/test-remove.c (main): Likewise.
42723
42724 2009-11-09  Eric Blake  <ebb9@byu.net>
42725
42726         rename: detect FreeBSD bug
42727         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
42728         slash on symlink.
42729         * modules/renameat-tests (Depends-on): Add filenamecat.
42730         * tests/test-rename.h (test_rename): Allow one more errno.
42731         * tests/test-renameat.c (main): Likewise.
42732         * doc/posix-functions/rename.texi (rename): Document the bug.
42733
42734         open: detect FreeBSD bug
42735         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
42736         symlink.
42737         * doc/posix-functions/open.texi (open): Document the bug.
42738         * doc/posix-functions/utimes.texi (utimes): Likewise.
42739         * tests/test-open.h (test_open): Add parameters, and test symlink
42740         handling.
42741         * tests/test-open.c (main): Adjust caller.
42742         * tests/test-fcntl-safer.c (main): Likewise.
42743         * modules/open-tests (Depends-on): Add stdbool, symlink.
42744         * modules/fcntl-safer-tests (Depends-on): Likewise.
42745         * tests/test-openat.c (main): Add test-open tests.
42746
42747         stat: detect FreeBSD bug
42748         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
42749         symlink.
42750         * doc/posix-functions/stat.texi (stat): Document the bug.
42751         * tests/test-stat.h (test_stat_func): Add argument.
42752         * tests/test-stat.c (main): Adjust caller.
42753         * tests/test-fstatat.c (main): Likewise.
42754         * modules/stat-tests (Depends-on): Add stdbool, symlink.
42755         Reported by Jim Meyering.
42756
42757 2009-11-09  James Youngman  <jay@gnu.org>
42758
42759         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
42760         * lib/strftime.c: Correct placement of #include "ignore-value.h".
42761
42762 2009-11-08  Jim Meyering  <meyering@redhat.com>
42763
42764         utimens: remove invalid futimesat call
42765         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
42766         It used the file descriptor of the target file as the DIR_FD
42767         parameter and NULL as the file name.  That caused failure with
42768         errno == EFAULT on FreeBSD-8.0-rc2
42769
42770 2009-11-07  Eric Blake  <ebb9@byu.net>
42771
42772         fflush, freadseek: use fseeko, not fseek
42773         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
42774         (clear_ungetc_buffer): Avoid potential problems on large files.
42775         * lib/freadseek.c (freadseek): Likewise.
42776         * modules/freadseek (Depends-on): Add fseeko.
42777         * modules/fseek (configure.ac): Set a witness.
42778         * tests/test-fflush.c (main): Use fseeko.
42779         * tests/test-fpurge.c (fseek): Disable link warning.
42780         * tests/test-freadable.c (fseek): Likewise.
42781         * tests/test-freading.c (fseek): Likewise.
42782         * tests/test-fseeko.c (fseek): Likewise.
42783         * tests/test-ftell.c (fseek): Likewise.
42784         * tests/test-ftello.c (fseek): Likewise.
42785         * tests/test-fwritable.c (fseek): Likewise.
42786         * tests/test-fwriting.c (fseek): Likewise.
42787
42788 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42789
42790         * modules/memchr (Depends-on): Drop getpagesize dependency.
42791
42792 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42793
42794         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
42795         Reported by Ludovic Courtès.
42796         * build-aux/pmccabe2html: Improve example usage.
42797         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
42798
42799 2009-11-06  Jim Meyering  <meyering@redhat.com>
42800
42801         do-release-commit-and-tag: New module.
42802         Automate the release-commit and tag process.
42803         * build-aux/do-release-commit-and-tag: New script, from coreutils.
42804         * modules/do-release-commit-and-tag: New file.
42805         * MODULES.html.sh (Support for maintaining and releasing): Add it.
42806
42807 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42808
42809         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
42810         because test-select.c uses inet_pton.
42811
42812 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42813
42814         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42815         GETADDRINFO_LIB.  Bump serial number.
42816         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42817         Suggested by Eric Blake <ebb9@byu.net>.
42818
42819 2009-11-05  Eric Blake  <ebb9@byu.net>
42820
42821         strtod: detect darwin bug
42822         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42823         Reported by Leo Davis.
42824
42825         freopen-safer: new module
42826         * modules/freopen-safer: New module.
42827         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42828         * lib/freopen-safer.c (freopen_safer): New file.
42829         * lib/stdio-safer.h (freopen_safer): New declaration.
42830         * lib/stdio--.h (freopen): New override.
42831         * MODULES.html.sh (File stream based Input/Output): Mention it.
42832         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42833         freopen-safer module.
42834         * doc/posix-functions/stderr.texi (stderr): Likewise.
42835         * doc/posix-functions/stdin.texi (stdin): Likewise.
42836         * doc/posix-functions/stdout.texi (stdout): Likewise.
42837         * modules/freopen-safer-tests: New test.
42838         * tests/test-reopen-safer.c: New file.
42839
42840 2009-11-05  Jim Meyering  <meyering@redhat.com>
42841
42842         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42843         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42844
42845 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42846
42847         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42848
42849 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42850
42851         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42852
42853 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42854
42855         Fix link error.
42856         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42857         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42858
42859 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42860
42861         * tests/test-func.c: Also test value of __func__.
42862
42863 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42864
42865         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42866         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42867
42868 2009-11-05  Bruno Haible  <bruno@clisp.org>
42869
42870         Fix link error.
42871         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42872         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42873         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42874
42875 2009-11-05  Bruno Haible  <bruno@clisp.org>
42876
42877         Tests for module 'inet_pton'.
42878         * modules/inet_pton-tests: New file.
42879         * tests/test-inet_pton.c: New file.
42880
42881 2009-11-05  Bruno Haible  <bruno@clisp.org>
42882
42883         Tests for module 'inet_ntop'.
42884         * modules/inet_ntop-tests: New file.
42885         * tests/test-inet_ntop.c: New file.
42886
42887 2009-11-04  Eric Blake  <ebb9@byu.net>
42888
42889         stdlib-safer: wrap all mkstemp variants
42890         * modules/mkostemp (configure.ac): Set witness.
42891         * modules/mkostemps (configure.ac): Likewise.
42892         * modules/mkstemps (configure.ac): Likewise.
42893         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42894         (mkstemps_safer): Wrap more functions.
42895         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42896         wrapping.
42897         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42898         (mkstemps_safer): Implement the wrappers.
42899
42900         mkstemps, mkostemps: new modules
42901         * modules/mkostemps: New module.
42902         * modules/mkstemps: Likewise.
42903         * lib/mkostemps.c (mkostemps): New file.
42904         * lib/mkstemps.c (mkstemps): Likewise.
42905         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42906         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42908         * modules/stdlib (Makefile.am): Substitute them.
42909         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42910         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42911         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42912         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42913         * MODULES.html.sh (File system functions): Mention them.
42914
42915         tempname: resync from glibc
42916         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42917         same values for __GT_FILE as glibc.  Abort even when assertions
42918         are disabled.
42919         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42920         match its value otherwise.  Allow idempotent inclusion.
42921         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42922         * lib/mkostemp.c (mkostemp): Likewise.
42923         * lib/mkstemp.c (mkstemp): Likewise.
42924         * lib/tmpfile.c (tmpfile): Likewise.
42925         * NEWS: Document this.
42926
42927         utimens: fix use of futimens on older Linux
42928         * lib/utimens.c (fdutimens): Use updated, rather than original,
42929         timespec to avoid bug in older Linux kernel.
42930         Reported by Simon Josefsson.
42931
42932 2009-11-04  Bruno Haible  <bruno@clisp.org>
42933
42934         Make num_processors more flexible and consistent.
42935         * lib/nproc.h (enum nproc_query): New type.
42936         (num_processors): Add a 'query' argument.
42937         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42938         (num_processors): Add a 'query' argument. Test the value of the
42939         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42940         mingw, count the number of CPUs available for the current process.
42941         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42942         Check for sched_getaffinity and sched_getaffinity_np.
42943         * modules/nproc (Depends-on): Add c-ctype, extensions.
42944         * NEWS: Mention the change.
42945
42946 2009-11-03  Bruno Haible  <bruno@clisp.org>
42947
42948         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42949
42950 2009-11-03  Jim Meyering  <meyering@redhat.com>
42951
42952         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42953         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42954         if it is defined.
42955
42956 2009-11-02  Eric Blake  <ebb9@byu.net>
42957
42958         mktime, timegm: share common declaration
42959         * lib/mktime-internal.h: New file.
42960         * lib/mktime.c: Use it rather than open-coding a declaration.
42961         * lib/timegm.c: Likewise.
42962         * modules/mktime (Files): Ship it.
42963         * modules/timegm (Files): Likewise.
42964         Suggested by Bruno Haible.
42965
42966         test-update-copyright: update test to match script changes
42967         * tests/test-update-copyright.sh: Avoid hard-coding perl
42968         location.  Don't update *.bak created by earlier runs.
42969
42970 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42971             Simon Josefsson  <simon@josefsson.org>
42972             Bruno Haible  <bruno@clisp.org>
42973
42974         Fix link error on Solaris 8.
42975         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42976         also in libnsl. Define also INET_PTON_LIB.
42977         * modules/inet_pton (Link): New section.
42978
42979 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42980             Bruno Haible  <bruno@clisp.org>
42981
42982         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42983         * modules/inet_ntop (Link): New section.
42984         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42985
42986 2009-11-02  Eric Blake  <ebb9@byu.net>
42987
42988         maint: avoid compiler warnings in m4 macros
42989         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42990         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42991
42992 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42993
42994         * m4/pmccabe2html.m4: Remove file.
42995         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42996         function.  Change maintainer.
42997         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42998         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42999         Courtès).
43000
43001 2009-10-31  Eric Blake  <ebb9@byu.net>
43002
43003         fseeko: fix m4 regression
43004         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
43005         regression from 2009-10-27.
43006         Reported by Ralf Wildenhues.
43007
43008 2009-10-31  Jim Meyering  <meyering@redhat.com>
43009
43010         inttostr: aesthetics and improved (compile-time) safety
43011         Define inttype_is_signed rather than inttype_is_unsigned,
43012         since the sole use is via "#if inttype_is_signed".
43013         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
43014         inttype_is_unsigned.
43015         * lib/offtostr.c (inttype_is_signed): Likewise.
43016         * lib/uinttostr.c (inttype_is_signed): Likewise.
43017         * lib/umaxtostr.c (inttype_is_signed): Likewise.
43018         * lib/inttostr.c (inttostr): Use verify to cross-check the
43019         inttype_is_signed value and the signedness of the actual type.
43020         * modules/inttostr (Depends-on): Add verify.
43021
43022 2009-10-30  Eric Blake  <ebb9@byu.net>
43023
43024         build: avoid compiler warnings
43025         * lib/fchmodat.c (lchmod): Mark unused variables.
43026         * lib/getopt.c (_getopt_initialize): Likewise.
43027         * lib/mktime.c (__mktime_internal): Provide prototype.
43028         * lib/inttostr.c (inttostr): Avoid compiler warning even with
43029         older gcc that do not understand #pragma GCC diagnostic.
43030         * lib/uinttostr.c (inttype_is_unsigned): Define.
43031         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
43032
43033 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
43034
43035         stat: fix compilation on AIX
43036         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
43037         only see struct stat64.
43038
43039 2009-10-30  Eric Blake  <ebb9@byu.net>
43040
43041         exclude: make more robust
43042         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
43043         rather than masking a coding bug.
43044         Suggested by Bruno Haible.
43045
43046 2009-10-30  Jim Meyering  <meyering@redhat.com>
43047
43048         perl scripts: remove #!/usr/bin/perl in favor of more portable...
43049         Rather than putting #!/usr/bin/perl on the first line,
43050         start with a variant of what's recommended by "man perlrun" that
43051         invokes the first "perl" program from your shell's search path.
43052         * build-aux/gitlog-to-changelog: Replace #!... as above.
43053         Add a "Local Variables" perl mode setting.
43054         Prompted by a patch from Ludovic Courtès.
43055         Improved by Eric Blake.
43056         * build-aux/useless-if-before-free: Likewise.
43057         * build-aux/announce-gen: Likewise.
43058         * build-aux/update-copyright: Likewise.
43059
43060 2009-10-29  Eric Blake  <ebb9@byu.net>
43061
43062         filenamecat-lgpl: adjust clients
43063         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
43064         filenamecat.
43065         * modules/renameat (Depends-on): Likewise.
43066
43067         filenamecat: split into filenamecat-lgpl
43068         * modules/filenamecat-lgpl: New module.
43069         * modules/filenamecat (Files): Move library-safe files into
43070         filenamecat-lgpl.
43071         (Depends-on): Add filenamecat-lgpl.
43072         (configure.ac): Declare witness.
43073         * lib/filenamecat.h (file_name_concat): Only declare when using
43074         GPL module.
43075         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
43076         Move...
43077         * lib/filenamecat-lgpl.c: ...into new file.
43078         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
43079         (gl_FILE_NAME_CONCAT): Use it.
43080         * MODULES.html.sh (File system functions): Mention new module.
43081
43082         argp: avoid memory leak
43083         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
43084         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
43085         base_name, since the latter malloc()s and can call exit().
43086         Leak introduced 2006-07-03.
43087
43088         dirname-lgpl: adjust clients that don't need full dirname
43089         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
43090         * modules/filenamecat (Depends-on): Likewise.
43091         * modules/linkat (Depends-on): Likewise.
43092         * modules/mkancesdirs (Depends-on): Likewise.
43093         * modules/mkdir (Depends-on): Likewise.
43094         * modules/openat (Depends-on): Likewise.
43095         * modules/savewd (Depends-on): Likewise.
43096         * modules/rename (Depends-on): Likewise.
43097         (License): Relax license.
43098         * modules/mkdir-tests (Depends-on): Drop progname.
43099         (Makefile.am): Delete unneeded LDADD.
43100         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
43101
43102         dirname: split into dirname-lgpl
43103         * modules/dirname-lgpl: New module.
43104         * modules/dirname (Files): Move library-safe files into
43105         dirname-lgpl.
43106         (Depends-on): Add dirname-lgpl.
43107         (configure.ac): Declare witness.
43108         * modules/double-slash-root (License): Relax license.
43109         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
43110         module.
43111         * lib/dirname.c (dir_len, mdir_name): Move...
43112         * lib/dirname-lgpl.c: ...into new file.
43113         * lib/basename.c (last_component, base_len): Move...
43114         * lib/basename-lgpl.c: ...into new file.
43115         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
43116         (gl_DIRNAME): Use it.
43117         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
43118         Mention new module.
43119         * modules/dirname-tests (Depends-on): Add progname.
43120         * tests/test-dirname.c (program_name): Delete.
43121
43122         mkdir: make safe for libraries
43123         * modules/mkdir (Depends-on): Drop xalloc.
43124         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
43125         exit.
43126
43127         tests: avoid some compiler warnings
43128         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
43129         literals.
43130         * tests/test-memchr.c (main): Avoid type mismatch.
43131         * tests/test-arpa_inet.c (main): Avoid unused parameters.
43132         * tests/test-base64.c (main): Likewise.
43133         * tests/test-getdelim.c (main): Likewise.
43134         * tests/test-gethostname.c (main): Likewise.
43135         * tests/test-getline.c (main): Likewise.
43136         * tests/test-netinet_in.c (main): Likewise.
43137         * tests/test-select.c (open_server_socket, main): Likewise.
43138         * tests/test-select-stdin.c (main): Likewise.
43139         * tests/test-sockets.c (main): Likewise.
43140         * tests/test-strsignal.c (main): Likewise.
43141         * tests/test-sys_select.c (main): Likewise.
43142         * tests/test-sys_socket.c (main): Likewise.
43143         * tests/test-u64.c (main): Likewise.
43144         * tests/test-xfprintf-posix.c (main): Likewise.
43145         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
43146
43147         sockets: avoid compiler warning
43148         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
43149
43150         maint: detect usage(1) and other suspicious exits
43151         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
43152
43153 2009-10-29  Jim Meyering  <meyering@redhat.com>
43154
43155         timespec: long-to-int truncation could make timespec_cmp malfunction
43156         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
43157         a multiple of 2^32 nanoseconds as no difference.
43158
43159 2009-10-28  Jim Meyering  <meyering@redhat.com>
43160
43161         fprintftime: wrap macro code argument in "do {...} while(0)"
43162         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
43163         cpy macro must be a statement that can be followed by a semicolon.
43164         Now that the else clause contains a comment and is hence longer
43165         than one line, I require curly braces.  That in turn requires
43166         that we wrap this code block in the standard do...while(0).
43167
43168         fprintftime: remove stray semicolon from previous change
43169         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
43170
43171         fprintftime: avoid a warning about ignored fwrite return value
43172         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
43173         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
43174         that is unsafe.
43175         * modules/fprintftime (Depends-on): Add ignore-value.
43176
43177         exclude: avoid an unwarranted warning
43178         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
43179
43180 2009-10-27  Eric Blake  <ebb9@byu.net>
43181
43182         fseek: avoid compilation failure when fflush is replaced
43183         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
43184         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
43185         module is in use.
43186         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
43187         module is not in use; since REPLACE_FSEEK worked otherwise.
43188         (GNULIB_FTELLO): Likewise for ftell.
43189         Reported by Ian Beckwith and others.
43190
43191 2009-10-27  Bruno Haible  <bruno@clisp.org>
43192
43193         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
43194         Reported by Jim Meyering.
43195
43196 2009-10-27  Jim Meyering  <jim@meyering.net>
43197             Bruno Haible  <bruno@clisp.org>
43198
43199         Avoid warning despite dropping the return value of fwrite.
43200         * lib/unicodeio.c: Include ignore-value.h.
43201         (fwrite_success_callback): Explicitly ignore fwrite's return value.
43202         * modules/unicodeio (Depends-on): Add ignore-value.
43203
43204 2009-10-26  Eric Blake  <ebb9@byu.net>
43205
43206         areadlinkat: fix fallback path
43207         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43208         pointer and zero.
43209
43210 2009-10-22  Pádraig Brady  <P@draigBrady.com>
43211
43212         Use a better IO block size for modern systems
43213         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
43214         * lib/md2.c: Likewise.
43215         * lib/md4.c: Likewise.
43216         * lib/md5.c: Likewise.
43217         * lib/sha1.c: Likewise.
43218         * lib/sha256.c: Likewise.
43219         * lib/sha512.c: Likewise.
43220
43221 2009-10-22  Eric Blake  <ebb9@byu.net>
43222
43223         tests: avoid several compiler warnings
43224         * tests/test-getcwd.c (main): Avoid buffer underflow.
43225         * tests/test-getdate.c (main): String literals are not safe with
43226         putenv, so use setenv.  Declare unused argument.
43227         * modules/getdate-tests (Depends-on): Add setenv.
43228         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
43229         problems with string literals in char *.
43230         * tests/test-hash.c (main): Avoid shadowing declaration.
43231         (insert_new): Treat string literals as char const *.
43232         * tests/test-getopt.h (test_getopt): Likewise.
43233         (getopt_loop): Alter types to minimize casting elsewhere.
43234         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
43235         (test_getopt_long_posix): Likewise.
43236         (do_getopt_long): Add wrapper to minimize casting.
43237         * tests/test-atexit.c (clear_temp_file): Use void.
43238         * tests/test-areadlink-with-size.c (main): Declare unused
43239         arguments.
43240         * tests/test-areadlink.c (main): Likewise.
43241         * tests/test-areadlinkat-with-size.c (main): Likewise.
43242         * tests/test-areadlinkat.c (main): Likewise.
43243         * tests/test-canonicalize-lgpl.c (main): Likewise.
43244         * tests/test-canonicalize.c (main): Likewise.
43245         * tests/test-dirent-safer.c (main): Likewise.
43246         * tests/test-dirname.c (main): Likewise.
43247         * tests/test-dup2.c (main): Likewise.
43248         * tests/test-fchdir.c (main): Likewise.
43249         * tests/test-fcntl-h.c (main): Likewise.
43250         * tests/test-fcntl-safer.c (main): Likewise.
43251         * tests/test-fdopendir.c (main): Likewise.
43252         * tests/test-fdutimensat.c (main): Likewise.
43253         * tests/test-fflush.c (main): Likewise.
43254         * tests/test-filenamecat.c (main): Likewise.
43255         * tests/test-filevercmp.c (main): Likewise.
43256         * tests/test-fopen-safer.c (main): Likewise.
43257         * tests/test-fopen.c (main): Likewise.
43258         * tests/test-fpending.c (main): Likewise.
43259         * tests/test-fpurge.c (main): Likewise.
43260         * tests/test-freading.c (main): Likewise.
43261         * tests/test-fstatat.c (main): Likewise.
43262         * tests/test-fsync.c (main): Likewise.
43263         * tests/test-futimens.c (main): Likewise.
43264         * tests/test-getndelim2.c (main): Likewise.
43265         * tests/test-gettimeofday.c (main): Likewise.
43266         * tests/test-getopt.c (main): Likewise.
43267         * tests/test-i-ring.c (main): Likewise.
43268         * tests/test-inttypes.c (main): Likewise.
43269         * tests/test-link.c (main): Likewise.
43270         * tests/test-lstat.c (main): Likewise.
43271         * tests/test-math.c (main): Likewise.
43272         * tests/test-md5.c (main): Likewise.
43273         * tests/test-memchr2.c (main): Likewise.
43274         * tests/test-memrchr.c (main): Likewise.
43275         * tests/test-mkdir.c (main): Likewise.
43276         * tests/test-mkdirat.c (main): Likewise.
43277         * tests/test-mkfifoat.c (main): Likewise.
43278         * tests/test-open.c (main): Likewise.
43279         * tests/test-openat-safer.c (main): Likewise.
43280         * tests/test-openat.c (main): Likewise.
43281         * tests/test-quotearg.c (main): Likewise.
43282         * tests/test-rawmemchr.c (main): Likewise.
43283         * tests/test-readlink.c (main): Likewise.
43284         * tests/test-remove.c (main): Likewise.
43285         * tests/test-rename.c (main): Likewise.
43286         * tests/test-renameat.c (main): Likewise.
43287         * tests/test-rmdir.c (main): Likewise.
43288         * tests/test-sha1.c (main): Likewise.
43289         * tests/test-signal.c (main): Likewise.
43290         * tests/test-sigaction.c (main): Likewise.
43291         * tests/test-stat.c (main): Likewise.
43292         * tests/test-stat-time.c (main): Likewise.
43293         * tests/test-stddef.c (main): Likewise.
43294         * tests/test-stdint.c (main): Likewise.
43295         * tests/test-stdio.c (main): Likewise.
43296         * tests/test-stdlib.c (main): Likewise.
43297         * tests/test-strchrnul.c (main): Likewise.
43298         * tests/test-strerror.c (main): Likewise.
43299         * tests/test-string.c (main): Likewise.
43300         * tests/test-strtod.c (main): Likewise.
43301         * tests/test-strverscmp.c (main): Likewise.
43302         * tests/test-symlink.c (main): Likewise.
43303         * tests/test-symlinkat.c (main): Likewise.
43304         * tests/test-sys_stat.c (main): Likewise.
43305         * tests/test-sys_time.c (main): Likewise.
43306         * tests/test-time.c (main): Likewise.
43307         * tests/test-unistd.c (main): Likewise.
43308         * tests/test-unlink.c (main): Likewise.
43309         * tests/test-unlinkat.c (main): Likewise.
43310         * tests/test-utimens.c (main): Likewise.
43311         * tests/test-utimensat.c (main): Likewise.
43312         * tests/test-version-etc.c (main): Likewise.
43313         * tests/test-wchar.c (main): Likewise.
43314         * tests/test-wctype.c (main): Likewise.
43315         * tests/test-xprintf-posix.c (main): Likewise.
43316         * tests/test-posixtm.c (main): Likewise.
43317         (STREQ): Delete unused macro.
43318         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
43319         shadowed variables.
43320         * tests/test-memchr.c (main): Likewise.
43321
43322 2009-10-21  Eric Blake  <ebb9@byu.net>
43323
43324         areadlinkat: avoid failure on older glibc
43325         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
43326         rather than mis-comparing 0 against FUNC_RESULT of char*.
43327
43328 2009-10-21  Bruno Haible  <bruno@clisp.org>
43329
43330         * modules/stpncpy (License): Relicense under LGPLv2+.
43331         Reported by David Lutterkort <lutter@redhat.com>.
43332
43333 2009-10-20  Eric Blake  <ebb9@byu.net>
43334
43335         utimensat: work around Solaris 9 bug
43336         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
43337         has trailing slash bugs.
43338         * tests/test-lutimens.h (test_lutimens): Enhance test.
43339         * tests/test-utimens.h (test_utimens): Likewise.
43340         * doc/posix-functions/utime.texi (utime): Enhance documentation.
43341         * doc/posix-functions/utimes.texi (utimes): Likewise.
43342         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43343         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
43344         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
43345         * doc/posix-functions/futimens.texi (futimens): Likewise.
43346
43347         fdutimensat: new module
43348         * modules/fdutimensat: New file.
43349         * lib/fdutimensat.c (fdutimensat): Likewise.
43350         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
43351         * MODULES.html.sh (File system functions): Mention module.
43352         * modules/fdutimensat-tests: New test.
43353         * tests/test-fdutimensat.c: Likewise.
43354
43355         doc: regenerate INSTALL
43356         * doc/INSTALL: Reflect recent autoconf update.
43357         * doc/INSTALL.ISO: Likewise.
43358         * doc/INSTALL.UTF-8: Likewise.
43359
43360 2009-10-20  Pádraig Brady  <P@draigBrady.com>
43361
43362         acl: warn if ACL support is not detected
43363         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
43364
43365 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
43366
43367         * lib/nproc.h: Add extern "C" block for C++.
43368
43369 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
43370             Bruno Haible  <bruno@clisp.org>
43371
43372         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
43373         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
43374         * doc/posix-functions/isalpha.texi: Likewise.
43375         * doc/posix-functions/isblank.texi: Likewise.
43376         * doc/posix-functions/iscntrl.texi: Likewise.
43377         * doc/posix-functions/isdigit.texi: Likewise.
43378         * doc/posix-functions/isgraph.texi: Likewise.
43379         * doc/posix-functions/islower.texi: Likewise.
43380         * doc/posix-functions/isprint.texi: Likewise.
43381         * doc/posix-functions/ispunct.texi: Likewise.
43382         * doc/posix-functions/isspace.texi: Likewise.
43383         * doc/posix-functions/isupper.texi: Likewise.
43384         * doc/posix-functions/isxdigit.texi: Likewise.
43385
43386 2009-10-18  Bruno Haible  <bruno@clisp.org>
43387
43388         Tests for module 'isblank'.
43389         * modules/isblank-tests: New file.
43390         * tests/test-isblank.c: New file.
43391
43392         New module 'isblank'.
43393         * lib/isblank.c: New file.
43394         * m4/isblank.m4: New file.
43395         * modules/isblank: New file.
43396         * doc/posix-functions/isblank.texi: Mention the new module.
43397
43398 2009-10-18  Bruno Haible  <bruno@clisp.org>
43399
43400         New module 'ctype'.
43401         * lib/ctype.in.h: New file.
43402         * m4/ctype.m4: New file.
43403         * modules/ctype: New file.
43404         * doc/posix-headers/ctype.texi: Mention the new module.
43405
43406 2009-10-18  Jim Meyering  <meyering@redhat.com>
43407
43408         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
43409         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
43410         right after its initialization, rather than farther down.
43411         Keeping these in close proximity makes it easier to ensure
43412         that each such variable is initialized.  E.g.,
43413
43414             LIB_CLOCK_GETTIME=
43415             AC_SUBST([LIB_CLOCK_GETTIME])
43416
43417         This change also increments these serial numbers.
43418         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
43419         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43420         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43421
43422 2009-10-18  Bruno Haible  <bruno@clisp.org>
43423
43424         Don't let environment variables perturb build.
43425         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
43426         (gl_PREREQ_GETHRXTIME): ... not here.
43427
43428 2009-10-18  Bruno Haible  <bruno@clisp.org>
43429
43430         Avoid symlink attack in localcharset module.
43431         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
43432         (O_NOFOLLOW): Define fallback.
43433         (get_charset_aliases): Don't open the file if it is a symbolic link.
43434         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
43435         gl_FCNTL_H.
43436         (gl_FCNTL_H): Require it.
43437         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
43438         * modules/localcharset (Files): Add m4/fcntl_h.m4.
43439         Reported by Fergal Glynn <fglynn@veracode.com>.
43440
43441 2009-10-18  Bruno Haible  <bruno@clisp.org>
43442
43443         Implement nproc for mingw.
43444         * lib/nproc.c: Include <windows.h>
43445         (num_processors): On native Windows platforms, try GetSystemInfo.
43446
43447 2009-10-18  Bruno Haible  <bruno@clisp.org>
43448
43449         Implement nproc for IRIX.
43450         * lib/nproc.c: Include <sys/sysmp.h>.
43451         (num_processors): On IRIX systems, try sysmp.
43452         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
43453
43454 2009-10-18  Bruno Haible  <bruno@clisp.org>
43455
43456         Implement nproc for HP-UX.
43457         * lib/nproc.c: Include <sys/pstat.h>
43458         (num_processors): On HP-UX systems, try pstat_getdynamic.
43459         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
43460         pstat_getdynamic.
43461
43462 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
43463             Bruno Haible  <bruno@clisp.org>
43464
43465         Implement nproc for NetBSD, OpenBSD.
43466         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
43467         (ARRAY_SIZE): New macro.
43468         (num_processors): On BSD systems, try sysctl of HW_NCPU.
43469         * m4/nproc.m4: New file.
43470         * modules/nproc (Files): Add m4/nproc.m4.
43471         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
43472         (Makefile.am): Instead, augment lib_SOURCES.
43473
43474 2009-10-18  Bruno Haible  <bruno@clisp.org>
43475
43476         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
43477         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
43478         sys/param.h.
43479
43480 2009-10-16  Eric Blake  <ebb9@byu.net>
43481
43482         utimensat: new module
43483         * modules/utimensat: New file.
43484         * lib/utimensat.c (utimensat): Likewise.
43485         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
43486         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
43487         so we can work around Linux bugs.
43488         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43489         * modules/sys_stat (Makefile.am): Substitute them.
43490         * lib/sys_stat.in.h (utimensat): Declare it.
43491         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43492         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43493         * modules/utimensat-tests: New test.
43494         * tests/test-utimensat.c: Likewise.
43495
43496         utimens: let lutimens work on non-symlinks
43497         * lib/utimens.c (lutimens): Fall back to utimens rather than
43498         failing with ENOSYS, when file is not a symlink.
43499         (utimens): Reduce redirection.
43500         * tests/test-lutimens.h (test_lutimens): Update test to cover
43501         non-symlinks.
43502         * tests/test-utimens.h (test_utimens): Update test to cover
43503         symlinks.
43504         * tests/test-utimens.c (main): Update caller.
43505
43506         utimens: cache whether utimensat syscall works
43507         * lib/utimens.c (utimensat_works_really): New cache variable.
43508         (fdutimens, lutimens): Use it to avoid failing syscall.
43509
43510         test-stat-time, test-utimens: improve portability
43511         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
43512         ext4 on alpha, and for cygwin.
43513         * tests/test-utimens-common.h: New file.
43514         (nap): Factor delays into single function.
43515         * tests/test-lutimens.h (test_lutimens): Use new header.
43516         * tests/test-futimens.h (test_futimens): Likewise.
43517         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
43518         timestamps to occur from same machine, as was done previously for
43519         test_utimens.
43520         * modules/utimens-tests (Files): Ship new file.
43521         * modules/futimens-tests (Files): Likewise.
43522         Reported in part by Jim Meyering.
43523
43524         sys_stat: sort replacement declarations
43525         * lib/sys_stat.in.h: Sort declarations.
43526         * lib/futimens.c (futimens): Fix typo.
43527
43528 2009-10-15  Jim Meyering  <meyering@redhat.com>
43529
43530         don't let environment settings perturb build
43531         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
43532         could cause a configure-time and/or build-time malfunction.
43533         Typically, a configure-time function-in-library test is performed
43534         via code like this:
43535
43536           LIB_VAR=
43537           AC_SUBST([LIB_VAR])
43538           prefix_saved_LIBS=$LIBS
43539             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
43540                        [test "$ac_cv_search_FUNC" = "none required" ||
43541                         LIB_VAR=$ac_cv_search_FUNC])
43542           LIBS=$prefix_saved_LIBS
43543
43544         However, in each of the files affected by this change, the LIB_VAR=
43545         initialization was omitted.  Thus, when set in the environment, its
43546         value would propagate into generated Makefiles when FUNC is not found
43547         in LIB_NAME.
43548         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
43549         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
43550         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
43551
43552 2009-10-14  Eric Blake  <ebb9@byu.net>
43553
43554         fchdir: avoid infinite recursion in mingw
43555         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
43556         recursing.
43557
43558         test-stat-time: port to mingw
43559         * tests/test-stat-time.c (force_unlink): Return a value.
43560         (test_ctime) [W32]: Fix compilation error.
43561         (nap): Don't call usleep with too large an argument.  Use
43562         force_unlink.
43563         * doc/pastposix-functions/usleep.texi (usleep): Document the
43564         portability issue.
43565
43566 2009-10-13  Jim Meyering  <meyering@redhat.com>
43567
43568         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
43569         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
43570         * modules/pipe-filter-ii: Likewise.
43571         * modules/sys_socket-tests: Likewise.
43572         * modules/tsearch-tests: Likewise.
43573         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
43574         (check): Depend on it.
43575
43576 2009-10-12  Eric Blake  <ebb9@byu.net>
43577
43578         utimens-tests: port to NFS file systems
43579         * tests/test-utimens.h (test_utimens): Refactor utimecmp
43580         comparisons to avoid spurious failures from timestamp drift
43581         between NFS machines.
43582
43583 2009-10-12  Eric Blake  <ebb9@byu.net>
43584
43585         stat-time-tests: minor cleanups
43586         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
43587         * tests/test-stat-time.c (nap): Separate assignment from call.
43588         Suggested by Paolo Bonzini and Bruno Haible.
43589
43590         sys_stat: guarantee struct timespec
43591         * lib/sys_stat.in.h (includes): Always include <time.h>
43592         * modules/sys_stat (Depends-on): Add time.
43593         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
43594         mode_t permission values.
43595         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
43596         get at subsecond timestamps.
43597
43598 2009-10-10  Eric Blake  <ebb9@byu.net>
43599
43600         futimens: new module
43601         * modules/futimens: New file.
43602         * lib/futimens.c (futimens): Likewise.
43603         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
43604         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
43605         we can work around Linux bugs.
43606         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43607         * modules/sys_stat (Makefile.am): Substitute them.
43608         * lib/sys_stat.in.h (futimens): Declare it.
43609         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43610         * doc/posix-functions/futimens.texi (futimens): Likewise.
43611         * modules/futimens-tests: New test.
43612         * tests/test-futimens.c: Likewise.
43613
43614         utimens: introduce fdutimens
43615         * lib/utimens.h (fdutimens): New prototype.
43616         * lib/utimens.c (gl_futimens): Move guts...
43617         (fdutimens): ...to new interface.
43618         * tests/test-utimens.c (do_fdutimens): Use it.
43619
43620         utimens: add UTIME_NOW and UTIME_OMIT support
43621         * lib/utimens.c (validate_timespec, update_timespec): New helper
43622         functions.
43623         (gl_futimens, lutimens): Use them.
43624         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
43625         stdbool, sys_stat.
43626         (Link): Mention resulting library dependency.
43627         * modules/utimecmp (Link): Likewise.
43628         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
43629         (Makefile.am): Pick up library dependency.
43630         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
43631         definition.
43632         * tests/test-sys_stat.c: Test the definitions.
43633         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
43634         * NEWS: Document library dependency.
43635
43636         utimecmp: support symlink timestamps
43637         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
43638         hashing when possible.  Use pathconf when available.
43639         (SYSCALL_RESOLUTION): Recognize tighter resolution.
43640         * modules/utimecmp (Depends-on): Add lstat.
43641
43642         utimens: add lutimens interface
43643         * lib/utimens.c (lutimens): New function.
43644         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
43645         * lib/utimens.h (lutimens): Declare new interface.
43646         * tests/test-utimens.c (main): Enhance test.
43647         * tests/test-lutimens.h (test_lutimens): New file.
43648         * modules/utimens-tests (Files): Distribute it.
43649         (Depends-on): Add symlink.
43650         (configure.ac): Check for usleep.
43651
43652         utimens: validate futimens usage
43653         * lib/utimens.c (gl_futimens): Require valid fd up front, using
43654         fewer syscalls on failure later on.  Avoid compiler warning on
43655         mingw.
43656         * modules/utimens (Depends-on): Add dup2.
43657
43658         utimens: add test
43659         * modules/utimens-tests: New test.
43660         * tests/test-utimens.h: New file.
43661         * tests/test-futimens.h: Likewise.
43662         * tests/test-utimens.c: Likewise.
43663
43664         doc: mention timestamp portability issues
43665         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
43666         instead.
43667         * doc/posix-functions/utime.texi (utime): Likewise.
43668         * doc/posix-functions/utimes.texi (utimes): Likewise.
43669         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
43670         instead.
43671         * doc/posix-functions/futimens.texi (futimens): Mention utimens
43672         module.
43673         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
43674         Mention weakness with symlink timestamps.
43675         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
43676         to utimensat/futimens instead.
43677         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
43678
43679         test-dup2: enhance test
43680         * tests/test-dup2.c (main): Also check AT_FDCWD.
43681
43682         test-stat-time: avoid more spurious failures
43683         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
43684         xfs; and avoid race if the two timestamps cross quantization edge.
43685
43686         relocatable: prefer 'file system' over 'filesystem'
43687         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
43688         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
43689         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
43690         * doc/relocatable.texi (Enabling Relocatability): Likewise.
43691         * lib/relocatable.c (compute_curr_prefix): Likewise.
43692
43693 2009-10-10  Jim Meyering  <meyering@redhat.com>
43694
43695         stat-time-tests: check for the usleep function
43696         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
43697
43698 2009-10-10  Bruno Haible  <bruno@clisp.org>
43699
43700         * modules/xnanosleep: Put the Link section after the Include section.
43701
43702 2009-10-09  Eric Blake  <ebb9@byu.net>
43703
43704         dup2: work around FreeBSD 6.1 bug
43705         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
43706         * doc/posix-functions/dup2.texi (dup2): Document it.
43707         Reported by Nelson H. F. Beebe and Jim Meyering.
43708
43709         test-stat-time: port to buggy NFS clients
43710         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
43711         (test_ctime): Also skip test if mtime and ctime are skewed.
43712
43713         maint: prefer 'file system' over 'filesystem'
43714         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43715         * doc/posix-functions/lstat.texi (lstat): Likewise.
43716         * lib/file-has-acl.c (file_has_acl): Likewise.
43717         * lib/fwriteerror.c [TEST]: Likewise.
43718         * tests/test-areadlink.h (test_areadlink): Likewise.
43719         * tests/test-areadlinkat-with-size.c (main): Likewise.
43720         * tests/test-areadlinkat.c (main): Likewise.
43721         * tests/test-canonicalize-lgpl.c (main): Likewise.
43722         * tests/test-canonicalize.c (main): Likewise.
43723         * tests/test-fstatat.c (main): Likewise.
43724         * tests/test-linkat.c (main): Likewise.
43725         * tests/test-lstat.h (test_lstat_func): Likewise.
43726         * tests/test-mkdir.h (test_mkdir): Likewise.
43727         * tests/test-readlink.h (test_readlink): Likewise.
43728         * tests/test-remove.c (main): Likewise.
43729         * tests/test-rename.h (test_rename): Likewise.
43730         * tests/test-renameat.c (main): Likewise.
43731         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43732         * tests/test-symlink.h (test_symlink): Likewise.
43733         * tests/test-symlinkat.c (main): Likewise.
43734         * tests/test-unlink.h (test_unlink_func): Likewise.
43735         * tests/test-unlinkat.c (main): Likewise.
43736
43737         maint: make realtime library usage explicit
43738         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
43739         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
43740         * modules/settime (Link): Likewise.
43741         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
43742
43743         test-stat-time: speed up execution
43744         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
43745         warning on mingw.
43746         (nap): New helper function.
43747         (prepare_test): Use it to reduce sleep time.
43748         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
43749         execution.
43750         * modules/stat-time-tests (configure.ac): Check for usleep.
43751
43752 2009-10-09  Jim Meyering  <meyering@redhat.com>
43753
43754         selinux-h: always use getfilecon wrappers
43755         * lib/getfilecon.c: New file.
43756         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
43757         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
43758         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
43759         (fgetfilecon): Provide a stub.
43760         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
43761         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
43762         file unconditionally.
43763         When <selinux/selinux.h> is found, arrange to use wrappers.
43764         * modules/selinux-h (Files): Add getfilecon.c.
43765         (Makefile.am): Substitute include-next-related bits
43766         into the now-always-generated selinux/selinux.h file.
43767         * doc/glibc-functions/lgetfilecon.texi: New file.
43768         * doc/glibc-functions/fgetfilecon.texi: New file.
43769         * doc/glibc-functions/getfilecon.texi: New file.
43770         * doc/glibc-functions/getfilecon-desc.texi: New file.
43771         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
43772         which to pull in the new files.
43773         * MODULES.html.sh (Misc): Add selinux-h.
43774
43775 2009-10-08  Jim Meyering  <meyering@redhat.com>
43776
43777         unistd: fix comment typo
43778         * lib/unistd.in.h (euidaccess): Fix a comment typo.
43779
43780 2009-10-08  Eric Blake  <ebb9@byu.net>
43781
43782         areadlink: use SIZE_MAX consistently
43783         * modules/areadlink (Depends-on): Add stdint.
43784         * modules/areadlink-with-size (Depends-on): Likewise.
43785         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
43786         gives NULL; drop sys/types, since unistd gives size_t; and add
43787         stdint for SIZE_MAX.
43788         (SIZE_MAX): Rely on headers.
43789         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
43790         and add stdint.
43791         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
43792         (SIZE_MAX): Likewise.
43793         (INITIAL_BUF_SIZE): Turn into enum.
43794         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
43795
43796 2009-10-08  Jim Meyering  <meyering@redhat.com>
43797
43798         areadlinkat: avoid compilation failure
43799         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
43800         Fix typo in comment.
43801
43802 2009-10-07  Eric Blake  <ebb9@byu.net>
43803
43804         areadlinkat-with-size: new module
43805         * modules/areadlinkat-with-size: New module.
43806         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
43807         * lib/areadlink.h (areadlinkat): Declare it.
43808         * MODULES.html.sh (File system functions): Mention it.
43809         * modules/areadlinkat-with-size-tests: New test.
43810         * tests/test-areadlinkat-with-size.c: New file.
43811
43812         xreadlinkat: new module
43813         * modules/xreadlinkat: New module.
43814         * lib/xreadlinkat.c (xreadlinkat): New file.
43815         * lib/xreadlink.h (xreadlinkat): Declare it.
43816         * MODULES.html.sh (File system functions): Mention it.
43817
43818         areadlinkat: new module
43819         * lib/at-func.c (FUNC_FAIL): New define.
43820         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43821         * modules/areadlinkat: New module.
43822         * lib/linkat.c (areadlinkat): Move...
43823         * lib/areadlinkat.c (areadlinkat): ...to new file.
43824         * lib/areadlink.h (areadlinkat): Declare it.
43825         * modules/linkat (Depends-on): Add areadlinkat.
43826         * MODULES.html.sh (File system functions): Mention it.
43827         * modules/areadlinkat-tests: New test.
43828         * tests/test-areadlinkat.c: New file.
43829
43830         areadlink, areadlink-with-size: add tests
43831         * modules/areadlink-tests: New test.
43832         * modules/areadlink-with-size-tests: Likewise.
43833         * tests/test-areadlink.h: New file.
43834         * tests/test-areadlink.c: Likewise.
43835         * tests/test-areadlink-with-size.c: Likewise.
43836
43837         maint: minor cleanups
43838         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43839         _UNUSED_PARAMETER_ instead.
43840         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43841         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43842         * modules/linkat-tests (Files): Distribute test-link.h.
43843
43844         openat, utimens: whitespace cleanup
43845         * lib/openat.c: Prefer space throughout, rather than mix of 8
43846         spaces vs. tabs.
43847         * lib/at-func.c: Likewise.
43848         * lib/utimens.c: Likewise.
43849
43850         openat: avoid using wrong fd
43851         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43852         working directory chooses same fd.
43853         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43854
43855         mkdir, mkdirat: fix cygwin 1.5.x bug
43856         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43857         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43858         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43859         bug.
43860         (gl_PREREQ_MKDIR): Delete unused macro.
43861         * modules/mkdir (Files): Track file rename.
43862         (configure.ac): Update macro name.
43863         * modules/openat (Depends-on): Add mkdir.
43864         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43865
43866         mkdir, mkdirat: add tests
43867         * modules/mkdir-tests: New test.
43868         * tests/test-mkdir.h: New file.
43869         * tests/test-mkdir.c: Likewise.
43870         * tests/test-mkdirat.c: Likewise.
43871         * modules/openat-tests (Files): Add new files.
43872         (Makefile.am): Run new test.
43873
43874 2009-10-06  Eric Blake  <ebb9@byu.net>
43875
43876         doc: tweak *at function documentation
43877         * doc/posix-functions/faccessat.texi (faccessat): Mention
43878         known issue with replacement.
43879         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43880         * doc/posix-functions/linkat.texi (linkat): Likewise.
43881         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43882         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43883         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43884         * doc/posix-functions/renameat.texi (renameat): Likewise.
43885         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43886
43887         openat: fix GNU/Hurd bug in unlinkat
43888         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43889         broken.
43890         * doc/posix-functions/unlink.texi (unlink): Document this.
43891         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43892
43893         fdopendir: fix GNU/Hurd bug
43894         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43895         allowing non-directory fds.
43896         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43897         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43898         * modules/dirent (Makefile.am): Substitute it.
43899         * lib/dirent.in.h (fdopendir): Declare replacement.
43900         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43901         * tests/test-fdopendir.c (main): Test something other than
43902         /dev/null, since on Hurd that behaves like a directory.
43903
43904         test-symlink: port to GNU/Hurd
43905         * tests/test-symlink.h (test_symlink): Relax expected errno.
43906
43907         doc: tweak more cygwin information
43908         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43909         now compatible with glibc.
43910         * doc/posix-functions/getopt.texi (getopt): Likewise.
43911
43912         getopt-gnu: add another test
43913         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43914         guarantee behavior relied on by m4.
43915         * tests/test-getopt.c (main): Use it.
43916         * modules/getopt-posix-tests (Depends-on): Add setenv.
43917         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43918
43919         getopt: fix compilation on darwin
43920         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43921         include.
43922         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43923         Reported by Ludovic Courtès.
43924
43925 2009-10-06  Bruno Haible  <bruno@clisp.org>
43926
43927         * modules/size_max (Description): Discourage its use.
43928         Reported by Simon Josefsson.
43929
43930 2009-10-06  Jim Meyering  <meyering@redhat.com>
43931
43932         linkat: avoid compilation failure
43933         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43934
43935 2009-10-05  Eric Blake  <ebb9@byu.net>
43936
43937         linkat: support Linux 2.6.17
43938         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43939         linkat on Linux, but allow cache variable override.
43940         * lib/linkat.c (rpl_linkat): Define override.
43941         * modules/linkat (Depends-on): Add symlinkat.
43942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43943         * modules/unistd (Makefile.am): Substitute it.
43944         * lib/unistd.in.h (linkat): Declare replacement.
43945         Reported by Pádraig Brady.
43946
43947         quotearg: port test to systems with C.UTF-8 locale
43948         * tests/test-quotearg.c (struct result_strings): Add another
43949         member, differentiating between C.ASCII and C.UTF-8 handling.
43950         (compare_strings): Add parameter.
43951         (main): Adjust all callers.
43952
43953         getopt: avoid clash with FreeBSD _getopt_internal
43954         * lib/getopt.in.h (_getopt_internal): Override the name.
43955         * lib/getopt_int.h (includes): Pick up any overrides.
43956         Reported by Reuben Thomas.
43957
43958         hash: allow C89 compilation
43959         * lib/hash.c (check_tuning): Move declaration before statement.
43960         Reported by Reuben Thomas.
43961
43962 2009-10-05  Karl Berry  <karl@gnu.org>
43963
43964         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43965
43966 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43967             Bruno Haible  <bruno@clisp.org>
43968
43969         * lib/uname.c (uname): Use a table-driven algorithm to compute
43970         Windows NT versions.
43971
43972 2009-10-04  Bruno Haible  <bruno@clisp.org>
43973
43974         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43975         program_invocation_short_name.
43976         * modules/progname (configure.ac): Test for presence of
43977         program_invocation_short_name.
43978         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43979
43980 2009-10-04  Bruno Haible  <bruno@clisp.org>
43981
43982         * lib/progname.c (set_program_name): Fix comment.
43983         Reported by Jim Meyering.
43984
43985 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43986             Bruno Haible  <bruno@clisp.org>
43987
43988         * lib/uname.c: Include <string.h>.
43989         (uname): Do only one call to GetVersionEx in the common case.
43990
43991 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43992             Bruno Haible  <bruno@clisp.org>
43993
43994         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43995         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43996         (uname): Add support for Windows CE and various non-x86 CPU types.
43997
43998 2009-10-03  Bruno Haible  <bruno@clisp.org>
43999
44000         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
44001         invocation to tests/configure.ac.
44002         Reported by Ian Beckwith <ianb@erislabs.net>.
44003
44004 2009-10-02  Eric Blake  <ebb9@byu.net>
44005
44006         fchdir: avoid compiler warning
44007         * lib/fchdir.c (canonicalize_file_name)
44008         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
44009
44010         test-open: support mingw errno values
44011         * tests/test-open.h (test_open): Relax test.
44012         * tests/test-fopen.h (test_fopen): Likewise.
44013         * tests/test-openat-safer.c (main): Likewise.
44014
44015         open: fix opening directory on mingw
44016         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
44017
44018         test-open: on GNU/Hurd, /dev/null is a directory
44019         * tests/test-fopen.h (main): Rename...
44020         (test_fopen): ...to this.  Use a guaranteed non-directory when
44021         confirming open behavior on trailing slash.
44022         * tests/test-openat-safer.c (main): Likewise.
44023         * tests/test-open.h (main): Likewise....
44024         (test_open): ...to this.
44025         * tests/test-fopen.c (main): Adjust caller.
44026         * tests/test-fopen-safer.c (main): Likewise.
44027         * tests/test-open.c (main): Likewise.
44028         * tests/test-fcntl-safer.c (main): Likewise.
44029         Reported by Samuel Thibault.
44030
44031         rename, fchdir: don't ignore chdir failure
44032         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
44033         * lib/rename.c (rpl_rename) [W32]: Likewise.
44034         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
44035         an empty destination directory if source cannot be renamed,
44036         although there is still possibility for failure.
44037         * doc/posix-functions/rename.texi (rename): Document the race.
44038         Reported by Jim Meyering.
44039
44040         maint: cleanup whitespace in recent commits
44041         * lib/rename.c (rpl_rename): Remove tabs.
44042         * tests/test-link.h (test_link): Likewise.
44043         * lib/fchdir.c (get_name): Likewise.
44044         Reported by Jim Meyering.
44045
44046 2009-10-02  Ben Pfaff  <blp@gnu.org>
44047
44048         relocatable-prog-wrapper: Add missing dependency on
44049         double-slash-root.
44050         * modules/relocatable-prog-wrapper: Add dependency.
44051         Reported by Ian Beckwith <ianb@erislabs.net>.
44052
44053 2009-10-02  Eric Blake  <ebb9@byu.net>
44054
44055         renameat: fix Solaris bugs
44056         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
44057         needed fixing.
44058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
44059         * modules/stdio (Makefile.am): Substitute it.
44060         * lib/stdio.in.h (renameat): Declare replacement.
44061         * lib/renameat.c (rpl_renameat): Implement fix.
44062
44063         renameat: new module
44064         * modules/renameat: New file.
44065         * lib/renameat.c (renameat): Likewise.
44066         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
44067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44068         * modules/stdio (Makefile.am): Substitute them.
44069         * lib/stdio.in.h (renameat): Declare it.
44070         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44071         * doc/posix-functions/renameat.texi (renameat): Likewise.
44072         * modules/renameat-tests: New test.
44073         * tests/test-renameat.c: Likewise.
44074
44075         rename: fix mingw bugs
44076         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
44077         directory overwrite bugs.
44078
44079         rename: fix another cygwin 1.5 bug
44080         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
44081         checks.
44082         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
44083         unnecessary cygwin workarounds.  Also work around bug with moving
44084         full directory onto an empty one.
44085         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
44086
44087         rename-dest-slash: merge into rename module
44088         * modules/rename-dest-slash (Status): Mark obsolete.
44089         (Depends-on): Add rename.
44090         (Files): Let rename do it all.
44091         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
44092         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
44093         * m4/rename-dest-slash.m4: ...so this file can be deleted.
44094         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
44095         * lib/rename.c (rpl_rename): Update comments.
44096
44097         rename: fix cygwin 1.5.x bugs
44098         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
44099         * lib/rename.c (rpl_rename): Work around them.
44100         * modules/rename (Depends-on): Add same-inode.
44101
44102         rename: fix Solaris 10 bug
44103         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44104         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
44105         was the only bug.
44106
44107         rename: fix Solaris 9 bug
44108         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
44109         on non-directory.  Avoid calling exit.
44110         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
44111         strdup.
44112         * modules/rename-tests (Depends-on): Drop lstat.
44113         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
44114         (gl_PREREQ_RENAME): Delete unused macro.
44115
44116         rename-dest-slash: fix NetBSD bug
44117         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
44118         links.
44119         * modules/rename-dest-slash (Depends-on): Add same-inode.
44120
44121         rename-tests: new test, exposes several platform bugs
44122         * modules/rename-tests: New file.
44123         * tests/test-rename.h: Likewise.
44124         * tests/test-rename.c: Likewise.
44125         * doc/posix-functions/rename.texi (rename): Improve documentation,
44126         including bugs that will eventually be fixed in gnulib.
44127
44128 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
44129
44130         * lib/uname.c: Include <stdlib.h>
44131         (uname): Assume version info is available.
44132
44133 2009-10-02  Jim Meyering  <meyering@redhat.com>
44134
44135         gnu-web-doc-update: correct --help output
44136         * build-aux/gnu-web-doc-update: Make --help output relevant.
44137
44138         gnu-web-doc-update: add standard options
44139         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
44140
44141         gnu-web-doc-update: New module.
44142         Use this script to automatically update the on-line web documentation
44143         for your GNU project at http://www.gnu.org/software/$pkg/manual/
44144         * modules/gnu-web-doc-update: New file, from coreutils.
44145         * build-aux/gnu-web-doc-update: New script.
44146
44147 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
44148
44149         link: LoadLibrary is not needed.
44150         * lib/link.c: Use GetModuleHandle.
44151
44152 2009-10-01  Eric Blake  <ebb9@byu.net>
44153
44154         getopt: bump serial number
44155         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
44156         change.
44157
44158         tests: tighten link, rmdir, and remove tests
44159         * tests/test-link.h (includes): No need to use <config.h> here.
44160         Clean up if directory hard link was created, otherwise test for
44161         trailing '.'.
44162         * tests/test-linkat.c (main): Simplify.
44163         * tests/test-remove.c (main): Enhance test for trailing '.'.
44164         * tests/test-rmdir.h (test_rmdir_func): Likewise.
44165
44166 2009-10-01  Jim Meyering  <meyering@redhat.com>
44167
44168         maint.mk: requiring "make major" was annoying, for a "minor" release.
44169         What is intended is "stable", to contrast with alpha and beta,
44170         so require "make stable", not "make major".
44171         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
44172         (get_tool_versions): Likewise.
44173         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
44174
44175 2009-09-30  Ben Pfaff  <blp@gnu.org>
44176
44177         Fix broken build of replacement for Windows tmpfile().
44178         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
44179         flags argument added along with the 'mkostemp' module.
44180
44181 2009-09-28  Bruno Haible  <bruno@clisp.org>
44182
44183         Avoid identifier clash with POSIX function 'remove' defined as a macro.
44184         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
44185         to 'remove_elt'.
44186         (gl_list_remove): Update.
44187         * lib/gl_list.c (gl_list_remove): Update.
44188         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
44189         to 'remove_elt'.
44190         (gl_oset_remove): Update.
44191         * lib/gl_list.c (gl_oset_remove): Update.
44192         Reported by Eric Blake.
44193
44194 2009-09-28  Eric Blake  <ebb9@byu.net>
44195
44196         doc: mention yet more cygwin 1.7 status
44197         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
44198         cygwin.
44199         * doc/glibc-functions/execvpe.texi (execvpe): New file.
44200         * doc/gnulib.texi (Glibc unistd.h): Mention it.
44201
44202         argp: fix test failure
44203         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
44204         that are not upper-case.  Pass correct range to tolower.
44205
44206 2009-09-27  Jim Meyering  <meyering@redhat.com>
44207
44208         test-yesno: work around sparc-dash here-document infelicity
44209         Without this change, the literal \177 byte in a here document
44210         would make dash 0.5.5.1-3 access uninitialized memory.
44211         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
44212         Instead, use a marker, "@", and filter through tr to create the desired
44213         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
44214
44215 2009-09-27  Bruno Haible  <bruno@clisp.org>
44216
44217         Disable untested support for new flavours of ACLs on AIX.
44218         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
44219         progress.
44220         * lib/set-mode-acl.c (qset_acl): Likewise.
44221
44222 2008-12-07  Bruno Haible  <bruno@clisp.org>
44223
44224         Add support for new flavours of ACLs on AIX. (Untested.)
44225         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
44226         (file_has_acl): Add support for newer AIX.
44227         * lib/set-mode-acl.c (qset_acl): Likewise.
44228         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
44229         Rainer Tammer <tammer@tammer.net>.
44230
44231 2009-09-26  Eric Blake  <ebb9@byu.net>
44232
44233         argp: fix compilation of getopt
44234         * lib/getopt.in.h (includes): Use different guard than glibc.
44235         Reported by Sergey Poznyakoff.
44236
44237         doc: mention more cygwin 1.7 status
44238         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
44239         bug.
44240         * doc/posix-functions/execl.texi (execl): Likewise.
44241         * doc/posix-functions/execle.texi (execle): Likewise.
44242         * doc/posix-functions/execlp.texi (execlp): Likewise.
44243         * doc/posix-functions/execv.texi (execv): Likewise.
44244         * doc/posix-functions/execve.texi (execve): Likewise.
44245         * doc/posix-functions/execvp.texi (execvp): Likewise.
44246         * doc/glibc-functions/canonicalize_file_name.texi
44247         (canonicalize_file_name): Cygwin 1.7 now provides this.
44248         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
44249         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
44250         on AT_SYMLINK_NOFOLLOW.
44251
44252 2009-09-24  Eric Blake  <ebb9@byu.net>
44253
44254         test-linkat: make test more robust
44255         * tests/test-linkat.c (main): Avoid collision with EEXIST.
44256
44257         getopt: fix inclusion guards for cygwin
44258         * modules/getopt-posix (Depends-on): Add include-next.
44259         (Makefile.am): Substitute more items in replacement header.
44260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
44261         <getopt.h>.
44262         * lib/getopt.in.h (includes): Use split inclusion guard, and
44263         prefer <getopt.h> over include <unistd.h> when one is present.
44264         (option): Also override name of 'struct option'.
44265
44266         same-inode: revert prior change; it is not yet ready
44267         * NEWS: Undo mention of this change.
44268         * lib/same-inode.h (same-inode.h): Undo tri-state change.
44269         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44270         * lib/cycle-check.c (cycle_check): Likewise.
44271         * lib/same.c (same_name): Likewise.
44272         * lib/at-func2.c (at_func2): Likewise.
44273
44274 2009-09-23  Eric Blake  <ebb9@byu.net>
44275
44276         linkat: new module
44277         * modules/linkat: New file.
44278         * lib/at-func2.c (at_func2): Likewise.
44279         * lib/linkat.c (linkat): Likewise.
44280         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
44281         * lib/openat-priv.h (at_func2): Add declaration.
44282         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44283         * modules/unistd (Makefile.am): Substitute them.
44284         * lib/unistd.in.h (linkat): Declare it.
44285         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44286         * doc/posix-functions/linkat.texi (linkat): Likewise.
44287         * doc/posix-functions/link.texi (link): Tweak wording.
44288         * tests/test-link.c (main): Move guts...
44289         * tests/test-link.h (test_link): ...into new file.
44290         * modules/linkat-tests: New test.
44291         * tests/test-linkat.c: Likewise.
44292         * modules/link-tests (Files): Ship new file.
44293         (Depends-on): Add stdbool.
44294
44295         dirname: add library-safe mdir_name
44296         * lib/dirname.h (mdir_name): New prototype.
44297         * lib/dirname.c (dir_name): Move guts...
44298         (mdir_name): ...to new function that avoids xalloc_die.
44299
44300         fchdir: another mingw fix
44301         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
44302         * lib/fchdir.c (get_name): New helper method; skips canonicalize
44303         on mingw (where it has not yet been ported), and make it optional
44304         elsewhere.
44305         (_gl_register_fd): Use it.
44306
44307         same-inode: make SAME_INODE tri-state, to port to mingw
44308         * NEWS: Mention this change.
44309         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
44310         st_ino always being 0.
44311         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
44312         * lib/cycle-check.c (cycle_check): Likewise.
44313         * lib/same.c (same_name): Likewise.
44314
44315         lstat: avoid mingw compilation error
44316         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
44317         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
44318         lstat ourselves.
44319         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
44320         was adequate.
44321         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
44322         the checks for lstat.
44323         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
44324
44325         link: fix test failure on Solaris 9
44326         * lib/link.c (rpl_link): Don't assume link will catch bogus
44327         trailing slash on source.
44328
44329         test-symlinkat: enhance test
44330         * tests/test-readlink.c (main): Move guts...
44331         * tests/test-readlink.h (test_readlink): ...into new file.
44332         * tests/test-symlink.c (main): Move guts...
44333         * tests/test-symlink.h (test_symlink): ...into new file.
44334         * tests/test-symlinkat.c (main): Use new files for further
44335         coverage.
44336         (do_symlink, do_readlink): New helper functions.
44337         * modules/symlink-tests (Files): Ship new file.
44338         (Depends-on): Add stdbool.
44339         * modules/readlink-tests (Files): Ship new file.
44340         (Depends-on): Add stdbool.
44341         * modules/symlinkat-tests (Files): Use new files.
44342
44343 2009-09-23  Eric Blake  <ebb9@byu.net>
44344
44345         readlink: document portability issue with symlink length
44346         * doc/posix-functions/lstat.texi (lstat): Mention that some file
44347         systems have bogus st_size on symlinks, and mention the
44348         areadlink-with-size module.
44349         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
44350         * doc/posix-functions/readlink.texi (readlink): Mention the
44351         areadlink module, and ERANGE failure.
44352         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44353         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
44354
44355         readlink: fix Solaris 9 bug with trailing slash
44356         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
44357         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
44358         * doc/posix-functions/readlink.texi (readlink): Document this.
44359         * modules/readlink-tests: New test.
44360         * tests/test-readlink.c: Likewise.
44361
44362         readlink: fix cygwin 1.5.x bug with return type
44363         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
44364         * lib/unistd.in.h (readlink): Use ssize_t.
44365         * lib/readlink.c (readlink): Likewise.
44366         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44367         * modules/unistd (Makefile.am): Substitute it.
44368         * lib/unistd.in.h (readlink): Declare replacement.
44369         * doc/posix-functions/readlink.texi (readlink): Document this.
44370
44371         symlink: use throughout gnulib
44372         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
44373         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
44374         symlink is not used.
44375         * modules/symlinkat (Depends-on): Add symlink.
44376         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44377         * modules/canonicalize-tests (Depends-on): Likewise.
44378         * modules/lstat-tests (Depends-on): Likewise.
44379         * modules/openat-tests (Depends-on): Likewise.
44380         * modules/remove-tests (Depends-on): Likewise.
44381         * modules/rmdir-tests (Depends-on): Likewise.
44382         * modules/unlink-tests (Depends-on): Likewise.
44383         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
44384         * tests/test-canonicalize.c (symlink): Likewise.
44385         * tests/test-fstatat.c (symlink): Likewise.
44386         * tests/test-lstat.c (symlink): Likewise.
44387         * tests/test-remove.c (symlink): Likewise.
44388         * tests/test-rmdir.c (symlink): Likewise.
44389         * tests/test-unlink.c (symlink): Likewise.
44390         * tests/test-unlinkat.c (symlink): Likewise.
44391
44392         symlink: new module, for Solaris 9 bug
44393         * modules/symlink: New file.
44394         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
44395         * lib/symlink.c: Likewise.
44396         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
44397         * modules/unistd (Makefile.am): Substitute them.
44398         * lib/unistd.in.h (symlink): Declare replacement.
44399         * MODULES.html.sh (File system functions): Mention it.
44400         * doc/posix-functions/symlink.texi (symlink): Likewise.
44401         * modules/symlink-tests: New test.
44402         * tests/test-symlink.c: Likewise.
44403
44404 2009-09-23  Bruno Haible  <bruno@clisp.org>
44405
44406         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
44407         when needed.
44408         Test case: gnulib-tool --import --with-tests atexit inttypes.
44409         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
44410
44411 2009-09-23  Bruno Haible  <bruno@clisp.org>
44412
44413         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
44414         subcommand, not in a subshell.
44415
44416 2009-09-22  Eric Blake  <ebb9@byu.net>
44417
44418         unistd: sort replacement declarations
44419         * lib/unistd.in.h: Sort declarations.
44420
44421         open, openat: minor optimization
44422         * lib/open.c (open): If open succeeded, len is non-zero.
44423         * lib/openat.c (rpl_openat): Likewise.
44424
44425         link-follow: ensure correct result
44426         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
44427         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
44428         distinguish between possible failures.
44429
44430 2009-09-21  Eric Blake  <ebb9@byu.net>
44431
44432         fts: avoid compiler warning
44433         * lib/fts.c (dirent_inode_sort_may_be_useful)
44434         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
44435
44436 2009-09-19  Bruno Haible  <bruno@clisp.org>
44437
44438         * lib/progreloc.c (canonicalize_file_name): New declaration.
44439
44440 2009-09-19  Eric Blake  <ebb9@byu.net>
44441
44442         link: fix quoting
44443         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
44444
44445         openat: fix openat bugs on Solaris 9
44446         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
44447         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
44448         * modules/openat (Depends-on): Add open.
44449         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
44450         * modules/fcntl-h (Makefile.am): Substitute it.
44451         * lib/fcntl.in.h (openat): Declare replacement.
44452         * doc/posix-functions/openat.texi (openat): Document this.
44453
44454         openat: move fstatat and unlinkat into correct files
44455         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
44456         compiled.
44457         * lib/openat.c (fstatat, unlinkat): Move...
44458         * lib/fstatat.c (fstatat): ...into correct files.
44459         * lib/unlinkat.c (unlinkat): Likewise.
44460
44461         openat: fix unlinkat bugs on Solaris 9
44462         * lib/unlinkat.c (unlinkat): New file.
44463         * modules/openat (Depends-on): Add unlink.
44464         (Files): Distribute it.
44465         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
44466         trailing slash behavior is broken.
44467         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44468         * modules/unistd (Makefile.am): Substitute it.
44469         * lib/unistd.in.h (unlinkat): Declare replacement.
44470         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
44471
44472         openat: fix fstatat bugs on Solaris 9
44473         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
44474         stat.
44475         * doc/posix-functions/fstatat.texi (fstatat): Document this.
44476
44477         test-unlinkat: enhance test, to expose Solaris 9 bug
44478         * tests/test-unlink.c (main): Factor guts...
44479         * tests/test-unlink.h (test_rmdir_func): ...into new file.
44480         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
44481         * tests/test-rmdir.c (main): Adjust caller.
44482         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
44483         (unlinker): New helper function.
44484         (rmdirat): Enhance check.
44485         * modules/rmdir-tests (Depends-on): Add stdbool.
44486         * modules/unlink-tests (Depends-on): Likewise.
44487         (Files): Add test-unlink.h.
44488         * modules/openat-tests (Files): Likewise.
44489         (Depends-on): Add unlinkdir.
44490
44491         test-fstatat: new test, to expose Solaris 9 bugs
44492         * tests/test-stat.c (main): Factor guts...
44493         * tests/test-stat.h (test_stat_func): ...into new file.
44494         * tests/test-lstat.c (main): Factor guts...
44495         * tests/test-lstat.h (test_lstat_func): ...into new file.
44496         * tests/test-fstatat.c: New file.
44497         * modules/stat-tests (Files): Add test-stat.h.
44498         * modules/lstat-tests (Files): Add test-lstat.h.
44499         (Depends-on): Add stdbool.
44500         * modules/openat-tests (Depends-on): Add pathmax.
44501         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
44502         (Makefile.am): Run new test.
44503
44504         remove: new module, for mingw and Solaris 9 bugs
44505         * modules/remove: New file.
44506         * lib/remove.c: Likewise.
44507         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
44508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
44509         * modules/stdio (Makefile.am): Use them.
44510         * lib/stdio.in.h (remove): Declare replacement.
44511         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44512         * doc/posix-functions/remove.texi (remove): Likewise.
44513         * modules/remove-tests: New test.
44514         * tests/test-remove.c: Likewise.
44515
44516         unlink: new module, for Solaris 9 bug
44517         * modules/unlink: New file.
44518         * lib/unlink.c: Likewise.
44519         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
44520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44521         * modules/unistd (Makefile.am): Use them.
44522         * lib/unistd.in.h (stat): Declare replacement.
44523         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44524         * doc/posix-functions/unlink.texi (unlink): Likewise.
44525         * modules/unlink-tests: New test.
44526         * tests/test-unlink.c: Likewise.
44527
44528         lstat: fix Solaris 9 bug
44529         * lib/lstat.c (lstat): Also check for trailing slash on
44530         non-symlink, non-directories.  Use stat module to simplify logic.
44531         * doc/posix-functions/lstat.texi (lstat): Document it.
44532         * modules/lstat-tests (Depends-on): Add errno, same-inode.
44533         (configure.ac): Check for symlink.
44534         * tests/test-lstat.c (main): Add more tests.
44535
44536         stat: add as dependency to other modules
44537         * modules/chown (Depends-on): Add stat.
44538         * modules/euidaccess (Depends-on): Likewise.
44539         * modules/fchdir (Depends-on): Likewise.
44540         * modules/isdir (Depends-on): Likewise.
44541         * modules/link (Depends-on): Likewise.
44542         * modules/lstat (Depends-on): Likewise.
44543         * modules/mkdir-p (Depends-on): Likewise.
44544         * modules/modechange (Depends-on): Likewise.
44545         * modules/open (Depends-on): Likewise.
44546         * modules/readlink (Depends-on): Likewise.
44547         * modules/same (Depends-on): Likewise.
44548
44549         stat: fix Solaris 9 bug
44550         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
44551         slash.
44552         * lib/stat.c (rpl_stat): Work around it.
44553         * doc/posix-functions/stat.texi (stat): Update documentation.
44554
44555         stat: new module, for mingw bug
44556         * modules/stat: New file.
44557         * lib/stat.c: Likewise.
44558         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
44559         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44560         * modules/sys_stat (Makefile.am): Use them.
44561         * lib/sys_stat.in.h (stat): Declare replacement.
44562         * lib/openat.c (fstatat): Deal with lstat and stat being function
44563         macros.
44564         * modules/openat (Depends-on): Add inline.
44565         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
44566         * doc/posix-functions/stat.texi (stat): Likewise.
44567         * modules/stat-tests: New test.
44568         * tests/test-stat.c: Likewise.
44569
44570 2009-09-19  Jim Meyering  <meyering@redhat.com>
44571
44572         syntax-check: detect unnecessary inclusion of canonicalize.h
44573         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
44574
44575 2009-09-19  Eric Blake  <ebb9@byu.net>
44576
44577         canonicalize-lgpl: adjust clients to use correct header
44578         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44579         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
44580         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
44581         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
44582         * lib/progreloc.c (includes): Likewise.
44583
44584 2009-09-19  Jim Meyering  <meyering@redhat.com>
44585
44586         test-posixtm.c: correct a comment
44587         * tests/test-posixtm.c: Correct first-line comment.
44588         Spotted by Eric Blake.
44589
44590 2009-09-16  Jim Meyering  <meyering@redhat.com>
44591
44592         posixtm-tests: make T const-correct; add a test case
44593         * tests/test-posixtm.c (T): Declare const.
44594         Add a test for -(2^31+1).
44595         Remove useless can-succeed-only-in-2002 test.
44596
44597         posixtm-tests: adjust the sole failing test
44598         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
44599         expected output matches what mktime now produces.  Cross-checked via
44600         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
44601
44602         posixtm: move #ifdef'd tests into a new module
44603         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
44604         * tests/test-posixtm.c: ... this new file.
44605         * modules/posixtm-tests: New module.
44606
44607 2009-09-19  Eric Blake  <ebb9@byu.net>
44608
44609         openat: simplify use of at-func.c
44610         * lib/at-func.c (includes): Include prerequisites here, to
44611         simplify requirements on client files.
44612         * lib/openat-priv.h: Add double-inclusion guard.
44613         * lib/faccessat.c (includes): Simplify.
44614         * lib/fchmodat.c (includes): Likewise.
44615         * lib/fchownat.c (includes): Likewise.
44616         * lib/mkdirat.c (includes): Likewise.
44617         * lib/mkfifoat.c (includes): Likewise.
44618         * lib/symlinkat.c (includes): Likewise.
44619
44620         openat: allow return of fd 0
44621         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
44622         * modules/save-cwd (Depends-on): Replace fcntl-safer with
44623         unistd-safer.
44624         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
44625         <fcntl.h>; this module does not leak fds.
44626         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
44627         must be allowed to return 0, leaving openat_safer to add the
44628         safety.
44629         (openat_permissive): Avoid writing to just-opened fd 2 if
44630         restoring the current directory fails.
44631         * lib/openat-die.c (openat_restore_fail): Add comment.
44632         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
44633         (save_cwd): Guarantee safe fd, but without use of open_safer.
44634         * tests/test-openat.c: New test.
44635         * modules/openat-tests (Files, Makefile.am): Distribute and build
44636         new file.
44637
44638         relocatable-prog-wrapper: fix build
44639         * modules/relocatable-prog-wrapper (Files): Update name of
44640         canonicalize m4 file, broken on 2009-09-17.
44641         Reported by emad hajjar <aleppos@hotmail.com>.
44642
44643 2009-09-19  Bruno Haible  <bruno@clisp.org>
44644
44645         * lib/safe-alloc.h: Use the standard header with GPL copyright.
44646         * lib/safe-alloc.c: Likewise.
44647         Reported by Ian Beckwith <ianb@erislabs.net>.
44648
44649 2009-09-18  Bruno Haible  <bruno@clisp.org>
44650
44651         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
44652         Reported by <erobles@sensacd.com.mx>.
44653
44654 2009-09-17  Eric Blake  <ebb9@byu.net>
44655
44656         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
44657         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
44658         slashes when checking if last component is missing.
44659         * tests/test-canonicalize.c (main): Test this.
44660
44661         canonicalize, canonicalize-lgpl: honor // if distinct from /
44662         * modules/canonicalize (Files): Add double-slash-root.m4.
44663         * modules/canonicalize-lgpl (Files): Likewise.
44664         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
44665         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
44666         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
44667         fallback definition.
44668         (canonicalize_filename_mode): Use it to protect //.
44669         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
44670         (__realpath): Likewise.
44671         * tests/test-canonicalize.c (main): Test this.
44672         * tests/test-canonicalize-lgpl.c (main): Likewise.
44673         * modules/canonicalize-tests (Depends-on): Add same-inode.
44674         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
44675
44676         canonicalize-lgpl: fix glibc bug with trailing slash
44677         * m4/canonicalize-lgpl.m4: Move contents...
44678         * m4/canonicalize.m4: ...here.
44679         (gl_CANONICALIZE_LGPL): Factor realpath check...
44680         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
44681         glibc 2.3.5 bug, fixed 2005-04-27.
44682         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
44683         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
44684         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
44685         * modules/canonicalize-lgpl (Files): Manage file rename.
44686         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44687         * modules/stdlib (Makefile.am): Substitute witness.
44688         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
44689         is needed.
44690         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
44691         replacement is required.
44692         * lib/canonicalize.c (canonicalize_file_name): Likewise.
44693         * doc/glibc-functions/canonicalize_file_name.texi
44694         (canonicalize_file_name): Document this.
44695         * doc/posix-functions/realpath.texi (realpath): Likewise.
44696
44697         canonicalize-lgpl: reject non-directory with trailing slash
44698         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
44699         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
44700         catches failures in glibc 2.3.5.
44701         * tests/test-canonicalize.c (main): Likewise.
44702
44703         canonicalize-lgpl: use native realpath if it works
44704         * lib/canonicalize-lgpl.c (realpath): Guard with
44705         FUNC_REALPATH_WORKS.
44706         * lib/stdlib.in.h (realpath): Make declaration optional based on
44707         HAVE_REALPATH.
44708         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
44709         native realpath works.
44710         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
44711         * modules/stdlib (Makefile.am): Substitute witness.
44712
44713         canonicalize, canonicalize-lgpl: use <stdlib.h>
44714         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
44715         (Include): Mention <stdlib.h>.
44716         (configure.ac): Mention functions we provide.
44717         * modules/canonicalize (configure.ac): Likewise.
44718         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
44719         realpath if canonicalize_file_name is missing.
44720         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
44721         * modules/stdlib (Makefile.am): Substitute witnesses.
44722         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
44723         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
44724         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
44725         * NEWS: Document this.
44726         * doc/glibc-functions/canonicalize_file_name.texi
44727         (canonicalize_file_name): Likewise.
44728         * doc/posix-functions/realpath.texi (realpath): Likewise.
44729         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
44730
44731         test-canonicalize: consolidate into single C program
44732         * tests/test-canonicalize.sh: Delete; move setup into...
44733         * tests/test-canonicalize.c (main): ...the program, making it
44734         easier to run in debugger.  Add some tests.
44735         * modules/canonicalize-tests (Files): Remove unused file.
44736         (Depends-on): Add progname.
44737         (configure.ac, Makefile.am): Simplify.
44738
44739         test-canonicalize-lgpl: consolidate into single C program
44740         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
44741         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
44742         easier to run in debugger.  Add some tests.
44743         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
44744         (configure.ac, Makefile.am): Simplify.
44745
44746         canonicalize: avoid resolvepath
44747         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
44748         unnecessary checks.
44749         * lib/canonicalize.c (includes): Simplify.
44750         (canonicalize_file_name): Drop resolvepath implementation.
44751         * modules/canonicalize (Depends-on): Drop filenamecat.
44752
44753         canonicalize: don't lose errno
44754         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
44755         over calls to free.
44756
44757         canonicalize: simplify errno handling
44758         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
44759         assignment.
44760
44761         canonicalize, canonicalize-lgpl: update module dependencies
44762         * modules/canonicalize (Depends-on): Add extensions, lstat,
44763         pathmax, stdlib.
44764         (Files): Drop pathmax.h.
44765         (configure.ac): Adjust macro name.
44766         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
44767         lstat, stdlib, sys_stat.
44768         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
44769         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
44770         extensions.
44771         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
44772         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
44773         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
44774         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
44775         declaration, if available.
44776         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
44777         we can rely on the readlink module.
44778         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
44779         (includes): Use <unistd.h> unconditionally.
44780
44781 2009-09-17  Eric Blake  <ebb9@byu.net>
44782
44783         maint: make Include sections of modules consistent
44784         * modules/alloca: Use only header name; no need to list #include.
44785         * modules/alloca-opt: Likewise.
44786         * modules/arpa_inet: Likewise.
44787         * modules/canon-host: Likewise.
44788         * modules/configmake: Likewise.
44789         * modules/dirent: Likewise.
44790         * modules/eealloc: Likewise.
44791         * modules/environ: Likewise.
44792         * modules/fchdir: Likewise.
44793         * modules/fcntl: Likewise.
44794         * modules/fcntl-h: Likewise.
44795         * modules/gethrxtime: Likewise.
44796         * modules/gettime: Likewise.
44797         * modules/ignore-value: Likewise.
44798         * modules/inet_ntop: Likewise.
44799         * modules/inet_pton: Likewise.
44800         * modules/inttypes: Likewise.
44801         * modules/isnand-nolibm: Likewise.
44802         * modules/isnanf-nolibm: Likewise.
44803         * modules/mbchar: Likewise.
44804         * modules/mbfile: Likewise.
44805         * modules/mbiter: Likewise.
44806         * modules/mbuiter: Likewise.
44807         * modules/netdb: Likewise.
44808         * modules/netinet_in: Likewise.
44809         * modules/nproc: Likewise.
44810         * modules/pagealign_alloc: Likewise.
44811         * modules/poll: Likewise.
44812         * modules/printf-frexp: Likewise.
44813         * modules/pthread: Likewise.
44814         * modules/putenv: Likewise.
44815         * modules/random_r: Likewise.
44816         * modules/relocatable-prog: Likewise.
44817         * modules/search: Likewise.
44818         * modules/select: Likewise.
44819         * modules/selinux-h: Likewise.
44820         * modules/settime: Likewise.
44821         * modules/signal: Likewise.
44822         * modules/size_max: Likewise.
44823         * modules/socklen: Likewise.
44824         * modules/ssize_t: Likewise.
44825         * modules/stdarg: Likewise.
44826         * modules/stdbool: Likewise.
44827         * modules/stddef: Likewise.
44828         * modules/stdint: Likewise.
44829         * modules/stdio: Likewise.
44830         * modules/stdlib: Likewise.
44831         * modules/string: Likewise.
44832         * modules/strings: Likewise.
44833         * modules/sys_file: Likewise.
44834         * modules/sys_ioctl: Likewise.
44835         * modules/sys_select: Likewise.
44836         * modules/sys_socket: Likewise.
44837         * modules/sys_stat: Likewise.
44838         * modules/sys_time: Likewise.
44839         * modules/sys_times: Likewise.
44840         * modules/sys_utsname: Likewise.
44841         * modules/sys_wait: Likewise.
44842         * modules/sysexits: Likewise.
44843         * modules/time: Likewise.
44844         * modules/times: Likewise.
44845         * modules/tmpfile: Likewise.
44846         * modules/trim: Likewise.
44847         * modules/unistd: Likewise.
44848         * modules/wchar: Likewise.
44849         * modules/wctype: Likewise.
44850
44851 2009-09-17  Bruno Haible  <bruno@clisp.org>
44852
44853         Make getdate.y compile on QNX and NetBSD 5 / i386.
44854         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44855         TIME_T_FITS_IN_LONG_INT.
44856         * lib/getdate.y (long_time_t): New type.
44857         (relative_time): Change type of 'seconds' field to long_time_t.
44858         (get_date): Update types of local variables. Check against overflow
44859         during conversion from long_time_t to time_t.
44860         Reported by Matt Kraai <kraai@ftbfs.org>
44861         and Hasso Tepper <hasso@netbsd.org>.
44862
44863 2009-09-17  Bruno Haible  <bruno@clisp.org>
44864
44865         * modules/COPYING: Update copyright years.
44866         * modules/README: Likeiwse.
44867         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44868         Reported by Ian Beckwith <ianb@erislabs.net>.
44869
44870 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44871
44872         * users.txt: Update references for gnuit package.
44873
44874 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44875
44876         * m4/getdelim.m4: Fix typo in copyright line.
44877
44878 2009-09-17  Bruno Haible  <bruno@clisp.org>
44879
44880         * lib/atoll.c: Use the standard header with GPL copyright.
44881         * lib/argz.in.h: Likewise.
44882         * lib/glob.c: Likewise.
44883         * lib/glob-libc.h: Likewise.
44884         * lib/random_r.c: Likewise.
44885         * lib/siglist.h: Likewise.
44886         * lib/strsignal.c: Likewise.
44887         Reported by Ian Beckwith <ianb@erislabs.net>.
44888
44889 2009-09-17  Eric Blake  <ebb9@byu.net>
44890
44891         rmdir: ensure correct dependency order
44892         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44893
44894 2009-09-17  Bruno Haible  <bruno@clisp.org>
44895
44896         Disable assertion that fails on NetBSD 5 / i386.
44897         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44898         Reported by Sam Steingold <sds@gnu.org>
44899         and Hasso Tepper <hasso@netbsd.org>.
44900
44901 2009-09-16  Eric Blake  <ebb9@byu.net>
44902
44903         unlinkdir: port to mingw
44904         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44905         on which no one can unlink a directory.
44906
44907         stdlib: sort witness names
44908         * modules/stdlib (Makefile.am): Sort replacements.
44909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44910         * lib/stdlib.in.h: Likewise.
44911
44912         parse-duration-tests: avoid link failure
44913         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44914         LIBINTL.
44915         Reported by Tom G. Christensen.
44916
44917         openat-tests: ensure unlinkat behaves like rmdir
44918         * tests/test-rmdir.c (main): Factor guts...
44919         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44920         * modules/rmdir-tests (Files): Ship new file.
44921         * modules/openat-tests: New test.
44922         * tests/test-unlinkat.c: Likewise.
44923
44924         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44925         * modules/rmdir-errno (Status, Notice): Now obsolete.
44926
44927         rmdir: work around cygwin 1.5.x and mingw bugs
44928         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44929         * lib/rmdir.c (rmdir): Work around it.
44930         * modules/rmdir (Status, Notice): No longer obsolete.
44931         (Files): Add dos.m4.
44932         (Depends-on): Add unistd.
44933         (configure.ac): Set witnesses.
44934         (License): Relax to LGPLv2+.
44935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44936         * modules/unistd (Makefile.am): Substitute witnesses.
44937         * lib/unistd.in.h (rmdir): Declare replacement.
44938         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44939         * modules/rmdir-tests: New tests.
44940         * tests/test-rmdir.c: Likewise.
44941
44942 2009-09-15  Eric Blake  <ebb9@byu.net>
44943
44944         fchdir: improve use of replacement functions
44945         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44946         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44947         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44948         REPLACE_CLOSEDIR.
44949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44950         * modules/sys_stat (Makefile.am): Substitute correct witness.
44951         * modules/dirent (Makefile.am): Likewise.
44952         * modules/unistd (Makefile.am): Likewise.
44953         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44954         * lib/unistd.in.h (dup): Likewise.
44955         * lib/sys_stat.in.h (fstat): Likewise.
44956
44957         maint: ignore gnulib-tool temp files
44958         * .gitignore: Ignore files created during gnulib-tool --test.
44959
44960 2009-09-13  Jim Meyering  <meyering@redhat.com>
44961
44962         posixtm: don't reject a time that specify "60" as the number of seconds
44963         * lib/posixtm.c (posixtime): The code to reject invalid dates
44964         would also reject a time specified with the .60 suffix.
44965         But POSIX allows that, in order to accommodate leap seconds.
44966         So don't reject it.
44967         (main): Adjust tests accordingly.
44968         * modules/posixtm (Depends-on): Add stpcpy.
44969
44970 2009-09-11  Jim Meyering  <meyering@redhat.com>
44971
44972         announce-gen: include [$release_type] in emitted Subject:
44973         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44974         e.g., [stable] in the emitted Subject: line.
44975
44976 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44977
44978         Remove obsolete macros from several modules.
44979         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44980         obsolete Autoconf macros with their modern counterparts.
44981         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44982         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44983         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44984         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44985         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44986         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44987         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44988         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44989         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44990         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44991         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44992         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44993         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44994         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44995         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44996         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44997         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44998         * m4/time_r.m4 (gl_TIME_R): Likewise.
44999         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
45000         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
45001         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45002
45003         Fix copyright header in build-aux scripts.
45004         * build-aux/git-version-gen: Fix copyright header to match GPLv3
45005         recommendation.
45006         * build-aux/ncftpput-ftp: Likewise.
45007         * build-aux/update-copyright: Likewise.
45008
45009 2009-09-09  Eric Blake  <ebb9@byu.net>
45010
45011         test-link: allow Linux choice of errno
45012         * tests/test-link.c (main): Relax test for alternate error.
45013
45014         strndup: fix improper m4 caching
45015         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
45016         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
45017         (gl_PREREQ_STRNDUP): Delete.
45018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
45019         * modules/string (Makefile.am): Substitute it.
45020         * lib/string.in.h (strndup): Modernize prototype.
45021
45022         getcwd: port to mingw
45023         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
45024         different from the POSIX assumptions made throughout the getcwd
45025         module; fortunately, the mingw getcwd does not need replacement.
45026         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
45027         * modules/getcwd-tests: New test.
45028         * tests/test-getcwd.c: Likewise.
45029
45030         link: fix platform bugs
45031         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
45032         * lib/link.c (link): Work around them.  Fix related mingw bug.
45033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
45034         * modules/unistd (Makefile.am): Substitute it.
45035         * lib/unistd.in.h (link): Declare replacement.
45036         * doc/posix-functions/link.texi (link): Document this.
45037         * modules/link (Depends-on): Add strdup-posix, sys_stat.
45038
45039         test-link: consolidate into single C program, test more cases
45040         * tests/test-link.sh: Delete.
45041         * tests/test-link.c: Test more error conditions.  Exposes bugs on
45042         at least Cygwin and Solaris.
45043         * modules/link-tests (Files): Remove unused file.
45044         (Depends-on): Add errno, sys_stat.
45045         (Makefile.am): Simplify.
45046
45047 2009-09-08  Bruno Haible  <bruno@clisp.org>
45048
45049         Work around towlower, towupper bug on mingw.
45050         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
45051         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
45052         * doc/posix-functions/towlower.texi: Mention the mingw bug.
45053         * doc/posix-functions/towupper.texi: Likewise.
45054         Reported by Eric Blake.
45055
45056 2009-09-08  Jim Meyering  <meyering@redhat.com>
45057
45058         build: don't try to run autoheader if we don't use it
45059         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
45060         is not used in configure.ac.
45061
45062 2009-09-08  Eric Blake  <ebb9@byu.net>
45063
45064         euidaccess: fix compilation error
45065         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
45066
45067         rawmemchr: relax license
45068         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
45069         okay.
45070         Reported by Jim Meyering.
45071
45072         mkfifoat: new module
45073         * modules/mkfifoat: New file.
45074         * lib/mkfifoat.c: Likewise.
45075         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
45076         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
45077         * modules/sys_stat (Makefile.am): Use them.
45078         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
45079         * MODULES.html.sh (File system functions): Mention module.
45080         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
45081         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
45082         * modules/mkfifoat-tests: New test.
45083         * tests/test-mkfifoat.c: Likewise.
45084
45085         strchrnul: relax license
45086         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
45087         okay.
45088         Reported by Jim Meyering.
45089
45090 2009-09-08  Eric Blake  <ebb9@byu.net>
45091
45092         fstatat: fix compilation on Solaris
45093         * lib/fstatat.c (includes): Add fcntl.h.
45094         Reported by Pádraig Brady.
45095
45096 2009-09-07  Eric Blake  <ebb9@byu.net>
45097
45098         rename: modernize replacement
45099         * modules/rename (Depends-on): Add stdio.
45100         (configure.ac): Declare witness.
45101         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
45102         stdio take care of replacement.
45103         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
45104         * modules/stdio (Makefile.am): Substitute them.
45105         * lib/stdio.in.h (rename): Declare replacement.
45106         * lib/rename.c (includes): Allow cross-compilation to non-windows
45107         machines.
45108         * doc/posix-functions/rename.texi (rename): Improve
45109         documentation.
45110
45111         stdio: sort witness names
45112         * modules/stdio (Makefile.am): Sort replacements.
45113         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45114         * lib/stdio.in.h: Likewise.
45115
45116         getcwd: minor cleanups
45117         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
45118         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
45119
45120         openat: provide more convenience names
45121         * modules/faccessat (configure.ac): Add C witness.
45122         * lib/unistd.in.h (readlinkat): Fix typo.
45123         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
45124         convenience wrappers.
45125         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
45126         wrappers in syntax checks.
45127
45128 2009-09-06  Eric Blake  <ebb9@byu.net>
45129
45130         doc: fix comments in recent patches
45131         * lib/faccessat.c: Mention correct function.
45132         * lib/fchmodat.c: Likewise.
45133         * lib/fchownat.c: Likewise.
45134         * lib/symlinkat.c: Likewise.
45135         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
45136         constants.
45137
45138         faccessat, symlinkat: continue cleanup of previous patch
45139         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
45140         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45141         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
45142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
45143         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
45144         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
45145         set.
45146
45147 2009-09-06  Bruno Haible  <bruno@clisp.org>
45148
45149         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
45150         (fstatat): Declare if GNULIB_FSTATAT is set.
45151         (mkdirat): Declare if GNULIB_MKDIRAT is set.
45152         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
45153         (unlinkat): Declare if GNULIB_UNLINKAT is set.
45154         * modules/fcntl-h (Files): Remove m4/openat.m4.
45155         * modules/sys_stat (Files): Remove m4/openat.m4.
45156         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
45157         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
45158         * modules/unistd (Files): Remove m4/openat.m4.
45159         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
45160         GNULIB_OPENAT.
45161         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
45162         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
45163         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
45164         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
45165         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
45166         gl_OPENAT_DEFAULTS.
45167         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
45168         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
45169         Don't require gl_OPENAT_DEFAULTS.
45170         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
45171         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
45172         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
45173         (gl_OPENAT_DEFAULTS): Remove macro.
45174
45175 2009-09-06  Bruno Haible  <bruno@clisp.org>
45176
45177         * modules/openat (configure.ac): Remove unneeded witness.
45178
45179 2009-09-06  Bruno Haible  <bruno@clisp.org>
45180
45181         Set errno to ENOSYS when a function is entirely unsupported.
45182         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
45183         EOPNOTSUPP.
45184         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45185         * modules/chown (Depends-on): Remove errno.
45186
45187 2009-09-06  Bruno Haible  <bruno@clisp.org>
45188
45189         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
45190
45191 2009-09-06  Bruno Haible  <bruno@clisp.org>
45192
45193         * lib/sys_stat.in.h: Fix preprocessor command indentation.
45194
45195 2009-09-06  Ben Pfaff  <blp@gnu.org>
45196             Bruno Haible  <bruno@clisp.org>
45197
45198         Work around a glibc bug in strtok_r.
45199         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
45200         Undefine if UNDEFINE_STRTOK_R is set.
45201         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
45202         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
45203         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
45204         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
45205         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
45206         UNDEFINE_STRTOK_R.
45207         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
45208
45209 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
45210
45211         exclude: minor fix
45212         * lib/exclude.c: Include wctype.h
45213
45214 2009-09-06  Akim Demaille  <demaille@gostai.com>
45215
45216         bootstrap: improve error message
45217         * build-aux/bootstrap (find_tool): Upon failure, report the list
45218         of candidates.
45219         Honor the initial value of the envvar.
45220
45221 2009-09-05  Eric Blake  <ebb9@byu.net>
45222
45223         symlinkat: new module
45224         * modules/symlinkat: New file.
45225         * lib/symlinkat.c: Likewise.
45226         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
45227         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
45228         * modules/unistd (Makefile.am): Use them.
45229         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
45230         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
45231         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
45232         * MODULES.html.sh (File system functions): Mention module.
45233         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
45234         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
45235         * modules/symlinkat-tests: New test.
45236         * tests/test-symlinkat.c: Likewise.
45237
45238         test-openat-safer: add more checks
45239         * tests/test-openat-safer.c (main): Check more code paths.
45240
45241 2009-09-05  Jim Meyering  <meyering@redhat.com>
45242
45243         syntax-check: detect unnecessary inclusion of openat.h
45244         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
45245
45246 2009-09-05  Bruno Haible  <bruno@clisp.org>
45247
45248         Support towlower, towupper.
45249         * doc/posix-functions/towlower.texi: Mention module wctype.
45250         * doc/posix-functions/towupper.texi: Likewise.
45251         * lib/wctype.in.h (towlower, towupper): New functions.
45252         * tests/test-wctype.c: Include stdio.h, stdlib.h.
45253         (ASSERT): New macro.
45254         (e): New variable.
45255         (main): Test also towlower, towupper. Test WEOF argument.
45256         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45257
45258 2009-09-05  Bruno Haible  <bruno@clisp.org>
45259
45260         Fix conversion behaviour when the input is invalid.
45261         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
45262         mark occurring in first pass of indirect conversion.
45263         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
45264         input.
45265         Found by clang's static analyzer.
45266
45267 2009-09-05  Bruno Haible  <bruno@clisp.org>
45268
45269         * tests/test-striconveh.c (main): Test indirect conversion on platforms
45270         where direct conversion is possible.
45271
45272 2009-09-04  Eric Blake  <ebb9@byu.net>
45273
45274         openat: fail with ENOENT on empty name
45275         * lib/openat-proc.c (openat_proc_name): Special-case the empty
45276         buffer.
45277
45278         link-follow: fix logic bug in prior patch
45279         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
45280         reversed sense of yes and no in prior patch.  Avoid confusing
45281         compilation failure with desired semantics.
45282
45283         link-follow: accommodate mingw and cross-compilation
45284         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
45285         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
45286         cross-compilation results to -1, to make linkat easier to
45287         implement when cross-compiling.  Trivially support mingw.
45288         * modules/link-follow (configure.ac): Call new name.
45289         * NEWS: Mention this.
45290
45291 2009-09-03  Eric Blake  <ebb9@byu.net>
45292
45293         faccessat: compile replacement
45294         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
45295         needed.
45296
45297         fts: fix compilation error
45298         * lib/fts.c (includes): Re-add "openat.h", for
45299         openat_needs_fchdir.
45300
45301         faccessat: new module
45302         * modules/faccessat: New file.
45303         * lib/faccessat.c: Likewise.
45304         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
45305         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45306         * modules/unistd (Makefile.am): Use it.
45307         * lib/unistd.in.h (faccessat): Declare it.
45308         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
45309         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
45310         * MODULES.html.sh (File system functions): Mention it.
45311         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
45312         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
45313
45314         euidaccess: prefer POSIX over non-standard implementation
45315         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
45316         * lib/euidaccess.c (euidaccess): Use it if available.
45317
45318         openat: make template easier to use
45319         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
45320         AT_FUNC_F2 to be undefined.
45321         (VALIDATE_FLAG): New macro; use it to reject bad flags.
45322         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
45323         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
45324         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
45325         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
45326         Likewise.
45327         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
45328         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
45329         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
45330         Likewise.
45331
45332         openat: declare in POSIX headers
45333         * NEWS: Mention this.
45334         * modules/openat (configure.ac): Declare witnesses.
45335         (Depends-on): Add fcntl-h, sys_stat, unistd.
45336         (Include): Mention correct headers.
45337         * modules/fcntl-h (Depends-on): Add link-warning.
45338         (Files): Add openat.m4.
45339         (Makefile.am): Substitute witnesses.
45340         * modules/sys_stat (Files, Makefile.am): Likewise.
45341         * modules/unistd (Files, Makefile.am): Likewise.
45342         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
45343         (gl_OPENAT_DEFAULTS): New macro.
45344         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
45345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
45346         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
45347         (SYS_STAT_H): Remove unused variable.
45348         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
45349         * lib/fcntl--.h (includes): Remove unneeded header.
45350         * lib/openat-safer.c (includes): Likewise.
45351         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
45352         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
45353         appropriate headers.
45354         (__OPENAT_PREFIX): Delete.
45355         * lib/fcntl.in.h (openat): Provide declaration.
45356         (AT_FDCWD): Fix Solaris bug.
45357         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
45358         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
45359         * lib/fchmodat.c (includes):  Adjust to find declaration.
45360         * lib/fchownat.c (includes): Likewise.
45361         * lib/mkdirat.c (includes): Likewise.
45362         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
45363         still visible.
45364
45365 2009-09-02  Eric Blake  <ebb9@byu.net>
45366
45367         errno: use consistently
45368         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
45369         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
45370         * lib/canonicalize.c (ELOOP): Likewise.
45371         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
45372         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
45373         * lib/lchown.c (EOPNOTSUPP): Likewise.
45374         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
45375         * lib/savewd.c (ESTALE): Likewise.
45376         * lib/settime.c (ENOSYS): Likewise.
45377         * lib/utimens.c (ENOSYS): Likewise.
45378         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
45379         * lib/chdir-safer.c (ELOOP): Likewise.
45380         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
45381         * modules/c-stack (Depends-on): Add errno.
45382         * modules/canonicalize (Depends-on): Likewise.
45383         * modules/chdir-safer (Depends-on): Likewise.
45384         * modules/fdopendir (Depends-on): Likewise.
45385         * modules/inet_ntop (Depends-on): Likewise.
45386         * modules/inet_pton (Depends-on): Likewise.
45387         * modules/lchown (Depends-on): Likewise.
45388         * modules/openat (Depends-on): Likewise.
45389         * modules/savewd (Depends-on): Likewise.
45390         * modules/settime (Depends-on): Likewise.
45391         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
45392
45393         fts: avoid leaking fds
45394         * modules/fts (Depends-on): Add cloexec.
45395         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
45396         flag.
45397
45398         fts: make directory fds more robust
45399         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
45400         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
45401
45402         backupfile, chdir-long, fts, savedir: make safer
45403         * lib/backupfile.c (includes): Use "dirent--.h", since
45404         numbered_backup can write to stderr during readdir.
45405         * lib/savedir.c (includes): Likewise.
45406         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
45407         emulation can write to stderr on failure.
45408         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
45409         * lib/getcwd.c: Document why opendir_safer is unused.
45410         * lib/glob.c: Likewise.
45411         * lib/scandir.c: Likewise.
45412         * lib/openat-proc.c: Likewise, for open_safer.
45413         * modules/backupfile (Depends-on): Add dirent-safer.
45414         * modules/savedir (Depends-on): Likewise.
45415         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
45416         * modules/chdir-long (Depends-on): Add openat-safer.
45417
45418         openat-safer: new module
45419         * modules/openat-safer: New file.
45420         * lib/openat-safer.c: Likewise.
45421         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
45422         * lib/fcntl-safer.h (openat_safer): Declare.
45423         * lib/fcntl--.h (openat): Override.
45424         * MODULES.html.sh (File descriptor based I/O): Mention it.
45425         * lib/openat.h: Add double-inclusion guards.
45426         * lib/openat.c (includes): Only include "fcntl-safer.h", not
45427         "fcntl--.h", so we can implement openat.
45428         * modules/openat-safer-tests: New test.
45429         * tests/test-openat-safer.c: New file.
45430
45431         dirent-safer: new module
45432         * modules/dirent-safer: New file.
45433         * lib/dirent--.h: Likewise.
45434         * lib/dirent-safer.h: Likewise.
45435         * lib/opendir-safer.c: Likewise.
45436         * m4/dirent-safer.m4: Likewise.
45437         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
45438         * modules/dirent-safer-tests: New test.
45439         * tests/test-dirent-safer.c: New file.
45440         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
45441
45442         fdopendir: optimize on mingw
45443         * lib/unistd.in.h (_gl_directory_name): New prototype.
45444         * lib/fchdir.c (_gl_directory_name): Implement it.
45445         (fchdir): Use it to simplify implementation.
45446         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
45447         fchdir, when available, to avoid calling [f]chdir().
45448
45449         fdopendir: split into its own module
45450         * lib/openat.c (fdopendir): Move...
45451         * lib/fdopendir.c: ...into new file.
45452         * modules/fdopendir: New module.
45453         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
45454         * modules/openat (Depends-on): Add fdopendir.
45455         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
45456         fdopendir here.
45457         * modules/savedir (Depends-on): Only need fdopendir, not full
45458         openat.
45459         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
45460         * lib/openat.h (fdopendir): Drop prototype.
45461         * lib/dirent.in.h (fdopendir): Provide prototype.
45462         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
45463         * modules/dirent (Makefile.am): Substitute them.
45464         * MODULES.html.sh (File system functions): Mention it.
45465         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
45466         * modules/fdopendir-tests: New file.
45467         * tests/test-fdopendir.c: Likewise.
45468
45469         fchdir: use more consistent macro convention
45470         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
45471         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
45472         REPLACE_FCHDIR, rather than relying on config.h macros.
45473         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
45474         inside a single make-time REPLACE_FCHDIR block, rather than using
45475         the config.h FCHDIR_REPLACEMENT.
45476         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
45477         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
45478         Manage fstat replacement.
45479         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
45480         REPLACE_FCHDIR.
45481         * modules/sys_stat (Files): Add m4/unistd_h.m4.
45482         (Makefile.am): Substitute REPLACE_FCHDIR.
45483         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
45484         FCHDIR_REPLACEMENT.
45485         * lib/dup-safer.c (dup_safer): Likewise.
45486         * lib/dup2.c (rpl_dup2): Likewise.
45487         * lib/dup3.c (rpl_dup3): Likewise.
45488         * lib/open.c (rpl_open): Likewise.
45489
45490         fchdir: simplify error handling, and support dup3
45491         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
45492         stdbool, malloc-posix, realloc-posix.
45493         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
45494         (ensure_dirs_slot): Return false on allocation failure.
45495         (rpl_dup2): Delete.
45496         (_gl_register_dup): New function.
45497         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
45498         (_gl_register_fd): Close fd on allocation failure.
45499         * lib/fcntl.in.h (_gl_register_fd): Update signature.
45500         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
45501         prototype.
45502         (rpl_dup2_fchdir): Delete prototype.
45503         * lib/open.c (open): Update caller.
45504         * lib/dup2.c (dup2): Track fchdir metadata.
45505         * lib/dup3.c (dup3): Likewise.
45506         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
45507         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
45508
45509 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45510
45511         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
45512         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
45513         don't pass arguments to AC_OUTPUT.
45514
45515 2009-09-02  Bruno Haible  <bruno@clisp.org>
45516
45517         * modules/mkdtemp (License): Relicense under LGPLv2+.
45518         Reported by Paolo Bonzini.
45519
45520 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45521
45522         Replace uses of obsolete autoconf macros in Jim's modules.
45523         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
45524         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
45525         can evoke a warning from autoconf when run with -Wobsolete
45526         enabled.  They were declared obsolete for good reasons (see
45527         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
45528         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
45529         should not continue using the deprecated macros.
45530         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
45531         obsolete Autoconf macros with modern counterparts.
45532         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
45533         * m4/dos.m4 (gl_AC_DOS): Likewise.
45534         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
45535         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
45536         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
45537         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
45538         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
45539         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
45540         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
45541         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
45542         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
45543         Likewise.
45544         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
45545         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45546         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
45547         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
45548         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45549         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45550
45551 2009-09-01  Eric Blake  <ebb9@byu.net>
45552
45553         fchdir: fix off-by-one bug in previous patch
45554         * lib/fchdir.c (rpl_fstat): Use correct bounds.
45555         (_gl_unregister_fd): Delete useless if.
45556
45557 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
45558
45559         maint.mk: sort the list of syntax-check rules
45560         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
45561         easier to get a sense of progress when the rules are run sequentially
45562         and take a long time.
45563
45564 2009-09-01  Simon Josefsson  <simon@josefsson.org>
45565
45566         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
45567         * modules/netinet_in: Likewise.
45568         * modules/sys_file: Likewise.
45569         * modules/sys_ioctl: Likewise.
45570         * modules/sys_select: Likewise.
45571         * modules/sys_socket: Likewise.
45572         * modules/sys_stat: Likewise.
45573         * modules/sys_time: Likewise.
45574         * modules/sys_times: Likewise.
45575         * modules/sys_utsname: Likewise.
45576         * modules/sys_wait: Likewise.
45577
45578 2009-09-01  Jim Meyering  <meyering@redhat.com>
45579
45580         fts: help ensure that return values are not ignored
45581         * lib/fts_.h (__GNUC_PREREQ): Define.
45582         (__attribute_warn_unused_result__): Define.
45583         (fts_children, fts_close, fts_open, fts_read): Declare with
45584         __attribute_warn_unused_result__.
45585
45586         fts: fts_close now fails also when closing a dir file descriptor fails
45587         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
45588         and propagate to caller, along with errno.
45589
45590         announce-gen: correct formatting in --help output
45591         * build-aux/announce-gen (usage): Move the one-line description in
45592         --help output "up", to where it belongs, just after Usage:.
45593
45594 2009-08-31  Eric Blake  <ebb9@byu.net>
45595
45596         fchdir: port to mingw
45597         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
45598         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
45599         opened, then use a substitute.
45600         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
45601         replacement.
45602         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
45603         (_gl_register_fd): No need to check stat if open already filters
45604         all directories.
45605         (fchdir): Fix error condition to match POSIX.
45606         * modules/fchdir (Depends-on): Add sys_stat.
45607         * doc/posix-functions/open.texi (open): Document the limitation.
45608         * modules/fchdir-tests: New file.
45609         * tests/test-fchdir.c: Likewise.
45610
45611         canonicalize: allow cross-testing from cygwin to mingw
45612         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
45613         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
45614         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
45615         Likewise.
45616         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
45617         target does not support symlinks.
45618         * tests/test-canonicalize-lgpl.sh: Likewise.
45619
45620         chown: avoid compilation warning on mingw
45621         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
45622         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
45623         mingw.
45624         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
45625         * modules/chown (Depends-on): Add errno.
45626
45627 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
45628
45629         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
45630         command.
45631
45632 2009-08-31  Jim Meyering  <meyering@redhat.com>
45633
45634         canonicalize: remove useless initialization
45635         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
45636         initialization of local, "end".
45637
45638 2009-08-30  Bruno Haible  <bruno@clisp.org>
45639
45640         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
45641         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
45642         ENOSYS.
45643
45644 2009-08-30  Bruno Haible  <bruno@clisp.org>
45645
45646         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
45647         /usr/xpg4/bin/tr when it exists.
45648         * tests/test-pipe-filter-gi1.sh: Likewise.
45649
45650 2009-08-30  Bruno Haible  <bruno@clisp.org>
45651
45652         Work around deficient /usr/bin/id program on Solaris.
45653         * tests/test-file-has-acl.sh (ID): New variable.
45654         * tests/test-set-mode-acl.sh (ID): Likewise.
45655         * tests/test-copy-acl.sh (ID): Likewise.
45656         * tests/test-copy-file.sh (ID): Likewise.
45657
45658 2009-08-30  Bruno Haible  <bruno@clisp.org>
45659
45660         New module 'xstriconveh'.
45661         * lib/xstriconveh.h: New file.
45662         * lib/xstriconveh.c: New file.
45663         * modules/xstriconveh: New file.
45664
45665 2009-08-30  Bruno Haible  <bruno@clisp.org>
45666
45667         Make it easier to use mem_cd_iconveh.
45668         * lib/striconveh.h (iconveh_t): New type.
45669         (iconveh_open, iconveh_close): New declarations.
45670         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45671         with a single 'const iconveh_t *' argument.
45672         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
45673         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
45674         with a single 'const iconveh_t *' argument.
45675         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
45676         * tests/test-striconveh.c (main): Update.
45677         * NEWS: Mention the change.
45678
45679 2009-08-30  Bruno Haible  <bruno@clisp.org>
45680
45681         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
45682         problem.
45683
45684 2009-08-30  Bruno Haible  <bruno@clisp.org>
45685
45686         Work around iconv_open problem on Solaris.
45687         * lib/iconv_open-solaris.gperf: New file.
45688         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
45689         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
45690         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
45691         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
45692         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
45693         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
45694
45695 2009-08-29  Jim Meyering  <meyering@redhat.com>
45696
45697         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
45698         * top/maint.mk (cvs-check): Remove target; it was just an alias
45699         to the better-named vc-diff-check.
45700         (maintainer-distcheck): Remove rule.  It was used only from
45701         the (alpha/beta/major) target, and all of its commands but one
45702         were coreutils-specific.
45703         (vc-dist): Remove rule.
45704         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
45705         Run vc-diff-check, not vc-dist.
45706         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
45707
45708 2009-08-27  Bruno Haible  <bruno@clisp.org>
45709
45710         * tests/test-bitrotate.c (main): Remove test that uses a shift count
45711         of 0.
45712
45713 2009-08-27  Bruno Haible  <bruno@clisp.org>
45714
45715         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
45716         compilers.
45717         * doc/func.texi: Document the SunPRO C bug.
45718
45719 2009-08-27  Bruno Haible  <bruno@clisp.org>
45720
45721         Fix link error on Solaris.
45722         * tests/test-parse-duration.c (xstrdup): Remove function.
45723
45724 2009-08-26  Pádraig Brady  <P@draigbrady.com>
45725
45726         ignore-value: handle pointer types, too
45727         * lib/ignore-value.h (__attribute__): Remove definition.
45728         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
45729         of a more concise and more-often effective "(void) i" statement.
45730         (ignore_ptr): New function to suppress warnings from functions that
45731         return pointers, and to make it explicit that one function doesn't
45732         handle all cases.
45733
45734 2009-08-25  Bruno Haible  <bruno@clisp.org>
45735
45736         dup2: work around a Linux bug.
45737         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
45738         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
45739         * doc/posix-functions/dup2.texi: Mention the Linux bug.
45740         Reported by Simon Josefsson.
45741
45742 2009-08-25  Jim Meyering  <meyering@redhat.com>
45743
45744         libguestfs uses gnulib
45745         * users.txt: Add libguestfs.
45746
45747 2009-08-24  Eric Blake  <ebb9@byu.net>
45748
45749         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
45750         * lib/pipe2.c (includes): Add binary-io.h.
45751         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
45752
45753 2009-08-24  Bruno Haible  <bruno@clisp.org>
45754
45755         Tolerate declared but missing accept4 syscall.
45756         * lib/accept4.c (accept4): Invoke original accept4 function first, if
45757         available.
45758         * lib/sys_socket.in.h (accept4): If the function is already present,
45759         override it.
45760         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
45761         * modules/accept4 (Makefile.am): Compile accept4.c always.
45762         Reported by Paolo Bonzini and Eric Blake.
45763
45764 2009-08-23  Bruno Haible  <bruno@clisp.org>
45765
45766         New module 'accept4'.
45767         * lib/sys_socket.in.h (accept4): New declaration.
45768         * lib/accept4.c: New file.
45769         * m4/accept4.m4: New file.
45770         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
45771         GNULIB_ACCEPT4, HAVE_ACCEPT4.
45772         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
45773         HAVE_ACCEPT4.
45774         * modules/accept4: New file.
45775         * doc/glibc-functions/accept4.texi: Mention the new module.
45776
45777 2009-08-24  Jim Meyering  <meyering@redhat.com>
45778
45779         progname: also set global program_invocation_name, when possible
45780         Before this change, a libtool-enabled program that calls glibc's
45781         error function would report the program name as
45782         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
45783         * modules/progname (configure.ac): Check for a declaration of
45784         program_invocation_name.
45785         * lib/progname.c:  Include <errno.h>.
45786         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
45787         Set program_invocation_name.
45788
45789 2009-08-23  Bruno Haible  <bruno@clisp.org>
45790
45791         * lib/dup3.c: Include <string.h>.
45792
45793 2009-08-23  Bruno Haible  <bruno@clisp.org>
45794
45795         * lib/dup3.c (dup3): Test only once whether the system actually exists.
45796         * lib/pipe2.c (pipe2): Likewise.
45797         Suggested by Eric Blake.
45798
45799 2009-08-23  Bruno Haible  <bruno@clisp.org>
45800
45801         Tolerate declared but missing dup3 syscall.
45802         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
45803         * lib/unistd.in.h (dup3): If the function is already present,
45804         override it.
45805         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
45806         * modules/dup3 (Makefile.am): Compile dup3.c always.
45807         Reported by Paolo Bonzini.
45808
45809 2009-08-23  Bruno Haible  <bruno@clisp.org>
45810
45811         Tolerate declared but missing pipe2 syscall.
45812         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45813         available.
45814         * lib/unistd.in.h (pipe2): If the function is already present,
45815         override it.
45816         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45817         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45818         Reported by Paolo Bonzini.
45819
45820 2009-08-23  Bruno Haible  <bruno@clisp.org>
45821
45822         * lib/pipe2.c (pipe2): Move #ifs inside function.
45823
45824 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45825
45826         quotearg: document limitations of quote_these_too
45827         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45828         those limitations are created.
45829         * lib/quotearg.h (set_char_quoting): Document that digits and
45830         letters that are special after backslash are not permitted.
45831         (quotearg_char): Cross-reference set_char_quoting documentation.
45832
45833 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45834
45835         quotearg: implement custom_quoting_style
45836         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45837         right_quote fields.
45838         (set_custom_quoting): New public function.
45839         (quotearg_buffer_restyled): Add left_quote and right_quote
45840         arguments, handle them very much like locale quoting, and update
45841         all uses.
45842         (quotearg_n_custom): New public function.
45843         (quotearg_n_custom_mem): New public function.
45844         (quotearg_custom): New public function.
45845         (quotearg_custom_mem): New public function.
45846         * lib/quotearg.h: Prototype and document new public functions.
45847         (enum quoting_style): For escape_quoting_style and
45848         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45849         ignored even though they're otherwise like c_quoting_style.
45850         Add custom_quoting_style member and document with comparison to
45851         clocale_quoting_style.
45852         * tests/test-quotearg.c (custom_quotes): New array.
45853         (custom_results): New array.
45854         (main): Extend to test custom quoting.
45855
45856 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45857
45858         quotearg: fix right quote escaping when it's in quote_these_too
45859         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45860         quote, be sure to prepend only one backslash.
45861         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45862         (main): Test it.
45863
45864 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45865
45866         quotearg-tests: test escaping of embedded locale quotes
45867         * tests/test-quotearg.c (struct result_strings): Add member for
45868         new input.
45869         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45870         (inputs): Add new input.
45871         (results_g): Add expected results.
45872         (flag_results): Likewise.
45873         (locale_results): Likewise.
45874         (compare_strings): Check those.
45875
45876 2009-08-23  Bruno Haible  <bruno@clisp.org>
45877
45878         Tests for module 'dup3'.
45879         * modules/dup3-tests: New file.
45880         * tests/test-dup3.c: New file.
45881
45882         New module 'dup3'.
45883         * lib/unistd.in.h (dup3): New declaration.
45884         * lib/dup3.c: New file.
45885         * m4/dup3.m4: New file.
45886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45887         HAVE_DUP3.
45888         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45889         * modules/dup3: New file.
45890         * doc/glibc-functions/dup3.texi: Mention the new module.
45891
45892 2009-08-23  Bruno Haible  <bruno@clisp.org>
45893
45894         Tweak the dup2 test.
45895         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45896         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45897         the test file is still empty. Fix argument order of lseek.
45898
45899 2009-08-23  Bruno Haible  <bruno@clisp.org>
45900
45901         Avoid test link errors when the modules getopt-gnu, gettext are used.
45902         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45903         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45904
45905 2009-08-23  Bruno Haible  <bruno@clisp.org>
45906
45907         Fix getdtablesize() on mingw.
45908         * lib/getdtablesize.c (getdtablesize): Implement differently.
45909         * lib/unistd.in.h (getdtablesize): Improve comment.
45910
45911 2009-08-23  Bruno Haible  <bruno@clisp.org>
45912
45913         New module 'mkostemp'.
45914         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45915         * lib/stdlib.in.h (mksotemp): New declaration.
45916         * lib/mkostemp.c: New file, from glibc with modifications.
45917         * lib/tempname.h (GT_FILE): Remove outdated comment.
45918         (gen_tempname): Add flags argument.
45919         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45920         (__GT_FILE): Map to 1.
45921         (small_open, large_open): Remove macros.
45922         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45923         * lib/mkstemp.c (mkstemp): Update.
45924         * lib/mkdtemp.c (mkdtemp): Likewise.
45925         * m4/mkostemp.m4: New file.
45926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45927         HAVE_MKOSTEMP.
45928         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45929         HAVE_MKOSTEMP.
45930         * modules/mkostemp: New file, based on modules/mkstemp.
45931         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45932         * NEWS: Mention the change.
45933
45934 2009-08-23  Bruno Haible  <bruno@clisp.org>
45935
45936         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45937         Reported by Eric Blake.
45938
45939 2009-08-23  Bruno Haible  <bruno@clisp.org>
45940
45941         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45942         Reported by Eric Blake.
45943
45944 2009-08-23  Bruno Haible  <bruno@clisp.org>
45945
45946         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45947         * modules/pipe2 (Depends-on): Likewise.
45948
45949 2009-08-23  Eric Blake  <ebb9@byu.net>
45950
45951         fcntl-h: add O_TTY_INIT support
45952         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45953         * tests/test-fcntl-h.c (o): Test it.
45954         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45955
45956         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45957         * modules/fcntl: Move <fcntl.h> header replacement...
45958         * modules/fcntl-h: ...to new name, so as not to collide with
45959         like-named function.
45960         * tests/test-fcntl.c: Rename...
45961         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45962         * modules/fcntl-tests: Rename...
45963         * modules/fcntl-h-tests: ...to this.  Update test file name.
45964         * modules/chdir-long (Depends-on): Update clients.
45965         * modules/chdir-safer (Depends-on): Likewise.
45966         * modules/fcntl-safer (Depends-on): Likewise.
45967         * modules/fts (Depends-on): Likewise.
45968         * modules/mkancesdirs (Depends-on): Likewise.
45969         * modules/mkdir-p (Depends-on): Likewise.
45970         * modules/open (Depends-on): Likewise.
45971         * modules/savewd (Depends-on): Likewise.
45972         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45973         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45974
45975 2009-08-22  Bruno Haible  <bruno@clisp.org>
45976
45977         * modules/binary-io (License): Relicense under LGPL.
45978         * modules/pipe2 (License): Likewise.
45979
45980 2009-08-22  Bruno Haible  <bruno@clisp.org>
45981
45982         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45983         return value.
45984         * lib/pipe-filter-gi.c (filter_init): Likewise.
45985         Reported by Eric Blake.
45986
45987 2009-08-22  Bruno Haible  <bruno@clisp.org>
45988
45989         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45990         * modules/pipe (Depends-on): Add pipe2.
45991
45992 2009-08-22  Bruno Haible  <bruno@clisp.org>
45993
45994         Tests for module 'pipe2'.
45995         * modules/pipe2-tests: New file.
45996         * tests/test-pipe2.c: New file.
45997
45998         New module 'pipe2'.
45999         * lib/unistd.in.h (pipe2): New declaration.
46000         * lib/pipe2.c: New file.
46001         * m4/pipe2.m4: New file.
46002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
46003         HAVE_PIPE2.
46004         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
46005         * modules/pipe2: New file.
46006         * doc/glibc-functions/pipe2.texi: Mention the new module.
46007
46008 2009-08-22  Bruno Haible  <bruno@clisp.org>
46009
46010         Reference some new glibc functions.
46011         * doc/glibc-functions/accept4.texi: New file.
46012         * doc/glibc-functions/dup3.texi: New file.
46013         * doc/glibc-functions/mkostemp.texi: New file.
46014         * doc/glibc-functions/pipe2.texi: New file.
46015         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
46016         (Glibc sys/socket.h): Refer to accept4.
46017         (Glibc unistd.h): Refer to dup3, pipe2.
46018         Reported by Eric Blake.
46019
46020 2009-08-22  Jim Meyering  <meyering@redhat.com>
46021             Bruno Haible  <bruno@clisp.org>
46022
46023         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
46024         This makes it so packages using automake-1.11's silent-rules option
46025         can print e.g., a single "GEN    configmake.h" line, rather than
46026         the 30+ statements that perform the job.  If you want to see the
46027         actual commands, you can still run "make V=1".
46028         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
46029         so that make output is abbreviated when those variables are defined
46030         appropriately.
46031         * modules/argz: Likewise.
46032         * modules/arpa_inet: Likewise.
46033         * modules/byteswap: Likewise.
46034         * modules/configmake: Likewise.
46035         * modules/dirent: Likewise.
46036         * modules/errno: Likewise.
46037         * modules/fcntl: Likewise.
46038         * modules/float: Likewise.
46039         * modules/fnmatch: Likewise.
46040         * modules/getopt-posix: Likewise.
46041         * modules/glob: Likewise.
46042         * modules/iconv_open: Likewise.
46043         * modules/inttypes: Likewise.
46044         * modules/localcharset: Likewise.
46045         * modules/locale: Likewise.
46046         * modules/math: Likewise.
46047         * modules/netdb: Likewise.
46048         * modules/netinet_in: Likewise.
46049         * modules/poll: Likewise.
46050         * modules/posix_spawnp-tests: Likewise.
46051         * modules/sched: Likewise.
46052         * modules/search: Likewise.
46053         * modules/selinux-h: Likewise.
46054         * modules/signal: Likewise.
46055         * modules/spawn: Likewise.
46056         * modules/stdarg: Likewise.
46057         * modules/stdbool: Likewise.
46058         * modules/stddef: Likewise.
46059         * modules/stdint: Likewise.
46060         * modules/stdio: Likewise.
46061         * modules/stdlib: Likewise.
46062         * modules/string: Likewise.
46063         * modules/strings: Likewise.
46064         * modules/sys_file: Likewise.
46065         * modules/sys_ioctl: Likewise.
46066         * modules/sys_select: Likewise.
46067         * modules/sys_socket: Likewise.
46068         * modules/sys_stat: Likewise.
46069         * modules/sys_time: Likewise.
46070         * modules/sys_times: Likewise.
46071         * modules/sys_utsname: Likewise.
46072         * modules/sys_wait: Likewise.
46073         * modules/sysexits: Likewise.
46074         * modules/time: Likewise.
46075         * modules/unistd: Likewise.
46076         * modules/wchar: Likewise.
46077         * modules/wctype: Likewise.
46078
46079 2009-08-22  Jim Meyering  <meyering@redhat.com>
46080
46081         announce-gen: detect write failure
46082         * build-aux/announce-gen: Add Coda at end.
46083         Remove equivalent-but-more-verbose block at top.
46084
46085 2009-08-19  Akim Demaille  <demaille@gostai.com>
46086
46087         bootstrap: --help to stdout.
46088         * bootstrap (usage): Don't send --help to stderr.
46089         Use a here doc instead of a long string.
46090
46091 2009-08-21  Eric Blake  <ebb9@byu.net>
46092
46093         test-popen-safer: split from test-popen
46094         * tests/test-popen.c (main): Move...
46095         * tests/test-popen.h: ...into new file.
46096         * tests/test-popen-safer2.c: New file.
46097         * modules/popen-tests (Files): Add test-popen.h.
46098         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
46099         Suggested by Bruno Haible.
46100
46101         test-fcntl-safer: split from test-open
46102         * tests/test-open.c (main): Move...
46103         * tests/test-open.h: ...into new file.
46104         * tests/test-fcntl-safer.c: New file.
46105         * modules/open-tests (Files): Add test-open.h.
46106         * modules/fcntl-safer-tests: New file.
46107         Suggested by Bruno Haible.
46108
46109         test-fopen-safer: split from test-fopen
46110         * tests/test-fopen.c (main): Move...
46111         * tests/test-fopen.h: ...into new file.
46112         * tests/test-fopen-safer.c: New file.
46113         * modules/fopen-tests (Files): Add test-fopen.h.
46114         * modules/fopen-safer-tests: New file.
46115         Suggested by Bruno Haible.
46116
46117 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46118
46119         popen-safer: test O_CLOEXEC at run-time.
46120         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
46121
46122 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
46123
46124         fcntl: move more flags to the header
46125         * lib/cloexec.c: Do not define FD_CLOEXEC here.
46126         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
46127         * lib/fcntl.in.h: Do both things here.
46128
46129 2009-08-21  Jim Meyering  <meyering@redhat.com>
46130
46131         consistently remove $@-t before redirecting to it
46132         * modules/argz: Remove $@-t and $@ before redirecting to the former.
46133         * modules/alloca-opt: Likewise.
46134         * modules/byteswap: Likewise.
46135         * modules/fnmatch: Likewise.
46136         * modules/getopt-posix: Likewise.
46137         * modules/glob: Likewise.
46138         * modules/poll: Likewise.
46139         * modules/posix_spawnp-tests: Likewise.
46140         * modules/sys_socket: Likewise.
46141         * modules/sysexits: Likewise.
46142
46143 2009-08-21  Eric Blake  <ebb9@byu.net>
46144
46145         popen: simplify access to original popen
46146         * lib/popen.c (rpl_popen): No need to worry about popen being a
46147         macro.
46148         Reported by Bruno Haible.
46149
46150 2009-08-20  Eric Blake  <ebb9@byu.net>
46151
46152         build: avoid some compiler warnings
46153         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
46154         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
46155         type.
46156         (new_exclude_segment, excluded_file_pattern_p)
46157         (excluded_file_name_p): Reduce scope.
46158         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
46159         old-style declaration.
46160
46161 2009-08-20  Simon Josefsson  <simon@josefsson.org>
46162
46163         * tests/test-exclude1.sh: Handle Windows EOL.
46164         * tests/test-exclude2.sh: Likewise.
46165         * tests/test-exclude3.sh: Likewise.
46166         * tests/test-exclude4.sh: Likewise.
46167         * tests/test-exclude5.sh: Likewise.
46168         * tests/test-exclude6.sh: Likewise.
46169         * tests/test-exclude7.sh: Likewise.
46170
46171 2009-08-19  Akim Demaille  <demaille@gostai.com>
46172
46173         bootstrap: find sha1sum when named gsha1sum.
46174         * bootstrap (find_tool): New.
46175         ($SHA1SUM): New.
46176         Use it.
46177
46178 2009-08-20  Jim Meyering  <meyering@redhat.com>
46179
46180         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
46181         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
46182         expression that converts "." in a file name to "\." in the resulting
46183         regexp.  Start with a dummy statement, so that prior shell variable
46184         definitions are expanded portably.  Reported by Simon Josefsson.
46185
46186 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
46187
46188         Fix polling for writeability of a screen buffer.
46189         * lib/poll.c: Distinguish input and screen buffers for the
46190         Win32 implementation.
46191         * lib/select.c: Likewise.
46192
46193 2009-08-19  Eric Blake  <ebb9@byu.net>
46194
46195         popen-safer: prevent popen from clobbering std descriptors
46196         * modules/popen-safer: New file.
46197         * lib/popen-safer.c: Likewise.
46198         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
46199         * lib/stdio--.h (popen): Provide override.
46200         * lib/stdio-safer.h (popen_safer): Provide declaration.
46201         * tests/test-popen.c (includes): Partially test this.
46202         * modules/popen-safer-tests: New file, for more tests.
46203         * tests/test-popen-safer.c: Likewise.
46204         * MODULES.html.sh (file stream based Input/Output): Mention it.
46205
46206         tests: test some of the *-safer modules
46207         * modules/fopen-safer (Depends-on): Add fopen.
46208         * modules/fcntl-safer (Depends-on): Add fcntl.
46209         * modules/stdlib-safer (Depends-on): Add stdlib.
46210         (configure.ac): Set indicator.
46211         * modules/unistd-safer (configure.ac): Likewise.
46212         * modules/tmpfile-safer (configure.ac): Likewise.
46213         (Depends-on): Add tmpfile.
46214         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
46215         active.
46216         * tests/test-fopen.c (includes): Test safer versions when they are
46217         in use.
46218         * tests/test-open.c (includes): Likewise.
46219
46220         popen: fix cygwin 1.5 bug when stdin closed
46221         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
46222         * modules/popen: New file.
46223         * modules/popen-tests: Likewise.
46224         * tests/test-popen.c: Likewise.
46225         * m4/popen.m4: Likewise.
46226         * lib/popen.c: Likewise.
46227         * lib/stdio.in.h (popen): New declaration.
46228         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
46229         * modules/stdio (Makefile.am): Likewise.
46230         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
46231
46232 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
46233
46234         maint.mk: give full control over update-copyright exclusions
46235         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
46236         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
46237         (update-copyright): Don't force inclusion of top-level
46238         ChangeLog.  Don't force exclusion of all COPYING files, but make
46239         them the default exclusion instead.
46240
46241 2009-08-16  Bruno Haible  <bruno@clisp.org>
46242
46243         Fix test failures on Solaris 10.
46244         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
46245         tests when Solaris iconv() is used.
46246         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
46247         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
46248         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
46249         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
46250         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
46251
46252 2009-08-16  Bruno Haible  <bruno@clisp.org>
46253
46254         Fix test failures on Solaris 10.
46255         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
46256         'tr' program and pass it as first argument.
46257         * tests/test-pipe-filter-gi1.sh: Likewise.
46258         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
46259         program as first argument.
46260         * tests/test-pipe-filter-gi1.c (main): Likewise.
46261
46262 2009-08-16  Eric Blake  <ebb9@byu.net>
46263
46264         fpurge: fix previous commits
46265         * modules/fpurge (Makefile.am): Make replacement conditional,
46266         partially reverting 2007-04-29 change; missed in previous
46267         attempt.
46268         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
46269         is missing.
46270
46271 2009-08-16  Bruno Haible  <bruno@clisp.org>
46272
46273         Clarify fpurge's effect on the file position.
46274         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
46275         * tests/test-fpurge.c (main): Make a second pass for checking the file
46276         position.
46277
46278 2009-08-16  Bruno Haible  <bruno@clisp.org>
46279
46280         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
46281         declaration of fpurge is missing.
46282         * tests/test-fpurge.c (main): Check that the file has not more contents
46283         than expected. Close the file before removing it.
46284
46285 2009-08-15  Eric Blake  <ebb9@byu.net>
46286
46287         fpurge: don't wrap working cygwin implementation
46288         * lib/fpurge.c (fpurge): Fix comment typo.
46289         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
46290         1.7 to avoid replacement.
46291         * tests/test-fpurge.c (main): Enhance test.
46292
46293 2009-08-15  Eric Blake  <ebb9@byu.net>
46294         and Jim Meyering  <meyering@redhat.com>
46295
46296         test-update-copyright: skip if perl is insufficient
46297         * tests/test-update-copyright.sh: Failure to run maintainer tool
46298         should not cause testsuite failure on cygwin 1.5.
46299
46300 2009-08-14  Eric Blake  <ebb9@byu.net>
46301
46302         doc: mention more functions added in cygwin 1.7.0
46303         * doc/posix-headers/limits.texi (limits.h): Update for recent
46304         cygwin additions.
46305         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
46306         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
46307         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
46308         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
46309         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
46310
46311 2009-08-14  Eric Blake  <ebb9@byu.net>
46312
46313         maint.mk: simplify update-copyright rule
46314         * top/maint.mk (update-copyright-local): Delete, and document how
46315         to do it in cfg.mk instead.
46316         (update-copyright-exclude-regexp): Delete, and document how to do
46317         it in .x-update-copyright instead.
46318         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
46319         exclude ChangeLog.
46320
46321 2009-08-14  Bruno Haible  <bruno@clisp.org>
46322
46323         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
46324
46325 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46326
46327         maint.mk: support update-copyright-env
46328         * top/maint.mk (update-copyright-env): Define place-holder.
46329         (update-copyright): Expand $(update-copyright-env) before
46330         invoking update-copyright.
46331
46332 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46333
46334         update-copyright: implement forced reformatting
46335         * build-aux/update-copyright: Implement and document
46336         UPDATE_COPYRIGHT_FORCE.
46337         * tests/test-update-copyright.sh: Test it.
46338
46339 2009-08-14  Eric Blake  <ebb9@byu.net>
46340         and Bruno Haible  <bruno@clisp.org>
46341
46342         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
46343         * tests/test-locale.c: Revert previous patch related to NULL.
46344         * tests/test-stdio.c: Likewise.
46345         * tests/test-stdlib.c: Likewise.
46346         * tests/test-string.c: Likewise.
46347         * tests/test-unistd.c: Likewise.
46348         * modules/time-tests (Depends-on): Add verify.
46349         * modules/wchar-tests (Depends-on): Likewise.
46350         * tests/test-time.c: Test for NULL compliance.
46351         * tests/test-wchar.c: Likewise.
46352         * modules/locale (Depends-on): Add stddef.
46353         * modules/stdio (Depends-on): Likewise.
46354         * modules/stdlib (Depends-on): Likewise.
46355         * modules/string (Depends-on): Likewise.
46356         * modules/time (Depends-on): Likewise.
46357         * modules/unistd (Depends-on): Likewise.
46358         * modules/wchar (Depends-on): Likewise.
46359         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
46360         * lib/stdlib.in.h (includes): Likewise.
46361         * lib/string.in.h (includes): Likewise.
46362         * lib/time.in.h (includes): Likewise.
46363         * lib/unistd.in.h (includes): Likewise.
46364         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
46365         replaced.
46366         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
46367         * m4/stddef_h.m4: New file.
46368         * modules/stddef: Likewise.
46369         * lib/stddef.in.h: Likewise.
46370         * modules/stddef-tests: Likewise.
46371         * tests/test-stddef.c: Likewise.
46372         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
46373         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
46374         * doc/posix-headers/locale.texi (locale.h): Likewise.
46375         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
46376         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
46377         * doc/posix-headers/string.texi (string.h): Likewise.
46378         * doc/posix-headers/time.texi (time.h): Likewise.
46379         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
46380         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
46381
46382 2009-08-14  Eric Blake  <ebb9@byu.net>
46383
46384         doc: improve git diff of texinfo files
46385         * .gitattributes: Add rule for *.texi files, with hint on how to
46386         use it.
46387         Copied from m4, and based on a report by Bruno Haible.
46388
46389 2009-08-14  Bruno Haible  <bruno@clisp.org>
46390
46391         Disable multithread support by default on Cygwin 1.5.x for real.
46392         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
46393
46394 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
46395
46396         update-copyright: much ado about intervals
46397         * build-aux/update-copyright: Implement and document
46398         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
46399         of copyright year intervals.
46400         Also, document UPDATE_COPYRIGHT_YEAR.
46401         * tests/test-update-copyright.sh: Test it.
46402
46403         update-copyright: convert 2-digit to 4-digit years
46404         * build-aux/update-copyright: Implement and document.
46405         * tests/test-update-copyright.sh: Update.
46406
46407 2009-08-14  Jim Meyering  <meyering@redhat.com>
46408
46409         test-exclude: avoid coreutils "make check" failure
46410         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
46411         just as in test-argmatch.c.
46412
46413 2009-08-13  Eric Blake  <ebb9@byu.net>
46414
46415         test-dup2: fix bad assumption
46416         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
46417         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
46418
46419         test-version-etc: fix CRLF portability issue
46420         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
46421         recognize \r.
46422         * tests/test-argp-version-etc-1.sh: Likewise.
46423
46424         getopt: update client modules
46425         * modules/argp (Depends-on): Use getopt-gnu.
46426         * modules/git-merge-changelog (Depends-on): Likewise.
46427         * modules/long-options (Depends-on): Likewise.
46428         * modules/xstrtol (Depends-on): Likewise.
46429
46430 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46431
46432         * tests/test-version-etc.sh: Don't fail on different
46433         project/version.  Don't fail on CRLF differences.  Rewrite to use
46434         multiple -e instead of multiple sed forks, suggested by Eric Blake
46435         <ebb9@byu.net>.
46436         * tests/test-argp-version-etc-1.sh: Likewise.
46437
46438 2009-08-13  Simon Josefsson  <simon@josefsson.org>
46439
46440         * tests/test-version-etc.sh: Don't fail on different
46441         project/version.
46442
46443 2009-08-12  Bruno Haible  <bruno@clisp.org>
46444
46445         Tests for modules 'getopt-posix', 'getopt-gnu'.
46446         * modules/getopt-posix-tests: New file.
46447         * tests/test-getopt.c: New file.
46448         * tests/test-getopt.h: New file.
46449         * tests/test-getopt_long.h: New file.
46450
46451         New modules 'getopt-posix', 'getopt-gnu'.
46452         * modules/getopt-gnu: New file, renamed from modules/getopt.
46453         * modules/getopt-posix: New file.
46454         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
46455         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
46456         (gl_GETOPT): Remove macro.
46457         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
46458         Disable the test against BSD systems that declare optreset. Test
46459         against mingw bug. Test against lack of support of optional arguments
46460         on many platforms.
46461         * doc/glibc-headers/getopt.texi: Update module name and list of
46462         relevant platforms.
46463         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
46464         'getopt-gnu' and more portability problems.
46465         * NEWS: Mention the changes.
46466
46467 2009-08-12  Bruno Haible  <bruno@clisp.org>
46468
46469         Ensure that optarg etc. get declared by <unistd.h>.
46470         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
46471         AC_USE_SYSTEM_EXTENSIONS.
46472         * modules/getopt (Depends-on): Add 'extensions'.
46473
46474 2009-08-12  Bruno Haible  <bruno@clisp.org>
46475
46476         Avoid test link errors.
46477         * modules/pipe-filter-ii-tests (Makefile.am): Define
46478         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
46479         * modules/pipe-filter-gi-tests (Makefile.am): Define
46480         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
46481         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46482
46483 2009-08-12  Bruno Haible  <bruno@clisp.org>
46484
46485         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
46486         gl_GETOPT_SUBSTITUTE before.
46487         (gl_GETOPT): Use it.
46488         * m4/argp.m4 (gl_ARGP): Update.
46489         Reported by Sergey Poznyakoff.
46490
46491         * m4/getopt.m4: Reorder macros.
46492         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
46493         (gl_GETOPT_SUBSTITUTE): Remove macro.
46494
46495 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46496
46497         Minor improvement in gitlog-to-changelog
46498
46499         * build-aux/gitlog-to-changelog: New option `--format' makes
46500         output format string configurable.
46501
46502 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
46503
46504         Optimize exclude: use hash tables for non-wildcard patterns.
46505
46506         * lib/exclude.c: Include hash.h and mbuiter.h
46507         (struct exclude_pattern, exclude_segment): New data types.
46508         (struct exclude): Rewrite.
46509         (fnmatch_pattern_has_wildcards): New function.
46510         (new_exclude_segment, free_exclude_segment): New functions.
46511         (excluded_file_pattern_p, excluded_file_name_p): New functions.
46512         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
46513         * lib/exclude.h (is_fnmatch_pattern): New prototype.
46514         * modules/exclude: Depend on hash and mbuiter.
46515
46516         * modules/exclude-tests: New file.
46517         * tests/test-exclude.c: New file.
46518         * tests/test-exclude1.sh: New file.
46519         * tests/test-exclude2.sh: New file.
46520         * tests/test-exclude3.sh: New file.
46521         * tests/test-exclude4.sh: New file.
46522         * tests/test-exclude5.sh: New file.
46523         * tests/test-exclude6.sh: New file.
46524         * tests/test-exclude7.sh: New file.
46525
46526 2009-08-12  Bruno Haible  <bruno@clisp.org>
46527
46528         Ensure that getopt() gets declared by <unistd.h>.
46529         * lib/unistd.in.h: Conditionally include getopt.h.
46530         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
46531         Set GNULIB_UNISTD_H_GETOPT.
46532         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46533         GNULIB_UNISTD_H_GETOPT.
46534         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
46535
46536 2009-08-12  Bruno Haible  <bruno@clisp.org>
46537
46538         Clarify logic.
46539         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
46540         gl_replace_getopt instead of GETOPT_H.
46541
46542 2009-08-12  Bruno Haible  <bruno@clisp.org>
46543
46544         * m4/getopt.m4: Add comments.
46545
46546 2009-08-12  Bruno Haible  <bruno@clisp.org>
46547
46548         Disable multithread support by default on Cygwin 1.5.x.
46549         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
46550         set gl_use_threads=no if not specified otherwise.
46551
46552 2009-08-11  Bruno Haible  <bruno@clisp.org>
46553
46554         Avoid compilation error on NetBSD 5.0.
46555         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
46556         * tests/test-stdio.c: Likewise.
46557         * tests/test-stdlib.c: Likewise.
46558         * tests/test-string.c: Likewise.
46559         * tests/test-unistd.c: Likewise.
46560         Reported by Greg Troxel <gdt@ir.bbn.com>
46561         at <https://savannah.gnu.org/support/?106973>.
46562
46563 2009-08-11  Bruno Haible  <bruno@clisp.org>
46564
46565         * modules/dup2-tests (Depends-on): Remove close.
46566
46567         Undo 2009-07-19 commit.
46568         * modules/acl-tests (Depends-on): Remove close.
46569         * modules/binary-io-tests (Depends-on): Likewise.
46570         * modules/closein-tests (Depends-on): Likewise.
46571         * modules/flock-tests (Depends-on): Likewise.
46572         * modules/fsync-tests (Depends-on): Likewise.
46573         * modules/lseek-tests (Depends-on): Likewise.
46574         * modules/pipe-tests (Depends-on): Likewise.
46575         * modules/posix_spawn-tests (Depends-on): Likewise.
46576         * modules/posix_spawnp-tests (Depends-on): Likewise.
46577         * modules/stat-time-tests (Depends-on): Likewise.
46578         * modules/yesno-tests (Depends-on): Likewise.
46579
46580 2009-08-10  Bruno Haible  <bruno@clisp.org>
46581
46582         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
46583
46584 2009-08-10  Bruno Haible  <bruno@clisp.org>
46585
46586         Fix a gcc warning.
46587         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
46588
46589 2009-08-10  Bruno Haible  <bruno@clisp.org>
46590
46591         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
46592         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
46593         not only the first time.
46594         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
46595         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
46596         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
46597         is 1, not only the the first time.
46598
46599 2009-08-10  Bruno Haible  <bruno@clisp.org>
46600
46601         Make it possible to use module 'gethostname' without module 'close'.
46602         * lib/unistd.in.h (close): Evoke a link error only if
46603         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46604         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
46605         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46606         * modules/unistd (Makefile.am): Substitute
46607         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46608         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
46609         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
46610         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
46611         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46612         * modules/sys_ioctl (Makefile.am): Substitute
46613         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46614         * modules/socket (configure.ac): On native Windows, set
46615         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
46616         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
46617         Reported by Sam Steingold <sds@gnu.org>.
46618
46619 2009-08-10  Bruno Haible  <bruno@clisp.org>
46620
46621         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
46622         * modules/ioctl (configure.ac): Likewise.
46623
46624 2009-08-10  Bruno Haible  <bruno@clisp.org>
46625
46626         Avoid collision between gnulib wrapper and libintl wrapper.
46627         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
46628         already defined in intl/printf.c.
46629         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
46630         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
46631
46632 2009-08-09  Bruno Haible  <bruno@clisp.org>
46633
46634         Make <sys/select.h> really self-contained, also on Solaris 10.
46635         * lib/sys_select.in.h: Include <string.h>.
46636         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
46637         Solaris 10 problem.
46638         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
46639         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
46640         Reported by Jim Meyering.
46641
46642 2009-08-09  Bruno Haible  <bruno@clisp.org>
46643
46644         Avoid warnings from 'aclocal' that are due to a use of macro name
46645         AM_XGETTEXT_OPTION that is not defined in automake.
46646         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
46647         automake.
46648         * modules/error (configure.ac): Likewise.
46649         * modules/propername (configure.ac): Likewise.
46650         * modules/vasprintf (configure.ac): Likewise.
46651         * modules/verror (configure.ac): Likewise.
46652         * modules/xprintf (configure.ac): Likewise.
46653         * modules/xvasprintf (configure.ac): Likewise.
46654
46655 2009-08-08  Bruno Haible  <bruno@clisp.org>
46656
46657         Avoid compilation error in C++ mode.
46658         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
46659         Reported by Sam Steingold <sds@gnu.org>.
46660
46661 2009-08-08  Bruno Haible  <bruno@clisp.org>
46662
46663         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
46664         for the various Unix platforms.
46665         * doc/posix-headers/limits.texi: Update platforms list regarding
46666         HOST_NAME_MAX.
46667         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46668
46669 2009-08-07  Jim Meyering  <meyering@redhat.com>
46670
46671         selinux-at: fix typo in a comment
46672         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
46673         Spotted by Paolo Bonzini.
46674
46675         selinux-at: remove redundant m4 code, add documentation
46676         * modules/selinux-at (configure.ac): Remove redundant code.
46677         LIB_SELINUX is already set via the dependent module, selinux-h.
46678         (Include): Add quotes around selinux-at.h.
46679         * lib/selinux-at.h: Add documentation.
46680         Reported by Bruno Haible in
46681         http://marc.info/?l=gnulib-bug&m=124958988300749
46682
46683 2009-08-07  Bruno Haible  <bruno@clisp.org>
46684
46685         Avoid link error on MacOS X 10.3 and 10.4.
46686         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
46687         on non-ELF systems.
46688         * lib/argp-pv.c (argp_program_version): Likewise.
46689         Reported by Simon Josefsson.
46690
46691 2009-08-07  Simon Josefsson  <simon@josefsson.org>
46692
46693         * tests/test-version-etc.sh: Use $EXEEXT.
46694
46695 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
46696
46697         update-copyright: update documentation to point to maint.mk
46698         * build-aux/update-copyright: Here.
46699
46700 2009-08-06  Jim Meyering  <meyering@redhat.com>
46701
46702         maint.mk: support update-copyright-local
46703         * top/maint.mk (update-copyright-local): Define place-holder.
46704         (update-copyright): Depend on $(update-copyright-local).
46705
46706 2009-08-06  Jim Meyering  <meyering@redhat.com>
46707
46708         selinux-at: new module
46709         Initially written for coreutils, this module will soon be
46710         used by findutils, too.
46711         * MODULES.html.sh [Misc]: Add selinux-at.
46712         * lib/selinux-at.h: New file, from coreutils.
46713         * lib/selinux-at.c: Likewise.
46714         * modules/selinux-at: Likewise.
46715         (License): Change from LGPL to GPL, since it depends
46716         on the GPL'd openat module.
46717
46718         doc: update README
46719         * README: Remove references to cogito.
46720         Remove cvs-repo-updating instructions from 2007.
46721         Don't imply that CVS is better if you have limited disk space.
46722
46723 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46724
46725         update-copyright: support C-style comments
46726         * build-aux/update-copyright: Implement and document.
46727         * tests/test-update-copyright.sh: Test.
46728
46729 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46730
46731         update-copyright: support omitted "(C)"
46732         * build-aux/update-copyright: Implement and document.  Also,
46733         allow variable whitespace before "(C)".
46734         * tests/test-update-copyright.sh: Test.
46735
46736 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46737
46738         update-copyright: don't trip on non-FSF copyright statements
46739         * build-aux/update-copyright: Fix so that the first correctly
46740         formatted FSF copyright statement is recognized no matter what
46741         appears before it.  Update documentation.
46742         * tests/test-update-copyright.sh: Test that.
46743
46744 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46745
46746         update-copyright: clean up code a little
46747         * build-aux/update-copyright: Append "_re" to the name of any
46748         variable holding a regular expression.
46749         Replace "old" and "new" with "stmt" in variable names.
46750         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
46751         handled correctly.
46752         Format code more consistently.
46753
46754 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
46755
46756         update-copyright-tests: improve portability
46757         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
46758         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
46759
46760 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46761
46762         update-copyright: support @copyright{} and &copy;
46763         * build-aux/update-copyright: Implement and document.
46764         * tests/test-update-copyright.sh: Test.
46765
46766 2009-08-04  Jim Meyering  <meyering@redhat.com>
46767
46768         update-copyright-tests: correctly test EOL=\r\n handling
46769         * tests/test-update-copyright.sh: Put \r at the end of some lines
46770         for the dos-eol tests.  Based on a patch by Joel E. Denny.
46771
46772         maint.mk: make update-copyright exclusion list more configurable
46773         * top/maint.mk (update-copyright): Default to excluding COPYING,
46774         but allow an override, in case someone does want to update that file.
46775
46776         maint.mk: don't update copyright date in COPYING
46777         * top/maint.mk (update-copyright): Exclude COPYING.
46778
46779         maint.mk: add a copyright-updating rule
46780         * top/maint.mk (update-copyright): New rule.
46781         Derived from coreutils/Makefile.am.
46782
46783         update-copyright: rename some variables
46784         * build-aux/update-copyright: Rename a few variables for clarity.
46785         Tweak syntax.  List Joel E. Denny as coauthor.
46786
46787 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
46788
46789         update-copyright: fix bug for 2-digit last year and add tests
46790         * build-aux/update-copyright: Fix bug.
46791         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
46792         specified.
46793         * modules/update-copyright-tests: New
46794         * tests/test-update-copyright.sh: New.
46795
46796 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46797
46798         update-copyright: handle leading tabs in line prefix
46799         * build-aux/update-copyright: Count leading tabs as 8 spaces
46800         when computing margin.  This helps with the formatting of
46801         ChangeLogs, for example.
46802         Fix documentation a little.
46803
46804 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46805
46806         update-copyright: support EOL=\r\n
46807         * build-aux/update-copyright: Implement that.
46808
46809 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
46810
46811         update-copyright: automatically format copyright statements
46812         * build-aux/update-copyright: Implement that.
46813         Also, be a little more predictable and safer by always failing
46814         when the full copyright format is not perfectly recognized as an
46815         unbroken whole.  Discussed at
46816         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46817         Rewrite documentation.
46818
46819 2009-08-03  Bruno Haible  <bruno@clisp.org>
46820
46821         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46822
46823 2009-08-02  Bruno Haible  <bruno@clisp.org>
46824
46825         Tests for module 'uname'.
46826         * modules/uname-tests: New file.
46827         * tests/test-uname.c: New file.
46828
46829         New module 'uname'.
46830         * lib/uname.c: New file.
46831         * m4/uname.m4: New file.
46832         * modules/uname: New file.
46833         * doc/posix-functions/uname.texi: Mention the new module.
46834
46835 2009-08-02  Bruno Haible  <bruno@clisp.org>
46836
46837         Tests for module 'sys_utsname'.
46838         * modules/sys_utsname-tests: New file.
46839         * tests/test-sys_utsname.c: New file.
46840
46841         New module 'sys_utsname'.
46842         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46843         * m4/sys_utsname_h.m4: New file.
46844         * modules/sys_utsname: New file.
46845         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46846
46847 2009-08-02  Bruno Haible  <bruno@clisp.org>
46848
46849         Implicitly initialize the sockets library.
46850         * lib/gethostname.c: Include sockets.h.
46851         (rpl_gethostname): Invoke gl_sockets_startup.
46852         * lib/socket.c: Include sockets.h.
46853         (rpl_socket): Invoke gl_sockets_startup.
46854         * modules/gethostname (Depends-on): Add sockets.
46855         * modules/socket (Depends-on): Likewise.
46856         * tests/test-poll.c: Don't include sockets.h.
46857         (main): Don't invoke gl_sockets_startup.
46858         * tests/test-select.c: Don't include sockets.h.
46859         (main): Don't invoke gl_sockets_startup.
46860
46861 2009-08-02  Bruno Haible  <bruno@clisp.org>
46862
46863         Allow multiple calls to gl_sockets_startup.
46864         * lib/sockets.c (initialized_sockets_version): New variable.
46865         (gl_sockets_startup): Do nothing if already called for this or a higher
46866         version.
46867         (gl_sockets_cleanup): Reset initialized_sockets_version.
46868
46869 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46870
46871         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46872         different project/version.
46873
46874 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46875             Bruno Haible  <bruno@clisp.org>
46876
46877         Tests for module 'pipe-filter-gi'.
46878         * modules/pipe-filter-gi-tests: New file.
46879         * tests/test-pipe-filter-gi1.sh: New file.
46880         * tests/test-pipe-filter-gi1.c: New file.
46881         * tests/test-pipe-filter-gi2.sh: New file.
46882         * tests/test-pipe-filter-gi2-main.c: New file.
46883         * tests/test-pipe-filter-gi2-child.c: New file.
46884
46885         New module 'pipe-filter-gi'.
46886         * lib/pipe-filter-gi.c: New file.
46887         * modules/pipe-filter-gi: New file.
46888
46889 2009-08-02  Bruno Haible  <bruno@clisp.org>
46890             Paolo Bonzini  <bonzini@gnu.org>
46891
46892         Tests for module 'pipe-filter-ii'.
46893         * modules/pipe-filter-ii-tests: New file.
46894         * tests/test-pipe-filter-ii1.sh: New file.
46895         * tests/test-pipe-filter-ii1.c: New file.
46896         * tests/test-pipe-filter-ii2.sh: New file.
46897         * tests/test-pipe-filter-ii2-main.c: New file.
46898         * tests/test-pipe-filter-ii2-child.c: New file.
46899
46900         New module 'pipe-filter-ii'.
46901         * lib/pipe-filter.h: New file.
46902         * lib/pipe-filter-ii.c: New file.
46903         * lib/pipe-filter-aux.h: New file.
46904         * modules/pipe-filter-ii: New file.
46905
46906 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46907
46908         * lib/gc-libgcrypt.c: Change copyright to FSF.
46909         * lib/gc-gnulib.c: Likewise.
46910
46911 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46912
46913         * lib/gethostname.c: Include limits.h.
46914
46915 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46916             Bruno Haible  <bruno@clisp.org>
46917
46918         Ensure HOST_NAME_MAX as part of the gethostname module.
46919         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46920         define also HOST_NAME_MAX.
46921         * tests/test-gethostname.c: Include <limits.h>.
46922         (main): Check also HOST_NAME_MAX.
46923         * doc/posix-headers/limits.texi: Document the mingw problem.
46924
46925 2009-08-02  Bruno Haible  <bruno@clisp.org>
46926
46927         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46928         Add comments.
46929
46930 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46931
46932         * lib/gethostname.c: Add Windows wrapper.
46933         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46934         * modules/gethostname: Depend on sys_socket & errno, for also
46935         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46936         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46937
46938 2009-07-31  Jim Meyering  <meyering@redhat.com>
46939
46940         getloadavg: fix symbol name in comment
46941         * lib/getloadavg.c: Correct a typo I introduced when adding
46942         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46943         Matt Kraai spotted the problem.
46944
46945 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46946
46947         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46948         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46949         code also if ! defined N_NAME_POINTER.
46950         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46951         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46952         but the n_name member is a 12-byte array.
46953
46954 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46955
46956         update-copyright: generalize comment handling
46957         * build-aux/update-copyright: Handle copyright statements
46958         within more comment styles.
46959         Document usage.
46960         Report any file with an external copyright holder or parse failure.
46961
46962 2009-07-29  Jim Meyering  <meyering@redhat.com>
46963
46964         mktime: correct setting of REPLACE_MKTIME
46965         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46966
46967         update-copyright: new module
46968         * modules/update-copyright: New file.
46969         * build-aux/update-copyright: New file.
46970         * MODULES.html.sh (maint+release support): Add update-copyright.
46971
46972 2009-07-27  Bruno Haible  <bruno@clisp.org>
46973
46974         Fix compilation error when <ctime> is used and mktime is replaced.
46975         * lib/time.in.h (mktime): New declaration.
46976         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46977         REPLACE_MKTIME instead of defining mktime in config.h.
46978         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46979         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46980         Reported by Ross McFarland <rwmcfa1@neces.com>.
46981
46982 2009-07-27  Bruno Haible  <bruno@clisp.org>
46983
46984         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46985         Reported by Matt Kraai <mkraai@beckman.com>.
46986
46987 2009-07-25  Jim Meyering  <meyering@redhat.com>
46988
46989         maint.mk: avoid warnings about missing files
46990         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46991         diagnostic when .prev-version does not exist.
46992         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46993         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46994         nonexistent cfg.mk.
46995         Suggestions from Simon Josefsson.
46996
46997 2009-07-25  Bruno Haible  <bruno@clisp.org>
46998
46999         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
47000         defined as macros. Needed on QNX 6.4.1.
47001         Reported by Matt Kraai <mkraai@beckman.com>.
47002
47003 2009-07-23  Jim Meyering  <meyering@redhat.com>
47004
47005         maint.mk: invoke "make dist" with a working value of XZ_OPT
47006         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
47007
47008 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
47009
47010         Make fseeko.c compile on QNX.
47011         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
47012
47013 2009-07-22  Peter Simons  <simons@cryp.to>
47014
47015         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
47016         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
47017         * lib/md4.h: Likewise.
47018         * lib/md5.h: Likewise.
47019         * lib/sha1.h: Likewise.
47020         * lib/sha256.h: Likewise.
47021         * lib/sha512.h: Likewise.
47022
47023         tests-sha1: don't assign literal string to 'char *' variable
47024         * tests/test-sha1.c (main): Declare locals with "const" to match
47025         attributes of the right hand side.
47026
47027 2009-07-21  Eric Blake  <ebb9@byu.net>
47028
47029         dup2: fix more mingw problems
47030         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
47031         fd to itself.
47032         * doc/posix-functions/dup2.texi (dup2): Document the bug.
47033         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
47034         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
47035         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
47036         care of mingw bugs.
47037
47038 2009-07-21  Jim Meyering  <meyering@redhat.com>
47039
47040         vc-list-files: avoid failure when /bin/sh is dash
47041         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
47042         On some Debian based systems, /bin/sh is a symlink to dash, and running
47043         this command would omit the "/" following each 'tests' prefix:
47044           dash -x build-aux/vc-list-files -C . tests
47045         That is because bash and dash work differently:
47046           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
47047           bash ok
47048           dash odd
47049
47050 2009-07-21  Eric Blake  <ebb9@byu.net>
47051
47052         dup2-tests: test previous patch
47053         * modules/dup2-tests: New file.
47054         * tests/test-dup2.c: Likewise.
47055         * tests/test-open.c (main): Avoid unspecified behavior.
47056         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
47057         test.
47058
47059         dup2: work around mingw and cygwin 1.5 bug
47060         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
47061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
47062         * modules/unistd (Makefile.am): Substitute it.
47063         * lib/unistd.in.h (dup2): Declare the replacement.
47064         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
47065         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
47066         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
47067         * modules/execute (Depends-on): Add dup2.
47068         * modules/fseterr (Depends-on): Likewise.
47069         * modules/pipe (Depends-on): Likewise.
47070         * modules/posix_spawn-internal (Depends-on): Likewise.
47071
47072 2009-07-21  Bruno Haible  <bruno@clisp.org>
47073
47074         * modules/.gitattributes: New file.
47075
47076 2009-07-20  Bruno Haible  <bruno@clisp.org>
47077
47078         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
47079         (main): Use it.
47080
47081 2009-07-20  Eric Blake  <ebb9@byu.net>
47082
47083         test-pipe: make a bit more robust.
47084         * tests/test-pipe.c (myerr): Allow error messages regardless of
47085         what we do to stderr.
47086         (test_pipe): Rearrange to avoid deadlock.
47087         (child_main): Try a larger read, to ensure we avoided deadlock.
47088         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
47089         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
47090         if misused.
47091
47092 2009-07-19  Jim Meyering  <meyering@redhat.com>
47093
47094         fts: avoid false-positive cycle-detection
47095         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
47096         for each new command line argument.
47097
47098 2009-07-19  Bruno Haible  <bruno@clisp.org>
47099
47100         Fix build error on mingw with the modules sys_select and unistd.
47101         * modules/acl-tests (Depends-on): Add close.
47102         * modules/binary-io-tests (Depends-on): Likewise.
47103         * modules/closein-tests (Depends-on): Likewise.
47104         * modules/flock-tests (Depends-on): Likewise.
47105         * modules/fsync-tests (Depends-on): Likewise.
47106         * modules/lseek-tests (Depends-on): Likewise.
47107         * modules/pipe-tests (Depends-on): Likewise.
47108         * modules/posix_spawn-tests (Depends-on): Likewise.
47109         * modules/posix_spawnp-tests (Depends-on): Likewise.
47110         * modules/stat-time-tests (Depends-on): Likewise.
47111         * modules/yesno-tests (Depends-on): Likewise.
47112
47113 2009-07-19  Bruno Haible  <bruno@clisp.org>
47114
47115         Unify conditionals.
47116         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
47117         macros, not at the compiler macros.
47118         * lib/pipe.c: Likewise.
47119         * lib/execute.c: Likewise.
47120         * lib/spawni.c: Likewise.
47121
47122 2009-07-19  Bruno Haible  <bruno@clisp.org>
47123
47124         Fix handling of closed stdin/stdout/stderr on mingw.
47125         * lib/w32spawn.h: Include unistd.h.
47126         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
47127         file descriptor with O_NOINHERIT flag.
47128         (fd_safer_noinherit): New function, based on fd-safer.c.
47129         (dup_safer_noinherit): New function, based on dup-safer.c.
47130         (undup_safer_noinherit): New function.
47131         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
47132         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
47133         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
47134         instead of fd_safer.
47135         * tests/test-pipe.c: Include <windows.h>.
47136         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
47137         result.
47138
47139         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
47140         from main.
47141         (test_pipe): Pass an extra argument for disambiguation.
47142         (main): Invoke parent_main or child_main.
47143
47144         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
47145         consistently.
47146
47147 2009-07-18  Eric Blake  <ebb9@byu.net>
47148
47149         test-pipe: fix mingw build
47150         * tests/test-pipe.c (main): Avoid fcntl on mingw.
47151
47152 2009-07-18  Bruno Haible  <bruno@clisp.org>
47153
47154         * modules/pipe-tests (Makefile.am): Fix typo.
47155
47156 2009-07-18  Eric Blake  <ebb9@byu.net>
47157
47158         error: fix mingw build
47159         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
47160         Reported by Bruno Haible.
47161
47162         error: avoid undefined use of stdout
47163         * lib/error.c (error, error_at_line): Check that fd 1 is open
47164         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
47165         is handling faults and the close_stdout module wants to report the
47166         detection of closed stdout as an error.
47167
47168 2009-07-17  Eric Blake  <ebb9@byu.net>
47169
47170         pipe: be robust in face of closed fds
47171         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
47172         should cause child to misbehave.
47173         * modules/pipe-tests: New module.
47174         * tests/test-pipe.c: New file.
47175         * tests/test-pipe.sh: New file.
47176         Reported by Akim Demaille.
47177
47178 2009-07-14  Bruno Haible  <bruno@clisp.org>
47179
47180         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
47181         Reported by anonymous kc.
47182
47183 2009-07-07  Jim Meyering  <meyering@redhat.com>
47184
47185         maint.mk: don't look for translatable strings in *.m4 or *.mk
47186         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
47187         when searching for translatable strings.
47188
47189 2009-07-05  Jim Meyering  <meyering@redhat.com>
47190
47191         remove superfluous parentheses in STREQ definition
47192         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
47193         * lib/getugroups.c (STREQ): Likewise.
47194         * lib/fnmatch.c (STREQ): Likewise.
47195         Spotted by Bruno Haible.
47196
47197 2009-07-04  Jim Meyering  <meyering@redhat.com>
47198
47199         argv-iter: new module
47200         * MODULES.html.sh: Add argv-iter.
47201         * lib/argv-iter.c, lib/argv-iter.h: New files.
47202         * modules/argv-iter: New file.
47203         * modules/argv-iter-tests: New file.
47204         * tests/test-argv-iter.c: Test it.
47205
47206 2009-07-04  Bruno Haible  <bruno@clisp.org>
47207
47208         Fix assertion.
47209         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
47210         contains more exact copies of a given entry than file2, leave the extra
47211         copies unpaired rather than aborting.
47212         Reported by Eric Blake.
47213
47214 2009-07-02  Bruno Haible  <bruno@clisp.org>
47215
47216         Speedup git-merge-changelog for git cherry-pick.
47217         * lib/git-merge-changelog.c (struct entries_mapping): New type.
47218         (entries_mapping_get): New function, extracted from compute_mapping.
47219         (entries_mapping_reverse_get): New function.
47220         (compute_mapping): Add a 'full' argument. Return the result in a
47221         'struct entries_mapping'.
47222         (main): Update. Access the mappings through entries_mapping_get.
47223         Reported by Eric Blake.
47224
47225 2009-07-02  Bruno Haible  <bruno@clisp.org>
47226
47227         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
47228         best_i.
47229
47230 2009-07-02  Bruno Haible  <bruno@clisp.org>
47231
47232         Speed up approximate search for matching ChangeLog entries.
47233         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
47234         argument. Call fstrcmp_bounded instead of fstrcmp.
47235         (compute_mapping, try_split_merged_entry, main): Update callers.
47236
47237 2009-07-02  Bruno Haible  <bruno@clisp.org>
47238
47239         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
47240
47241 2009-06-30  Bruno Haible  <bruno@clisp.org>
47242
47243         Reduce the number of uc_is_cased calls.
47244         * lib/unicase.h (casing_suffix_context_t): Add
47245         'first_char_except_ignorable' field.
47246         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
47247         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
47248         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
47249         Update initializer.
47250         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
47251         case-ignorable characters.
47252         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
47253         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
47254         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
47255         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
47256         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
47257
47258 2009-06-30  Bruno Haible  <bruno@clisp.org>
47259
47260         Tests for module 'unicase/ignorable'.
47261         * modules/unicase/ignorable-tests: New file.
47262         * tests/unicase/test-ignorable.c: New file, generated by
47263         gen-uni-tables.
47264
47265         Tests for module 'unicase/cased'.
47266         * modules/unicase/cased-tests: New file.
47267         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
47268         * tests/unicase/test-predicate-part1.h: New file, derived from
47269         tests/unictype/test-predicate-part1.h.
47270         * tests/unicase/test-predicate-part2.h: New file, same as
47271         tests/unictype/test-predicate-part2.h.
47272
47273         Fix evaluation of "Before C" condition of FINAL_SIGMA.
47274         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
47275         (output_casing_properties): New function.
47276         (main): Call it.
47277         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
47278         * lib/unicase/cased.c: Include unictype/bitmap.h.
47279         (uc_is_cased): Define through a bitmap lookup.
47280         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
47281         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
47282         (uc_is_case_ignorable): Define through a bitmap lookup.
47283         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
47284         lib/unictype/bitmap.h.
47285         (Depends-on): Add inline. Clean up.
47286         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
47287         lib/unictype/bitmap.h.
47288         (Depends-on): Add inline. Clean up.
47289         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
47290         recognition.
47291         * tests/unicase/test-u16-tolower.c (main): Likewise.
47292         * tests/unicase/test-u32-tolower.c (main): Likewise.
47293
47294 2009-06-30  Bruno Haible  <bruno@clisp.org>
47295
47296         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
47297         * lib/unicase/u16-casemap.c: Likewise.
47298         * lib/unicase/u32-casemap.c: Likewise.
47299
47300 2009-06-29  Bruno Haible  <bruno@clisp.org>
47301
47302         Define u32_casefold as a wrapper around u32_ct_casefold.
47303         * lib/unicase/u32-casefold.c: Update.
47304         * modules/unicase/u32-casefold (Depends-on): Add
47305         unicase/u32-ct-casefold, unicase/empty-prefix-context,
47306         unicase/empty-suffix-context. Clean up.
47307
47308         Define u16_casefold as a wrapper around u16_ct_casefold.
47309         * lib/unicase/u16-casefold.c: Update.
47310         * modules/unicase/u16-casefold (Depends-on): Add
47311         unicase/u16-ct-casefold, unicase/empty-prefix-context,
47312         unicase/empty-suffix-context. Clean up.
47313
47314         Define u8_casefold as a wrapper around u8_ct_casefold.
47315         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
47316         * lib/unicase/u8-casefold.c: Update.
47317         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
47318         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47319
47320         Define u32_totitle as a wrapper around u32_ct_totitle.
47321         * lib/unicase/u32-totitle.c: Update.
47322         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
47323         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47324
47325         Define u16_totitle as a wrapper around u16_ct_totitle.
47326         * lib/unicase/u16-totitle.c: Update.
47327         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
47328         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47329
47330         Define u8_totitle as a wrapper around u8_ct_totitle.
47331         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
47332         functions.
47333         (FUNC): Delegate to U_CT_TOTITLE.
47334         * lib/unicase/u8-totitle.c: Update.
47335         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
47336         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
47337
47338         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
47339         invocation.
47340         * modules/unicase/u32-tolower (Depends-on): Add
47341         unicase/empty-prefix-context, unicase/empty-suffix-context.
47342
47343         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
47344         invocation.
47345         * modules/unicase/u16-tolower (Depends-on): Add
47346         unicase/empty-prefix-context, unicase/empty-suffix-context.
47347
47348         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
47349         * modules/unicase/u8-tolower (Depends-on): Add
47350         unicase/empty-prefix-context, unicase/empty-suffix-context.
47351
47352         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
47353         invocation.
47354         * modules/unicase/u32-toupper (Depends-on): Add
47355         unicase/empty-prefix-context, unicase/empty-suffix-context.
47356
47357         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
47358         invocation.
47359         * modules/unicase/u16-toupper (Depends-on): Add
47360         unicase/empty-prefix-context, unicase/empty-suffix-context.
47361
47362         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
47363         * modules/unicase/u8-toupper (Depends-on): Add
47364         unicase/empty-prefix-context, unicase/empty-suffix-context.
47365
47366         New module 'unicase/u32-ct-casefold'.
47367         * lib/unicase/u32-ct-casefold.c: New file.
47368         * modules/unicase/u32-ct-casefold: New file.
47369
47370         New module 'unicase/u16-ct-casefold'.
47371         * lib/unicase/u16-ct-casefold.c: New file.
47372         * modules/unicase/u16-ct-casefold: New file.
47373
47374         New module 'unicase/u8-ct-casefold'.
47375         * lib/unicase/u8-ct-casefold.c: New file.
47376         * lib/unicase/u-ct-casefold.h: New file, derived from
47377         lib/unicase/u-casefold.h.
47378         * modules/unicase/u8-ct-casefold: New file.
47379
47380         New module 'unicase/u32-ct-totitle'.
47381         * lib/unicase/u32-ct-totitle.c: New file.
47382         * modules/unicase/u32-ct-totitle: New file.
47383
47384         New module 'unicase/u16-ct-totitle'.
47385         * lib/unicase/u16-ct-totitle.c: New file.
47386         * modules/unicase/u16-ct-totitle: New file.
47387
47388         New module 'unicase/u8-ct-totitle'.
47389         * lib/unicase/u8-ct-totitle.c: New file.
47390         * lib/unicase/u-ct-totitle.h: New file, derived from
47391         lib/unicase/u-totitle.h.
47392         * modules/unicase/u8-ct-totitle: New file.
47393
47394         New module 'unicase/u32-ct-tolower'.
47395         * lib/unicase/u32-ct-tolower.c: New file.
47396         * modules/unicase/u32-ct-tolower: New file.
47397
47398         New module 'unicase/u16-ct-tolower'.
47399         * lib/unicase/u16-ct-tolower.c: New file.
47400         * modules/unicase/u16-ct-tolower: New file.
47401
47402         New module 'unicase/u8-ct-tolower'.
47403         * lib/unicase/u8-ct-tolower.c: New file.
47404         * modules/unicase/u8-ct-tolower: New file.
47405
47406         New module 'unicase/u32-ct-toupper'.
47407         * lib/unicase/u32-ct-toupper.c: New file.
47408         * modules/unicase/u32-ct-toupper: New file.
47409
47410         New module 'unicase/u16-ct-toupper'.
47411         * lib/unicase/u16-ct-toupper.c: New file.
47412         * modules/unicase/u16-ct-toupper: New file.
47413
47414         New module 'unicase/u8-ct-toupper'.
47415         * lib/unicase/u8-ct-toupper.c: New file.
47416         * modules/unicase/u8-ct-toupper: New file.
47417
47418         Add context arguments to u*_casemap functions.
47419         * lib/unicase/unicasemap.h: Include unicase.h.
47420         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
47421         suffix_context arguments.
47422         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
47423         functions.
47424         (FUNC): Add prefix_context and suffix_context arguments. Use
47425         uc_is_cased and uc_is_case_ignorable.
47426         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
47427         * lib/unicase/u16-casemap.c: Likewise.
47428         * lib/unicase/u32-casemap.c: Likewise.
47429         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
47430         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47431         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
47432         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47433         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
47434         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
47435
47436         New module 'unicase/u32-suffix-context'.
47437         * lib/unicase/u32-suffix-context.c: New file.
47438         * modules/unicase/u32-suffix-context: New file.
47439
47440         New module 'unicase/u16-suffix-context'.
47441         * lib/unicase/u16-suffix-context.c: New file.
47442         * modules/unicase/u16-suffix-context: New file.
47443
47444         New module 'unicase/u8-suffix-context'.
47445         * lib/unicase/u8-suffix-context.c: New file.
47446         * lib/unicase/u-suffix-context.h: New file.
47447         * modules/unicase/u8-suffix-context: New file.
47448
47449         New module 'unicase/empty-suffix-context'.
47450         * lib/unicase/empty-suffix-context.c: New file.
47451         * modules/unicase/empty-suffix-context: New file.
47452
47453         New module 'unicase/u32-prefix-context'.
47454         * lib/unicase/u32-prefix-context.c: New file.
47455         * modules/unicase/u32-prefix-context: New file.
47456
47457         New module 'unicase/u16-prefix-context'.
47458         * lib/unicase/u16-prefix-context.c: New file.
47459         * modules/unicase/u16-prefix-context: New file.
47460
47461         New module 'unicase/u8-prefix-context'.
47462         * lib/unicase/u8-prefix-context.c: New file.
47463         * lib/unicase/u-prefix-context.h: New file.
47464         * lib/unicase/context.h: New file.
47465         * modules/unicase/u8-prefix-context: New file.
47466
47467         New module 'unicase/empty-prefix-context'.
47468         * lib/unicase/empty-prefix-context.c: New file.
47469         * modules/unicase/empty-prefix-context: New file.
47470
47471         New module 'unicase/ignorable'.
47472         * lib/unicase/ignorable.c: New file.
47473         * modules/unicase/ignorable: New file.
47474
47475         New module 'unicase/cased'.
47476         * lib/unicase/caseprop.h: New file.
47477         * lib/unicase/cased.c: New file.
47478         * modules/unicase/cased: New file.
47479
47480         New functions for case mapping of substrings.
47481         * lib/unicase.h (casing_prefix_context_t): New type.
47482         (unicase_empty_prefix_context): New variable.
47483         (u8_casing_prefix_context, u16_casing_prefix_context,
47484         u32_casing_prefix_context, u8_casing_prefixes_context,
47485         u16_casing_prefixes_context, u32_casing_prefixes_context): New
47486         declarations.
47487         (casing_suffix_context_t): New type.
47488         (unicase_empty_suffix_context): New variable.
47489         (u8_casing_suffix_context, u16_casing_suffix_context,
47490         u32_casing_suffix_context, u8_casing_suffixes_context,
47491         u16_casing_suffixes_context, u32_casing_suffixes_context,
47492         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
47493         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
47494         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
47495         declarations.
47496
47497 2009-06-28  Jim Meyering  <meyering@redhat.com>
47498
47499         boostrap: indent only with spaces
47500         * build-aux/bootstrap: Indent only with spaces, never TABs.
47501
47502         bootstrap: split long lines
47503         * build-aux/bootstrap: Keep line length < 80.
47504
47505         bootstrap: sync from coreutils
47506         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
47507         just as autoreconf does.  Verify a list of prerequisite
47508         package-name,version-number pairs if defined in bootstrap.conf.
47509         Refer to README-prereq, if prerequisites are not satisfied.
47510
47511 2009-06-27  Eric Blake  <ebb9@byu.net>
47512
47513         tests: add test for bogus NULL definition
47514         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
47515         * tests/test-stdlib.c: Likewise.
47516         * tests/test-string.c: Likewise.
47517         * tests/test-locale.c: Likewise.
47518         * tests/test-unistd.c: Likewise.
47519         * modules/stdio-tests (Depends-on): Add verify.
47520         * modules/stdlib-tests (Depends-on): Likewise.
47521         * modules/string-tests (Depends-on): Likewise.
47522         * modules/locale-tests (Depends-on): Likewise.
47523         * modules/unistd-tests (Depends-on): Likewise.
47524
47525 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
47526
47527         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
47528         self-explaining comment.
47529         * m4/selinux-selinux-h: Update serial.
47530         (gl_LIBSELINUX): New macro, adding a warning for missing development
47531         packages to code extracted from...
47532         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
47533         Add warning for missing development packages here, too.
47534
47535 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
47536
47537         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
47538
47539 2009-06-25  Eric Blake  <ebb9@byu.net>
47540
47541         version-etc: fix regression
47542         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
47543         gcc.
47544         (version_etc): Use it, to catch bugs with trailing NULL.
47545         * lib/version-etc.c (version_etc_arn): Delete unused argument.
47546         (version_etc_va): Fix logic bug.
47547         * modules/version-etc-tests: Add test.
47548         * tests/test-version-etc.c: New file.
47549         * tests/test-version-etc.sh: Likewise.
47550
47551 2009-06-25  Sam Steingold  <sds@gnu.org>
47552
47553         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
47554         mbtowc declaration.
47555
47556 2009-06-25  Eric Blake  <ebb9@byu.net>
47557
47558         fpurge: migrate into <stdio.h>
47559         * lib/fpurge.h: Delete...
47560         * lib/stdio.in.h (fpurge): ...and declare here, instead.
47561         * lib/fpurge.c (fpurge): Change declaring header.
47562         * modules/fpurge (Files): Drop deleted file.
47563         (Depends-on): Add stdio.
47564         (configure.ac): Set witness.
47565         * modules/stdio (Makefile.am): Support fpurge macros.
47566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
47567         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
47568         * lib/fflush.c: Update client.
47569         * tests/test-fpurge.c: Likewise.
47570         * NEWS: Mention the change.
47571
47572 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47573
47574         * lib/argp-version-etc.c (program_authors): Add const
47575         qualifier.
47576         * lib/version-etc.c: Fix typos in the comments.
47577         * modules/argp-version-etc: Depends on version-etc.
47578
47579 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47580
47581         argp-version-etc: new module.
47582
47583         * lib/argp-version-etc.c: New file.
47584         * lib/argp-version-etc.h: New file.
47585         * modules/argp-version-etc: New file.
47586         * modules/argp-version-etc-tests: New file.
47587         * tests/test-argp-version-etc.c: New test.
47588         * tests/test-argp-version-etc-1.sh: New test.
47589
47590 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
47591
47592         Provide additional interfaces and documentation for version-etc
47593         module.
47594
47595         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
47596         interfaces.
47597         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
47598         prototypes.
47599
47600 2009-06-24  Bruno Haible  <bruno@clisp.org>
47601
47602         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
47603         HAVE_LIB${NAME} macro.
47604         Reported by Sam Steingold <sds@gnu.org>.
47605
47606 2009-06-23  Simon Josefsson  <simon@josefsson.org>
47607
47608         * modules/hash-tests (test_hash_LDADD): Link to libintl when
47609         needed.
47610
47611 2009-06-21  Bruno Haible  <bruno@clisp.org>
47612
47613         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
47614         work.
47615         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
47616         together with LIB${NAME}, LTLIB${NAME}.
47617         Reported by Sam Steingold <sds@gnu.org>.
47618
47619 2009-06-20  Jim Meyering  <meyering@redhat.com>
47620
47621         tests: make sc_require_test_exit_idiom more generic
47622         * top/maint.mk (Exit_witness_file): New overridable variable.
47623         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
47624         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
47625
47626 2009-06-19  Jim Meyering  <meyering@redhat.com>
47627
47628         hash: reverse order of src/dst parameters in an internal interface
47629         * lib/hash.c (transfer_entries): Reverse order of parameters to
47630         put DST before SRC.  Adjust callers.
47631
47632         tests: test-hash: avoid wholesale duplication
47633         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
47634         Instead, use a loop and add a single conditional.
47635
47636         tests: test-hash: allow seed selection via a command line argument
47637         * tests/test-hash.c (get_seed): New function.
47638         (main): Use it.
47639
47640 2009-06-19  Eric Blake  <ebb9@byu.net>
47641
47642         hash: avoid memory leak on allocation failure
47643         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
47644         failure.  Factor repeated algorithm...
47645         (transfer_entries): ...into new helper routine.
47646         (hash_delete): React to hash_rehash return value.
47647
47648         hash: reduce memory pressure in hash_rehash no-op case
47649         * lib/hash.c (next_prime): Avoid overflow.
47650         (hash_initialize): Factor bucket size computation...
47651         (compute_bucket_size): ...into new helper function.
47652         (hash_rehash): Use new function and open coding to reduce memory
47653         pressure, and avoid a memory leak in USE_OBSTACK code.
47654         Reported by Jim Meyering.
47655
47656 2009-06-18  Eric Blake  <ebb9@byu.net>
47657
47658         hash: make rotation more obvious
47659         * modules/hash (Depends-on): Add bitrotate and stdint.
47660         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
47661         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
47662         (SIZE_MAX): Rely on headers for definition.
47663         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
47664         (raw_hasher): Use rotr_sz.
47665         Suggested by Jim Meyering.
47666
47667         hash: fix memory leak in last patch
47668         * lib/hash.c (hash_rehash): Avoid memory leak.
47669
47670         hash: avoid no-op rehashing
47671         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
47672
47673         hash: provide default callback functions
47674         * lib/hash.c (raw_hasher, raw_comparator): New functions.
47675         (hash_initialize): Use them as defaults.
47676         * tests/test-hash.c (main): Test this.
47677
47678         hash: minor optimization
47679         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
47680         when possible.
47681         (hash_initialize): Document this promise.
47682         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
47683         * tests/test-hash.c (hash_compare_strings): Test this.
47684
47685 2009-06-18  Bruno Haible  <bruno@clisp.org>
47686
47687         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
47688         going to be replaced anyway.
47689
47690 2009-06-18  Bruno Haible  <bruno@clisp.org>
47691
47692         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
47693         in one place.
47694         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
47695         be replaced anyway.
47696
47697 2009-06-18  Eric Blake  <ebb9@byu.net>
47698
47699         hash: check for resize before insertion
47700         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
47701         threshold before insertion, so that a pathological hash_rehash
47702         that fills every bucket can still trigger another rehash.
47703
47704 2009-06-18  Jim Meyering  <meyering@redhat.com>
47705
47706         hash-tests: add a loop around the small tests
47707         * tests/test-hash.c (main): Repeat small tests with selected
47708         small initial table sizes.
47709
47710 2009-06-17  Eric Blake  <ebb9@byu.net>
47711
47712         hash: minor cleanups
47713         * lib/hash.h (hash_entry): Make opaque, by moving...
47714         * lib/hash.c (hash_entry): ...here.
47715         (hash_insert): Clarify restrictions on what can be inserted.
47716         (hash_get_next): Clarify when it is safe to remove an element
47717         during traversal.
47718         (check_tuning): Skip verification when tuning is known safe.
47719         (hash_initialize): Clarify restrictions on tuning.
47720
47721 2009-06-17  Jim Meyering  <jim@meyering.net>
47722         and Eric Blake  <ebb9@byu.net>
47723
47724         hash-tests: new module
47725         * modules/hash-tests: New file.
47726         * tests/test-hash.c: New file.
47727
47728 2009-06-17  Eric Blake  <ebb9@byu.net>
47729
47730         strstr-simple: document new module
47731         * MODULES.html.sh: Document new module.
47732
47733         strstr, strcasestr: replace on platforms with broken memchr
47734         * modules/strstr: Split into...
47735         * modules/strstr-simple: ...new module that does not care about
47736         performance, but does care about glibc bug.
47737         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
47738         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
47739         if platform memchr is broken, per Debian bug 521737.
47740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
47741         memchr.
47742         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
47743         * doc/posix-functions/strstr.texi (strstr): Document the fix.
47744         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
47745         * modules/mountlist (Depends-on): Add strstr-simple.
47746         * modules/gen-uni-tables (Depends-on): Likewise.
47747         * modules/argz (Depends-on): Add strstr.
47748
47749 2009-06-17  Bruno Haible  <bruno@clisp.org>
47750
47751         * modules/posix_spawn-internal (Depends-on): Add errno.
47752
47753 2009-06-17  Bruno Haible  <bruno@clisp.org>
47754
47755         Define missing ESTALE on Interix 3.5.
47756         * lib/errno.in.h (ESTALE): Assign a value if missing.
47757         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
47758         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
47759         missing.
47760         * doc/posix-headers/errno.texi: Mention the Interix bug.
47761         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
47762
47763 2009-06-15  Eric Blake  <ebb9@byu.net>
47764
47765         memchr, memchr2: add valgrind exception
47766         * lib/memchr.valgrind: New file.
47767         * lib/memchr2.valgrind: New file.
47768         * modules/memchr (Files): Distribute valgrind file.
47769         * modules/memchr2 (Files): Likewise.
47770
47771         docs: memchr is no longer obsolete
47772         * MODULES.html.sh: Move memchr from obsolete to string.h section.
47773         * lib/string.in.h (memchr): Simplify logic.
47774
47775 2009-06-14  Jim Meyering  <meyering@redhat.com>
47776
47777         link-follow: fix the "checking..." message to not mention trailing slash
47778         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
47779         never considered trailing slashes.
47780
47781 2009-06-14  Bruno Haible  <bruno@clisp.org>
47782
47783         * m4/memchr.m4: Mention also the bug on IA-64.
47784         * doc/posix-functions/memchr.texi: Likewise.
47785
47786 2009-06-12  Eric Blake  <ebb9@byu.net>
47787
47788         memchr: detect broken x86_64 and alpha implementations
47789         * modules/memchr-tests (Depends-on): Move mmap detection...
47790         * modules/memchr (Depends-on): ...here.
47791         (configure.ac): Set indicator.
47792         * lib/string.in.h (memchr): Declare replacement.
47793         * modules/string (Makefile.am): Trigger replacement.
47794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
47795         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
47796         bugs.
47797         * doc/posix-functions/memchr.texi (memchr): Document the bug.
47798         * modules/getpagesize (License): Relax license.
47799
47800 2009-06-11  Bruno Haible  <bruno@clisp.org>
47801
47802         * lib/idpriv.h: Add more references.
47803
47804 2009-06-08  Bruno Haible  <bruno@clisp.org>
47805
47806         Tests for module 'idpriv-droptemp'.
47807         * modules/idpriv-droptemp-tests: New file.
47808         * tests/test-idpriv-droptemp.sh: New file.
47809         * tests/test-idpriv-droptemp.su.sh: New file.
47810         * tests/test-idpriv-droptemp.c: New file.
47811
47812         New module 'idpriv-droptemp'.
47813         * lib/idpriv-droptemp.c: New file.
47814         * modules/idpriv-droptemp: New file.
47815
47816 2009-06-08  Bruno Haible  <bruno@clisp.org>
47817
47818         Tests for module 'idpriv-drop'.
47819         * modules/idpriv-drop-tests: New file.
47820         * tests/test-idpriv-drop.sh: New file.
47821         * tests/test-idpriv-drop.su.sh: New file.
47822         * tests/test-idpriv-drop.c: New file.
47823
47824         New module 'idpriv-drop'.
47825         * lib/idpriv.h: New file.
47826         * lib-idpriv-drop.c: New file.
47827         * m4/idpriv.m4: New file.
47828         * modules/idpriv-drop: New file.
47829
47830 2009-06-08  Bruno Haible  <bruno@clisp.org>
47831
47832         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47833         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47834         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47835         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47836         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47837         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47838         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47839
47840 2009-06-08  Eric Blake  <ebb9@byu.net>
47841
47842         test-strstr: use memory fence, when possible
47843         * tests/test-strstr.c (main): Use memory fence, in order to be
47844         more likely to trigger Debian bug 521737.
47845         * modules/strstr-tests (Files): Pull in additional files.
47846
47847         memchr: no longer obsolete, for wider field testing
47848         * modules/memchr (Status, Notice): Delete, this module is no
47849         longer obsolete.
47850         * modules/vasnprintf (Depends-on): Add memchr.
47851
47852 2009-06-07  Jim Meyering  <meyering@redhat.com>
47853
47854         hash: declare some functions with the warn_unused_result attribute
47855         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47856
47857 2009-06-07  Bruno Haible  <bruno@clisp.org>
47858
47859         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47860         Reported by Eric Blake.
47861
47862 2009-06-06  Eric Blake  <ebb9@byu.net>
47863
47864         test-alignof: fix typo with long double
47865         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47866         compiler error.
47867
47868 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47869
47870         Escape non-texinfo { and }s.
47871         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47872         markup error.
47873
47874 2009-06-04  Jim Meyering  <meyering@redhat.com>
47875
47876         gitlog-to-changelog: don't infloop on an empty commit log
47877         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47878         Reported by Boris Petersen <transacid@centerim.org>.
47879
47880 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47881
47882         version-etc: extend for packagers
47883         Add three new configure options, intended for packagers:
47884           --with-packager="packager name"
47885           --with-packager-version="packager-specific version"
47886           --with-packager-bug-reports="packager bug reporting"
47887         An example with coreutils:
47888           $ ./configure \
47889             --with-packager=Gentoo \
47890             --with-packager-bug-report=http://bugs.gentoo.org/ \
47891             --with-packager-version="patchset 1.6"
47892           $ ./src/ls --version | head -n2
47893           ls (GNU coreutils) 7.1-dirty
47894           Packaged by Gentoo (patchset 1.6)
47895         Note that the bug reporting info via --help doesn't show up because
47896         coreutils uses its own custom emit_bug_reporting_address() implementation
47897         in src/system.h.  If it didn't, it'd look like:
47898           $ ./src/ls --help | tail -n4
47899           Report bugs to <bug-coreutils@gnu.org>.
47900           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47901           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47902           General help using GNU software: <http://www.gnu.org/gethelp/>.
47903         * lib/version-etc.c: Print new information, if provided.
47904         * m4/version-etc.m4: New file.
47905         * modules/version-etc (Files): Add m4/version-etc.m4.
47906         (configure.ac): Add gl_VERSION_ETC.
47907
47908 2009-05-31  Bruno Haible  <bruno@clisp.org>
47909
47910         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47911         and 'int64_t'.
47912         * modules/alignof-tests (Dependencies): Add stdint.
47913         Reported by Eric Blake.
47914
47915 2009-05-31  Bruno Haible  <bruno@clisp.org>
47916
47917         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47918         restriction due to compiler bugs.
47919         Reported by Eric Blake.
47920
47921 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47922             Bruno Haible  <bruno@clisp.org>
47923
47924         Fix test-alignof failure.
47925         * lib/alignof.h (alignof_slot): New macro.
47926         (alignof_type): New macro, with the same semantics as the previous
47927         'alignof'.
47928         (alignof): Alias to alignof_slot.
47929         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47930         check that the results are usable as constant expressions.
47931
47932 2009-05-31  Bruno Haible  <bruno@clisp.org>
47933
47934         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47935         * tests/test-memchr.c (main): Check that memchr does not read past the
47936         first occurrence of the byte.
47937         * tests/test-strstr.c (main): Update comment.
47938         Suggested by Eric Blake.
47939
47940 2009-05-30  Bruno Haible  <bruno@clisp.org>
47941
47942         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47943         detail how to use dumpbin.
47944         Reported by David Byron <dbyron@dbyron.com>.
47945
47946 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47947
47948         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47949
47950 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47951
47952         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47953
47954 2009-05-28  Bruno Haible  <bruno@clisp.org>
47955
47956         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47957         build-aux/ files.
47958
47959 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47960
47961         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47962
47963 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47964
47965         * gnulib-tool (sed_transform_main_lib_file)
47966         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47967         regexps.
47968
47969 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47970
47971         * tests/test-strstr.c: Add another self-test.
47972         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47973         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47974
47975 2009-05-23  Bruno Haible  <bruno@clisp.org>
47976
47977         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47978         change.
47979
47980 2009-05-21  Bruno Haible  <bruno@clisp.org>
47981
47982         Simplify use of mode_t varargs.
47983         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47984         uses 'mode_t' or 'int'.
47985         * lib/openat.c (openat): Likewise.
47986         * lib/open-safer.c (open_safer): Likewise.
47987         * m4/mode_t.m4: New file.
47988         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47989         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47990         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47991         * modules/open (Files): Add m4/mode_t.m4.
47992         * modules/openat (Files): Likewise.
47993         * modules/fcntl-safer (Files): Likewise.
47994         Suggested by Eric Blake.
47995
47996 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47997
47998         * doc/glibc-functions/fallocate.texi: New file.
47999         * doc/gnulib.texi: Include it.
48000
48001 2009-05-21  Eric Blake  <ebb9@byu.net>
48002             Bruno Haible  <bruno@clisp.org>
48003
48004         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
48005         invocations.
48006         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48007
48008 2009-05-21  Eric Blake  <ebb9@byu.net>
48009             Bruno Haible  <bruno@clisp.org>
48010
48011         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
48012         include_next. Fix of 2008-11-20 commit.
48013         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
48014         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
48015         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
48016         NEXT_MATH_H.
48017         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
48018         instead of NEXT_MATH_H.
48019
48020 2009-05-21  Bruno Haible  <bruno@clisp.org>
48021
48022         Avoid redefinition warnings for SIZE_MAX.
48023         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
48024         Reported by Simon Josefsson.
48025
48026 2009-05-21  Bruno Haible  <bruno@clisp.org>
48027
48028         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
48029         AC_CACHE_VAL.
48030
48031 2009-05-20  Bruno Haible  <bruno@clisp.org>
48032
48033         Make zeroptr.h work on mingw.
48034         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
48035         mprotect.
48036         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
48037         * modules/memchr2-tests (configure.ac): Likewise.
48038         * modules/memcmp-tests (configure.ac): Likewise.
48039         * modules/memmem-tests (configure.ac): Likewise.
48040         * modules/memrchr-tests (configure.ac): Likewise.
48041         Reported by Simon Josefsson.
48042
48043 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48044
48045         * tests/test-glob.c: Include string.h for strcmp prototype.
48046
48047 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48048
48049         * modules/getdelim (Depends-on): Add explicit stdint, although it
48050         was implicitly already pulled in via realloc-posix.
48051         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
48052
48053 2009-05-20  Simon Josefsson  <simon@josefsson.org>
48054
48055         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
48056         G. Christensen" <tgc@jupiterrise.com>.
48057         * m4/sys_socket_h.m4: Check for sa_family_t.
48058         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
48059         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
48060         * tests/test-sys_socket.c: Check that sa_family_t works.
48061
48062 2009-05-18  Eric Blake  <ebb9@byu.net>
48063
48064         maint.mk: allow gnulib_dir in VPATH build
48065         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
48066
48067 2009-05-15  Jim Meyering  <meyering@redhat.com>
48068
48069         maint.mk: Give gnulib_dir a default definition.
48070         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
48071         Thus, most packages no longer need to specify this variable in cfg.mk
48072
48073 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
48074
48075         rename.m4: fix typos that would make non-mingw cross-configure fail
48076         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
48077
48078 2009-05-13  Eric Blake  <ebb9@byu.net>
48079
48080         mmap-anon: avoid out-of-order autoconf expansion
48081         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
48082         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
48083         * modules/memchr-tests (Depends-on): Add extensions.
48084         * modules/memchr2-tests (Depends-on): Add extensions.
48085         * modules/memcmp-tests (Depends-on): Add extensions.
48086         * modules/memmem-tests (Depends-on): Add extensions.
48087         * modules/memrchr-tests (Depends-on): Add extensions.
48088
48089 2009-05-13  Bruno Haible  <bruno@clisp.org>
48090
48091         Make some tests ISO C 99 compliant.
48092         * tests/zerosize-ptr.h: New file.
48093         * tests/test-memchr.c: Include zerosize-ptr.h.
48094         (main): Use a zero-size object pointer instead of NULL.
48095         * tests/test-memchr2.c: Include zerosize-ptr.h.
48096         (main): Use a zero-size object pointer instead of NULL.
48097         * tests/test-memcmp.c: Include zerosize-ptr.h.
48098         (main): Use a zero-size object pointer instead of NULL.
48099         * tests/test-memmem.c: Include zerosize-ptr.h.
48100         (main): Use a zero-size object pointer instead of NULL.
48101         * tests/test-memrchr.c: Include zerosize-ptr.h.
48102         (main): Use a zero-size object pointer instead of NULL.
48103         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
48104         m4/mmap-anon.m4.
48105         (Depends-on): Add getpagesize.
48106         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48107         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
48108         m4/mmap-anon.m4.
48109         (Depends-on): Add getpagesize.
48110         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48111         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
48112         m4/mmap-anon.m4.
48113         (Depends-on): Add getpagesize.
48114         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48115         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
48116         m4/mmap-anon.m4.
48117         (Depends-on): Add getpagesize.
48118         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48119         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
48120         m4/mmap-anon.m4.
48121         (Depends-on): Add getpagesize.
48122         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
48123
48124 2009-05-12  Bruno Haible  <bruno@clisp.org>
48125
48126         Tests for module 'alignof'.
48127         * modules/alignof-tests: New file.
48128         * tests/test-alignof.c: New file.
48129
48130 2009-05-12  Bruno Haible  <bruno@clisp.org>
48131
48132         Fix alignof macro.
48133         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
48134         vendor compilers that are always correct.
48135
48136 2009-05-12  Bruno Haible  <bruno@clisp.org>
48137
48138         Make the MAP_ANONYMOUS detection work on HP-UX 11.
48139         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
48140         not whether its fully works.
48141
48142 2009-05-12  Bruno Haible  <bruno@clisp.org>
48143
48144         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
48145
48146 2009-05-12  Jim Meyering  <meyering@redhat.com>
48147
48148         * top/maint.mk: Adjust backslash alignment.
48149
48150 2009-05-11  Simon Josefsson  <simon@josefsson.org>
48151
48152         * top/maint.mk: Make $(srcdir)/build-aux configurable.
48153
48154 2009-05-11  Eric Blake  <ebb9@byu.net>
48155
48156         argp: avoid undefined behavior
48157         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
48158         macros.
48159
48160 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48161
48162         * tests/test-vc-list-files-git.sh: Do git config of user.email and
48163         user.name to prevent git commit from complaining.
48164
48165 2009-05-10  Bruno Haible  <bruno@clisp.org>
48166
48167         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
48168         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
48169         it rewrites every file name only once.
48170         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
48171
48172 2009-05-08  Bruno Haible  <bruno@clisp.org>
48173
48174         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
48175         instead of 'max'.
48176
48177 2009-05-08  Simon Josefsson  <simon@josefsson.org>
48178
48179         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
48180         sockaddr_storage test.
48181
48182 2009-05-07  Simon Josefsson  <simon@josefsson.org>
48183
48184         * modules/sys_socket (Makefile.am): Substitute
48185         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
48186         * m4/sys_socket_h.m4: Check for sockaddr_storage.
48187         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
48188         * tests/test-sys_socket.c: Check sockaddr_storage.
48189
48190 2009-05-08  Bruno Haible  <bruno@clisp.org>
48191
48192         New module 'alignof'.
48193         * lib/alignof.h: New file.
48194         * modules/alignof: New file.
48195
48196 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48197             Bruno Haible  <bruno@clisp.org>
48198
48199         Fix test-file-has-acl on FreeBSD.
48200         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
48201         mask is implicitly added.
48202         * tests/test-file-has-acl.c: Include <signal.h>.
48203         (main): Terminate the test after 5 seconds.
48204         * modules/acl-tests (configure.ac): Check for alarm function.
48205
48206 2009-05-04  Bruno Haible  <bruno@clisp.org>
48207
48208         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
48209         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
48210         * modules/errno (configure.ac): Drop AC_REQUIRE.
48211         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
48212         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
48213
48214 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48215
48216         * modules/glob-tests: New module.
48217         * tests/test-glob.c: Add.
48218
48219 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48220
48221         * modules/fnmatch-tests: New module.
48222         * tests/test-fnmatch.c: Add.
48223
48224 2009-05-04  Eric Blake  <ebb9@byu.net>
48225
48226         maint: make the new no-submodule-changes rule VPATH-safe
48227         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
48228
48229 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48230             Bruno Haible  <bruno@clisp.org>
48231
48232         acl: Fix infinite loop on FreeBSD.
48233         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
48234         of return value from acl_get_entry.
48235         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
48236         Likewise.
48237
48238 2009-05-03  Bruno Haible  <bruno@clisp.org>
48239
48240         * lib/acl-internal.h (acl_entries): Clarify return value.
48241         * lib/acl_entries.c (acl_entries): Likewise.
48242
48243 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48244
48245         Bug fix in acl module.
48246         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
48247
48248 2009-05-03  Bruno Haible  <bruno@clisp.org>
48249
48250         Create gperf-generated file in the source dir, not in the build dir.
48251         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
48252         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
48253         * modules/unicase/locale-language (unicase/locale-languages.h):
48254         Likewise.
48255         * modules/unicase/special-casing (unicase/special-casing-table.h):
48256         Likewise.
48257         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
48258         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
48259         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
48260         Reported by Ralf Wildenhues.
48261
48262 2009-05-03  Bruno Haible  <bruno@clisp.org>
48263
48264         * modules/fnmatch (Description, configure.ac): Taken from
48265         fnmatch-posix.
48266         * modules/fnmatch-posix: Turn into a symbolic reference to the
48267         'fnmatch' module, and deprecate.
48268         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
48269
48270 2009-05-03  Bruno Haible  <bruno@clisp.org>
48271
48272         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
48273         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
48274         Reported by Ralf Wildenhues.
48275
48276 2009-05-04  Simon Josefsson  <simon@josefsson.org>
48277
48278         * m4/fnmatch.m4: Fix fnmatch re-define.
48279
48280 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
48281
48282         priv-set: new module and tests; adapt write-any-file
48283         * lib/priv-set.c: New file.
48284         * lib/priv-set.h: New file.
48285         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
48286         * lib/write-any-file.c: Simplify by using priv-set module.
48287         * m4/priv-set.m4: New file.
48288         * modules/priv-set: New file.
48289         * modules/unlinkdir: Add dependency on priv-set module.
48290         * modules/write-any-file: Likewise.
48291
48292         Tests for module 'priv-set'.
48293         * modules/priv-set-tests: New file.
48294         * tests/test-priv-set.c: New file.
48295
48296 2009-05-03  Jim Meyering  <meyering@redhat.com>
48297             Bruno Haible  <bruno@clisp.org>
48298
48299         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
48300         use the converted UTF-8 variant of the name instead.
48301
48302 2009-05-03  Jim Meyering  <meyering@redhat.com>
48303
48304         tests: tighten some getdate tests
48305         * tests/test-getdate.c (main): Tighten tests: require equality,
48306         not just greater than.  Set TZ envvar to UTC0.
48307
48308 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
48309
48310         getdate: correctly interpret "next monday" when run on a Monday
48311         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
48312         that e.g., "next tues" (when run on a tuesday) results in a date
48313         that is one week in the future, and not today's date.
48314         I.e., add a week when the wday is the same as the current one.
48315         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
48316         and earlier by Martin Bernreuther and Jan Minář.
48317         * tests/test-getdate.c (main): Check that "next DAY" is always in
48318         the future and that "last DAY" is always in the past.
48319
48320 2009-05-02  Jim Meyering  <meyering@redhat.com>
48321
48322         build: ensure that a release build fails when a submodule is unclean
48323         * top/maint.mk (no-submodule-changes): New rule.
48324         (alpha beta major): Depend on it.
48325
48326 2009-05-02  Bruno Haible  <bruno@clisp.org>
48327
48328         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
48329         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
48330         shell variable gl_fnmatch_required to detect which variant is
48331         requested.
48332         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
48333         gl_FUNC_FNMATCH_POSIX.
48334         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
48335         exclude fnmatch-posix.
48336
48337 2009-05-02  Bruno Haible  <bruno@clisp.org>
48338
48339         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
48340         * modules/mbsrtowcs (License): Change to LGPLv2+.
48341         * modules/strnlen1 (License): Likewise.
48342         Reported by Simon Josefsson.
48343
48344 2009-05-02  Bruno Haible  <bruno@clisp.org>
48345
48346         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
48347         "cross".
48348         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
48349         gnulib-tool was called with option --source-base=lib.
48350
48351 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48352
48353         Use automake *-local hooks without commands, for extensibility.
48354         * modules/localcharset (Makefile.am): Rename install-exec-local
48355         rule to install-exec-localcharset, and make it a prerequisite of
48356         install-exec-local.  Likewise, rename the uninstall-local rule to
48357         uninstall-localcharset, and make it a prerequisite of the former.
48358
48359 2009-05-01  Bruno Haible  <bruno@clisp.org>
48360
48361         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
48362         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48363         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
48364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
48365         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
48366         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48367         m4/locale-zh.m4, m4/codeset.m4.
48368
48369         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
48370         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
48371         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
48372         m4/locale-zh.m4.
48373
48374         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
48375         REPLACE_WCRTOMB if mbstate_t must be replaced.
48376         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
48377         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
48378
48379 2009-05-01  Bruno Haible  <bruno@clisp.org>
48380
48381         Avoid compiler warnings when redefining macros defined by <libintl.h>.
48382         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
48383         dngettext, dcngettext, textdomain, bindtextdomain,
48384         bind_textdomain_codeset): Undefine before redefining.
48385
48386 2009-04-30  Bruno Haible  <bruno@clisp.org>
48387
48388         Fix bug introduced on 2009-04-25.
48389         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
48390         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
48391         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
48392         is defined.
48393         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
48394         is defined.
48395         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
48396         is defined.
48397         Reported by Elbert_Pol <elbert.pol@gmail.com>.
48398
48399 2009-04-28  Bruno Haible  <bruno@clisp.org>
48400
48401         Comment tweaks.
48402         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
48403         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
48404         * lib/unicase.h (u*_casexfrm): Likewise.
48405         Reported by Paolo Bonzini.
48406
48407 2009-04-28  Bruno Haible  <bruno@clisp.org>
48408
48409         Fix a compilation error.
48410         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
48411         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
48412         Reported by Jim Meyering.
48413
48414 2009-04-27  Bruno Haible  <bruno@clisp.org>
48415
48416         New module 'libunistring'.
48417         * modules/libunistring: New file.
48418         * m4/libunistring.m4: New file.
48419         * MODULES.html.sh (Unicode string functions): Add it.
48420
48421 2009-04-27  Eric Blake  <ebb9@byu.net>
48422
48423         maint.mk: allow package-specific header to provide <config.h>
48424         * top/maint.mk (sc_require_config_h): New variable.
48425         (sc_require_config_h, sc_require_config_h_first): Use it.
48426
48427 2009-04-27  Simon Josefsson  <simon@josefsson.org>
48428
48429         * top/maint.mk (sc_avoid_if_before_free): Except
48430         useless-if-before-free script.
48431
48432 2009-04-27  Eric Blake  <ebb9@byu.net>
48433
48434         maintainer-makefile: depend on all required helper scripts
48435         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
48436         useless-if-before-free.
48437         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
48438         version, rather than assuming gnulib checkout is available.
48439         Reported by Simen Josefsson.
48440
48441 2009-04-26  Bruno Haible  <bruno@clisp.org>
48442
48443         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
48444         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
48445         "../" or "..".
48446
48447 2009-04-26  Bruno Haible  <bruno@clisp.org>
48448
48449         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
48450         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
48451         AC_LIB_HAVE_LINKFLAGS.
48452
48453 2009-04-26  Bruno Haible  <bruno@clisp.org>
48454
48455         Simplify calling convention of u*_conv_from_encoding.
48456         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
48457         u32_conv_from_encoding): Expect a resultbuf argument and return the
48458         result directly as a pointer.
48459         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
48460         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
48461         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
48462         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
48463         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
48464         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48465         Update.
48466         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
48467         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
48468         * lib/vasnprintf.c (VASNPRINTF): Update.
48469         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
48470         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
48471         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
48472         * NEWS: Mention the change.
48473
48474 2009-04-26  Bruno Haible  <bruno@clisp.org>
48475
48476         Simplify calling convention of u*_conv_to_encoding.
48477         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
48478         u32_conv_to_encoding): Expect a resultbuf argument and return the
48479         result directly as a pointer.
48480         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48481         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
48482         freeing scaled_offsets if mem_iconveha failed.
48483         * lib/unicase/u-casexfrm.h (FUNC): Update.
48484         * lib/uninorm/u-normxfrm.h (FUNC): Update.
48485         * lib/vasnprintf.c (VASNPRINTF): Update.
48486         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
48487         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
48488         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
48489         * NEWS: Mention the change.
48490
48491 2009-04-26  Bruno Haible  <bruno@clisp.org>
48492
48493         Avoid test failures on AIX and OSF/1.
48494         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
48495         malloc(0).
48496         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
48497         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
48498         Likewise.
48499         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
48500         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
48501         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
48502         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
48503         * doc/posix-functions/malloc.texi: Document the portability problem
48504         related to malloc(0).
48505
48506 2009-04-26  Bruno Haible  <bruno@clisp.org>
48507
48508         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
48509         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
48510         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
48511
48512 2009-04-25  Bruno Haible  <bruno@clisp.org>
48513
48514         Avoid link error when creating a namespace clean library.
48515         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
48516         as macro with arguments if already defined as an alias.
48517         * lib/signbitf.c (gl_signbitf): Don't undefine.
48518         * lib/signbitd.c (gl_signbitd): Don't undefine.
48519         * lib/signbitl.c (gl_signbitl): Don't undefine.
48520
48521 2009-04-25  Jim Meyering  <meyering@redhat.com>
48522
48523         vc-list-files: fix another quoting bug
48524         * build-aux/vc-list-files: Avoid sed backslash expansion
48525         of pathological directory names.
48526
48527 2009-04-25  Eric Blake  <ebb9@byu.net>
48528
48529         vc-list-files: fix shell quoting error
48530         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
48531         timestamp.
48532
48533 2009-04-25  Jim Meyering  <meyering@redhat.com>
48534
48535         vc-list-files: restore lost functionality with subdir argument
48536         * build-aux/vc-list-files: When given a non-"." sub-directory
48537         argument, substitute the $dir/ prefix back onto each resulting name.
48538         Otherwise, coreutils' root_tests check would fail.
48539
48540 2009-04-24  Eric Blake  <ebb9@byu.net>
48541
48542         vc-list-files: ignore git symlinks
48543         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
48544         than ls-files, to ignore git symlinks.
48545
48546         maint.mk: import improvements from m4
48547         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
48548         (move_if_change): Delete unused macro.
48549         (news-date-check, vc-diff-check): Support VPATH builds.
48550         (announcement): Likewise.  Split --bootstrap-tools list...
48551         (boostrap-tools): ...into separate list, which can be overridden
48552         in cfg.mk.
48553         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
48554         requiring dependency on useless-if-before-free module.
48555         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
48556         Support VPATH builds.
48557
48558 2009-04-24  Jim Meyering  <meyering@redhat.com>
48559
48560         maint.mk: remove coreutils-specific rules and variables
48561         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
48562         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
48563         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
48564
48565         maint.mk: remove obsolete rule
48566         * top/maint.mk (rel-check): Remove rule.
48567         (WGET, WGETFLAGS): Remove now-unused variables.
48568
48569 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48570
48571         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
48572         consistency.
48573
48574         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
48575         '$(PATH_SEPARATOR)' instead of ':'.
48576
48577 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48578
48579         * lib/getopt1.c (main): Use 'const' for static array.
48580
48581 2009-04-24  Simon Josefsson  <simon@josefsson.org>
48582
48583         * top/maint.mk: Sync with coreutils.
48584         * NEWS: Explain incompatibilities.
48585
48586 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48587             Bruno Haible  <bruno@clisp.org>
48588
48589         Fix cross-compilation results.
48590         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
48591         statement, as third argument of AC_TRY_RUN.
48592         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
48593         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
48594         Likewise.
48595         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
48596         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
48597         Likewise.
48598         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
48599         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
48600         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
48601
48602 2009-04-20  Bruno Haible  <bruno@clisp.org>
48603
48604         Avoid test failure on mingw.
48605         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
48606
48607 2009-04-20  Bruno Haible  <bruno@clisp.org>
48608
48609         Avoid compilation error on mingw.
48610         * modules/localename-tests (Depends-on): Add locale.
48611
48612 2009-04-19  Bruno Haible  <bruno@clisp.org>
48613
48614         Support for building a shared library on Windows platforms.
48615         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
48616         (main): Test the presence of UNINORM_NFC here.
48617         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
48618         (main): Test the presence of UNINORM_NFD here.
48619         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
48620         (main): Test the presence of UNINORM_NFKC here.
48621         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
48622         (main): Test the presence of UNINORM_NFKD here.
48623
48624 2009-04-19  Bruno Haible  <bruno@clisp.org>
48625
48626         Avoid a compiler warning.
48627         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
48628         Change type of variable 'sequence'.
48629
48630 2009-04-19  Bruno Haible  <bruno@clisp.org>
48631
48632         * modules/configmake (Makefile.am): When the contents of configmake.h
48633         does not change, arrange to preserve its modification time.
48634
48635 2009-04-17  Simon Josefsson  <simon@josefsson.org>
48636
48637         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
48638         gettext domain.
48639
48640 2009-04-16  Jim Meyering  <meyering@redhat.com>
48641
48642         useless-if-before-free: improve conversion code
48643         * build-aux/useless-if-before-free: Adjust code-in-comment to match
48644         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
48645
48646 2009-04-14  Bruno Haible  <bruno@clisp.org>
48647
48648         * modules/fcntl (Depends-on): Add extensions.
48649         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
48650
48651 2009-04-12  Ben Pfaff  <blp@gnu.org>
48652
48653         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
48654         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
48655
48656 2009-03-20  Ben Pfaff  <blp@gnu.org>
48657
48658         Make rename replace existing destinations on Windows.
48659         * m4/rename.m4: Add test for Mingw.
48660         * lib/rename.c: Add rename replacement that uses MoveFileEx with
48661         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
48662         * doc/posix-functions/rename.texi: Document.
48663
48664 2009-04-10  Bruno Haible  <bruno@clisp.org>
48665
48666         New include file "iconveh.h".
48667         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
48668         * lib/striconveh.h: Include it.
48669         (enum iconv_ilseq_handler): Remove definition.
48670         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
48671         striconveh.h.
48672         * lib/striconveha.c: Include striconveh.h.
48673         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
48674         * modules/striconveh (Files): Add lib/iconveh.h.
48675         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
48676         lib/striconveh.h.
48677
48678 2009-04-10  Bruno Haible  <bruno@clisp.org>
48679
48680         * lib/uniconv.h: Update comment.
48681
48682 2009-04-10  Bruno Haible  <bruno@clisp.org>
48683
48684         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
48685         always.
48686         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
48687         * lib/unistr/u16-mbtouc-aux.c: Likewise.
48688         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
48689         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
48690         "unistring-notinline.h", so that the function gets defined always.
48691         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
48692         * lib/unistr/u8-uctomb.c: Likewise.
48693         * lib/unistr/u16-mbtouc.c: Likewise.
48694         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
48695         * lib/unistr/u16-uctomb.c: Likewise.
48696         * lib/unistr/u32-mbtouc.c: Likewise.
48697         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
48698         * lib/unistr/u32-uctomb.c: Likewise.
48699
48700 2009-04-10  Bruno Haible  <bruno@clisp.org>
48701
48702         Mark 'utime' obsolete.
48703         * modules/utime (Status, Notice): New sections.
48704         Suggested by Jim Meyering.
48705
48706         Fix cross-compile guess for utime test.
48707         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
48708         autoconf.
48709         * doc/posix-functions/utime.texi: Give more precisions.
48710         Reported by Jan <ipif@ymail.com>.
48711
48712 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
48713
48714         filevercmp: correct today's change
48715         * lib/filevercmp.c: Also handle coreutils' test inputs.
48716         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
48717
48718         Fix regression in 'filevercmp' module. Thanks Sven Joachim
48719         for reporting it.
48720         * lib/filevercmp.c: Special handle for "", "." and "..".
48721         * tests/test-filevercmp.c: Enlarge the set suite.
48722
48723 2009-04-07  Jim Meyering  <meyering@redhat.com>
48724
48725         useless-if-before-free: show how to remove braced useless free, too
48726         * build-aux/useless-if-before-free: still only in a comment, though.
48727
48728 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
48729
48730         maint.mk: import changes to syntax-check macros from coreutils
48731         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
48732         Use them in the relevant macros.
48733
48734 2009-04-06  Bruno Haible  <bruno@clisp.org>
48735
48736         Fix unportable use of bit-fields.
48737         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
48738         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
48739         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
48740
48741 2009-04-06  Bruno Haible  <bruno@clisp.org>
48742
48743         Avoid test failures on AIX and OSF/1.
48744         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
48745         that malloc(0) = NULL.
48746         * tests/unicase/test-u8-tolower.c (check): Likewise.
48747         * tests/unicase/test-u8-totitle.c (check): Likewise.
48748         * tests/unicase/test-u8-toupper.c (check): Likewise.
48749         * tests/unicase/test-u16-casefold.c (check): Likewise.
48750         * tests/unicase/test-u16-tolower.c (check): Likewise.
48751         * tests/unicase/test-u16-totitle.c (check): Likewise.
48752         * tests/unicase/test-u16-toupper.c (check): Likewise.
48753         * tests/unicase/test-u32-casefold.c (check): Likewise.
48754         * tests/unicase/test-u32-tolower.c (check): Likewise.
48755         * tests/unicase/test-u32-totitle.c (check): Likewise.
48756         * tests/unicase/test-u32-toupper.c (check): Likewise.
48757         * tests/uninorm/test-u8-nfc.c (check): Likewise.
48758         * tests/uninorm/test-u8-nfd.c (check): Likewise.
48759         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
48760         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
48761         * tests/uninorm/test-u16-nfc.c (check): Likewise.
48762         * tests/uninorm/test-u16-nfd.c (check): Likewise.
48763         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
48764         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
48765         * tests/uninorm/test-u32-nfc.c (check): Likewise.
48766         * tests/uninorm/test-u32-nfd.c (check): Likewise.
48767         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
48768         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
48769
48770 2009-04-05  Bruno Haible  <bruno@clisp.org>
48771
48772         Work around an autoconf limitation.
48773         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
48774         comment line if it would be longer than 3 KB.
48775
48776 2009-04-05  Bruno Haible  <bruno@clisp.org>
48777
48778         Avoid test failure with libiconv-1.13.
48779         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
48780         of the expected test results.
48781
48782 2009-04-05  Bruno Haible  <bruno@clisp.org>
48783
48784         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
48785         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
48786         that it should be installed.
48787
48788 2009-04-05  Bruno Haible  <bruno@clisp.org>
48789
48790         * gnulib-tool: New option --copy-file.
48791         (func_usage): Document it.
48792         (func_dest_tmpfilename): Moved out of func_import.
48793         (func_add_file, func_update_file): New functions, extracted from
48794         func_import.
48795         (func_import): Update.
48796
48797 2009-04-05  Karl Berry  <karl@gnu.org>
48798
48799         * README: prominently mention gnulib-tool.
48800         Rearrange sections so getting the code is near the top.
48801
48802 2009-04-05  Bruno Haible  <bruno@clisp.org>
48803
48804         * lib/unicase.h: Mention u*_cmp2.
48805         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48806         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
48807         * lib/unicase/ulc-casecmp.c: Likewise.
48808         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
48809         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
48810         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48811         unistr/u8-cmp.
48812         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48813         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48814         unistr/u16-cmp.
48815         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48816         unistr/u32-cmp.
48817
48818         * lib/uninorm.h: Mention u*_cmp2.
48819         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48820         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48821         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48822         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48823         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48824         unistr/u8-cmp.
48825         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48826         unistr/u16-cmp.
48827         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48828         unistr/u32-cmp.
48829
48830         New module 'unistr/u32-cmp2'.
48831         * lib/unistr/u32-cmp2.c: New file.
48832         * modules/unistr/u32-cmp2: New file.
48833
48834         New module 'unistr/u16-cmp2'.
48835         * lib/unistr/u16-cmp2.c: New file.
48836         * modules/unistr/u16-cmp2: New file.
48837
48838         New module 'unistr/u8-cmp2'.
48839         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48840         * lib/unistr/u8-cmp2.c: New file.
48841         * lib/unistr/u-cmp2.h: New file.
48842         * modules/unistr/u8-cmp2: New file.
48843
48844 2009-04-05  Bruno Haible  <bruno@clisp.org>
48845
48846         * lib/unictype.h (uc_property_is_valid): New macro.
48847         * tests/unictype/test-pr_byname.c (main): Use it.
48848
48849         * lib/unistr.h: Doc fixes.
48850         * lib/uniconv.h: Doc fixes.
48851         * lib/unictype.h: Doc fixes.
48852
48853 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48854
48855         Port coreutils 7.2 to Solaris 8.
48856
48857         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48858         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48859         for Solaris 8.  This is a bit of a hack, as it means it's the
48860         caller's responsibility to add -lnsl if needed, but most likely it
48861         won't be needed since only getaddrinfo uses this and getaddrinfo
48862         isn't needed on Solaris 8.
48863
48864         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48865         problem to Solaris 8 encountered with coreutils 7.2, which
48866         resulted in a message "fnmatch.c:292: warning: passing argument 4
48867         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48868         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48869
48870 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48871
48872         * m4/ld-version-script.m4: Add FIXME comment.
48873
48874 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48875
48876         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48877         SOVERSION variable.
48878
48879 2009-04-02  Bruno Haible  <bruno@clisp.org>
48880
48881         * Makefile (info, html, dvi, pdf): Combine the rules.
48882         Suggested by Jim Meyering.
48883
48884 2009-04-01  Bruno Haible  <bruno@clisp.org>
48885
48886         * Makefile (info, html, dvi, pdf): New targets.
48887         Reported by Reuben Thomas <rrt@sc3d.org>.
48888
48889 2009-04-01  Bruno Haible  <bruno@clisp.org>
48890
48891         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48892         can be put into PATH.
48893         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48894
48895 2009-04-01  Bruno Haible  <bruno@clisp.org>
48896
48897         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48898
48899 2009-04-01  Bruno Haible  <bruno@clisp.org>
48900
48901         Rename module 'visibility'.
48902         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48903         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48904         * doc/gnulib.texi: Update.
48905         * MODULES.html.sh (Misc): Update.
48906         * NEWS: Mention the change.
48907
48908 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48909
48910         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48911         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48912         Eric Blake <ebb9@byu.net> for review.
48913         * MODULES.html.sh: Add lib-msvc-compat.
48914         * doc/gnulib.texi: Link to new section.
48915         * m4/ld-output-def.m4: New file.
48916         * doc/ld-output-def.texi: New file.
48917
48918 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48919
48920         Rename ld-version-script to lib-symbol-versions.  Suggested by
48921         Bruno Haible <bruno@clisp.org>.
48922         * modules/ld-version-script: Renamed to lib-symbol-versions.
48923         * doc/ld-version-script.texi: Fix module name.
48924         * MODULES.html.sh: Add lib-symbol-versions.
48925
48926 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48927
48928         * modules/u64-tests: New file.
48929         * tests/test-u64.c: New file.
48930
48931 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48932
48933         * MODULES.html.sh: Mention u64.
48934         * modules/u64: New module.
48935         * modules/crypto/sha512: Depend on u64 module instead of providing
48936         u64.h.
48937
48938 2009-03-27  Eric Blake  <ebb9@byu.net>
48939
48940         test-strerror: make debugging EAI_SYSTEM easier
48941         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48942         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48943         failure was EAI_SYSTEM.
48944
48945 2009-03-25  Bruno Haible  <bruno@clisp.org>
48946
48947         Fix a problem with --enable-relocatable on Solaris 7.
48948         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48949         since 2008-02-24.
48950
48951 2009-03-25  Eric Blake  <ebb9@byu.net>
48952
48953         test-sockets: avoid gcc warning
48954         * tests/test-sockets.c (main): Silence compiler warning.
48955
48956 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48957
48958         New modules nproc, pthread, contributed by Glen Lenker.
48959
48960         * MODULES.html.sh: Add pthread, nproc.
48961         * lib/nproc.c: New file.
48962         * lib/nproc.h: New file.
48963         * lib/pthread.in.h: New file.
48964         * m4/pthread.m4: New file.
48965         * modules/nproc: New file.
48966         * modules/pthread: New file.
48967
48968 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48969
48970         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48971         New variable.
48972
48973 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48974
48975         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48976         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48977         * tests/test-filevercmp.c: Add tests for backup suffixes.
48978
48979 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48980
48981         * modules/stdlib (Depends-on): Add stdint, needed when defining
48982         struct random_data on, for example, HP-UX 10.20.  Reported by
48983         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48984
48985 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48986
48987         * lib/readline.c (readline): Call fflush on stdout after printing
48988         prompt.
48989
48990 2009-03-20  Bruno Haible  <bruno@clisp.org>
48991
48992         Remove dependency from 'close' module to -lws2_32 on native Windows.
48993         * lib/close-hook.h: New file.
48994         * lib/close-hook.c: New file.
48995         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48996         w32sock.h.
48997         (_gl_close_fd_maybe_socket): Remove function.
48998         (rpl_close): Invoke execute_all_close_hooks instead of
48999         _gl_close_fd_maybe_socket.
49000         * lib/sockets.c: Include close-hook.h, w32sock.h.
49001         (close_fd_maybe_socket): New function, essentially from lib/close.c.
49002         (close_sockets_hook): New variable.
49003         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
49004         (gl_sockets_cleanup): Unregister it.
49005         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
49006         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
49007         * modules/close-hook: New file.
49008         * modules/close (Files): Remove lib/w32sock.h.
49009         (Depends-on): Add close-hook.
49010         (Link): Remove section.
49011         * modules/sockets (Files): Add lib/w32sock.h.
49012         (Depends-on): Add close-hook.
49013         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
49014         invocation.
49015         * NEWS: Mention that LIB_CLOSE is gone.
49016
49017 2009-03-23  Eric Blake  <ebb9@byu.net>
49018
49019         signal-tests: test previous patch
49020         * tests/test-signal.c: New file.
49021         * modules/signal-tests: Likewise.
49022
49023         signal.h: always support 'volatile sig_atomic_t'
49024         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
49025         (gl_SIGNAL_H_DEFAULTS): Add a default.
49026         * modules/signal (Makefile.am): Substitute if needed.
49027         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
49028         users can blindly add volatile.
49029         * doc/posix-headers/signal.texi (signal.h): Document it.
49030         Reported by Matthew Woehlke.
49031
49032 2009-03-23  Jim Meyering  <meyering@redhat.com>
49033
49034         pathmax: PATH_MAX: use pathconf only when available
49035         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
49036         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
49037         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
49038         This avoids a link failure in a PSP cross-compilation environment
49039         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
49040
49041         * lib/vasnprintf.c (divide): Fix typo in comment.
49042
49043 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49044
49045         * gnulib-tool (func_filter_filelist): Fix comment.
49046
49047 2009-03-20  Bruno Haible  <bruno@clisp.org>
49048
49049         Make sockets.h self-contained.
49050         * lib/sockets.c: Include sockets.h first.
49051         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
49052
49053 2009-03-19  Eric Blake  <ebb9@byu.net>
49054
49055         doc: mention more functions added in cygwin 1.7.0
49056         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
49057         addition.
49058         * doc/posix-functions/log2f.texi: Likewise.
49059
49060 2009-03-19  Jim Meyering  <meyering@redhat.com>
49061
49062         fsusage: avoid syntax error due to statement-before-declaration
49063         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
49064         after all declarations.  Reported by Matthew Woehlke in
49065         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
49066
49067 2009-03-18  Eric Blake  <ebb9@byu.net>
49068
49069         build-aux/compile: sync from automake
49070         * build-aux/compile: New file, from automake.
49071         * config/srclist.txt: Mention build-aux/compile.
49072
49073 2009-03-17  Bruno Haible  <bruno@clisp.org>
49074
49075         * lib/git-merge-changelog.c: Fix typo in comment.
49076         Reported by Reuben Thomas <rrt@sc3d.org>.
49077
49078 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
49079
49080         * m4/regex.m4: update and improve help for
49081         --without-included-regex.
49082
49083 2009-03-17  Simon Josefsson  <simon@josefsson.org>
49084
49085         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
49086         failure on missing include files.
49087
49088 2009-03-17  Eric Blake  <ebb9@byu.net>
49089
49090         doc: mention more functions added in cygwin 1.7.0
49091         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
49092         addition.
49093         * doc/posix-functions/fwscanf.texi: Likewise.
49094         * doc/posix-functions/swprintf.texi: Likewise.
49095         * doc/posix-functions/swscanf.texi: Likewise.
49096         * doc/posix-functions/vfwprintf.texi: Likewise.
49097         * doc/posix-functions/vfwscanf.texi: Likewise.
49098         * doc/posix-functions/vswprintf.texi: Likewise.
49099         * doc/posix-functions/vswscanf.texi: Likewise.
49100         * doc/posix-functions/vwprintf.texi: Likewise.
49101         * doc/posix-functions/vwscanf.texi: Likewise.
49102         * doc/posix-functions/wcscasecmp.texi: Likewise.
49103         * doc/posix-functions/wcsdup.texi: Likewise.
49104         * doc/posix-functions/wcsftime.texi: Likewise.
49105         * doc/posix-functions/wcsncasecmp.texi: Likewise.
49106         * doc/posix-functions/wprintf.texi: Likewise.
49107         * doc/posix-functions/wscanf.texi: Likewise.
49108         * doc/glibc-functions/gethostbyname2.texi: Likewise.
49109
49110 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49111
49112         maint.mk: really add $(AM_MAKEFLAGS)
49113         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
49114         was inadvertently omitted in the last commit.
49115         Spotted by Bruno Haible.
49116
49117         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
49118         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
49119         $(AM_MAKEFLAGS)' rather than plain `make'.
49120
49121         gnulib-tool: execute $MAKE not make
49122         * gnulib-tool: Default $MAKE to 'make'.
49123         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
49124         than make.  Initialize $MAKE in the do-autobuild script.
49125
49126         gnulib-tool: use $MAKE not make in generated files
49127         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
49128         make, in generated files.  Initialize $MAKE in the do-autobuild
49129         script.
49130
49131         * top/GNUmakefile (_have-git-version-gen): Fix typo.
49132
49133         GNUmakefile: disable parallelism only for multiple, recursive targets
49134         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
49135         additions in the Makefile.
49136         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
49137         by Automake.
49138         (.NOTPARALLEL): Only disable parallel builds if multiple targets
49139         are listed on the command line and at least one of them is
49140         listed in $(ALL_RECURSIVE_TARGETS).
49141
49142 2009-03-14  Bruno Haible  <bruno@clisp.org>
49143
49144         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
49145         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
49146         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
49147         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
49148         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
49149         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
49150         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
49151         unistr/u8-uctomb.
49152         * modules/unistr/u8-strchr (Depends-on): Likewise.
49153         * modules/unistr/u8-strrchr (Depends-on): Likewise.
49154         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
49155         unistr/u16-uctomb.
49156         * modules/unistr/u16-strchr (Depends-on): Likewise.
49157         * modules/unistr/u16-strrchr (Depends-on): Likewise.
49158
49159 2009-03-12  Bruno Haible  <bruno@clisp.org>
49160
49161         Work around select() bug on Interix 3.5.
49162         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
49163         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
49164         * m4/select.m4: New file.
49165         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
49166         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
49167         * modules/select (Files): Add m4/select.m4.
49168         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
49169         * modules/nanosleep (Depends-on): Add select.
49170         * modules/poll (Depends-on): Likewise.
49171         * doc/posix-functions/select.texi: Mention the Interix bug.
49172         Reported by Markus Duft <mduft@gentoo.org>.
49173
49174         * lib/select.c: Renamed from lib/winsock-select.c.
49175         * modules/select (Files): Add lib/select.c, remove
49176         lib/winsock-select.c.
49177         (configure.ac): Update.
49178
49179 2009-03-12  Jim Meyering  <meyering@redhat.com>
49180
49181         avoid gcc warnings about unused macro definitions
49182         * lib/readtokens.c (STREQ): Remove unused definition.
49183         * lib/xmalloc.c (SIZE_MAX): Likewise.
49184         * lib/openat-die.c (N_): Likewise.
49185         * lib/mountlist.c (SIZE_MAX): Remove definition.
49186         Instead, include <stdint.h>.
49187         * lib/readutmp.c: Likewise.
49188         * modules/readutmp (Depends-on): Add stdint.
49189         * modules/mountlist (Depends-on): Add stdint.
49190         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
49191
49192 2009-03-10  Bruno Haible  <bruno@clisp.org>
49193
49194         Tests for module 'mbmemcasecoll'.
49195         * modules/mbmemcasecoll-tests: New file.
49196         * tests/test-mbmemcasecoll1.sh: New file.
49197         * tests/test-mbmemcasecoll2.sh: New file.
49198         * tests/test-mbmemcasecoll3.sh: New file.
49199         * tests/test-mbmemcasecoll.c: New file.
49200
49201         New module 'mbmemcasecoll'.
49202         * lib/mbmemcasecoll.h: New file.
49203         * lib/mbmemcasecoll.c: New file.
49204         * modules/mbmemcasecoll: New file.
49205
49206         * tests/test-mbmemcasecmp.h: New file, extracted from
49207         tests/test-mbmemcasecmp.c.
49208         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
49209         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
49210         (main): Update.
49211         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
49212
49213 2009-03-09  Bruno Haible  <bruno@clisp.org>
49214
49215         Tests for module 'mbmemcasecmp'.
49216         * modules/mbmemcasecmp-tests: New file.
49217         * tests/test-mbmemcasecmp1.sh: New file.
49218         * tests/test-mbmemcasecmp2.sh: New file.
49219         * tests/test-mbmemcasecmp3.sh: New file.
49220         * tests/test-mbmemcasecmp.c: New file.
49221
49222         New module 'mbmemcasecmp'.
49223         * lib/mbmemcasecmp.h: New file.
49224         * lib/mbmemcasecmp.c: New file.
49225         * modules/mbmemcasecmp: New file.
49226
49227 2009-03-09  Bruno Haible  <bruno@clisp.org>
49228
49229         Tests for module 'unicase/ulc-casecoll'.
49230         * modules/unicase/ulc-casecoll-tests: New file.
49231         * tests/unicase/test-ulc-casecoll1.sh: New file.
49232         * tests/unicase/test-ulc-casecoll2.sh: New file.
49233         * tests/unicase/test-ulc-casecoll.c: New file.
49234
49235         New module 'unicase/ulc-casecoll'.
49236         * lib/unicase.h (ulc_casecoll): New declaration.
49237         * lib/unicase/ulc-casecoll.c: New file.
49238         * modules/unicase/ulc-casecoll: New file.
49239
49240         New module 'unicase/ulc-casexfrm'.
49241         * lib/unicase.h (ulc_casexfrm): New declaration.
49242         * lib/unicase/ulc-casexfrm.c: New file.
49243         * modules/unicase/ulc-casexfrm: New file.
49244
49245 2009-03-09  Bruno Haible  <bruno@clisp.org>
49246
49247         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
49248         invocations.
49249
49250         * m4/mbscasecmp.m4: Remove file.
49251         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
49252         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
49253
49254         * m4/mbscasestr.m4: Remove file.
49255         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
49256         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
49257
49258         * m4/mbschr.m4: Remove file.
49259         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
49260         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
49261
49262         * m4/mbscspn.m4: Remove file.
49263         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
49264         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
49265
49266         * m4/mbslen.m4: Remove file.
49267         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
49268         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
49269
49270         * m4/mbsncasecmp.m4: Remove file.
49271         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
49272         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
49273
49274         * m4/mbsnlen.m4: Remove file.
49275         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
49276         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
49277
49278         * m4/mbspbrk.m4: Remove file.
49279         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
49280         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
49281
49282         * m4/mbspcasecmp.m4: Remove file.
49283         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
49284         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
49285
49286         * m4/mbsrchr.m4: Remove file.
49287         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
49288         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
49289
49290         * m4/mbssep.m4: Remove file.
49291         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
49292         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
49293
49294         * m4/mbsspn.m4: Remove file.
49295         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
49296         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
49297
49298         * m4/mbsstr.m4: Remove file.
49299         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
49300         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
49301
49302         * m4/mbstok_r.m4: Remove file.
49303         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
49304         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
49305
49306         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
49307
49308         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
49309         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
49310
49311         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
49312
49313 2009-03-08  Bruno Haible  <bruno@clisp.org>
49314
49315         Tests for module 'unicase/ulc-casecmp'.
49316         * modules/unicase/ulc-casecmp-tests: New file.
49317         * tests/unicase/test-ulc-casecmp1.sh: New file.
49318         * tests/unicase/test-ulc-casecmp2.sh: New file.
49319         * tests/unicase/test-ulc-casecmp.c: New file.
49320
49321         New module 'unicase/ulc-casecmp'.
49322         * lib/unicase.h (ulc_casecmp): New declaration.
49323         * lib/unicase/ulc-casecmp.c: New file.
49324         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
49325         'const SRC_UNIT *'.
49326         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
49327         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
49328         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
49329         * modules/unicase/ulc-casecmp: New file.
49330
49331         Tests for module 'unicase/u32-is-cased'.
49332         * modules/unicase/u32-is-cased-tests: New file.
49333         * tests/unicase/test-u32-is-cased.c: New file.
49334
49335         Tests for module 'unicase/u16-is-cased'.
49336         * modules/unicase/u16-is-cased-tests: New file.
49337         * tests/unicase/test-u16-is-cased.c: New file.
49338
49339         Tests for module 'unicase/u8-is-cased'.
49340         * modules/unicase/u8-is-cased-tests: New file.
49341         * tests/unicase/test-u8-is-cased.c: New file.
49342         * tests/unicase/test-is-cased.h: New file.
49343
49344         New module 'unicase/u32-is-cased'.
49345         * lib/unicase/u32-is-cased.c: New file.
49346         * modules/unicase/u32-is-cased: New file.
49347
49348         New module 'unicase/u16-is-cased'.
49349         * lib/unicase/u16-is-cased.c: New file.
49350         * modules/unicase/u16-is-cased: New file.
49351
49352         New module 'unicase/u8-is-cased'.
49353         * lib/unicase/u8-is-cased.c: New file.
49354         * lib/unicase/u-is-cased.h: New file.
49355         * modules/unicase/u8-is-cased: New file.
49356
49357         Tests for module 'unicase/u32-is-casefolded'.
49358         * modules/unicase/u32-is-casefolded-tests: New file.
49359         * tests/unicase/test-u32-is-casefolded.c: New file.
49360
49361         Tests for module 'unicase/u16-is-casefolded'.
49362         * modules/unicase/u16-is-casefolded-tests: New file.
49363         * tests/unicase/test-u16-is-casefolded.c: New file.
49364
49365         Tests for module 'unicase/u8-is-casefolded'.
49366         * modules/unicase/u8-is-casefolded-tests: New file.
49367         * tests/unicase/test-u8-is-casefolded.c: New file.
49368         * tests/unicase/test-is-casefolded.h: New file.
49369
49370         New module 'unicase/u32-is-casefolded'.
49371         * lib/unicase/u32-is-casefolded.c: New file.
49372         * modules/unicase/u32-is-casefolded: New file.
49373
49374         New module 'unicase/u16-is-casefolded'.
49375         * lib/unicase/u16-is-casefolded.c: New file.
49376         * modules/unicase/u16-is-casefolded: New file.
49377
49378         New module 'unicase/u8-is-casefolded'.
49379         * lib/unicase/u8-is-casefolded.c: New file.
49380         * modules/unicase/u8-is-casefolded: New file.
49381
49382         Tests for module 'unicase/u32-is-titlecase'.
49383         * modules/unicase/u32-is-titlecase-tests: New file.
49384         * tests/unicase/test-u32-is-titlecase.c: New file.
49385
49386         Tests for module 'unicase/u16-is-titlecase'.
49387         * modules/unicase/u16-is-titlecase-tests: New file.
49388         * tests/unicase/test-u16-is-titlecase.c: New file.
49389
49390         Tests for module 'unicase/u8-is-titlecase'.
49391         * modules/unicase/u8-is-titlecase-tests: New file.
49392         * tests/unicase/test-u8-is-titlecase.c: New file.
49393         * tests/unicase/test-is-titlecase.h: New file.
49394
49395         New module 'unicase/u32-is-titlecase'.
49396         * lib/unicase/u32-is-titlecase.c: New file.
49397         * modules/unicase/u32-is-titlecase: New file.
49398
49399         New module 'unicase/u16-is-titlecase'.
49400         * lib/unicase/u16-is-titlecase.c: New file.
49401         * modules/unicase/u16-is-titlecase: New file.
49402
49403         New module 'unicase/u8-is-titlecase'.
49404         * lib/unicase/u8-is-titlecase.c: New file.
49405         * modules/unicase/u8-is-titlecase: New file.
49406
49407         Tests for module 'unicase/u32-is-lowercase'.
49408         * modules/unicase/u32-is-lowercase-tests: New file.
49409         * tests/unicase/test-u32-is-lowercase.c: New file.
49410
49411         Tests for module 'unicase/u16-is-lowercase'.
49412         * modules/unicase/u16-is-lowercase-tests: New file.
49413         * tests/unicase/test-u16-is-lowercase.c: New file.
49414
49415         Tests for module 'unicase/u8-is-lowercase'.
49416         * modules/unicase/u8-is-lowercase-tests: New file.
49417         * tests/unicase/test-u8-is-lowercase.c: New file.
49418         * tests/unicase/test-is-lowercase.h: New file.
49419
49420         New module 'unicase/u32-is-lowercase'.
49421         * lib/unicase/u32-is-lowercase.c: New file.
49422         * modules/unicase/u32-is-lowercase: New file.
49423
49424         New module 'unicase/u16-is-lowercase'.
49425         * lib/unicase/u16-is-lowercase.c: New file.
49426         * modules/unicase/u16-is-lowercase: New file.
49427
49428         New module 'unicase/u8-is-lowercase'.
49429         * lib/unicase/u8-is-lowercase.c: New file.
49430         * modules/unicase/u8-is-lowercase: New file.
49431
49432         Tests for module 'unicase/u32-is-uppercase'.
49433         * modules/unicase/u32-is-uppercase-tests: New file.
49434         * tests/unicase/test-u32-is-uppercase.c: New file.
49435
49436         Tests for module 'unicase/u16-is-uppercase'.
49437         * modules/unicase/u16-is-uppercase-tests: New file.
49438         * tests/unicase/test-u16-is-uppercase.c: New file.
49439
49440         Tests for module 'unicase/u8-is-uppercase'.
49441         * modules/unicase/u8-is-uppercase-tests: New file.
49442         * tests/unicase/test-u8-is-uppercase.c: New file.
49443         * tests/unicase/test-is-uppercase.h: New file.
49444
49445         New module 'unicase/u32-is-uppercase'.
49446         * lib/unicase/u32-is-uppercase.c: New file.
49447         * modules/unicase/u32-is-uppercase: New file.
49448
49449         New module 'unicase/u16-is-uppercase'.
49450         * lib/unicase/u16-is-uppercase.c: New file.
49451         * modules/unicase/u16-is-uppercase: New file.
49452
49453         New module 'unicase/u8-is-uppercase'.
49454         * lib/unicase/u8-is-uppercase.c: New file.
49455         * modules/unicase/u8-is-uppercase: New file.
49456
49457         New module 'unicase/u32-is-invariant'.
49458         * lib/unicase/u32-is-invariant.c: New file.
49459         * modules/unicase/u32-is-invariant: New file.
49460
49461         New module 'unicase/u16-is-invariant'.
49462         * lib/unicase/u16-is-invariant.c: New file.
49463         * modules/unicase/u16-is-invariant: New file.
49464
49465         New module 'unicase/u8-is-invariant'.
49466         * lib/unicase/u8-is-invariant.c: New file.
49467         * lib/unicase/invariant.h: New file.
49468         * lib/unicase/u-is-invariant.h: New file.
49469         * modules/unicase/u8-is-invariant: New file.
49470
49471         Tests for module 'unicase/u32-casecoll'.
49472         * modules/unicase/u32-casecoll-tests: New file.
49473         * tests/unicase/test-u32-casecoll.c: New file.
49474
49475         Tests for module 'unicase/u16-casecoll'.
49476         * modules/unicase/u16-casecoll-tests: New file.
49477         * tests/unicase/test-u16-casecoll.c: New file.
49478
49479         Tests for module 'unicase/u8-casecoll'.
49480         * modules/unicase/u8-casecoll-tests: New file.
49481         * tests/unicase/test-u8-casecoll.c: New file.
49482
49483         New module 'unicase/u32-casecoll'.
49484         * lib/unicase/u32-casecoll.c: New file.
49485         * modules/unicase/u32-casecoll: New file.
49486
49487         New module 'unicase/u16-casecoll'.
49488         * lib/unicase/u16-casecoll.c: New file.
49489         * modules/unicase/u16-casecoll: New file.
49490
49491         New module 'unicase/u8-casecoll'.
49492         * lib/unicase/u8-casecoll.c: New file.
49493         * lib/unicase/u-casecoll.h: New file.
49494         * modules/unicase/u8-casecoll: New file.
49495
49496         New module 'unicase/u32-casexfrm'.
49497         * lib/unicase/u32-casexfrm.c: New file.
49498         * modules/unicase/u32-casexfrm: New file.
49499
49500         New module 'unicase/u16-casexfrm'.
49501         * lib/unicase/u16-casexfrm.c: New file.
49502         * modules/unicase/u16-casexfrm: New file.
49503
49504         New module 'unicase/u8-casexfrm'.
49505         * lib/unicase/u8-casexfrm.c: New file.
49506         * lib/unicase/u-casexfrm.h: New file.
49507         * modules/unicase/u8-casexfrm: New file.
49508
49509         Tests for module 'unicase/u32-casecmp'.
49510         * modules/unicase/u32-casecmp-tests: New file.
49511         * tests/unicase/test-u32-casecmp.c: New file.
49512
49513         Tests for module 'unicase/u16-casecmp'.
49514         * modules/unicase/u16-casecmp-tests: New file.
49515         * tests/unicase/test-u16-casecmp.c: New file.
49516
49517         Tests for module 'unicase/u8-casecmp'.
49518         * modules/unicase/u8-casecmp-tests: New file.
49519         * tests/unicase/test-u8-casecmp.c: New file.
49520         * tests/unicase/test-casecmp.h: New file.
49521
49522         New module 'unicase/u32-casecmp'.
49523         * lib/unicase/u32-casecmp.c: New file.
49524         * modules/unicase/u32-casecmp: New file.
49525
49526         New module 'unicase/u16-casecmp'.
49527         * lib/unicase/u16-casecmp.c: New file.
49528         * modules/unicase/u16-casecmp: New file.
49529
49530         New module 'unicase/u8-casecmp'.
49531         * lib/unicase/u8-casecmp.c: New file.
49532         * lib/unicase/u-casecmp.h: New file.
49533         * modules/unicase/u8-casecmp: New file.
49534
49535         Tests for module 'unicase/u32-casefold'.
49536         * modules/unicase/u32-casefold-tests: New file.
49537         * tests/unicase/test-u32-casefold.c: New file.
49538
49539         Tests for module 'unicase/u16-casefold'.
49540         * modules/unicase/u16-casefold-tests: New file.
49541         * tests/unicase/test-u16-casefold.c: New file.
49542
49543         Tests for module 'unicase/u8-casefold'.
49544         * modules/unicase/u8-casefold-tests: New file.
49545         * tests/unicase/test-u8-casefold.c: New file.
49546
49547         New module 'unicase/u32-casefold'.
49548         * lib/unicase/u32-casefold.c: New file.
49549         * modules/unicase/u32-casefold: New file.
49550
49551         New module 'unicase/u16-casefold'.
49552         * lib/unicase/u16-casefold.c: New file.
49553         * modules/unicase/u16-casefold: New file.
49554
49555         New module 'unicase/u8-casefold'.
49556         * lib/unicase/u8-casefold.c: New file.
49557         * lib/unicase/u-casefold.h: New file.
49558         * modules/unicase/u8-casefold: New file.
49559
49560         New module 'unicase/tocasefold'.
49561         * lib/unicase/casefold.h: New file.
49562         * lib/unicase/tocasefold.c: New file.
49563         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
49564         * modules/unicase/tocasefold: New file.
49565
49566         Tests for module 'unicase/u32-totitle'.
49567         * modules/unicase/u32-totitle-tests: New file.
49568         * tests/unicase/test-u32-totitle.c: New file.
49569
49570         Tests for module 'unicase/u16-totitle'.
49571         * modules/unicase/u16-totitle-tests: New file.
49572         * tests/unicase/test-u16-totitle.c: New file.
49573
49574         Tests for module 'unicase/u8-totitle'.
49575         * modules/unicase/u8-totitle-tests: New file.
49576         * tests/unicase/test-u8-totitle.c: New file.
49577
49578         New module 'unicase/u32-totitle'.
49579         * lib/unicase/u32-totitle.c: New file.
49580         * modules/unicase/u32-totitle: New file.
49581
49582         New module 'unicase/u16-totitle'.
49583         * lib/unicase/u16-totitle.c: New file.
49584         * modules/unicase/u16-totitle: New file.
49585
49586         New module 'unicase/u8-totitle'.
49587         * lib/unicase/u8-totitle.c: New file.
49588         * lib/unicase/u-totitle.h: New file.
49589         * modules/unicase/u8-totitle: New file.
49590
49591         Tests for module 'unicase/u32-tolower'.
49592         * modules/unicase/u32-tolower-tests: New file.
49593         * tests/unicase/test-u32-tolower.c: New file.
49594
49595         Tests for module 'unicase/u16-tolower'.
49596         * modules/unicase/u16-tolower-tests: New file.
49597         * tests/unicase/test-u16-tolower.c: New file.
49598
49599         Tests for module 'unicase/u8-tolower'.
49600         * modules/unicase/u8-tolower-tests: New file.
49601         * tests/unicase/test-u8-tolower.c: New file.
49602
49603         New module 'unicase/u32-tolower'.
49604         * lib/unicase/u32-tolower.c: New file.
49605         * modules/unicase/u32-tolower: New file.
49606
49607         New module 'unicase/u16-tolower'.
49608         * lib/unicase/u16-tolower.c: New file.
49609         * modules/unicase/u16-tolower: New file.
49610
49611         New module 'unicase/u8-tolower'.
49612         * lib/unicase/u8-tolower.c: New file.
49613         * modules/unicase/u8-tolower: New file.
49614
49615         Tests for module 'unicase/u32-toupper'.
49616         * modules/unicase/u32-toupper-tests: New file.
49617         * tests/unicase/test-u32-toupper.c: New file.
49618
49619         Tests for module 'unicase/u16-toupper'.
49620         * modules/unicase/u16-toupper-tests: New file.
49621         * tests/unicase/test-u16-toupper.c: New file.
49622
49623         Tests for module 'unicase/u8-toupper'.
49624         * modules/unicase/u8-toupper-tests: New file.
49625         * tests/unicase/test-u8-toupper.c: New file.
49626
49627         New module 'unicase/u32-toupper'.
49628         * lib/unicase/u32-toupper.c: New file.
49629         * modules/unicase/u32-toupper: New file.
49630
49631         New module 'unicase/u16-toupper'.
49632         * lib/unicase/u16-toupper.c: New file.
49633         * modules/unicase/u16-toupper: New file.
49634
49635         New module 'unicase/u8-toupper'.
49636         * lib/unicase/u8-toupper.c: New file.
49637         * modules/unicase/u8-toupper: New file.
49638
49639         New module 'unicase/u32-casemap'.
49640         * lib/unicase/u32-casemap.c: New file.
49641         * modules/unicase/u32-casemap: New file.
49642
49643         New module 'unicase/u16-casemap'.
49644         * lib/unicase/u16-casemap.c: New file.
49645         * modules/unicase/u16-casemap: New file.
49646
49647         New module 'unicase/u8-casemap'.
49648         * lib/unicase/unicasemap.h: New file.
49649         * lib/unicase/u8-casemap.c: New file.
49650         * lib/unicase/u-casemap.h: New file.
49651         * modules/unicase/u8-casemap: New file.
49652
49653         New module 'unicase/special-casing'.
49654         * lib/unicase/special-casing.h: New file.
49655         * lib/unicase/special-casing.c: New file.
49656         * lib/unicase/special-casing-table.gperf: New file, generated by
49657         gen-uni-tables.c.
49658         * modules/unicase/special-casing: New file.
49659
49660         Tests for module 'unicase/locale-language'.
49661         * modules/unicase/locale-language-tests: New file.
49662         * tests/unicase/test-locale-language.sh: New file.
49663         * tests/unicase/test-locale-language.c: New file.
49664
49665         New module 'unicase/locale-language'.
49666         * lib/unicase/locale-language.c: New file.
49667         * lib/unicase/locale-languages.gperf: New file.
49668         * modules/unicase/locale-language: New file.
49669
49670         Generate more tables for case conversion and case folding.
49671         * lib/gen-uni-tables.c (SCC_*): New enum items.
49672         (struct special_casing_rule): New type.
49673         (casing_rules, num_casing_rules, allocated_casing_rules): New
49674         variables.
49675         (add_casing_rule, fill_casing_rules): New functions.
49676         (struct casefold_rule): New type.
49677         (casefolding_rules, num_casefolding_rules,
49678         allocated_casefolding_rules): New variables.
49679         (fill_casefolding_rules): New function.
49680         (unicode_casefold): New variable.
49681         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
49682         sort_casing_rules, output_casing_rules): New functions.
49683         (main): Accept to more arguments: SpecialCasing.txt and
49684         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
49685         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
49686         Output mapping for casefolding.
49687
49688         * lib/unicase.h: Include stdbool.h, uninorm.h.
49689         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
49690         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
49691         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
49692         arguments.
49693         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
49694         resultp arguments.
49695         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
49696         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
49697         resultp arguments.
49698         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
49699         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
49700         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
49701         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
49702         declarations.
49703         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
49704
49705 2009-03-08  Bruno Haible  <bruno@clisp.org>
49706
49707         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49708         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
49709         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
49710         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49711
49712 2009-03-07  Bruno Haible  <bruno@clisp.org>
49713
49714         Adjust u*_normcmp, u*_normcoll API.
49715         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
49716         u16_normcoll, u32_normcoll): Change failure conventions.
49717         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
49718         errno and return -1.
49719         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
49720
49721 2009-03-07  Bruno Haible  <bruno@clisp.org>
49722
49723         Tests for module 'uninorm/u32-normcoll'.
49724         * modules/uninorm/u32-normcoll-tests: New file.
49725         * tests/uninorm/test-u32-normcoll.c: New file.
49726
49727         Tests for module 'uninorm/u16-normcoll'.
49728         * modules/uninorm/u16-normcoll-tests: New file.
49729         * tests/uninorm/test-u16-normcoll.c: New file.
49730
49731         Tests for module 'uninorm/u8-normcoll'.
49732         * modules/uninorm/u8-normcoll-tests: New file.
49733         * tests/uninorm/test-u8-normcoll.c: New file.
49734
49735 2009-03-07  Bruno Haible  <bruno@clisp.org>
49736
49737         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
49738         tests/uninorm/test-u32-normcmp.c.
49739         * tests/uninorm/test-u32-normcmp.c: Include it.
49740         (test_nonascii): New function, extracted from main. Add some more
49741         tests.
49742         (main): Invoke test_ascii and test_nonascii.
49743         * modules/uninorm/u32-normcmp-tests (Files): Add
49744         tests/uninorm/test-u32-normcmp.h.
49745         (Depends-on): Remove uninorm/u32-normcmp.
49746
49747         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
49748         tests/uninorm/test-u16-normcmp.c.
49749         * tests/uninorm/test-u16-normcmp.c: Include it.
49750         (test_nonascii): New function, extracted from main. Add some more
49751         tests.
49752         (main): Invoke test_ascii and test_nonascii.
49753         * modules/uninorm/u16-normcmp-tests (Files): Add
49754         tests/uninorm/test-u16-normcmp.h.
49755         (Depends-on): Remove uninorm/u16-normcmp.
49756
49757         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
49758         tests/uninorm/test-u8-normcmp.c.
49759         * tests/uninorm/test-u8-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/u8-normcmp-tests (Files): Add
49764         tests/uninorm/test-u8-normcmp.h.
49765         (Depends-on): Remove uninorm/u8-normcmp.
49766
49767 2009-03-07  Bruno Haible  <bruno@clisp.org>
49768
49769         New module 'uninorm/u32-normcoll'.
49770         * lib/uninorm/u32-normcoll.c: New file.
49771         * modules/uninorm/u32-normcoll: New file.
49772
49773         New module 'uninorm/u16-normcoll'.
49774         * lib/uninorm/u16-normcoll.c: New file.
49775         * modules/uninorm/u16-normcoll: New file.
49776
49777         New module 'uninorm/u8-normcoll'.
49778         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
49779         declarations.
49780         * lib/uninorm/u8-normcoll.c: New file.
49781         * lib/uninorm/u-normcoll.h: New file.
49782         * modules/uninorm/u8-normcoll: New file.
49783
49784         New module 'uninorm/u32-normxfrm'.
49785         * lib/uninorm/u32-normxfrm.c: New file.
49786         * modules/uninorm/u32-normxfrm: New file.
49787
49788         New module 'uninorm/u16-normxfrm'.
49789         * lib/uninorm/u16-normxfrm.c: New file.
49790         * modules/uninorm/u16-normxfrm: New file.
49791
49792         New module 'uninorm/u8-normxfrm'.
49793         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
49794         declarations.
49795         * lib/uninorm/u8-normxfrm.c: New file.
49796         * lib/uninorm/u-normxfrm.h: New file.
49797         * modules/uninorm/u8-normxfrm: New file.
49798
49799 2009-03-07  Bruno Haible  <bruno@clisp.org>
49800
49801         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
49802         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
49803         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
49804
49805 2009-03-07  Bruno Haible  <bruno@clisp.org>
49806
49807         New module 'memxfrm'.
49808         * lib/memxfrm.h: New file.
49809         * lib/memxfrm.c: New file.
49810         * modules/memxfrm: New file.
49811
49812 2009-03-07  Bruno Haible  <bruno@clisp.org>
49813
49814         New module 'memcmp2'.
49815         * lib/memcmp2.h: New file.
49816         * lib/memcmp2.c: New file.
49817         * modules/memcmp2: New file.
49818
49819 2009-03-07  Bruno Haible  <bruno@clisp.org>
49820
49821         Tests for module 'uninorm/decomposing-form'.
49822         * modules/uninorm/decomposing-form-tests: New file.
49823         * tests/uninorm/test-decomposing-form.c: New file.
49824
49825         New module 'uninorm/decomposing-form'.
49826         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49827         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49828         Add 'decomposing_variant' field.
49829         * lib/uninorm/decomposing-form.c: New file.
49830         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49831         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49832         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49833         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49834         * modules/uninorm/decomposing-form: New file.
49835         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49836         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49837
49838 2009-03-07  Bruno Haible  <bruno@clisp.org>
49839
49840         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49841         strings.
49842
49843 2009-03-06  Bruno Haible  <bruno@clisp.org>
49844
49845         Tests for module 'uninorm/u32-normcmp'.
49846         * tests/uninorm/test-u32-normcmp.c: New file.
49847         * modules/uninorm/u32-normcmp-tests: New file.
49848
49849         Tests for module 'uninorm/u16-normcmp'.
49850         * tests/uninorm/test-u16-normcmp.c: New file.
49851         * modules/uninorm/u16-normcmp-tests: New file.
49852
49853         Tests for module 'uninorm/u8-normcmp'.
49854         * tests/uninorm/test-u8-normcmp.c: New file.
49855         * modules/uninorm/u8-normcmp-tests: New file.
49856
49857         New module 'uninorm/u32-normcmp'.
49858         * lib/uninorm/u32-normcmp.c: New file.
49859         * modules/uninorm/u32-normcmp: New file.
49860
49861         New module 'uninorm/u16-normcmp'.
49862         * lib/uninorm/u16-normcmp.c: New file.
49863         * modules/uninorm/u16-normcmp: New file.
49864
49865         New module 'uninorm/u8-normcmp'.
49866         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49867         declarations.
49868         * lib/uninorm/u8-normcmp.c: New file.
49869         * lib/uninorm/u-normcmp.h: New file.
49870         * modules/uninorm/u8-normcmp: New file.
49871
49872 2009-03-06  Bruno Haible  <bruno@clisp.org>
49873
49874         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49875         Reported by Eric Blake.
49876
49877 2009-03-06  Eric Blake  <ebb9@byu.net>
49878             Bruno Haible  <bruno@clisp.org>
49879
49880         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49881         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49882         condition.
49883         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49884         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49885         condition.
49886         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49887
49888 2009-03-06  Eric Blake  <ebb9@byu.net>
49889
49890         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49891         to avoid compiler warnings.
49892         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49893
49894 2009-03-05  Bruno Haible  <bruno@clisp.org>
49895
49896         * tests/test-ftell.c (main): Disable test beyond end of file on
49897         FreeMiNT.
49898         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49899
49900 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49901
49902         * lib/filevercmp.c: Move hidden files up in ordering.
49903         * tests/test-filevercmp.c: Add tests for hidden files.
49904
49905 2009-03-04  Bruno Haible  <bruno@clisp.org>
49906
49907         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49908         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49909         AM_CFLAGS.
49910         Reported by Simon Josefsson.
49911
49912 2009-03-03  Bruno Haible  <bruno@clisp.org>
49913
49914         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49915         Reported by Simon Josefsson.
49916
49917         * doc/ld-version-script.texi: Update node reference.
49918
49919 2009-03-03  Bruno Haible  <bruno@clisp.org>
49920
49921         * modules/visibility (License): Change to 'unlimited'.
49922         Suggested by Simon Josefsson.
49923
49924 2009-03-03  Jim Meyering  <meyering@redhat.com>
49925
49926         unlinkdir: cannot_unlink_dir may modify process state
49927         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49928         it's neither thread-safe nor appropriate for use in a library.
49929
49930 2009-03-03  Eric Blake  <ebb9@byu.net>
49931
49932         test-closein: silence test under Darwin
49933         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49934         care if it dies from EPIPE or EBADF.
49935
49936 2009-03-03  Bruno Haible  <bruno@clisp.org>
49937
49938         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49939         earlier.
49940         * doc/visibility.texi: Fix @node and @section.
49941
49942 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49943
49944         * doc/gnulib.texi: Link to sections for ld version script and
49945         visibility.
49946         * doc/visibility.texi: Add @node and @section.
49947         * modules/ld-version-script: New module.
49948         * m4/ld-version-script.m4: New file.
49949         * doc/ld-version-script.texi: New file.
49950
49951 2009-03-02  David Lutterkort  <lutter@redhat.com>
49952
49953         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49954         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49955
49956 2009-03-02  Bruno Haible  <bruno@clisp.org>
49957
49958         * doc/visibility.texi: Mention libtool's -export-symbols option.
49959
49960 2009-03-02  Jim Meyering  <meyering@redhat.com>
49961
49962         announce-gen: new option: --no-print-checksums
49963         * build-aux/announce-gen (usage): Describe it.
49964         (print_checksums): Print a newline here, not in the [*] footnote.
49965         (main): Honor it.
49966
49967 2009-03-01  Bruno Haible  <bruno@clisp.org>
49968
49969         Use socklen_t in the native Windows replacements prototypes.
49970         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49971         instead of 'int'.
49972         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49973         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49974         * modules/getsockopt (Depends-on): Add socklen.
49975         * modules/setsockopt (Depends-on): Add socklen.
49976
49977 2009-03-01  Bruno Haible  <bruno@clisp.org>
49978
49979         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49980         least 4.2.
49981
49982 2009-03-01  Eric Blake  <ebb9@byu.net>
49983             Bruno Haible  <bruno@clisp.org>
49984
49985         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49986         error messages.
49987         * lib/wait-process.c (wait_subprocess): Omit error message about
49988         deadly signal sent to the child of termsigp != NULL.
49989
49990 2009-03-01  Eric Blake  <ebb9@byu.net>
49991
49992         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49993
49994 2009-03-01  Bruno Haible  <bruno@clisp.org>
49995
49996         Avoid a gcc warning.
49997         * tests/test-sched.c (b): Make global.
49998         Reported by Eric Blake.
49999
50000 2009-01-19  Martin Lambers  <marlam@marlam.de>
50001
50002         Provide POSIX semantics for socket timeout options on W32.
50003         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
50004         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
50005         * modules/setsockopt: Depend on sys_time module for struct timeval.
50006         * modules/getsockopt: Depend on sys_time module for struct timeval.
50007
50008 2009-03-01  Simon Josefsson  <simon@josefsson.org>
50009
50010         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
50011         __USE_GNU, for consistency with netdb.in.h.
50012         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50013
50014 2009-03-01  Bruno Haible  <bruno@clisp.org>
50015
50016         More support for FreeMiNT.
50017         * lib/fseeko.c (rpl_fseeko): Complete last commit.
50018         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50019
50020 2009-03-01  Bruno Haible  <bruno@clisp.org>
50021
50022         More support for FreeMiNT.
50023         * lib/fpurge.c (fpurge): Correct last commit.
50024         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50025
50026 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50027
50028         Fix unportable awk script in vc-list-files.
50029         * build-aux/vc-list-files: In the replacement awk script, use
50030         substr with a second argument of 1, not zero.
50031         Report by Simon Josefsson.
50032
50033 2009-02-28  Bruno Haible  <bruno@clisp.org>
50034
50035         More support for FreeMiNT.
50036         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
50037         to FreeMiNT today.
50038         * lib/fwriting.c (fwriting): Likewise.
50039         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
50040
50041 2009-02-28  Bruno Haible  <bruno@clisp.org>
50042
50043         * tests/test-freadseek.c (main): Disable test beyond end of file on
50044         FreeMiNT.
50045         * tests/test-ftello.c (main): Likewise.
50046         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
50047
50048 2009-02-28  Bruno Haible  <bruno@clisp.org>
50049
50050         Add tentative support for FreeMiNT.
50051         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
50052         * lib/fpurge.c (fpurge): Likewise.
50053         * lib/freadable.c (freadable): Likewise.
50054         * lib/freading.c (freading): Likewise.
50055         * lib/freadptr.c (freadptr): Likewise.
50056         * lib/freadseek.c (freadptrinc): Likewise.
50057         * lib/fseeko.c (rpl_fseeko): Likewise.
50058         * lib/fseterr.c (fseterr): Likewise.
50059         * lib/fwritable.c (fwritable): Likewise.
50060         * lib/fwriting.c (fwriting): Likewise.
50061         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
50062         Hourihane.
50063         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
50064
50065 2009-02-28  Bruno Haible  <bruno@clisp.org>
50066
50067         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
50068         SIGCHLD.
50069         Reported by Jim Meyering.
50070
50071 2009-02-28  Bruno Haible  <bruno@clisp.org>
50072
50073         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
50074         Mention the results of these tests on various platforms.
50075         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
50076         order.
50077         * doc/posix-functions/printf.texi: Likewise.
50078         * doc/posix-functions/snprintf.texi: Likewise.
50079         * doc/posix-functions/sprintf.texi: Likewise.
50080         * doc/posix-functions/vfprintf.texi: Likewise.
50081         * doc/posix-functions/vprintf.texi: Likewise.
50082         * doc/posix-functions/vsnprintf.texi: Likewise.
50083         * doc/posix-functions/vsprintf.texi: Likewise.
50084         * doc/glibc-functions/obstack_printf.texi: Likewise.
50085         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
50086
50087 2009-02-28  Bruno Haible  <bruno@clisp.org>
50088
50089         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
50090         Reported by Loïc Minier <lool@dooz.org>.
50091
50092 2009-02-27  Bruno Haible  <bruno@clisp.org>
50093
50094         * gnulib-tool (func_import): Make the sed expression used to create the
50095         sed script for updating the .gitignore file POSIX compliant.
50096         Reported by Eric Blake.
50097
50098 2009-02-27  Bruno Haible  <bruno@clisp.org>
50099
50100         * gnulib-tool (sed): Don't alias as "sed --posix".
50101         Reported by Eric Blake.
50102
50103 2009-02-27  Bruno Haible  <bruno@clisp.org>
50104
50105         Avoid test link errors.
50106         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
50107         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
50108         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
50109         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
50110         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50111
50112 2009-02-27  Bruno Haible  <bruno@clisp.org>
50113
50114         Avoid spurious "(cached)" in configure output.
50115         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
50116         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
50117         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50118         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50119         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50120         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
50121         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50122         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
50123         Reported by Eric Blake.
50124
50125 2009-02-27  Eric Blake  <ebb9@byu.net>
50126
50127         printf: fix regression in previous patch
50128         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
50129
50130 2009-02-27  Bruno Haible  <bruno@clisp.org>
50131
50132         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
50133         value.
50134         * lib/stdint.in.h: Likewise.
50135         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
50136
50137 2009-02-27  Eric Blake  <ebb9@byu.net>
50138
50139         doc: mention more functions added in cygwin 1.7.0
50140         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
50141         addition.
50142         * doc/posix-functions/open_wmemstream.texi: Likewise.
50143         * doc/posix-functions/wcsnlen.texi: Likewise.
50144         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50145         * doc/posix-functions/wcstod.texi: Likewise.
50146         * doc/posix-functions/wcstof.texi: Likewise.
50147         * doc/posix-functions/wcstoimax.texi: Likewise.
50148         * doc/posix-functions/wcstok.texi: Likewise.
50149         * doc/posix-functions/wcstoumax.texi: Likewise.
50150
50151         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
50152         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
50153         * doc/posix-functions/fprintf.texi: Update.
50154         * doc/posix-functions/printf.texi: Update.
50155         * doc/posix-functions/snprintf.texi: Update.
50156         * doc/posix-functions/sprintf.texi: Update.
50157         * doc/posix-functions/vfprintf.texi: Update.
50158         * doc/posix-functions/vprintf.texi: Update.
50159         * doc/posix-functions/vsnprintf.texi: Update.
50160         * doc/posix-functions/vsprintf.texi: Update.
50161         * doc/glibc-functions/obstack_printf.texi: Update.
50162         * doc/glibc-functions/obstack_vprintf.texi: Update.
50163
50164 2009-02-26  Eric Blake  <ebb9@byu.net>
50165
50166         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
50167         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
50168         compilation bug by using runtime conversion.
50169         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
50170         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
50171         * modules/ceill-tests (Files): Use nan.h.
50172         * modules/floorl-tests (Files): Likewise.
50173         * modules/frexpl-tests (Files): Likewise.
50174         * modules/isnanl-tests (Files): Likewise.
50175         * modules/ldexpl-tests (Files): Likewise.
50176         * modules/roundl-tests (Files): Likewise.
50177         * modules/truncl-tests (Files): Likewise.
50178         * tests/test-ceill.c (main): Use a working NaN.
50179         * tests/test-floorl.c (main): Likewise.
50180         * tests/test-frexpl.c (main): Likewise.
50181         * tests/test-isnan.c (test_long_double): Likewise.
50182         * tests/test-isnanl.h (main): Likewise.
50183         * tests/test-ldexpl.h (main): Likewise.
50184         * tests/test-roundl.h (main): Likewise.
50185         * tests/test-truncl.h (main): Likewise.
50186         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
50187
50188 2009-02-26  Eric Blake  <ebb9@byu.net>
50189             Bruno Haible  <bruno@clisp.org>
50190
50191         Work around a *printf bug with %ls on Solaris.
50192         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
50193         precision is specified, sprintf stops converting the wide string
50194         argument when the number of bytes that have been produced by this
50195         conversion equals or exceeds the precision.
50196         * doc/posix-functions/fprintf.texi: Update.
50197         * doc/posix-functions/printf.texi: Update.
50198         * doc/posix-functions/snprintf.texi: Update.
50199         * doc/posix-functions/sprintf.texi: Update.
50200         * doc/posix-functions/vfprintf.texi: Update.
50201         * doc/posix-functions/vprintf.texi: Update.
50202         * doc/posix-functions/vsnprintf.texi: Update.
50203         * doc/posix-functions/vsprintf.texi: Update.
50204         * doc/glibc-functions/obstack_printf.texi: Update.
50205         * doc/glibc-functions/obstack_vprintf.texi: Update.
50206
50207 2009-02-26  Eric Blake  <ebb9@byu.net>
50208
50209         stdlib: favor compiler check of random.h
50210         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
50211         to avoid an ObjC random.h installed by Swarm.
50212
50213 2009-02-26  Bruno Haible  <bruno@clisp.org>
50214
50215         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
50216         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
50217         Reported by Gary V. Vaughan <gary@gnu.org>.
50218
50219 2009-02-26  Bruno Haible  <bruno@clisp.org>
50220
50221         Fix *printf behaviour regarding the %ls directive.
50222         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
50223         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
50224         NEED_PRINTF_DIRECTIVE_LS.
50225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
50226         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50227         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50228         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
50229         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
50230         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
50231         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50232         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50233         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50234         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50235         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50236         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
50237         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50238         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50239         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50240         * doc/posix-functions/fprintf.texi: Update.
50241         * doc/posix-functions/printf.texi: Update.
50242         * doc/posix-functions/snprintf.texi: Update.
50243         * doc/posix-functions/sprintf.texi: Update.
50244         * doc/posix-functions/vfprintf.texi: Update.
50245         * doc/posix-functions/vprintf.texi: Update.
50246         * doc/posix-functions/vsnprintf.texi: Update.
50247         * doc/posix-functions/vsprintf.texi: Update.
50248         * doc/glibc-functions/obstack_printf.texi: Update.
50249         * doc/glibc-functions/obstack_vprintf.texi: Update.
50250         Reported by Eric Blake.
50251
50252 2009-02-25  Bruno Haible  <bruno@clisp.org>
50253
50254         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
50255         with known value.
50256         Reported by Gary V. Vaughan <gary@gnu.org>.
50257
50258 2009-02-25  Bruno Haible  <bruno@clisp.org>
50259
50260         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
50261         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
50262         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
50263         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
50264         Reported by Gary V. Vaughan <gary@gnu.org>.
50265
50266 2009-02-25  Bruno Haible  <bruno@clisp.org>
50267
50268         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
50269         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
50270         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
50271         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
50272         Reported by Gary V. Vaughan <gary@gnu.org>.
50273
50274 2009-02-25  Eric Blake  <ebb9@byu.net>
50275
50276         tests: skip fseek/ftell tests if ungetc is broken
50277         * m4/ungetc.m4: New file.
50278         * modules/fseek-tests: Split test, so ungetc dependency is
50279         separate from rest of test.
50280         * modules/fseeko-tests: Likewise.
50281         * modules/ftell-tests: Likewise.
50282         * modules/ftello-tests: Likewise.
50283         * tests/test-fseek.c (main): Isolate ungetc dependency.
50284         * tests/test-fseeko.c (main): Likewise.
50285         * tests/test-ftell.c (main): Likewise.
50286         * tests/test-ftello.c (main): Likewise.
50287         * tests/test-fseek2.sh: New file.
50288         * tests/test-fseeko2.sh: Likewise.
50289         * tests/test-ftell2.sh: Likewise.
50290         * tests/test-ftello2.sh: Likewise.
50291
50292 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
50293
50294         test-getaddrinfo: fix usage of skip return code 77
50295         * tests/test-gettaddrinfo.c: Return skip code 77 only
50296         for first occurrence of skip (4x77 is not 77)
50297
50298 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
50299
50300         strtod: avoid C99 decl-after-statement
50301         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
50302
50303 2009-02-24  Eric Blake  <ebb9@byu.net>
50304
50305         strtod: detect HP-UX 11.31 bug
50306         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
50307         Reported by Gary V. Vaughan.
50308
50309 2009-02-23  Bruno Haible  <bruno@clisp.org>
50310
50311         Fix invalid read past end of memory block.
50312         * lib/vasnprintf.c (DCHAR_SET): Define.
50313         (local_wcslen): Define only when needed.
50314         (local_strnlen, local_wcsnlen): New functions.
50315         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
50316         directives that involve a conversion ourselves.
50317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
50318         wcsnlen, mbrtowc, wcrtomb.
50319         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
50320         * tests/test-vasprintf-posix.c (test_function): Likewise.
50321         * tests/test-snprintf-posix.h (test_function): Likewise.
50322         * tests/test-sprintf-posix.h (test_function): Likewise.
50323         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50324
50325 2009-02-22  Bruno Haible  <bruno@clisp.org>
50326
50327         Implement new clarified decomposition of Hangul syllables.
50328         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
50329         of type LTV, return only a pairwise decomposition.
50330         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
50331         Likewise.
50332         * tests/uninorm/test-decomposition.c (main): Updated expected result.
50333         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
50334         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
50335
50336 2009-02-22  Bruno Haible  <bruno@clisp.org>
50337
50338         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
50339         zero-length results and shrink excess allocated memory.
50340         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
50341         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
50342         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
50343         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
50344         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
50345         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
50346         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
50347         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
50348         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
50349         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
50350         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
50351         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
50352
50353 2009-02-21  Bruno Haible  <bruno@clisp.org>
50354
50355         * doc/gnulib.texi: Include safe-alloc.texi earlier.
50356         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
50357         spaces after a period. Put a space between a macro name and its
50358         argument list. Trivial rewordings.
50359         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
50360         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
50361         (main): Return 0 explicitly.
50362
50363 2009-02-21  Bruno Haible  <bruno@clisp.org>
50364
50365         Tests for module 'uninorm/filter'.
50366         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
50367         * modules/uninorm/filter-tests: New file.
50368
50369         New module 'uninorm/filter'.
50370         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
50371         uninorm_filter_flush, uninorm_filter_free): New declarations.
50372         * lib/uninorm/uninorm-filter.c: New file.
50373         * modules/uninorm/filter: New file.
50374
50375 2009-02-21  Bruno Haible  <bruno@clisp.org>
50376
50377         Tests for module 'uninorm/nfkc'.
50378         * tests/uninorm/test-nfkc.c: New file.
50379         * tests/uninorm/test-u8-nfkc.c: New file.
50380         * tests/uninorm/test-u16-nfkc.c: New file.
50381         * tests/uninorm/test-u32-nfkc.c: New file.
50382         * tests/uninorm/test-u32-nfkc-big.sh: New file.
50383         * tests/uninorm/test-u32-nfkc-big.c: New file.
50384         * modules/uninorm/nfkc-tests: New file.
50385
50386         New module 'uninorm/nfkc'.
50387         * lib/uninorm/nfkc.c: New file.
50388         * modules/uninorm/nfkc: New file.
50389
50390         Tests for module 'uninorm/nfkd'.
50391         * tests/uninorm/test-nfkd.c: New file.
50392         * tests/uninorm/test-u8-nfkd.c: New file.
50393         * tests/uninorm/test-u16-nfkd.c: New file.
50394         * tests/uninorm/test-u32-nfkd.c: New file.
50395         * tests/uninorm/test-u32-nfkd-big.sh: New file.
50396         * tests/uninorm/test-u32-nfkd-big.c: New file.
50397         * modules/uninorm/nfkd-tests: New file.
50398
50399         New module 'uninorm/nfkd'.
50400         * lib/uninorm/nfkd.c: New file.
50401         * modules/uninorm/nfkd: New file.
50402
50403         Tests for module 'uninorm/nfc'.
50404         * tests/uninorm/test-nfc.c: New file.
50405         * tests/uninorm/test-u8-nfc.c: New file.
50406         * tests/uninorm/test-u16-nfc.c: New file.
50407         * tests/uninorm/test-u32-nfc.c: New file.
50408         * tests/uninorm/test-u32-nfc-big.sh: New file.
50409         * tests/uninorm/test-u32-nfc-big.c: New file.
50410         * modules/uninorm/nfc-tests: New file.
50411
50412         New module 'uninorm/nfc'.
50413         * lib/uninorm/nfc.c: New file.
50414         * modules/uninorm/nfc: New file.
50415
50416         Tests for module 'uninorm/nfd'.
50417         * tests/uninorm/test-nfd.c: New file.
50418         * tests/uninorm/test-u8-nfd.c: New file.
50419         * tests/uninorm/test-u16-nfd.c: New file.
50420         * tests/uninorm/test-u32-nfd.c: New file.
50421         * tests/uninorm/test-u32-nfd-big.sh: New file.
50422         * tests/uninorm/test-u32-nfd-big.c: New file.
50423         * tests/uninorm/test-u32-normalize-big.h: New file.
50424         * tests/uninorm/test-u32-normalize-big.c: New file.
50425         * tests/uninorm/NormalizationTest.txt: New file, created from
50426         Unicode 5.1.0 NormalizationTest.txt.
50427         * modules/uninorm/nfd-tests: New file.
50428
50429         New module 'uninorm/nfd'.
50430         * lib/uninorm/nfd.c: New file.
50431         * modules/uninorm/nfd: New file.
50432
50433         New module 'uninorm/u32-normalize'.
50434         * lib/uninorm/u32-normalize.c: New file.
50435         * modules/uninorm/u32-normalize: New file.
50436
50437         New module 'uninorm/u16-normalize'.
50438         * lib/uninorm/u16-normalize.c: New file.
50439         * modules/uninorm/u16-normalize: New file.
50440
50441         New module 'uninorm/u8-normalize'.
50442         * lib/uninorm/u8-normalize.c: New file.
50443         * lib/uninorm/normalize-internal.h: New file.
50444         * lib/uninorm/u-normalize-internal.h: New file.
50445         * modules/uninorm/u8-normalize: New file.
50446
50447         New module 'uninorm/decompose-internal'.
50448         * lib/uninorm/decompose-internal.c: New file.
50449         * modules/uninorm/decompose-internal: New file.
50450
50451         Tests for module 'uninorm/composition'.
50452         * tests/uninorm/test-composition.c: New file.
50453         * modules/uninorm/composition-tests: New file.
50454
50455         New module 'uninorm/composition'.
50456         * lib/uninorm/composition.c: New file.
50457         * lib/uninorm/composition-table.gperf: New file, generated by
50458         gen-uni-tables.
50459         * modules/uninorm/composition: New file.
50460
50461         Tests for module 'uninorm/compat-decomposition'.
50462         * tests/uninorm/test-compat-decomposition.c: New file.
50463         * modules/uninorm/compat-decomposition-tests: New file.
50464
50465         New module 'uninorm/compat-decomposition'.
50466         * lib/uninorm/decompose-internal.h: New file.
50467         * lib/uninorm/compat-decomposition.c: New file.
50468         * modules/uninorm/compat-decomposition: New file.
50469
50470         Tests for module 'uninorm/canonical-decomposition'.
50471         * tests/uninorm/test-canonical-decomposition.c: New file.
50472         * modules/uninorm/canonical-decomposition-tests: New file.
50473
50474         New module 'uninorm/canonical-decomposition'.
50475         * lib/uninorm/canonical-decomposition.c: New file.
50476         * modules/uninorm/canonical-decomposition: New file.
50477
50478         Tests for module 'uninorm/decomposition'.
50479         * tests/uninorm/test-decomposition.c: New file.
50480         * modules/uninorm/decomposition-tests: New file.
50481
50482         New module 'uninorm/decomposition'.
50483         * lib/uninorm/decomposition.c: New file.
50484         * modules/uninorm/decomposition: New file.
50485
50486         New module 'uninorm/decomposition-table'.
50487         * lib/uninorm/decomposition-table.h: New file.
50488         * lib/uninorm/decomposition-table.c: New file.
50489         * lib/uninorm/decomposition-table1.h: New file, generated by
50490         gen-uni-tables.
50491         * lib/uninorm/decomposition-table2.h: New file, generated by
50492         gen-uni-tables.
50493         * modules/uninorm/decomposition-table: New file.
50494
50495         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
50496         (UC_DECOMP_*): New enumeration items.
50497         (get_decomposition): New function.
50498         (struct decomp_table): New type.
50499         (output_decomposition, output_decomposition_tables): New functions.
50500         (unicode_composition_exclusions): New variable.
50501         (fill_composition_exclusions, debug_output_composition_tables): New
50502         functions.
50503         (main): Accept one more argument. Invoke fill_composition_exclusions.
50504         Output decomposition and composition tables.
50505
50506         New module 'uninorm/base'.
50507         * lib/uninorm.h: New file.
50508         * lib/unictype.h: Update comment.
50509         * modules/uninorm/base: New file.
50510
50511 2009-02-21  David Lutterkort  <lutter@redhat.com>
50512
50513         Tests for module 'safe-alloc'.
50514         * tests/test-safe-alloc.c: New file.
50515         * modules/safe-alloc-tests: New file.
50516
50517         New module 'safe-alloc'.
50518         * lib/safe-alloc.h: New file.
50519         * lib/safe-alloc.c: New file.
50520         * m4/safe-alloc.m4: New file.
50521         * modules/safe-alloc: New file.
50522         * doc/safe-alloc.texi: New file.
50523         * doc/gnulib.texi: Include it.
50524         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
50525         safe-alloc.
50526
50527 2009-02-18  Bruno Haible  <bruno@clisp.org>
50528
50529         Fix link error on non-glibc systems.
50530         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
50531         variable.
50532         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50533
50534 2009-02-18  Jim Meyering  <meyering@redhat.com>
50535
50536         fts: avoid used-uninitialized error due to recent change
50537         * lib/fts.c (fts_read): Guard uses of the new member,
50538         parent->fts_n_dirs_remaining, since it's not relevant for
50539         the parent of a directory specified on the command-line.
50540
50541 2009-02-17  James Youngman  <jay@gnu.org>
50542             Bruno Haible  <bruno@clisp.org>
50543
50544         * m4/include_next.m4: Reformulate comment.
50545
50546 2009-02-16  Jim Meyering  <meyering@redhat.com>
50547
50548         fts: add #if guards so that the fts_lgpl module still builds
50549         * lib/fts.c: Guard just-added hash-table-using parts with
50550         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
50551         Reported by Simon Josefsson.
50552
50553 2009-02-15  Bruno Haible  <bruno@clisp.org>
50554
50555         * modules/array-mergesort-tests: New file.
50556         * tests/test-array-mergesort.c: New file.
50557
50558         New module 'array-mergesort'.
50559         * modules/array-mergesort: New file.
50560         * lib/array-mergesort.h: New file.
50561
50562 2009-02-15  Bruno Haible  <bruno@clisp.org>
50563
50564         Fix 2009-02-07 commit.
50565         * lib/gen-uni-tables.c (output_predicate, output_category,
50566         output_combclass, output_bidi_category, output_decimal_digit,
50567         output_digit, output_numeric, output_mirror, output_scripts,
50568         output_ident_category, output_simple_mapping): Fix format directives.
50569         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
50570
50571 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
50572
50573         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
50574         fixes are available from IBM.
50575
50576 2009-02-13  Jim Meyering  <meyering@redhat.com>
50577
50578         fts: arrange not to stat non-directories in more cases
50579         This makes GNU find (when it doesn't need to stat each file)
50580         *much* more efficient at traversing reiserfs file systems.
50581         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
50582         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
50583         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
50584         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
50585         (leaf_optimization_applies): New function.
50586         (LCO_hash, LCO_compare): New helper functions.
50587         (link_count_optimize_ok): New function.
50588         (fts_stat): Initialize new member (if dir).
50589         (fts_read): Decrement parent's fts_n_dirs_remaining count if
50590         we've just stat'ed a directory.  Skip the stat call when possible.
50591         ---
50592         Note this AFS-related exchange:
50593         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
50594         and note find's pioctl call in find/fstype.c.
50595         But that is necessary only if you want to enable the
50596         optimization for AFS, and for now, I don't.
50597
50598         fts: move a function definition "up" (no semantic change)
50599         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
50600         "up" to precede upcoming use of a related function.
50601
50602 2009-02-11  Jim Meyering  <meyering@redhat.com>
50603
50604         fts: correct internal computation of nlinks (optimization-related)
50605         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
50606         whether the current entry is a directory, so don't test it.
50607
50608 2009-02-10  Bruno Haible  <bruno@clisp.org>
50609
50610         Tests for module 'uniwbrk/ulc-wordbreaks'.
50611         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
50612         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
50613         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
50614
50615         Tests for module 'uniwbrk/u32-wordbreaks'.
50616         * modules/uniwbrk/u32-wordbreaks-tests: New file.
50617         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
50618
50619         Tests for module 'uniwbrk/u16-wordbreaks'.
50620         * modules/uniwbrk/u16-wordbreaks-tests: New file.
50621         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
50622
50623         Tests for module 'uniwbrk/u8-wordbreaks'.
50624         * modules/uniwbrk/u8-wordbreaks-tests: New file.
50625         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
50626
50627 2009-02-10  Bruno Haible  <bruno@clisp.org>
50628
50629         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
50630         property.
50631         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
50632         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
50633         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
50634
50635 2009-02-10  Simon Josefsson  <simon@josefsson.org>
50636
50637         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
50638         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
50639
50640 2009-02-10  Bruno Haible  <bruno@clisp.org>
50641
50642         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
50643         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
50644         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
50645         * lib/unilbrk/u8-possible-linebreaks.c: Update.
50646         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
50647         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
50648
50649 2009-02-09  Simon Josefsson  <simon@josefsson.org>
50650
50651         * lib/sockets.h (gl_fd_to_handle): New function.
50652
50653         * tests/test-sockets.c: Call gl_fd_to_handle.
50654
50655 2009-02-09  Bruno Haible  <bruno@clisp.org>
50656
50657         * doc/havelib.texi: Document the conventions on bi-arch systems.
50658
50659 2009-02-08  Bruno Haible  <bruno@clisp.org>
50660
50661         Document the AC_LIB_LINKFLAGS macro.
50662         * doc/havelib.texi: New file, mostly written on 2005-05-24.
50663         * doc/gnulib.texi: Include it.
50664
50665 2009-02-08  Bruno Haible  <bruno@clisp.org>
50666
50667         Fix wrong order of sections, compared to TOC.
50668         * doc/gnulib.texi: Include relocatable-maint.texi after the
50669         "Regular expressions" node, not before.
50670
50671 2009-02-08  Bruno Haible  <bruno@clisp.org>
50672
50673         Tests for module 'unicase/totitle'.
50674         * modules/unicase/totitle-tests: New file.
50675
50676         Tests for module 'unicase/tolower'.
50677         * modules/unicase/tolower-tests: New file.
50678
50679         Tests for module 'unicase/toupper'.
50680         * modules/unicase/toupper-tests: New file.
50681         * tests/unicase/test-mapping-part1.h: New file.
50682         * tests/unicase/test-mapping-part2.h: New file.
50683
50684         New module 'unicase/totitle'.
50685         * modules/unicase/totitle: New file.
50686         * lib/unicase/totitle.c: New file.
50687
50688         New module 'unicase/tolower'.
50689         * modules/unicase/tolower: New file.
50690         * lib/unicase/tolower.c: New file.
50691
50692         New module 'unicase/toupper'.
50693         * modules/unicase/toupper: New file.
50694         * lib/unicase/toupper.c: New file.
50695         * lib/unicase/simple-mapping.h: New file.
50696
50697         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
50698         (mapping_table): New structure.
50699         (output_simple_mapping): New function.
50700         (main): Invoke output_simple_mapping_test and output_simple_mapping.
50701         * modules/gen-uni-tables (Description): Update.
50702         * lib/unicase/toupper.h: New file, automatically generated by
50703         gen-uni-tables.
50704         * lib/unicase/tolower.h: New file, automatically generated by
50705         gen-uni-tables.
50706         * lib/unicase/totitle.h: New file, automatically generated by
50707         gen-uni-tables.
50708         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
50709         gen-uni-tables.
50710         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
50711         gen-uni-tables.
50712         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
50713         gen-uni-tables.
50714
50715         New module 'unicase/base'.
50716         * modules/unicase/base: New file.
50717         * lib/unicase.h: New file.
50718
50719 2009-02-08  Bruno Haible  <bruno@clisp.org>
50720
50721         New module 'uniwbrk/ulc-wordbreaks'.
50722         * modules/uniwbrk/ulc-wordbreaks: New file.
50723         * lib/uniwbrk/ulc-wordbreaks.c: New file.
50724
50725         New module 'uniwbrk/u32-wordbreaks'.
50726         * modules/uniwbrk/u32-wordbreaks: New file.
50727         * lib/uniwbrk/u32-wordbreaks.c: New file.
50728
50729         New module 'uniwbrk/u16-wordbreaks'.
50730         * modules/uniwbrk/u16-wordbreaks: New file.
50731         * lib/uniwbrk/u16-wordbreaks.c: New file.
50732
50733         New module 'uniwbrk/u8-wordbreaks'.
50734         * modules/uniwbrk/u8-wordbreaks: New file.
50735         * lib/uniwbrk/u8-wordbreaks.c: New file.
50736         * lib/uniwbrk/u-wordbreaks.h: New file.
50737
50738         New module 'uniwbrk/table'.
50739         * modules/uniwbrk/table: New file.
50740         * lib/uniwbrk/wbrktable.h: New file.
50741         * lib/uniwbrk/wbrktable.c: New file.
50742
50743         New module 'uniwbrk/wordbreak-property'.
50744         * modules/uniwbrk/wordbreak-property: New file.
50745         * lib/uniwbrk/wordbreak-property.c: New file.
50746
50747         * lib/gen-uni-tables.c (WBP_*): New enum items.
50748         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
50749         (unicode_org_wbp): New variable.
50750         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
50751         New functions.
50752         (wbp_table): New structure.
50753         (output_wbp, output_wbrk_tables): New functions.
50754         (main): Accept additional argument. Invoke fill_org_wbp,
50755         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
50756         output_wbrk_tables.
50757         * modules/gen-uni-tables (Description): Update.
50758         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
50759         gen-uni-tables.
50760
50761         New module 'uniwbrk/base'.
50762         * modules/uniwbrk/base: New file.
50763         * lib/uniwbrk.h: New file.
50764
50765 2009-02-08  Bruno Haible  <bruno@clisp.org>
50766
50767         Update to Unicode 5.1.0.
50768         * lib/gen-uni-tables.c (is_property_alphabetic): Include
50769         U+2185..U+2188.
50770         (is_property_default_ignorable_code_point): Don't include characters
50771         of category Cc or Cs and not-a-characters.
50772         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
50773         U+0D79, U+109E, U+109F, U+A60C.
50774         * lib/unictype/bidi_of.h: Regenerated.
50775         * lib/unictype/blocks.h: Regenerated.
50776         * lib/unictype/categ_C.h: Regenerated.
50777         * lib/unictype/categ_Cf.h: Regenerated.
50778         * lib/unictype/categ_Cn.h: Regenerated.
50779         * lib/unictype/categ_L.h: Regenerated.
50780         * lib/unictype/categ_Ll.h: Regenerated.
50781         * lib/unictype/categ_Lm.h: Regenerated.
50782         * lib/unictype/categ_Lo.h: Regenerated.
50783         * lib/unictype/categ_Lu.h: Regenerated.
50784         * lib/unictype/categ_M.h: Regenerated.
50785         * lib/unictype/categ_Mc.h: Regenerated.
50786         * lib/unictype/categ_Me.h: Regenerated.
50787         * lib/unictype/categ_Mn.h: Regenerated.
50788         * lib/unictype/categ_N.h: Regenerated.
50789         * lib/unictype/categ_Nd.h: Regenerated.
50790         * lib/unictype/categ_Nl.h: Regenerated.
50791         * lib/unictype/categ_No.h: Regenerated.
50792         * lib/unictype/categ_P.h: Regenerated.
50793         * lib/unictype/categ_Pd.h: Regenerated.
50794         * lib/unictype/categ_Pe.h: Regenerated.
50795         * lib/unictype/categ_Pf.h: Regenerated.
50796         * lib/unictype/categ_Pi.h: Regenerated.
50797         * lib/unictype/categ_Po.h: Regenerated.
50798         * lib/unictype/categ_Ps.h: Regenerated.
50799         * lib/unictype/categ_S.h: Regenerated.
50800         * lib/unictype/categ_Sk.h: Regenerated.
50801         * lib/unictype/categ_Sm.h: Regenerated.
50802         * lib/unictype/categ_So.h: Regenerated.
50803         * lib/unictype/categ_of.h: Regenerated.
50804         * lib/unictype/combining.h: Regenerated.
50805         * lib/unictype/ctype_alnum.h: Regenerated.
50806         * lib/unictype/ctype_alpha.h: Regenerated.
50807         * lib/unictype/ctype_graph.h: Regenerated.
50808         * lib/unictype/ctype_lower.h: Regenerated.
50809         * lib/unictype/ctype_print.h: Regenerated.
50810         * lib/unictype/ctype_punct.h: Regenerated.
50811         * lib/unictype/ctype_upper.h: Regenerated.
50812         * lib/unictype/decdigit.h: Regenerated.
50813         * lib/unictype/digit.h: Regenerated.
50814         * lib/unictype/mirror.h: Regenerated.
50815         * lib/unictype/numeric.h: Regenerated.
50816         * lib/unictype/pr_alphabetic.h: Regenerated.
50817         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50818         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50819         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50820         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50821         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50822         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50823         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50824         * lib/unictype/pr_combining.h: Regenerated.
50825         * lib/unictype/pr_dash.h: Regenerated.
50826         * lib/unictype/pr_decimal_digit.h: Regenerated.
50827         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50828         * lib/unictype/pr_deprecated.h: Regenerated.
50829         * lib/unictype/pr_diacritic.h: Regenerated.
50830         * lib/unictype/pr_extender.h: Regenerated.
50831         * lib/unictype/pr_format_control.h: Regenerated.
50832         * lib/unictype/pr_grapheme_base.h: Regenerated.
50833         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50834         * lib/unictype/pr_grapheme_link.h: Regenerated.
50835         * lib/unictype/pr_id_continue.h: Regenerated.
50836         * lib/unictype/pr_id_start.h: Regenerated.
50837         * lib/unictype/pr_ideographic.h: Regenerated.
50838         * lib/unictype/pr_ignorable_control.h: Regenerated.
50839         * lib/unictype/pr_lowercase.h: Regenerated.
50840         * lib/unictype/pr_math.h: Regenerated.
50841         * lib/unictype/pr_numeric.h: Regenerated.
50842         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50843         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50844         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50845         * lib/unictype/pr_other_id_continue.h: Regenerated.
50846         * lib/unictype/pr_other_lowercase.h: Regenerated.
50847         * lib/unictype/pr_other_math.h: Regenerated.
50848         * lib/unictype/pr_punctuation.h: Regenerated.
50849         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50850         * lib/unictype/pr_soft_dotted.h: Regenerated.
50851         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50852         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50853         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50854         * lib/unictype/pr_uppercase.h: Regenerated.
50855         * lib/unictype/pr_xid_continue.h: Regenerated.
50856         * lib/unictype/pr_xid_start.h: Regenerated.
50857         * lib/unictype/pr_zero_width.h: Regenerated.
50858         * lib/unictype/scripts.h: Regenerated.
50859         * lib/unictype/scripts_byname.gperf: Regenerated.
50860         * lib/unictype/sy_java_ident.h: Regenerated.
50861         * lib/unilbrk/lbrkprop1.h: Regenerated.
50862         * lib/unilbrk/lbrkprop2.h: Regenerated.
50863         * tests/unictype/test-categ_C.c: Regenerated.
50864         * tests/unictype/test-categ_Cf.c: Regenerated.
50865         * tests/unictype/test-categ_Cn.c: Regenerated.
50866         * tests/unictype/test-categ_L.c: Regenerated.
50867         * tests/unictype/test-categ_Ll.c: Regenerated.
50868         * tests/unictype/test-categ_Lm.c: Regenerated.
50869         * tests/unictype/test-categ_Lo.c: Regenerated.
50870         * tests/unictype/test-categ_Lu.c: Regenerated.
50871         * tests/unictype/test-categ_M.c: Regenerated.
50872         * tests/unictype/test-categ_Mc.c: Regenerated.
50873         * tests/unictype/test-categ_Me.c: Regenerated.
50874         * tests/unictype/test-categ_Mn.c: Regenerated.
50875         * tests/unictype/test-categ_N.c: Regenerated.
50876         * tests/unictype/test-categ_Nd.c: Regenerated.
50877         * tests/unictype/test-categ_Nl.c: Regenerated.
50878         * tests/unictype/test-categ_No.c: Regenerated.
50879         * tests/unictype/test-categ_P.c: Regenerated.
50880         * tests/unictype/test-categ_Pd.c: Regenerated.
50881         * tests/unictype/test-categ_Pe.c: Regenerated.
50882         * tests/unictype/test-categ_Pf.c: Regenerated.
50883         * tests/unictype/test-categ_Pi.c: Regenerated.
50884         * tests/unictype/test-categ_Po.c: Regenerated.
50885         * tests/unictype/test-categ_Ps.c: Regenerated.
50886         * tests/unictype/test-categ_S.c: Regenerated.
50887         * tests/unictype/test-categ_Sk.c: Regenerated.
50888         * tests/unictype/test-categ_Sm.c: Regenerated.
50889         * tests/unictype/test-categ_So.c: Regenerated.
50890         * tests/unictype/test-ctype_alnum.c: Regenerated.
50891         * tests/unictype/test-ctype_alpha.c: Regenerated.
50892         * tests/unictype/test-ctype_graph.c: Regenerated.
50893         * tests/unictype/test-ctype_lower.c: Regenerated.
50894         * tests/unictype/test-ctype_print.c: Regenerated.
50895         * tests/unictype/test-ctype_punct.c: Regenerated.
50896         * tests/unictype/test-ctype_upper.c: Regenerated.
50897         * tests/unictype/test-decdigit.h: Regenerated.
50898         * tests/unictype/test-digit.h: Regenerated.
50899         * tests/unictype/test-numeric.h: Regenerated.
50900         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50901         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50902         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50903         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50904         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50905         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50906         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50907         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50908         * tests/unictype/test-pr_combining.c: Regenerated.
50909         * tests/unictype/test-pr_dash.c: Regenerated.
50910         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50911         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50912         * tests/unictype/test-pr_deprecated.c: Regenerated.
50913         * tests/unictype/test-pr_diacritic.c: Regenerated.
50914         * tests/unictype/test-pr_extender.c: Regenerated.
50915         * tests/unictype/test-pr_format_control.c: Regenerated.
50916         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50917         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50918         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50919         * tests/unictype/test-pr_id_continue.c: Regenerated.
50920         * tests/unictype/test-pr_id_start.c: Regenerated.
50921         * tests/unictype/test-pr_ideographic.c: Regenerated.
50922         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50923         * tests/unictype/test-pr_lowercase.c: Regenerated.
50924         * tests/unictype/test-pr_math.c: Regenerated.
50925         * tests/unictype/test-pr_numeric.c: Regenerated.
50926         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50927         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50928         Regenerated.
50929         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50930         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50931         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50932         * tests/unictype/test-pr_other_math.c: Regenerated.
50933         * tests/unictype/test-pr_punctuation.c: Regenerated.
50934         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50935         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50936         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50937         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50938         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50939         * tests/unictype/test-pr_uppercase.c: Regenerated.
50940         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50941         * tests/unictype/test-pr_xid_start.c: Regenerated.
50942         * tests/unictype/test-pr_zero_width.c: Regenerated.
50943
50944         Update to Unicode 5.1.0.
50945         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50946         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50947         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50948         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50949         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50950         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50951         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50952         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50953         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50954         (nonspacing_table_ind): Update.
50955         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50956
50957         Update to Unicode 5.1.0.
50958         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50959         code transform.
50960         * lib/uniname/uniname.c (unicode_character_name,
50961         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50962         * lib/uniname/uninames.h: Regenerated.
50963         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50964
50965 2009-02-07  Bruno Haible  <bruno@clisp.org>
50966
50967         Merge gen-ctype and gen-lbrk into a single program.
50968         * lib/gen-uni-tables.c: New file, incorporating
50969         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50970         Add directory prefixes to the names of the generated files.
50971         * lib/unictype/gen-ctype.c: Remove file.
50972         * lib/unilbrk/gen-lbrk.c: Remove file.
50973         * modules/gen-uni-tables: New file.
50974         * modules/unictype/gen-ctype: Remove file.
50975         * modules/unilbrk/gen-lbrk: Remove file.
50976
50977 2009-02-07  Bruno Haible  <bruno@clisp.org>
50978
50979         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50980
50981         New module 'unistr/u32-strcoll'.
50982         * modules/unistr/u32-strcoll: New file.
50983         * lib/unistr/u32-strcoll.c: New file.
50984
50985         New module 'unistr/u16-strcoll'.
50986         * modules/unistr/u16-strcoll: New file.
50987         * lib/unistr/u16-strcoll.c: New file.
50988
50989         New module 'unistr/u8-strcoll'.
50990         * modules/unistr/u8-strcoll: New file.
50991         * lib/unistr/u8-strcoll.c: New file.
50992         * lib/unistr/u-strcoll.h: New file.
50993
50994 2009-02-07  Bruno Haible  <bruno@clisp.org>
50995
50996         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50997         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50998         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50999         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
51000         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
51001         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
51002
51003 2009-02-07  Bruno Haible  <bruno@clisp.org>
51004
51005         Make 64-bit clean.
51006         * lib/unictype/gen-ctype.c (output_predicate, output_category,
51007         output_combclass, output_bidi_category, output_decimal_digit,
51008         output_digit, output_numeric, output_mirror, output_scripts,
51009         output_ident_category): Use proper width specifier in format strings.
51010
51011 2009-02-07  Bruno Haible  <bruno@clisp.org>
51012
51013         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
51014         failure behaviour.
51015
51016 2009-02-07  Jim Meyering  <meyering@redhat.com>
51017
51018         regex: avoid compilation failure with upcoming gcc-4.4
51019         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
51020         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
51021         "... error: integer overflow in preprocessor expression".
51022
51023 2009-02-05  Ben Pfaff  <blp@gnu.org>
51024
51025         Fix link errors on Windows when close module is used.
51026         * modules/close: Add $(LIB_CLOSE) to Link section.
51027         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
51028         $(LIB_CLOSE) on Windows.
51029
51030 2009-02-05  Jim Meyering  <meyering@redhat.com>
51031
51032         still avoid unused-parameter warnings, but do it cleanly
51033         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
51034         (get_fs_usage): Cast to void instead.
51035         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
51036         (dev_from_mount_options, read_file_system_list): Cast to void.
51037         Prompted by Bruno Haible.
51038
51039 2009-02-04  Jim Meyering  <meyering@redhat.com>
51040
51041         fsusage.c: correct copyright year
51042         * lib/fsusage.c: Reflect year in which the change is pushed into
51043
51044         avoid misc. warnings
51045         * lib/fsusage.c (UNUSED_PARAM): Define.
51046         (get_fs_usage): Mark parameter "disk" as unused.
51047         * lib/getugroups.c (getgrent): Use "void" in prototype.
51048         * lib/mountlist.c: Mark unused parameters.
51049         (read_file_system_list): Declare a local with "const".
51050         * lib/nanosleep.c (getnow): Declare static.
51051         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
51052
51053         dirfd: set errno upon failure
51054         * lib/dirfd.c: Include <errno.h>.
51055         Set errno to ENOTSUP when returning -1.
51056         * modules/dirfd (Depends-on): Add errno.
51057         Suggested by John Kodis <kodis@comcast.net>.
51058
51059 2009-02-01  Bruno Haible  <bruno@clisp.org>
51060
51061         Don't assume sizeof (long) >= sizeof (void *).
51062         * lib/memcmp.c: Include stdint.h.
51063         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
51064         srcp2 to 'const byte *'.
51065         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
51066         types to uintptr_t.
51067         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
51068         * modules/memcmp (Depends-on): Add stdint.
51069         Reported by Ozkan Sezer <sezeroz@gmail.com>.
51070
51071 2009-01-30  Eric Blake  <ebb9@byu.net>
51072
51073         fix more require-before-expand issues
51074         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
51075         expand, AC_PROG_AWK.
51076         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
51077
51078 2009-01-28  Eric Blake  <ebb9@byu.net>
51079
51080         version-etc: use consistent URL formatting
51081         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
51082         Improve formatting.  Use fputs for string without %.
51083
51084 2009-01-28  Jim Meyering  <meyering@redhat.com>
51085
51086         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
51087         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
51088         "underquoted definition of NAME" from autoconf-2.59.
51089
51090 2009-01-28  Bruno Haible  <bruno@clisp.org>
51091
51092         * doc/gnulib.texi: Add "Obsolete modules" to index.
51093
51094 2009-01-28  Jim Meyering  <meyering@redhat.com>
51095
51096         useless-if-before-free: recognize more variants
51097         * build-aux/useless-if-before-free: Also recognize e.g.,
51098         if (NULL != p) free (p);
51099
51100 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
51101
51102         test-getaddrinfo: skip (don't fail) this test when there's no network
51103         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
51104         on the presumption that it means you lack network access.
51105
51106 2009-01-26  Jim Meyering  <meyering@redhat.com>
51107
51108         fflush: avoid warnings on modern systems
51109         * lib/fflush.c (rpl_fflush): Move declarations of locals,
51110         pos and result, into scopes where they're used.
51111
51112 2009-01-26  Eric Blake  <ebb9@byu.net>
51113
51114         Silence warning reintroduced by recent extensions patch.
51115         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
51116         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
51117         autoconf.
51118
51119         Backport improved autoconf semantics of AC_DEFUN_ONCE.
51120         * m4/00gnulib.m4: New file.
51121         * gnulib-tool (func_get_filelist): Always use it.
51122         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
51123         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
51124
51125 2009-01-25  Bruno Haible  <bruno@clisp.org>
51126
51127         Make test-quotearg work on MacOS X and AIX.
51128         * tests/test-quotearg.sh: New file.
51129         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
51130         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
51131         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
51132         include <libintl.h>.
51133         (fake_locale): Remove variable.
51134         (gettext, dgettext, dcgettext): Remove functions.
51135         (main): Instead of setting a fake locale, set a real locale. Call
51136         textdomain and bindtextdomain.
51137         * modules/quotearg-tests (Files): Add the new files.
51138         (Depends-on): Add gettext, setenv, unsetenv.
51139         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
51140         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
51141         Augment TESTS_ENVIRONMENT.
51142
51143 2009-01-25  Bruno Haible  <bruno@clisp.org>
51144
51145         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
51146         fr_FR.ISO8859-1 locale on MacOS X.
51147         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
51148         ja_JP.eucJP locale on MacOS X.
51149         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
51150         zh_CN.GB18030 locale on MacOS X.
51151
51152 2009-01-25  Bruno Haible  <bruno@clisp.org>
51153
51154         Avoid link errors on MacOS X 10.3.
51155         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
51156         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
51157
51158 2009-01-25  Bruno Haible  <bruno@clisp.org>
51159
51160         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51161         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
51162         * modules/pipe (Files): Remove m4/posix_spawn.m4.
51163         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51164         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
51165         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51166         posix_spawnattr_init, posix_spawnattr_setsigmask,
51167         posix_spawnattr_setflags, posix_spawnattr_destroy.
51168
51169         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
51170         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
51171         * modules/execute (Files): Remove m4/posix_spawn.m4.
51172         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
51173         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
51174         posix_spawnattr_init, posix_spawnattr_setsigmask,
51175         posix_spawnattr_setflags, posix_spawnattr_destroy.
51176
51177 2009-01-25  Bruno Haible  <bruno@clisp.org>
51178
51179         * lib/glthread/threadlib.c: Include <stdlib.h>.
51180
51181 2009-01-25  Bruno Haible  <bruno@clisp.org>
51182
51183         * lib/glthread/threadlib.c (dummy): New declaration.
51184
51185 2009-01-25  Bruno Haible  <bruno@clisp.org>
51186
51187         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
51188         multibyte characters also for the GB18030 encoding. Don't crash when
51189         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
51190
51191 2009-01-25  Bruno Haible  <bruno@clisp.org>
51192
51193         Avoid redefining 'struct random_data' on OSF/1 5.1.
51194         * lib/stdlib.in.h: Include <random.h> if it exists.
51195         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
51196         HAVE_RANDOM_H. Include <random.h> when testing whether
51197         'struct random_data' exists.
51198         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
51199
51200 2009-01-25  Bruno Haible  <bruno@clisp.org>
51201
51202         Don't install charset.alias on MacOS X >= 10.3.
51203         * lib/localcharset.c (DARWIN7): New macro.
51204         (get_charset_aliases): Hardcode the result for Darwin7.
51205         * modules/localcharset (install-exec-local): Don't install
51206         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
51207
51208 2009-01-25  Bruno Haible  <bruno@clisp.org>
51209
51210         Don't install charset.alias on mingw and Cygwin.
51211         * modules/localcharset (install-exec-local): Don't install
51212         charset.alias on mingw and Cygwin, if the file does not yet exist.
51213         The result for these platforms is hardcoded in localcharset.c.
51214
51215 2009-01-25  Bruno Haible  <bruno@clisp.org>
51216
51217         Make it possible again to use AC_GNU_SOURCE together with gnulib.
51218         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
51219         before requiring AC_USE_SYSTEM_EXTENSIONS.
51220
51221 2009-01-25  Jim Meyering  <meyering@redhat.com>
51222
51223         c-strtod: avoid warnings
51224         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
51225         "assignment discards qualifiers from pointer target type" warnings.
51226
51227 2009-01-24  Bruno Haible  <bruno@clisp.org>
51228
51229         Add support for non-UTF-8 locales on MacOS X.
51230         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
51231         canonical encodings. For Darwin 7 and newer, don't map traditional
51232         encodings to UTF-8.
51233         Reported by Vincent Lefevre <vincent@vinc17.org>
51234         at <http://savannah.gnu.org/bugs/?25235>.
51235
51236 2009-01-24  Bruno Haible  <bruno@clisp.org>
51237
51238         * doc/gnulib.texi (Obsolete modules): New section.
51239         Reported by Mike Frysinger <vapier@gentoo.org>.
51240
51241 2009-01-24  Bruno Haible  <bruno@clisp.org>
51242
51243         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
51244         (%.dvi): New rule.
51245
51246 2009-01-24  Bruno Haible  <bruno@clisp.org>
51247
51248         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
51249         Reported by Eric Blake.
51250
51251 2009-01-24  Bruno Haible  <bruno@clisp.org>
51252
51253         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
51254         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
51255         Reported by Gary V. Vaughan <gary@gnu.org>.
51256
51257 2009-01-24  Bruno Haible  <bruno@clisp.org>
51258
51259         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
51260
51261 2009-01-23  Bruno Haible  <bruno@clisp.org>
51262
51263         Make c-strtod, c-strtold usable in libraries.
51264         * lib/c-strtod.c: Include string.h instead of xalloc.h.
51265         (C_STRTOD): Call strdup instead of xstrdup.
51266         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
51267         * modules/c-strtold (Depends-on): Likewise.
51268         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
51269         * NEWS: Mention the change.
51270         Reported by Michael Gold <mgold@ncf.ca>.
51271
51272 2009-01-23  Jim Meyering  <meyering@redhat.com>
51273
51274         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
51275         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
51276         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
51277
51278 2009-01-23  Simon Josefsson  <simon@josefsson.org>
51279
51280         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
51281         GNU CoreUtils.
51282         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
51283         * modules/version-etc (Description): Update.
51284
51285 2009-01-22  Bruno Haible  <bruno@clisp.org>
51286
51287         Cache the C locale object.
51288         * lib/c-strtod.c (c_locale_cache): New variable.
51289         (c_locale): New function.
51290         (C_STRTOD): Use it, and don't call freelocale.
51291         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
51292         Suggested by Paolo Bonzini.
51293
51294 2009-01-21  Bruno Haible  <bruno@clisp.org>
51295
51296         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
51297         conditions other than overflow.
51298
51299 2009-01-21  Bruno Haible  <bruno@clisp.org>
51300
51301         * lib/c-strtod.c: Include errno.h.
51302         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
51303         value from STRTOD_L and STRTOD.
51304
51305 2009-01-21  Bruno Haible  <bruno@clisp.org>
51306         and Jim Meyering  <meyering@redhat.com>
51307
51308         nanosleep: skip configure test (fail it) for apple universal builds
51309         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
51310         universal builds, assume that nanosleep does not work.
51311         * modules/nanosleep (Depends-on): Add multiarch.
51312
51313         mktime: skip configure test (fail it) for apple universal builds
51314         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
51315         universal builds, assume that mktime does not work.
51316         * modules/mktime (Depends-on): Add multiarch.
51317
51318 2009-01-21  Eric Blake  <ebb9@byu.net>
51319
51320         multiarch: avoid expand-before-require warning
51321         * modules/multiarch (configure.ac): Require, rather than expand,
51322         gl_MULTIARCH.
51323         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
51324         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
51325         enforce that all clients require it.  Partial reversion of
51326         2008-12-29 patch.
51327
51328         error: avoid expand-before-require warning
51329         * modules/errno (configure.ac): Require, rather than expand,
51330         gl_HEADER_ERRNO_H.
51331         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
51332         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
51333         enforce that all clients require it.
51334
51335         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
51336         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
51337         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
51338         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
51339
51340 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
51341
51342         Revert:
51343         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51344
51345         regex: do not depend on obsolete modules.
51346         * modules/regex: Remove memcmp and memmove.
51347
51348 2009-01-20  Bruno Haible  <bruno@clisp.org>
51349
51350         Make the 'link' module link on Windows NT 4.
51351         * lib/link.c (_WIN32_WINNT): Don't define.
51352         (CreateHardLinkFuncType): New type.
51353         (CreateHardLinkFunc, initialized): New variables.
51354         (initialize): New function.
51355         (link): Invoke CreateHardLink indirectly through the function pointer.
51356
51357 2009-01-20  Bruno Haible  <bruno@clisp.org>
51358
51359         Fix compilation failure on mingw.
51360         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
51361
51362 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
51363
51364         * doc/c-strtod.texi: Mention a couple of restrictions.
51365
51366 2009-01-20  Jim Meyering  <meyering@redhat.com>
51367
51368         gettimeofday: move more declarations out of functions
51369         * lib/gettimeofday.c: Move extern declarations of tzset and
51370         gmtime out of containing functions.  Prompted by Bruno Haible.
51371
51372 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
51373
51374         regex: do not depend on obsolete modules.
51375         * modules/regex: Remove memcmp and memmove.
51376
51377 2009-01-19  Bruno Haible  <bruno@clisp.org>
51378
51379         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51380         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
51381         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51382         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
51383         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
51384
51385 2009-01-19  Bruno Haible  <bruno@clisp.org>
51386
51387         * tests/test-link.c: Include <errno.h>.
51388         (main): Exit with code 77 when a hard link cannot be created due to
51389         the file system.
51390         * tests/test-link.sh: Skip test when a hard link cannot be created due
51391         to the file system.
51392         Suggested by Eric Blake.
51393
51394 2009-01-19  Martin Lambers  <marlam@marlam.de>
51395
51396         * modules/link-tests: New file.
51397         * tests/test-link.sh: New file.
51398         * tests/test-link.c: New file.
51399
51400 2009-01-19  Eric Blake  <ebb9@byu.net>
51401
51402         doc: mention another function added in cygwin 1.7.0
51403         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
51404         Another new function in cygwin 1.7.
51405
51406 2009-01-19  Bruno Haible  <bruno@clisp.org>
51407
51408         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
51409         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
51410         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
51411         gl_BIGENDIAN, not AC_C_BIGENDIAN.
51412         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
51413         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
51414         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
51415         * m4/md4.m4 (gl_MD4): Likewise.
51416         * m4/md5.m4 (gl_MD5): Likewise.
51417         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
51418         * m4/sha1.m4 (gl_SHA1): Likewise.
51419         * m4/sha256.m4 (gl_SHA256): Likewise.
51420         * m4/sha512.m4 (gl_SHA512): Likewise.
51421
51422 2009-01-19  Bruno Haible  <bruno@clisp.org>
51423
51424         * modules/uniname/uniname-tests (Depends-on): Add progname.
51425         * tests/uniname/test-uninames.c: Include progname.h.
51426         (main): Call set_program_name.
51427
51428         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
51429         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
51430         (main): Call set_program_name.
51431
51432         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
51433         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
51434         (main): Call set_program_name.
51435
51436         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
51437         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
51438         (main): Call set_program_name.
51439
51440         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
51441         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
51442         (main): Call set_program_name.
51443
51444         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
51445         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
51446         (main): Call set_program_name.
51447
51448         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
51449         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
51450         (main): Call set_program_name.
51451
51452         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
51453         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
51454         (main): Call set_program_name.
51455
51456         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
51457         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
51458         (main): Call set_program_name.
51459
51460 2009-01-19  Eric Blake  <ebb9@byu.net>
51461
51462         test-unistd: test previous patch
51463         * tests/test-unistd.c: Test *_FILENO macros.
51464
51465         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
51466         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51467         Guarantee a definition.
51468         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
51469         * modules/unistd-safer (Depends-on): Add dependency on unistd.
51470         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
51471         * lib/dup-safer.c (STDERR_FILENO): Likewise.
51472         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51473         Likewise.
51474         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
51475         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
51476         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
51477         Likewise.
51478         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
51479         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
51480         (STDERR_FILENO): Likewise.
51481         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
51482         (STDERR_FILENO): Likewise.
51483         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
51484         (STDERR_FILENO): Likewise.
51485         Reported by Elbert Pol.
51486
51487 2009-01-19  Eric Blake  <ebb9@byu.net>
51488
51489         doc: mention more functions added in cygwin 1.7.0
51490         * doc/posix-functions/abort.texi (abort): Update wording related
51491         to cygwin.
51492         * doc/posix-functions/daylight.texi (daylight): Likewise.
51493         * doc/posix-functions/optarg.texi (optarg): Likewise.
51494         * doc/posix-functions/optarg.texi (opterr): Likewise.
51495         * doc/posix-functions/optarg.texi (optind): Likewise.
51496         * doc/posix-functions/optarg.texi (optopt): Likewise.
51497         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
51498         worked in 1.5.x, and was withdrawn in 1.7.
51499         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
51500         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
51501         cygwin versions.
51502         * doc/posix-functions/perror.texi (perror): Likewise.
51503         * doc/posix-functions/printf.texi (printf): Likewise.
51504         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
51505         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
51506         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
51507         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
51508         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51509         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
51510         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
51511         Likewise.
51512         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
51513         Likewise.
51514         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
51515         this function.
51516         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
51517         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
51518         Likewise.
51519         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
51520         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
51521         * doc/posix-functions/confstr.texi (confstr): Likewise.
51522         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
51523         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
51524         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
51525         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
51526         * doc/posix-functions/fputws.texi (fputws): Likewise.
51527         * doc/posix-functions/fwide.texi (fwide): Likewise.
51528         * doc/posix-functions/getwc.texi (getwc): Likewise.
51529         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
51530         * doc/posix-functions/putwc.texi (putwc): Likewise.
51531         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
51532         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
51533         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
51534         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
51535         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
51536         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
51537         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
51538         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
51539         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
51540         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
51541         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
51542
51543 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51544
51545         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
51546         * lib/ioctl.c: Include <sys/ioctl.h>.
51547
51548 2009-01-19  Simon Josefsson  <simon@josefsson.org>
51549
51550         * modules/getdate-tests (Depends-on): Add progname.
51551         * tests/test-getdate.c: Use progname module, to avoid link errors
51552         on non-glibc systems.
51553
51554 2009-01-18  Simon Josefsson  <simon@josefsson.org>
51555
51556         * modules/filenamecat-tests (Depends-on): Add progname.
51557         * modules/fstrcmp-tests (Depends-on): Likewise.
51558
51559         * tests/test-filenamecat.c: Use progname module, to avoid link
51560         errors on non-glibc systems.
51561         * tests/test-fstrcmp.c: Likewise.
51562
51563 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
51564
51565         gettimeofday: avoid warning: nested extern declaration of 'localtime'
51566         * lib/gettimeofday.c: Move extern declaration out of function.
51567
51568 2009-01-18  Bruno Haible  <bruno@clisp.org>
51569
51570         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
51571         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
51572         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
51573
51574 2009-01-18  Bruno Haible  <bruno@clisp.org>
51575
51576         * lib/strftime.c (MEMPCPY): Remove unused macro.
51577         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
51578
51579 2009-01-18  Martin Lambers  <marlam@marlam.de>
51580
51581         New module 'link'.
51582         * lib/unistd.in.h (link): New declaration.
51583         * lib/link.c: New file.
51584         * m4/link.m4: New file.
51585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
51586         HAVE_LINK.
51587         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
51588         * modules/link: New file.
51589         * doc/posix-functions/link.texi: Mention the new module.
51590
51591 2009-01-18  Bruno Haible  <bruno@clisp.org>
51592
51593         * tests/test-avltree_list.c (main): Call set_program_name.
51594         * tests/test-avltree_oset.c (main): Likewise.
51595         * tests/test-obstack-printf.c: Include progname.h.
51596         (main): Call set_program_name.
51597         * tests/test-quotearg.c: Include progname.h.
51598         (main): Call set_program_name.
51599         * tests/test-xmemdup0.c: Include progname.h.
51600         (main): Call set_program_name.
51601
51602 2009-01-18  Bruno Haible  <bruno@clisp.org>
51603
51604         New module 'alphasort'.
51605         * lib/dirent.in.h (alphasort): New declaration.
51606         * lib/alphasort.c: New file, from glibc with modifications.
51607         * m4/alphasort.m4: New file.
51608         * modules/alphasort: New file.
51609         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
51610         HAVE_ALPHASORT.
51611         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
51612         HAVE_ALPHASORT.
51613         * doc/posix-functions/alphasort.texi: Mention the new module and the
51614         portability problems.
51615
51616 2009-01-18  Bruno Haible  <bruno@clisp.org>
51617
51618         New module 'scandir'.
51619         * lib/dirent.in.h (scandir): New declaration.
51620         * lib/scandir.c: New file, from glibc with modifications.
51621         * m4/scandir.m4: New file.
51622         * modules/scandir: New file.
51623         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
51624         HAVE_SCANDIR.
51625         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
51626         HAVE_SCANDIR.
51627         * doc/posix-functions/scandir.texi: Mention the new module and the
51628         portability problems.
51629
51630 2009-01-17  Bruno Haible  <bruno@clisp.org>
51631
51632         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
51633         Update documentation.
51634         (func_remove_suffix): Escape all dots in the suffix. Update
51635         documentation.
51636         (func_filter_filelist): Update documentation.
51637         Reported by Ralf Wildenhues.
51638
51639 2009-01-17  Bruno Haible  <bruno@clisp.org>
51640
51641         * modules/dprintf-posix-tests: New file.
51642         * tests/test-dprintf-posix.sh: New file.
51643         * tests/test-dprintf-posix.c: New file.
51644
51645         New modules 'dprintf', 'dprintf-posix'.
51646         * lib/stdio.in.h (dprintf): New declaration.
51647         * lib/dprintf.c: New file.
51648         * m4/dprintf.m4: New file.
51649         * m4/dprintf-posix.m4: New file.
51650         * modules/dprintf: New file.
51651         * modules/dprintf-posix: New file.
51652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
51653         HAVE_DPRINTF, REPLACE_DPRINTF.
51654         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
51655         HAVE_DPRINTF, REPLACE_DPRINTF.
51656         * doc/posix-functions/dprintf.texi: Mention the new modules.
51657
51658 2009-01-17  Bruno Haible  <bruno@clisp.org>
51659
51660         * modules/vdprintf-posix-tests: New file.
51661         * tests/test-vdprintf-posix.sh: New file.
51662         * tests/test-vdprintf-posix.c: New file.
51663
51664         New modules 'vdprintf', 'vdprintf-posix'.
51665         * lib/stdio.in.h (vdprintf): New declaration.
51666         * lib/vdprintf.c: New file.
51667         * m4/vdprintf.m4: New file.
51668         * m4/vdprintf-posix.m4: New file.
51669         * modules/vdprintf: New file.
51670         * modules/vdprintf-posix: New file.
51671         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
51672         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51673         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
51674         HAVE_VDPRINTF, REPLACE_VDPRINTF.
51675         * doc/posix-functions/vdprintf.texi: Mention the new modules.
51676
51677 2009-01-17  Bruno Haible  <bruno@clisp.org>
51678
51679         Fix replacement of fopen on mingw.
51680         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
51681         mingw.
51682
51683 2009-01-17  Bruno Haible  <bruno@clisp.org>
51684
51685         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
51686         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
51687
51688 2009-01-17  Bruno Haible  <bruno@clisp.org>
51689
51690         Avoid test-fflush2.sh failure on mingw.
51691         * tests/test-fflush2.c: Include binary-io.h.
51692         (main): Put standard input into binary mode.
51693         * modules/fflush-tests (Depends-on): Add binary-io.
51694
51695 2009-01-17  Bruno Haible  <bruno@clisp.org>
51696
51697         * lib/wchar.in.h: In another particular situation, include only the
51698         system's <wchar.h> file.
51699         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
51700         Reported by Albert Chin-A-Young <china@thewrittenword.com>
51701         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
51702
51703 2009-01-17  Bruno Haible  <bruno@clisp.org>
51704
51705         Support for stripping executables in --enable-relocatable.
51706         * build-aux/install-reloc: Expect one more argument, or an environment
51707         variable RELOC_STRIP_PROG. If set, strip the destination program and
51708         its wrapper.
51709         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
51710         RELOC_STRIP_PROG.
51711         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
51712         to set RELOCATABLE_STRIP.
51713         * NEWS: Mention the new Makefile requirement.
51714
51715 2009-01-17  Bruno Haible  <bruno@clisp.org>
51716
51717         * build-aux/install-reloc: Remove debugging information left over by
51718         C compiler on MacOS X.
51719
51720 2009-01-17  Bruno Haible  <bruno@clisp.org>
51721
51722         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
51723         * lib/progreloc.c (find_executable): Fix type of pointer passed to
51724         _NSGetExecutablePath.
51725
51726 2009-01-16  Jim Meyering  <meyering@redhat.com>
51727
51728         strerror: avoid warnings about discarding "const"
51729         * lib/strerror.c (rpl_strerror): Instead of returning a const
51730         string from each and every "case", use a variable, and add a single
51731         cast after the switch.
51732
51733 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
51734
51735         * lib/arpa_inet.in.h: Add extern "C" block for C++.
51736
51737 2009-01-16  Bruno Haible  <bruno@clisp.org>
51738
51739         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
51740         array initializer syntax that also works in C++ mode.
51741         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51742
51743 2009-01-16  Jim Meyering  <meyering@redhat.com>
51744
51745         poll: suppress a warning
51746         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
51747         to ignore "...unsigned expression < 0 is always false" warnings.
51748
51749 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
51750
51751         poll: remove declarations of unused variables
51752         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
51753         sockbuf and optlen.
51754
51755 2009-01-15  Bruno Haible  <bruno@clisp.org>
51756
51757         Make fflush-after-ungetc POSIX compliant on BSD systems.
51758         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
51759         (clear_ungetc_buffer): Implement also for other systems.
51760         (rpl_fflush): On glibc systems, invoke
51761         clear_ungetc_buffer_preserving_position. Otherwise, invoke
51762         clear_ungetc_buffer after fetching the stream's position, not before.
51763
51764 2009-01-15  Bruno Haible  <bruno@clisp.org>
51765
51766         Make fflush-after-ungetc POSIX compliant on glibc systems.
51767         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
51768         after ungetc.
51769         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
51770         (rpl_fflush): On glibc systems, simply call the system's fflush
51771         function after clearing the ungetc buffer.
51772         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
51773         Instead, lseek only to the end of file, then use the system's fseeko
51774         for the rest. On glibc systems, reset the EOF indicator bit.
51775
51776 2009-01-15  Jim Meyering  <meyering@redhat.com>
51777
51778         openmp.m4: revert quote-adding change, for portability to older autoconf
51779         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
51780         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
51781         Simon Josefsson noticed the problem when using autoconf-2.61.
51782
51783 2009-01-15  Bruno Haible  <bruno@clisp.org>
51784
51785         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
51786         * tests/test-fflush2.c (ASSERT): Always fail.
51787         (main): Add two tests for fflush() after ungetc(), taking into account
51788         the Austin Group's clarification.
51789         Suggested by Eric Blake.
51790
51791 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
51792
51793         mktime.m4: remove K&R-style function prototypes
51794         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
51795         for the Sun C++ compiler.
51796
51797 2009-01-14  Bruno Haible  <bruno@clisp.org>
51798
51799         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
51800         while including <wchar.h>.
51801         * lib/wchar.in.h: In two particular situations on HP-UX, include only
51802         the system's <wchar.h> file.
51803         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51804
51805 2009-01-14  Bruno Haible  <bruno@clisp.org>
51806
51807         * m4/csharp.m4: Don't mention gettext on the serial number line.
51808         * m4/csharpexec.m4: Likewise.
51809         * m4/eaccess.m4: Likewise.
51810         * m4/javaexec.m4: Likewise.
51811         * m4/sig_atomic_t.m4: Likewise.
51812         * m4/tmpdir.m4: Likewise.
51813         * m4/intldir.m4: Bump gettext version.
51814         * m4/lib-ld.m4: Likewise.
51815
51816 2009-01-14  Bruno Haible  <bruno@clisp.org>
51817
51818         * lib/progname.c (set_program_name): Add more comments.
51819         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51820
51821 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51822
51823         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51824         were sys/stat.h does not define it.
51825
51826 2009-01-14  Jim Meyering  <meyering@redhat.com>
51827
51828         many *.m4 files: improve m4 quoting
51829         99% of this change was performed by running the following commands:
51830         git ls-files | grep '\.m4$' | xargs perl -pi \
51831           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51832           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51833           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51834           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51835         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51836         The remainder were to add Copyright dates, increment serial numbers,
51837         undo some changes in comments, exclude m4/intl.m4, and add quotes
51838         around the "1" in ",1" where the unusual spacing prohibited the
51839         above regexps from doing the job.  For more details, see
51840         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51841         * m4/acl.m4: Modified.
51842         * m4/afs.m4: Likewise.
51843         * m4/alloca.m4: Likewise.
51844         * m4/argp.m4: Likewise.
51845         * m4/argz.m4: Likewise.
51846         * m4/atexit.m4: Likewise.
51847         * m4/bison-i18n.m4: Likewise.
51848         * m4/bison.m4: Likewise.
51849         * m4/byteswap.m4: Likewise.
51850         * m4/c-stack.m4: Likewise.
51851         * m4/c-strtod.m4: Likewise.
51852         * m4/calloc.m4: Likewise.
51853         * m4/canonicalize-lgpl.m4: Likewise.
51854         * m4/chown.m4: Likewise.
51855         * m4/clock_time.m4: Likewise.
51856         * m4/codeset.m4: Likewise.
51857         * m4/copy-file.m4: Likewise.
51858         * m4/csharp.m4: Likewise.
51859         * m4/csharpcomp.m4: Likewise.
51860         * m4/csharpexec.m4: Likewise.
51861         * m4/d-ino.m4: Likewise.
51862         * m4/d-type.m4: Likewise.
51863         * m4/dirfd.m4: Likewise.
51864         * m4/double-slash-root.m4: Likewise.
51865         * m4/eaccess.m4: Likewise.
51866         * m4/eealloc.m4: Likewise.
51867         * m4/environ.m4: Likewise.
51868         * m4/errno_h.m4: Likewise.
51869         * m4/euidaccess.m4: Likewise.
51870         * m4/execute.m4: Likewise.
51871         * m4/fatal-signal.m4: Likewise.
51872         * m4/fchdir.m4: Likewise.
51873         * m4/fcntl_h.m4: Likewise.
51874         * m4/fileblocks.m4: Likewise.
51875         * m4/filenamecat.m4: Likewise.
51876         * m4/findprog.m4: Likewise.
51877         * m4/flexmember.m4: Likewise.
51878         * m4/fnmatch.m4: Likewise.
51879         * m4/fopen.m4: Likewise.
51880         * m4/fpending.m4: Likewise.
51881         * m4/fprintf-posix.m4: Likewise.
51882         * m4/free.m4: Likewise.
51883         * m4/frexp.m4: Likewise.
51884         * m4/frexpl.m4: Likewise.
51885         * m4/fsusage.m4: Likewise.
51886         * m4/ftruncate.m4: Likewise.
51887         * m4/gc-camellia.m4: Likewise.
51888         * m4/gc-random.m4: Likewise.
51889         * m4/gc.m4: Likewise.
51890         * m4/getaddrinfo.m4: Likewise.
51891         * m4/getcwd-abort-bug.m4: Likewise.
51892         * m4/getcwd-path-max.m4: Likewise.
51893         * m4/getdate.m4: Likewise.
51894         * m4/getdomainname.m4: Likewise.
51895         * m4/getgroups.m4: Likewise.
51896         * m4/gethostname.m4: Likewise.
51897         * m4/gethrxtime.m4: Likewise.
51898         * m4/getline.m4: Likewise.
51899         * m4/getloadavg.m4: Likewise.
51900         * m4/getndelim2.m4: Likewise.
51901         * m4/getpass.m4: Likewise.
51902         * m4/gettext.m4: Likewise.
51903         * m4/gettime.m4: Likewise.
51904         * m4/gettimeofday.m4: Likewise.
51905         * m4/gnulib-common.m4: Likewise.
51906         * m4/group-member.m4: Likewise.
51907         * m4/host-os.m4: Likewise.
51908         * m4/iconv.m4: Likewise.
51909         * m4/iconv_open.m4: Likewise.
51910         * m4/inet_ntop.m4: Likewise.
51911         * m4/inet_pton.m4: Likewise.
51912         * m4/inline.m4: Likewise.
51913         * m4/intldir.m4: Likewise.
51914         * m4/intlmacosx.m4: Likewise.
51915         * m4/intmax.m4: Likewise.
51916         * m4/intmax_t.m4: Likewise.
51917         * m4/inttypes.m4: Likewise.
51918         * m4/inttypes_h.m4: Likewise.
51919         * m4/inttypes-pri.m4: Likewise.
51920         * m4/isapipe.m4: Likewise.
51921         * m4/isnand.m4: Likewise.
51922         * m4/isnanf.m4: Likewise.
51923         * m4/isnanl.m4: Likewise.
51924         * m4/javacomp.m4: Likewise.
51925         * m4/javaexec.m4: Likewise.
51926         * m4/jm-winsz1.m4: Likewise.
51927         * m4/jm-winsz2.m4: Likewise.
51928         * m4/lchown.m4: Likewise.
51929         * m4/lcmessage.m4: Likewise.
51930         * m4/ldexpl.m4: Likewise.
51931         * m4/lib-ld.m4: Likewise.
51932         * m4/lib-link.m4: Likewise.
51933         * m4/libsigsegv.m4: Likewise.
51934         * m4/link-follow.m4: Likewise.
51935         * m4/localcharset.m4: Likewise.
51936         * m4/locale-fr.m4: Likewise.
51937         * m4/locale-ja.m4: Likewise.
51938         * m4/locale-tr.m4: Likewise.
51939         * m4/locale-zh.m4: Likewise.
51940         * m4/lock.m4: Likewise.
51941         * m4/longlong.m4: Likewise.
51942         * m4/ls-mntd-fs.m4: Likewise.
51943         * m4/lstat.m4: Likewise.
51944         * m4/malloc.m4: Likewise.
51945         * m4/mathl.m4: Likewise.
51946         * m4/mbrtowc.m4: Likewise.
51947         * m4/mbstate_t.m4: Likewise.
51948         * m4/mbswidth.m4: Likewise.
51949         * m4/memchr.m4: Likewise.
51950         * m4/memcmp.m4: Likewise.
51951         * m4/memcpy.m4: Likewise.
51952         * m4/memmem.m4: Likewise.
51953         * m4/memmove.m4: Likewise.
51954         * m4/mempcpy.m4: Likewise.
51955         * m4/memrchr.m4: Likewise.
51956         * m4/memset.m4: Likewise.
51957         * m4/minmax.m4: Likewise.
51958         * m4/mkdir-slash.m4: Likewise.
51959         * m4/mkdtemp.m4: Likewise.
51960         * m4/mktime.m4: Likewise.
51961         * m4/mmap-anon.m4: Likewise.
51962         * m4/mountlist.m4: Likewise.
51963         * m4/nanosleep.m4: Likewise.
51964         * m4/nls.m4: Likewise.
51965         * m4/nocrash.m4: Likewise.
51966         * m4/open.m4: Likewise.
51967         * m4/openat.m4: Likewise.
51968         * m4/openmp.m4: Likewise.
51969         * m4/pathmax.m4: Likewise.
51970         * m4/perl.m4: Likewise.
51971         * m4/physmem.m4: Likewise.
51972         * m4/pipe.m4: Likewise.
51973         * m4/po.m4: Likewise.
51974         * m4/poll.m4: Likewise.
51975         * m4/posixtm.m4: Likewise.
51976         * m4/posixver.m4: Likewise.
51977         * m4/printf-frexp.m4: Likewise.
51978         * m4/printf-frexpl.m4: Likewise.
51979         * m4/printf-posix.m4: Likewise.
51980         * m4/printf-posix-rpl.m4: Likewise.
51981         * m4/printf.m4: Likewise.
51982         * m4/progtest.m4: Likewise.
51983         * m4/putenv.m4: Likewise.
51984         * m4/readline.m4: Likewise.
51985         * m4/readlink.m4: Likewise.
51986         * m4/readutmp.m4: Likewise.
51987         * m4/realloc.m4: Likewise.
51988         * m4/regex.m4: Likewise.
51989         * m4/relocatable.m4: Likewise.
51990         * m4/relocatable-lib.m4: Likewise.
51991         * m4/rename-dest-slash.m4: Likewise.
51992         * m4/rename.m4: Likewise.
51993         * m4/rmdir-errno.m4: Likewise.
51994         * m4/rmdir.m4: Likewise.
51995         * m4/roundf.m4: Likewise.
51996         * m4/roundl.m4: Likewise.
51997         * m4/rpmatch.m4: Likewise.
51998         * m4/save-cwd.m4: Likewise.
51999         * m4/selinux-selinux-h.m4: Likewise.
52000         * m4/setenv.m4: Likewise.
52001         * m4/settime.m4: Likewise.
52002         * m4/sig2str.m4: Likewise.
52003         * m4/sig_atomic_t.m4: Likewise.
52004         * m4/signalblocking.m4: Likewise.
52005         * m4/signbit.m4: Likewise.
52006         * m4/sigpipe.m4: Likewise.
52007         * m4/sockets.m4: Likewise.
52008         * m4/sockpfaf.m4: Likewise.
52009         * m4/st_dm_mode.m4: Likewise.
52010         * m4/stat-time.m4: Likewise.
52011         * m4/stdbool.m4: Likewise.
52012         * m4/stdint.m4: Likewise.
52013         * m4/stdint_h.m4: Likewise.
52014         * m4/stpcpy.m4: Likewise.
52015         * m4/stpncpy.m4: Likewise.
52016         * m4/strcase.m4: Likewise.
52017         * m4/strchrnul.m4: Likewise.
52018         * m4/strcspn.m4: Likewise.
52019         * m4/strdup.m4: Likewise.
52020         * m4/strftime.m4: Likewise.
52021         * m4/strndup.m4: Likewise.
52022         * m4/strnlen.m4: Likewise.
52023         * m4/strpbrk.m4: Likewise.
52024         * m4/strptime.m4: Likewise.
52025         * m4/strsep.m4: Likewise.
52026         * m4/strtod.m4: Likewise.
52027         * m4/strtoimax.m4: Likewise.
52028         * m4/strtok_r.m4: Likewise.
52029         * m4/strtol.m4: Likewise.
52030         * m4/strtoll.m4: Likewise.
52031         * m4/strtoul.m4: Likewise.
52032         * m4/strtoull.m4: Likewise.
52033         * m4/strtoumax.m4: Likewise.
52034         * m4/strverscmp.m4: Likewise.
52035         * m4/threadlib.m4: Likewise.
52036         * m4/timegm.m4: Likewise.
52037         * m4/tm_gmtoff.m4: Likewise.
52038         * m4/tmpdir.m4: Likewise.
52039         * m4/tmpfile.m4: Likewise.
52040         * m4/tzset.m4: Likewise.
52041         * m4/uintmax_t.m4: Likewise.
52042         * m4/unlinkdir.m4: Likewise.
52043         * m4/unlocked-io.m4: Likewise.
52044         * m4/uptime.m4: Likewise.
52045         * m4/userspec.m4: Likewise.
52046         * m4/utimbuf.m4: Likewise.
52047         * m4/utime.m4: Likewise.
52048         * m4/utimes-null.m4: Likewise.
52049         * m4/utimes.m4: Likewise.
52050         * m4/vararrays.m4: Likewise.
52051         * m4/vasnprintf.m4: Likewise.
52052         * m4/vfprintf-posix.m4: Likewise.
52053         * m4/vprintf-posix.m4: Likewise.
52054         * m4/wait-process.m4: Likewise.
52055         * m4/wchar_t.m4: Likewise.
52056         * m4/wint_t.m4: Likewise.
52057         * m4/write-any-file.m4: Likewise.
52058         * m4/yield.m4: Likewise.
52059
52060 2009-01-13  Bruno Haible  <bruno@clisp.org>
52061
52062         Avoid test-copy-file.sh failures when ACL support insufficient.
52063         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
52064         TESTS_ENVIRONMENT.
52065         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
52066         Reported by Jim Meyering.
52067
52068 2009-01-13  Bruno Haible  <bruno@clisp.org>
52069
52070         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
52071         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
52072         * modules/unistdio/u8-printf-parse (Files): Likewise.
52073         * modules/unistdio/u32-printf-parse (Files): Likewise.
52074         * modules/unistdio/ulc-printf-parse (Files): Likewise.
52075
52076 2009-01-13  Simon Josefsson  <simon@josefsson.org>
52077
52078         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
52079         and m4/inttypes_h.m4 too.
52080
52081 2009-01-12  Eric Blake  <ebb9@byu.net>
52082
52083         tests: IRIX 6.2 cc can't compile -0.0 into .data
52084         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
52085         rather than at compile-time.
52086         * tests/test-floorl.c (minus_zero): Likewise.
52087         * tests/test-frexpl.c (minus_zero): Likewise.
52088         * tests/test-isnan.c (minus_zerol): Likewise.
52089         * tests/test-isnanl.h (minus_zero): Likewise.
52090         * tests/test-ldexpl.c (minus_zero): Likewise.
52091         * tests/test-roundl.c (minus_zero): Likewise.
52092         * tests/test-signbit.c (minus_zerol): Likewise.
52093         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52094         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52095         * tests/test-truncl.c (minus_zero): Likewise.
52096         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52097         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52098         Reported by Tom G. Christensen and Nelson H. F. Beebe.
52099
52100 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52101
52102         regex: fix glibc bug 9697
52103         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
52104         handling.
52105
52106 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52107
52108         regex: fix glibc bug 697
52109         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
52110         being NULL also if there are no backreferences.
52111
52112 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
52113
52114         regex: merge glibc changes
52115         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
52116         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
52117         re_string_skip_chars, re_string_reconstruct): Likewise.
52118         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
52119
52120 2009-01-07  Jim Meyering  <meyering@redhat.com>
52121
52122         poll: filter through cppi
52123         * lib/poll.c: Indent cpp directives to reflect nesting.
52124
52125 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
52126
52127         poll: don't return uninitialized
52128         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
52129
52130 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
52131
52132         avoid compile failure on AIX 6.1
52133         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
52134         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
52135
52136 2009-01-04  Jim Meyering  <meyering@redhat.com>
52137
52138         remove duplicate inclusion of <stdio.h>
52139         * tests/test-fprintf-posix.c: Likewise.
52140         * tests/test-printf-posix.c: Likewise.
52141         * tests/test-snprintf-posix.c: Likewise.
52142         * tests/test-sprintf-posix.c: Likewise.
52143         * tests/test-vasprintf-posix.c: Likewise.
52144         * tests/test-vfprintf-posix.c: Likewise.
52145         * tests/test-vprintf-posix.c: Likewise.
52146         * tests/test-vsnprintf-posix.c: Likewise.
52147         * tests/test-vsprintf-posix.c: Likewise.
52148
52149 2009-01-03  Jim Meyering  <meyering@redhat.com>
52150
52151         gnulib-tool: fix sed-based filtering
52152         * gnulib-tool (func_filter_filelist): Remove extra backslash
52153         in sed_fff_filter definition.
52154
52155 2009-01-02  Jim Meyering  <meyering@redhat.com>
52156
52157         strftime: avoid compilation failure on Solaris 2.6
52158         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
52159         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
52160         Don't #define mbrlen or mbsinit, since now they're guaranteed to
52161         be available.  Reported by Tom G. Christensen.  Details in
52162         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
52163
52164 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52165             Bruno Haible  <bruno@clisp.org>
52166
52167         Speed up gnulib-tool by doing more string processing through shell
52168         built-ins.
52169         * gnulib-tool (fast_func_append): New variable.
52170         (func_remove_prefix, func_remove_suffix): New functions.
52171         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
52172         (func_filter_filelist): New function.
52173         (func_get_dependencies): Use func_remove_suffix instead of sed.
52174         (func_get_automake_snippet): Use func_filter_filelist instead of a
52175         subshell and sed invocation.
52176
52177 2009-01-01  Bruno Haible  <bruno@clisp.org>
52178
52179         Fix a security bug.
52180         * gnulib-tool (func_import, import, update): Don't allow the characters
52181         '"', '$', '`', '\' in macro arguments that become part of commands that
52182         are evaluated.
52183
52184 2009-01-01  Bruno Haible  <bruno@clisp.org>
52185
52186         * gnulib-tool (func_reset_sigpipe): Add more comments.
52187
52188 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52189
52190         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
52191         func_emit_tests_Makefile_am, func_import): Abort loops early if we
52192         already know the answer.
52193
52194 2009-01-01  Jim Meyering  <meyering@redhat.com>
52195
52196         * lib/version-etc.c (version_etc_va): Update copyright year.
52197
52198 2008-12-30  Bruno Haible  <bruno@clisp.org>
52199
52200         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
52201         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
52202         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
52203
52204 2008-12-29  Eric Blake  <ebb9@byu.net>
52205
52206         multiarch: avoid autoconf AC_REQUIRE bug
52207         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
52208         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
52209         2.63 and older.
52210         Reported by Bruno Haible, and analyzed in
52211         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
52212
52213 2008-12-29  Bruno Haible  <bruno@clisp.org>
52214
52215         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
52216         files in subdirectories correctly.
52217         Reported by Ralf Wildenhues.
52218
52219 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52220
52221         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
52222         rather than 'join FILE -', for Solaris join.
52223
52224 2008-12-29  Bruno Haible  <bruno@clisp.org>
52225
52226         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
52227         quoting.
52228         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
52229         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
52230         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
52231         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
52232         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
52233         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
52234         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
52235         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
52236         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
52237         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
52238         * m4/nls.m4 (AM_NLS): Likewise.
52239         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
52240         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
52241         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52242         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
52243         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
52244         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
52245         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
52246         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
52247         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
52248         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
52249         * m4/xsize.m4 (gl_XSIZE): Likewise.
52250         Suggested by Jim Meyering.
52251
52252 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52253
52254         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
52255         * lib/parse-duration.c: use a switch instead of cascading if's.
52256
52257 2008-12-29  Eric Blake  <ebb9@byu.net>
52258
52259         wchar.h: supply WEOF on Irix 5.3
52260         * lib/wchar.in.h (wint_t): Also supply WEOF.
52261         * lib/wctype.in.h (wint_t): Likewise.
52262         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
52263         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
52264         Reported by Tom G. Christensen.
52265
52266 2008-12-26  Bruno Haible  <bruno@clisp.org>
52267
52268         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
52269         i486, i586, i686.
52270
52271 2008-12-26  Bruno Haible  <bruno@clisp.org>
52272
52273         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
52274
52275 2008-12-26  Bruno Haible  <bruno@clisp.org>
52276
52277         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
52278         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
52279         not __STDC_CONSTANT_MACROS.
52280         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52281
52282 2008-12-25  Bruno Haible  <bruno@clisp.org>
52283
52284         Add support for universal builds to vasnprintf.
52285         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
52286         universal builds, guess no.
52287         * modules/vasnprintf-posix (Depends-on): Add multiarch.
52288         * modules/vasprintf-posix (Depends-on): Likewise.
52289         * modules/fprintf-posix (Depends-on): Likewise.
52290         * modules/vfprintf-posix (Depends-on): Likewise.
52291         * modules/snprintf-posix (Depends-on): Likewise.
52292         * modules/vsnprintf-posix (Depends-on): Likewise.
52293         * modules/sprintf-posix (Depends-on): Likewise.
52294         * modules/vsprintf-posix (Depends-on): Likewise.
52295         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52296         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52297         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52298         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52299         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52300         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52301         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52302
52303         Add support for universal builds to <inttypes.h>.
52304         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
52305         _SCNu64_PREFIX): In Apple
52306         universal builds, define directly, using _LP64.
52307         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
52308         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
52309         * modules/inttypes (Depends-on): Add multiarch.
52310         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52311
52312         Add support for universal builds to <stdint.h>.
52313         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
52314         universal builds, define directly, using _LP64.
52315         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
52316         Apple universal builds, don't test for the size and suffix of ptrdiff_t
52317         and size_t.
52318         * modules/stdint (Depends-on): Add multiarch.
52319         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
52320
52321         New module 'multiarch'.
52322         * modules/multiarch: New file.
52323         * m4/multiarch.m4: New file.
52324
52325 2008-12-25  Bruno Haible  <bruno@clisp.org>
52326
52327         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
52328
52329 2008-12-25  Bruno Haible  <bruno@clisp.org>
52330
52331         * modules/btowc (License): Relicense under LGPLv2+.
52332         * modules/mbsinit (License): Likewise.
52333         * modules/mbrtowc (License): Likewise.
52334         * modules/wcrtomb (License): Likewise.
52335         * modules/streq (License): Likewise.
52336         Reported by David Lutterkort <lutter@redhat.com>.
52337
52338 2008-12-23  Bruno Haible  <bruno@clisp.org>
52339
52340         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
52341
52342 2008-12-23  Bruno Haible  <bruno@clisp.org>
52343
52344         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
52345         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
52346         GETADDRINFO_LIB, not in LIBS.
52347         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
52348         * modules/canon-host (Link): Likewise.
52349         * NEWS: Mention the change.
52350         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
52351         GETADDRINFO_LIB.
52352
52353 2008-12-22  Bruno Haible  <bruno@clisp.org>
52354
52355         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
52356         * doc/posix-functions/iswalpha_l.texi: Likewise.
52357         * doc/posix-functions/iswblank_l.texi: Likewise.
52358         * doc/posix-functions/iswcntrl_l.texi: Likewise.
52359         * doc/posix-functions/iswctype_l.texi: Likewise.
52360         * doc/posix-functions/iswdigit_l.texi: Likewise.
52361         * doc/posix-functions/iswgraph_l.texi: Likewise.
52362         * doc/posix-functions/iswlower_l.texi: Likewise.
52363         * doc/posix-functions/iswprint_l.texi: Likewise.
52364         * doc/posix-functions/iswpunct_l.texi: Likewise.
52365         * doc/posix-functions/iswspace_l.texi: Likewise.
52366         * doc/posix-functions/iswupper_l.texi: Likewise.
52367         * doc/posix-functions/iswxdigit_l.texi: Likewise.
52368         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
52369         * doc/posix-functions/open_wmemstream.texi: Likewise.
52370         * doc/posix-functions/swscanf.texi: Likewise.
52371         * doc/posix-functions/towctrans_l.texi: Likewise.
52372         * doc/posix-functions/towlower.texi: Likewise.
52373         * doc/posix-functions/towlower_l.texi: Likewise.
52374         * doc/posix-functions/towupper.texi: Likewise.
52375         * doc/posix-functions/towupper_l.texi: Likewise.
52376         * doc/posix-functions/vfwprintf.texi: Likewise.
52377         * doc/posix-functions/vfwscanf.texi: Likewise.
52378         * doc/posix-functions/vswscanf.texi: Likewise.
52379         * doc/posix-functions/vwprintf.texi: Likewise.
52380         * doc/posix-functions/vwscanf.texi: Likewise.
52381         * doc/posix-functions/wcpcpy.texi: Likewise.
52382         * doc/posix-functions/wcpncpy.texi: Likewise.
52383         * doc/posix-functions/wcscasecmp.texi: Likewise.
52384         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
52385         * doc/posix-functions/wcscoll_l.texi: Likewise.
52386         * doc/posix-functions/wcsdup.texi: Likewise.
52387         * doc/posix-functions/wcsncasecmp.texi: Likewise.
52388         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
52389         * doc/posix-functions/wcsnlen.texi: Likewise.
52390         * doc/posix-functions/wcsnrtombs.texi: Likewise.
52391         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
52392         * doc/posix-functions/wctrans_l.texi: Likewise.
52393         * doc/posix-functions/wctype_l.texi: Likewise.
52394         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
52395         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
52396         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
52397         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
52398         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
52399         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
52400         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
52401         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
52402         * doc/glibc-functions/wcschrnul.texi: Likewise.
52403         * doc/glibc-functions/wcsftime_l.texi: Likewise.
52404         * doc/glibc-functions/wcstod_l.texi: Likewise.
52405         * doc/glibc-functions/wcstof_l.texi: Likewise.
52406         * doc/glibc-functions/wcstol_l.texi: Likewise.
52407         * doc/glibc-functions/wcstold_l.texi: Likewise.
52408         * doc/glibc-functions/wcstoll_l.texi: Likewise.
52409         * doc/glibc-functions/wcstoq.texi: Likewise.
52410         * doc/glibc-functions/wcstoul_l.texi: Likewise.
52411         * doc/glibc-functions/wcstoull_l.texi: Likewise.
52412         * doc/glibc-functions/wcstouq.texi: Likewise.
52413         * doc/glibc-functions/wmempcpy.texi: Likewise.
52414
52415 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
52416             Eric Blake  <ebb9@byu.net>
52417             Paolo Bonzini  <bonzini@gnu.org>
52418             Bruno Haible  <bruno@clisp.org>
52419
52420         Make c-stack work on Haiku.
52421         * lib/c-stack.c (SA_ONSTACK): Define fallback.
52422         (c_stack_action): Use SA_ONSTACK flag.
52423
52424 2008-12-22  Bruno Haible  <bruno@clisp.org>
52425
52426         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
52427
52428 2008-12-22  Bruno Haible  <bruno@clisp.org>
52429
52430         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
52431         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
52432         being overridden.
52433         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
52434         New macros.
52435         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
52436         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
52437         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
52438         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
52439
52440 2008-12-22  Bruno Haible  <bruno@clisp.org>
52441
52442         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
52443         from test code.
52444
52445 2008-12-22  Eric Blake  <ebb9@byu.net>
52446
52447         Avoid gcc warnings on cygwin.
52448         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
52449         Avoid unused variable.
52450         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
52451         Likewise.
52452
52453 2008-12-22  Bruno Haible  <bruno@clisp.org>
52454
52455         Remove HAVE_MBRTOWC conditionals.
52456         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
52457         (mbscasecmp): Assume mbrtowc function.
52458         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
52459         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
52460         * lib/mbschr.c: Include mbuiter.h unconditionally.
52461         (mbschr): Assume mbrtowc function.
52462         * lib/mbscspn.c: Include mbuiter.h unconditionally.
52463         (mbscspn): Assume mbrtowc function.
52464         * lib/mbslen.c: Include mbuiter.h unconditionally.
52465         (mbslen): Assume mbrtowc function.
52466         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
52467         (mbsncasecmp): Assume mbrtowc function.
52468         * lib/mbsnlen.c: Include mbiter.h unconditionally.
52469         (mbsnlen): Assume mbrtowc function.
52470         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
52471         (mbspbrk): Assume mbrtowc function.
52472         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
52473         (mbspcasecmp): Assume mbrtowc function.
52474         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
52475         (mbsrchr): Assume mbrtowc function.
52476         * lib/mbssep.c: Include mbuiter.h unconditionally.
52477         (mbssep): Assume mbrtowc function.
52478         * lib/mbsspn.c: Include mbuiter.h unconditionally.
52479         (mbsspn): Assume mbrtowc function.
52480         * lib/mbsstr.c: Include mbuiter.h unconditionally.
52481         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
52482         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
52483         (mbstok_r): Assume mbrtowc function.
52484         * lib/propername.c: Include mbuiter.h unconditionally.
52485         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
52486         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
52487         (trim2): Assume mbrtowc function.
52488         * lib/mbswidth.c (mbsinit): Remove fallback definition.
52489         (mbsnwidth): Assume mbrtowc function.
52490         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
52491         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
52492         fallback definitions.
52493         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
52494
52495 2008-12-22  Bruno Haible  <bruno@clisp.org>
52496
52497         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
52498
52499 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
52500
52501         * modules/regex: Request emulations for the mb*/wc* functions we need.
52502         * m4/regex.m4: Don't look for those functions here.
52503         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
52504
52505 2008-12-22  Bruno Haible  <bruno@clisp.org>
52506
52507         * modules/fnmatch (Depends-on): Remove duplicated dependency.
52508
52509 2008-12-21  Bruno Haible  <bruno@clisp.org>
52510
52511         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
52512         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
52513         (Include): Remove conditionalization.
52514         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
52515         (Include): Remove conditionalization.
52516         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
52517         (Include): Remove conditionalization.
52518         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
52519         * m4/mbfile.m4 (gl_MBFILE): Likewise.
52520         * NEWS: Mention the change.
52521         Reported by Alan Hourihane <alanh@fairlite.co.uk>
52522         via Sergey Poznyakoff <gray@gnu.org.ua>.
52523
52524 2008-12-21  Bruno Haible  <bruno@clisp.org>
52525
52526         * MODULES.html.sh (Extended multibyte and wide character utilities
52527         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
52528         wcrtomb, wcsrtombs.
52529         (Support for systems lacking POSIX:2008): Add accept, bind, close,
52530         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
52531         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
52532         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
52533
52534 2008-12-21  Bruno Haible  <bruno@clisp.org>
52535
52536         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
52537
52538 2008-12-21  Bruno Haible  <bruno@clisp.org>
52539
52540         * modules/wcsnrtombs-tests: New file.
52541         * tests/test-wcsnrtombs1.sh: New file.
52542         * tests/test-wcsnrtombs2.sh: New file.
52543         * tests/test-wcsnrtombs3.sh: New file.
52544         * tests/test-wcsnrtombs4.sh: New file.
52545         * tests/test-wcsnrtombs.c: New file.
52546
52547         New module 'wcsnrtombs'.
52548         * lib/wchar.in.h (wcsnrtombs): New declaration.
52549         * lib/wcsnrtombs.c: New file.
52550         * lib/wcsrtombs-state.c: New file.
52551         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
52552         (internal_state): Remove variable.
52553         * m4/wcsnrtombs.m4: New file.
52554         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
52555         compilation units.
52556         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
52557         HAVE_WCSNRTOMBS.
52558         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
52559         HAVE_WCSNRTOMBS.
52560         * modules/wcsnrtombs: New file.
52561         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
52562         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
52563
52564 2008-12-21  Bruno Haible  <bruno@clisp.org>
52565
52566         * modules/wcsrtombs-tests: New file.
52567         * tests/test-wcsrtombs1.sh: New file.
52568         * tests/test-wcsrtombs2.sh: New file.
52569         * tests/test-wcsrtombs3.sh: New file.
52570         * tests/test-wcsrtombs4.sh: New file.
52571         * tests/test-wcsrtombs.c: New file.
52572
52573         New module 'wcsrtombs'.
52574         * lib/wchar.in.h (wcsrtombs): New declaration.
52575         * lib/wcsrtombs.c: New file.
52576         * m4/wcsrtombs.m4: New file.
52577         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
52578         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
52580         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
52581         * modules/wcsrtombs: New file.
52582         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
52583         bugs.
52584
52585 2008-12-21  Bruno Haible  <bruno@clisp.org>
52586
52587         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
52588         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
52589         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
52590         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
52591         if not correct.
52592         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
52593         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
52594         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52595         m4/locale-zh.m4, m4/codeset.m4.
52596         * doc/posix-functions/wcrtomb.texi: Document the bug.
52597
52598 2008-12-21  Bruno Haible  <bruno@clisp.org>
52599
52600         Work around a btowc() bug on IRIX 6.5.
52601         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
52602         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
52603         REPLACE_WTOBC if not.
52604         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
52605         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
52606         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
52607
52608 2008-12-21  Bruno Haible  <bruno@clisp.org>
52609
52610         * modules/wcrtomb-tests: New file.
52611         * tests/test-wcrtomb.sh: New file.
52612         * tests/test-wcrtomb.c: New file.
52613
52614         New module 'wcrtomb'.
52615         * lib/wchar.in.h (wcrtomb): New declaration.
52616         * lib/wcrtomb.c: New file.
52617         * m4/wcrtomb.m4: New file.
52618         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
52619         HAVE_WCRTOMB.
52620         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
52621         HAVE_WCRTOMB.
52622         * modules/wcrtomb: New file.
52623         * doc/posix-functions/wcrtomb.texi: Mention the new module.
52624
52625 2008-12-21  Bruno Haible  <bruno@clisp.org>
52626
52627         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
52628         * modules/mbsrtowcs (Files): Likewise.
52629         * modules/wctob (Files): Likewise.
52630         * modules/c-strcase-tests (Files): Likewise.
52631         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
52632         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
52633         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
52634         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
52635         * modules/vasnprintf-posix-tests (Files): Likewise.
52636
52637 2008-12-21  William Pursell  <bill.pursell@gmail.com>
52638
52639         gitlog-to-changelog: pass all command-line arguments to git-log
52640         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
52641         it is sometimes convenient to filter the commits in various ways.
52642         gitlog-to-changelog only allows --since to specify a start date,
52643         but git-log itself supports many other filtering mechanisms.
52644         At the moment, I want to filter by branch name.  Rather than
52645         adding a --branch option to gitlog-to-changelog, it seems more
52646         flexible to simply pass all options directly to git-log and let
52647         git do the work.  Notice that this effectively makes --since a
52648         redundant option for gitlog-to-changelog, but removing it would
52649         require current usage to change since calls would then require
52650         an additional '--'.
52651
52652 2008-12-21  Bruno Haible  <bruno@clisp.org>
52653
52654         * modules/mbsnrtowcs-tests: New file.
52655         * tests/test-mbsnrtowcs1.sh: New file.
52656         * tests/test-mbsnrtowcs2.sh: New file.
52657         * tests/test-mbsnrtowcs3.sh: New file.
52658         * tests/test-mbsnrtowcs4.sh: New file.
52659         * tests/test-mbsnrtowcs.c: New file.
52660
52661         New module 'mbsnrtowcs'.
52662         * lib/wchar.in.h (mbsnrtowcs): New declaration.
52663         * lib/mbsnrtowcs.c: New file.
52664         * lib/mbsrtowcs-state.c: New file.
52665         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
52666         (internal_state): Remove variable.
52667         * m4/mbsnrtowcs.m4: New file.
52668         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
52669         compilation units.
52670         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
52671         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52672         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
52673         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
52674         * modules/mbsnrtowcs: New file.
52675         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
52676         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
52677         portability problem.
52678
52679 2008-12-21  Bruno Haible  <bruno@clisp.org>
52680
52681         Work around mbsrtowcs bug.
52682         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
52683         (gl_FUNC_MBSRTOWCS): Invoke it.
52684         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52685         m4/locale-zh.m4.
52686         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
52687
52688 2008-12-21  Bruno Haible  <bruno@clisp.org>
52689
52690         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
52691
52692 2008-12-21  Bruno Haible  <bruno@clisp.org>
52693
52694         Update doc for AIX.
52695         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
52696         16-bit wchar_t type.
52697         * doc/posix-functions/btowc.texi: Likewise.
52698         * doc/posix-functions/fgetwc.texi: Likewise.
52699         * doc/posix-functions/fgetws.texi: Likewise.
52700         * doc/posix-functions/fputwc.texi: Likewise.
52701         * doc/posix-functions/fputws.texi: Likewise.
52702         * doc/posix-functions/fwide.texi: Likewise.
52703         * doc/posix-functions/fwprintf.texi: Likewise.
52704         * doc/posix-functions/fwscanf.texi: Likewise.
52705         * doc/posix-functions/getwchar.texi: Likewise.
52706         * doc/posix-functions/getwc.texi: Likewise.
52707         * doc/posix-functions/iswalnum.texi: Likewise.
52708         * doc/posix-functions/iswalpha.texi: Likewise.
52709         * doc/posix-functions/iswblank.texi: Likewise.
52710         * doc/posix-functions/iswcntrl.texi: Likewise.
52711         * doc/posix-functions/iswctype.texi: Likewise.
52712         * doc/posix-functions/iswdigit.texi: Likewise.
52713         * doc/posix-functions/iswgraph.texi: Likewise.
52714         * doc/posix-functions/iswlower.texi: Likewise.
52715         * doc/posix-functions/iswprint.texi: Likewise.
52716         * doc/posix-functions/iswpunct.texi: Likewise.
52717         * doc/posix-functions/iswspace.texi: Likewise.
52718         * doc/posix-functions/iswupper.texi: Likewise.
52719         * doc/posix-functions/iswxdigit.texi: Likewise.
52720         * doc/posix-functions/mbrtowc.texi: Likewise.
52721         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52722         * doc/posix-functions/mbstowcs.texi: Likewise.
52723         * doc/posix-functions/mbtowc.texi: Likewise.
52724         * doc/posix-functions/putwchar.texi: Likewise.
52725         * doc/posix-functions/putwc.texi: Likewise.
52726         * doc/posix-functions/swprintf.texi: Likewise.
52727         * doc/posix-functions/tolower.texi: Likewise.
52728         * doc/posix-functions/toupper.texi: Likewise.
52729         * doc/posix-functions/towctrans.texi: Likewise.
52730         * doc/posix-functions/ungetwc.texi: Likewise.
52731         * doc/posix-functions/vswprintf.texi: Likewise.
52732         * doc/posix-functions/wcrtomb.texi: Likewise.
52733         * doc/posix-functions/wcscat.texi: Likewise.
52734         * doc/posix-functions/wcschr.texi: Likewise.
52735         * doc/posix-functions/wcscmp.texi: Likewise.
52736         * doc/posix-functions/wcscoll.texi: Likewise.
52737         * doc/posix-functions/wcscpy.texi: Likewise.
52738         * doc/posix-functions/wcscspn.texi: Likewise.
52739         * doc/posix-functions/wcsftime.texi: Likewise.
52740         * doc/posix-functions/wcslen.texi: Likewise.
52741         * doc/posix-functions/wcsncat.texi: Likewise.
52742         * doc/posix-functions/wcsncmp.texi: Likewise.
52743         * doc/posix-functions/wcsncpy.texi: Likewise.
52744         * doc/posix-functions/wcspbrk.texi: Likewise.
52745         * doc/posix-functions/wcsrchr.texi: Likewise.
52746         * doc/posix-functions/wcsrtombs.texi: Likewise.
52747         * doc/posix-functions/wcsspn.texi: Likewise.
52748         * doc/posix-functions/wcsstr.texi: Likewise.
52749         * doc/posix-functions/wcstod.texi: Likewise.
52750         * doc/posix-functions/wcstof.texi: Likewise.
52751         * doc/posix-functions/wcstoimax.texi: Likewise.
52752         * doc/posix-functions/wcstok.texi: Likewise.
52753         * doc/posix-functions/wcstold.texi: Likewise.
52754         * doc/posix-functions/wcstoll.texi: Likewise.
52755         * doc/posix-functions/wcstol.texi: Likewise.
52756         * doc/posix-functions/wcstombs.texi: Likewise.
52757         * doc/posix-functions/wcstoull.texi: Likewise.
52758         * doc/posix-functions/wcstoul.texi: Likewise.
52759         * doc/posix-functions/wcstoumax.texi: Likewise.
52760         * doc/posix-functions/wcswidth.texi: Likewise.
52761         * doc/posix-functions/wcsxfrm.texi: Likewise.
52762         * doc/posix-functions/wctob.texi: Likewise.
52763         * doc/posix-functions/wctomb.texi: Likewise.
52764         * doc/posix-functions/wctrans.texi: Likewise.
52765         * doc/posix-functions/wctype.texi: Likewise.
52766         * doc/posix-functions/wcwidth.texi: Likewise.
52767         * doc/posix-functions/wmemchr.texi: Likewise.
52768         * doc/posix-functions/wmemcmp.texi: Likewise.
52769         * doc/posix-functions/wmemcpy.texi: Likewise.
52770         * doc/posix-functions/wmemmove.texi: Likewise.
52771         * doc/posix-functions/wmemset.texi: Likewise.
52772         * doc/posix-functions/wprintf.texi: Likewise.
52773         * doc/posix-functions/wscanf.texi: Likewise.
52774
52775 2008-12-21  Bruno Haible  <bruno@clisp.org>
52776
52777         Update doc for HP-UX 11.11.
52778         * doc/posix-functions/btowc.texi: Clarify that the function is missing
52779         in HP-UX version 11.00, not in all versions of HP-UX 11.
52780         * doc/posix-functions/fwide.texi: Likewise.
52781         * doc/posix-functions/fwprintf.texi: Likewise.
52782         * doc/posix-functions/fwscanf.texi: Likewise.
52783         * doc/posix-functions/inet_ntop.texi: Likewise.
52784         * doc/posix-functions/inet_pton.texi: Likewise.
52785         * doc/posix-functions/mbrlen.texi: Likewise.
52786         * doc/posix-functions/mbrtowc.texi: Likewise.
52787         * doc/posix-functions/mbsinit.texi: Likewise.
52788         * doc/posix-functions/mbsrtowcs.texi: Likewise.
52789         * doc/posix-functions/swprintf.texi: Likewise.
52790         * doc/posix-functions/swscanf.texi: Likewise.
52791         * doc/posix-functions/towctrans.texi: Likewise.
52792         * doc/posix-functions/vfwprintf.texi: Likewise.
52793         * doc/posix-functions/vswprintf.texi: Likewise.
52794         * doc/posix-functions/vwprintf.texi: Likewise.
52795         * doc/posix-functions/wcrtomb.texi: Likewise.
52796         * doc/posix-functions/wcsrtombs.texi: Likewise.
52797         * doc/posix-functions/wcsstr.texi: Likewise.
52798         * doc/posix-functions/wctob.texi: Likewise.
52799         * doc/posix-functions/wctrans.texi: Likewise.
52800         * doc/posix-functions/wmemchr.texi: Likewise.
52801         * doc/posix-functions/wmemcmp.texi: Likewise.
52802         * doc/posix-functions/wmemcpy.texi: Likewise.
52803         * doc/posix-functions/wmemmove.texi: Likewise.
52804         * doc/posix-functions/wmemset.texi: Likewise.
52805         * doc/posix-functions/wprintf.texi: Likewise.
52806         * doc/posix-functions/wscanf.texi: Likewise.
52807
52808 2008-12-21  Bruno Haible  <bruno@clisp.org>
52809
52810         Work around a portability problem.
52811         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52812         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52813
52814 2008-12-20  Bruno Haible  <bruno@clisp.org>
52815
52816         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52817         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52818         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52819         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52820         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52821
52822         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52823         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52824         set.
52825         (GNULIB_defined_mbstate_t): New macro.
52826         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52827         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52828         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52829         reuses the system's mbrtowc function but works around the bugs.
52830         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52831         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52832         macros.
52833         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52834         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52835         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52836         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52837         REPLACE_MBSINIT if mbsinit needs to be overridden.
52838         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52839         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52840         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52841         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52842         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52843         m4/locale-zh.m4.
52844         (Depends): Add mbsinit.
52845         * modules/mbsinit (Depends): Add mbrtowc.
52846         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52847
52848 2008-12-20  Bruno Haible  <bruno@clisp.org>
52849
52850         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52851         so that there are no conversion errors on AIX.
52852         * tests/test-mbsrtowcs.c (main): LIkewise.
52853
52854 2008-12-20  Bruno Haible  <bruno@clisp.org>
52855
52856         Work around wctob bug on Solaris <= 9.
52857         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52858         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52860         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52861         * modules/wctob (Files): Add m4/locale-fr.m4.
52862         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52863
52864 2008-12-20  Bruno Haible  <bruno@clisp.org>
52865
52866         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52867         /dev/null.
52868         * tests/test-select-in.sh: Likewise.
52869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52870
52871 2008-12-20  Bruno Haible  <bruno@clisp.org>
52872
52873         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52874         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52875         Cygwin 1.5.x.
52876
52877 2008-12-20  Bruno Haible  <bruno@clisp.org>
52878
52879         Ensure mbstate_t is defined on HP-UX 11.11.
52880         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52881         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52882         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52883         AC_USE_SYSTEM_EXTENSIONS.
52884         * modules/fnmatch (Depends-on): Add extensions.
52885         * modules/mbrlen (Depends-on): Likewise.
52886         * modules/mbrtowc (Depends-on): Likewise.
52887         * modules/mbsinit (Depends-on): Likewise.
52888         * modules/mbsrtowcs (Depends-on): Likewise.
52889         * modules/mbswidth (Depends-on): Likewise.
52890         * modules/quotearg (Depends-on): Likewise.
52891         * modules/strftime (Depends-on): Likewise.
52892
52893 2008-12-20  Bruno Haible  <bruno@clisp.org>
52894
52895         Ensure wctob is declared on IRIX 6.5.
52896         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52897         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52898         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52899         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52900         of HAVE_WCTOB.
52901         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52902         HAVE_WCTOB.
52903         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52904
52905 2008-12-19  Bruno Haible  <bruno@clisp.org>
52906
52907         * modules/mbsrtowcs-tests: New file.
52908         * tests/test-mbsrtowcs1.sh: New file.
52909         * tests/test-mbsrtowcs2.sh: New file.
52910         * tests/test-mbsrtowcs3.sh: New file.
52911         * tests/test-mbsrtowcs4.sh: New file.
52912         * tests/test-mbsrtowcs.c: New file.
52913
52914         New module 'mbsrtowcs'.
52915         * lib/wchar.in.h (mbsrtowcs): New declaration.
52916         * lib/mbsrtowcs.c: New file.
52917         * m4/mbsrtowcs.m4: New file.
52918         * modules/mbsrtowcs: New file.
52919         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52920         HAVE_MBSRTOWCS.
52921         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52922         HAVE_MBSRTOWCS.
52923         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52924
52925 2008-12-19  Bruno Haible  <bruno@clisp.org>
52926
52927         New module 'mbrlen'.
52928         * lib/wchar.in.h (mbrlen): New declaration.
52929         * lib/mbrlen.c: New file.
52930         * m4/mbrlen.m4: New file.
52931         * modules/mbrlen: New file.
52932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52933         HAVE_MBRLEN.
52934         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52935         HAVE_MBRLEN.
52936         * doc/posix-functions/mbrlen.texi: Document the new module.
52937
52938 2008-12-19  Bruno Haible  <bruno@clisp.org>
52939
52940         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52941         * modules/mbrtowc (Depends-on): Add verify.
52942         Suggested by Paul Eggert.
52943
52944 2008-12-18  Bruno Haible  <bruno@clisp.org>
52945
52946         * modules/mbsinit-tests: New file.
52947         * tests/test-mbsinit.sh: New file.
52948         * tests/test-mbsinit.c: New file.
52949
52950 2008-12-18  Bruno Haible  <bruno@clisp.org>
52951
52952         * modules/mbrtowc-tests: New file.
52953         * tests/test-mbrtowc1.sh: New file.
52954         * tests/test-mbrtowc2.sh: New file.
52955         * tests/test-mbrtowc3.sh: New file.
52956         * tests/test-mbrtowc4.sh: New file.
52957         * tests/test-mbrtowc.c: New file.
52958
52959         New module 'mbrtowc'.
52960         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52961         mbsinit and mbrtowc.
52962         (mbrtowc): New declaration.
52963         * lib/mbrtowc.c: New file.
52964         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52965         * modules/mbrtowc: New file.
52966         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52967         HAVE_MBRTOWC.
52968         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52969         HAVE_MBRTOWC.
52970         * doc/posix-functions/mbrtowc.texi: Document the new module.
52971
52972 2008-12-18  Bruno Haible  <bruno@clisp.org>
52973
52974         New module 'wctob'.
52975         * lib/wchar.in.h (wctob): New declaration.
52976         * lib/wctob.c: New file.
52977         * m4/wctob.m4: New file.
52978         * modules/wctob: New file.
52979         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52980         HAVE_WCTOB.
52981         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52982         * doc/posix-functions/wctob.texi: Document the new module.
52983
52984 2008-12-18  Bruno Haible  <bruno@clisp.org>
52985
52986         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52987         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52988
52989 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52990
52991         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52992         G. Christensen" <tgc@jupiterrise.com>.
52993
52994         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52995         G. Christensen" <tgc@jupiterrise.com>.
52996
52997         * lib/flock.c: Need to include string.h.  Reported by "Tom
52998         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52999         <ebb9@byu.net>.
53000
53001 2008-12-18  Bruno Haible  <bruno@clisp.org>
53002
53003         * m4/locale-ja.m4: New file, from GNU gettext.
53004
53005 2008-12-17  Bruno Haible  <bruno@clisp.org>
53006
53007         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
53008         Suggested by Eric Blake.
53009
53010 2008-12-17  Bruno Haible  <bruno@clisp.org>
53011
53012         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
53013
53014 2008-12-17  Bruno Haible  <bruno@clisp.org>
53015
53016         * lib/mbsinit.c: Include verify.h. Verify an assumption.
53017         * modules/mbsinit (Depends-on): Add verify.
53018         Suggested by Paul Eggert.
53019
53020 2008-12-17  Bruno Haible  <bruno@clisp.org>
53021
53022         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
53023         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
53024         gl_FUNC_MBRTOWC.
53025         * m4/mbiter.m4 (gl_MBITER): LIkewise.
53026         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
53027         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
53028         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
53029         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
53030         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
53031         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
53032         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
53033         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
53034         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
53035         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
53036         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
53037         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
53038         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
53039         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
53040         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
53041         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
53042         * modules/trim (configure.ac): Likewise.
53043
53044 2008-12-17  Bruno Haible  <bruno@clisp.org>
53045
53046         * modules/btowc-tests: New file.
53047         * tests/test-btowc1.sh: New file.
53048         * tests/test-btowc2.sh: New file.
53049         * tests/test-btowc.c: New file.
53050
53051         New module 'btowc'.
53052         * lib/wchar.in.h (btowc): New declaration.
53053         * lib/btowc.c: New file.
53054         * m4/btowc.m4: New file.
53055         * modules/btowc: New file.
53056         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
53057         HAVE_BTOWC.
53058         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
53059         * doc/posix-functions/btowc.texi: Document the new module.
53060
53061 2008-12-17  Bruno Haible  <bruno@clisp.org>
53062
53063         New module 'mbsinit'.
53064         * lib/wchar.in.h (mbsinit): New declaration.
53065         * lib/mbsinit.c: New file.
53066         * m4/mbsinit.m4: New file.
53067         * modules/mbsinit: New file.
53068         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
53069         HAVE_MBSINIT.
53070         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
53071         HAVE_MBSINIT.
53072         * doc/posix-functions/mbsinit.texi: Document the new module.
53073
53074 2008-12-16  Bruno Haible  <bruno@clisp.org>
53075
53076         * lib/unistd.in.h: Add comment.
53077         * tests/test-environ.c: Don't include <stdlib.h>.
53078
53079 2008-12-16  Bruno Haible  <bruno@clisp.org>
53080
53081         * lib/parse-duration.h (parse_duration): Document return value
53082         convention.
53083         * lib/parse-duration.c: Include specification header first. Add
53084         comments.
53085         (_): Remove macro.
53086         (parse_year_month_day, parse_hour_minute_second): Move side effects
53087         outside of strchr call.
53088         (parse_non_iso8601): Move side effects outside of isspace call.
53089         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
53090         call.
53091
53092 2008-12-16  Bruno Haible  <bruno@clisp.org>
53093
53094         * tests/test-parse-duration.sh: Produce no output when the test
53095         succeeds.
53096
53097 2008-12-16  Bruno Haible  <bruno@clisp.org>
53098
53099         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
53100         expressions.
53101
53102 2008-12-15  Bruno Haible  <bruno@clisp.org>
53103
53104         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
53105         * doc/glibc-functions/flistxattr.texi: Likewise.
53106         * doc/glibc-functions/fopencookie.texi: Likewise.
53107         * doc/glibc-functions/fremovexattr.texi: Likewise.
53108         * doc/glibc-functions/fsetxattr.texi: Likewise.
53109         * doc/glibc-functions/getxattr.texi: Likewise.
53110         * doc/glibc-functions/lgetxattr.texi: Likewise.
53111         * doc/glibc-functions/listxattr.texi: Likewise.
53112         * doc/glibc-functions/llistxattr.texi: Likewise.
53113         * doc/glibc-functions/lremovexattr.texi: Likewise.
53114         * doc/glibc-functions/lsetxattr.texi: Likewise.
53115         * doc/glibc-functions/removexattr.texi: Likewise.
53116         * doc/glibc-functions/setxattr.texi: Likewise.
53117         * doc/posix-functions/open_memstream.texi: Likewise.
53118
53119 2008-12-15  Eric Blake  <ebb9@byu.net>
53120
53121         Update doc for cygwin 1.7.
53122         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
53123         functions.
53124         * doc/posix-functions/fchmodat.texi: Likewise.
53125         * doc/posix-functions/fchownat.texi: Likewise.
53126         * doc/posix-functions/fdopendir.texi: Likewise.
53127         * doc/posix-functions/fmemopen.texi: Likewise.
53128         * doc/posix-functions/freeaddrinfo.texi: Likewise.
53129         * doc/posix-functions/fstatat.texi: Likewise.
53130         * doc/posix-functions/futimens.texi: Likewise.
53131         * doc/posix-functions/gai_strerror.texi: Likewise.
53132         * doc/posix-functions/getaddrinfo.texi: Likewise.
53133         * doc/posix-functions/getnameinfo.texi: Likewise.
53134         * doc/posix-functions/if_freenameindex.texi: Likewise.
53135         * doc/posix-functions/if_indextoname.texi: Likewise.
53136         * doc/posix-functions/if_nameindex.texi: Likewise.
53137         * doc/posix-functions/if_nametoindex.texi: Likewise.
53138         * doc/posix-functions/insque.texi: Likewise.
53139         * doc/posix-functions/linkat.texi: Likewise.
53140         * doc/posix-functions/llrint.texi: Likewise.
53141         * doc/posix-functions/llrintf.texi: Likewise.
53142         * doc/posix-functions/llrintl.texi: Likewise.
53143         * doc/posix-functions/lockf.texi: Likewise.
53144         * doc/posix-functions/lrintl.texi: Likewise.
53145         * doc/posix-functions/mkdirat.texi: Likewise.
53146         * doc/posix-functions/mkfifoat.texi: Likewise.
53147         * doc/posix-functions/mknodat.texi: Likewise.
53148         * doc/posix-functions/mq_close.texi: Likewise.
53149         * doc/posix-functions/mq_getattr.texi: Likewise.
53150         * doc/posix-functions/mq_notify.texi: Likewise.
53151         * doc/posix-functions/mq_open.texi: Likewise.
53152         * doc/posix-functions/mq_receive.texi: Likewise.
53153         * doc/posix-functions/mq_send.texi: Likewise.
53154         * doc/posix-functions/mq_setattr.texi: Likewise.
53155         * doc/posix-functions/mq_timedreceive.texi: Likewise.
53156         * doc/posix-functions/mq_timedsend.texi: Likewise.
53157         * doc/posix-functions/mq_unlink.texi: Likewise.
53158         * doc/posix-functions/open_memstream.texi: Likewise.
53159         * doc/posix-functions/openat.texi: Likewise.
53160         * doc/posix-functions/posix_fadvise.texi: Likewise.
53161         * doc/posix-functions/posix_fallocate.texi: Likewise.
53162         * doc/posix-functions/posix_madvise.texi: Likewise.
53163         * doc/posix-functions/posix_memalign.texi: Likewise.
53164         * doc/posix-functions/posix_openpt.texi: Likewise.
53165         * doc/posix-functions/readlinkat.texi: Likewise.
53166         * doc/posix-functions/remque.texi: Likewise.
53167         * doc/posix-functions/renameat.texi: Likewise.
53168         * doc/posix-functions/rintl.texi: Likewise.
53169         * doc/posix-functions/sem_unlink.texi: Likewise.
53170         * doc/posix-functions/shm_open.texi: Likewise.
53171         * doc/posix-functions/shm_unlink.texi: Likewise.
53172         * doc/posix-functions/signgam.texi: Likewise.
53173         * doc/posix-functions/sigset.texi: Likewise.
53174         * doc/posix-functions/stpcpy.texi: Likewise.
53175         * doc/posix-functions/stpncpy.texi: Likewise.
53176         * doc/posix-functions/strerror.texi: Likewise.
53177         * doc/posix-functions/strtod.texi: Likewise.
53178         * doc/posix-functions/symlinkat.texi: Likewise.
53179         * doc/posix-functions/unlinkat.texi: Likewise.
53180         * doc/posix-functions/utimensat.texi: Likewise.
53181         * doc/glibc-functions/bindresvport.texi: Likewise.
53182         * doc/glibc-functions/dn_expand.texi: Likewise.
53183         * doc/glibc-functions/exp10.texi: Likewise.
53184         * doc/glibc-functions/exp10f.texi: Likewise.
53185         * doc/glibc-functions/fgetxattr.texi: Likewise.
53186         * doc/glibc-functions/flistxattr.texi: Likewise.
53187         * doc/glibc-functions/fopencookie.texi: Likewise.
53188         * doc/glibc-functions/freeifaddrs.texi: Likewise.
53189         * doc/glibc-functions/fremovexattr.texi: Likewise.
53190         * doc/glibc-functions/fsetxattr.texi: Likewise.
53191         * doc/glibc-functions/getifaddrs.texi: Likewise.
53192         * doc/glibc-functions/getxattr.texi: Likewise.
53193         * doc/glibc-functions/lgetxattr.texi: Likewise.
53194         * doc/glibc-functions/listxattr.texi: Likewise.
53195         * doc/glibc-functions/llistxattr.texi: Likewise.
53196         * doc/glibc-functions/lremovexattr.texi: Likewise.
53197         * doc/glibc-functions/lsetxattr.texi: Likewise.
53198         * doc/glibc-functions/pow10.texi: Likewise.
53199         * doc/glibc-functions/pow10f.texi: Likewise.
53200         * doc/glibc-functions/rcmd_af.texi: Likewise.
53201         * doc/glibc-functions/removexattr.texi: Likewise.
53202         * doc/glibc-functions/res_init.texi: Likewise.
53203         * doc/glibc-functions/res_mkquery.texi: Likewise.
53204         * doc/glibc-functions/res_query.texi: Likewise.
53205         * doc/glibc-functions/res_querydomain.texi: Likewise.
53206         * doc/glibc-functions/res_send.texi: Likewise.
53207         * doc/glibc-functions/rresvport_af.texi: Likewise.
53208         * doc/glibc-functions/setxattr.texi: Likewise.
53209         * doc/glibc-functions/strcasestr.texi: Likewise.
53210
53211 2008-12-15  Bruno Haible  <bruno@clisp.org>
53212
53213         Fix compilation error on OSF/1 4.0.
53214         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
53215         <sys/time.h>, simply delegate to the system header.
53216         Reported by Daniel Richard G. <oss@teragram.com>.
53217
53218 2008-12-15  Bruno Haible  <bruno@clisp.org>
53219
53220         * doc/posix-functions/openat.texi: Mention the 'openat' module.
53221         * doc/posix-functions/fchmodat.texi: Likewise.
53222         * doc/posix-functions/fchownat.texi: Likewise.
53223         * doc/posix-functions/fdopendir.texi: Likewise.
53224         * doc/posix-functions/fstatat.texi: Likewise.
53225         * doc/posix-functions/mkdirat.texi: Likewise.
53226         * doc/posix-functions/unlinkat.texi: Likewise.
53227
53228 2008-12-14  Bruno Haible  <bruno@clisp.org>
53229
53230         Update doc for POSIX:2008.
53231         * doc/posix-functions/faccessat.texi: New file.
53232         * doc/posix-functions/fchmodat.texi: New file.
53233         * doc/posix-functions/fchownat.texi: New file.
53234         * doc/posix-functions/fdopendir.texi: New file.
53235         * doc/posix-functions/fstatat.texi: New file.
53236         * doc/posix-functions/futimens.texi: New file.
53237         * doc/posix-functions/linkat.texi: New file.
53238         * doc/posix-functions/mkdirat.texi: New file.
53239         * doc/posix-functions/mkfifoat.texi: New file.
53240         * doc/posix-functions/mknodat.texi: New file.
53241         * doc/posix-functions/open_wmemstream.texi: New file.
53242         * doc/posix-functions/openat.texi: New file.
53243         * doc/posix-functions/psiginfo.texi: New file.
53244         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
53245         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
53246         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
53247         * doc/posix-functions/readlinkat.texi: New file.
53248         * doc/posix-functions/renameat.texi: New file.
53249         * doc/posix-functions/strerror_l.texi: New file.
53250         * doc/posix-functions/symlinkat.texi: New file.
53251         * doc/posix-functions/unlinkat.texi: New file.
53252         * doc/posix-functions/utimensat.texi: New file.
53253         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53254
53255 2008-12-14  Bruno Haible  <bruno@clisp.org>
53256
53257         Update doc for POSIX:2008.
53258         * doc/posix-functions/alphasort.texi: Renamed from
53259         doc/glibc-functions/alphasort.texi.
53260         * doc/posix-functions/dirfd.texi: Renamed from
53261         doc/glibc-functions/dirfd.texi.
53262         * doc/posix-functions/dprintf.texi: Renamed from
53263         doc/glibc-functions/dprintf.texi.
53264         * doc/posix-functions/duplocale.texi: Renamed from
53265         doc/glibc-functions/duplocale.texi.
53266         * doc/posix-functions/fexecve.texi: Renamed from
53267         doc/glibc-functions/fexecve.texi.
53268         * doc/posix-functions/fmemopen.texi: Renamed from
53269         doc/glibc-functions/fmemopen.texi.
53270         * doc/posix-functions/freelocale.texi: Renamed from
53271         doc/glibc-functions/freelocale.texi.
53272         * doc/posix-functions/getdate_err.texi: Renamed from
53273         doc/glibc-functions/getdate_err.texi.
53274         * doc/posix-functions/isalnum_l.texi: Renamed from
53275         doc/glibc-functions/isalnum_l.texi.
53276         * doc/posix-functions/isalpha_l.texi: Renamed from
53277         doc/glibc-functions/isalpha_l.texi.
53278         * doc/posix-functions/isblank_l.texi: Renamed from
53279         doc/glibc-functions/isblank_l.texi.
53280         * doc/posix-functions/iscntrl_l.texi: Renamed from
53281         doc/glibc-functions/iscntrl_l.texi.
53282         * doc/posix-functions/isdigit_l.texi: Renamed from
53283         doc/glibc-functions/isdigit_l.texi.
53284         * doc/posix-functions/isgraph_l.texi: Renamed from
53285         doc/glibc-functions/isgraph_l.texi.
53286         * doc/posix-functions/islower_l.texi: Renamed from
53287         doc/glibc-functions/islower_l.texi.
53288         * doc/posix-functions/isprint_l.texi: Renamed from
53289         doc/glibc-functions/isprint_l.texi.
53290         * doc/posix-functions/ispunct_l.texi: Renamed from
53291         doc/glibc-functions/ispunct_l.texi.
53292         * doc/posix-functions/isspace_l.texi: Renamed from
53293         doc/glibc-functions/isspace_l.texi.
53294         * doc/posix-functions/isupper_l.texi: Renamed from
53295         doc/glibc-functions/isupper_l.texi.
53296         * doc/posix-functions/iswalnum_l.texi: Renamed from
53297         doc/glibc-functions/iswalnum_l.texi.
53298         * doc/posix-functions/iswalpha_l.texi: Renamed from
53299         doc/glibc-functions/iswalpha_l.texi.
53300         * doc/posix-functions/iswblank_l.texi: Renamed from
53301         doc/glibc-functions/iswblank_l.texi.
53302         * doc/posix-functions/iswcntrl_l.texi: Renamed from
53303         doc/glibc-functions/iswcntrl_l.texi.
53304         * doc/posix-functions/iswctype_l.texi: Renamed from
53305         doc/glibc-functions/iswctype_l.texi.
53306         * doc/posix-functions/iswdigit_l.texi: Renamed from
53307         doc/glibc-functions/iswdigit_l.texi.
53308         * doc/posix-functions/iswgraph_l.texi: Renamed from
53309         doc/glibc-functions/iswgraph_l.texi.
53310         * doc/posix-functions/iswlower_l.texi: Renamed from
53311         doc/glibc-functions/iswlower_l.texi.
53312         * doc/posix-functions/iswprint_l.texi: Renamed from
53313         doc/glibc-functions/iswprint_l.texi.
53314         * doc/posix-functions/iswpunct_l.texi: Renamed from
53315         doc/glibc-functions/iswpunct_l.texi.
53316         * doc/posix-functions/iswspace_l.texi: Renamed from
53317         doc/glibc-functions/iswspace_l.texi.
53318         * doc/posix-functions/iswupper_l.texi: Renamed from
53319         doc/glibc-functions/iswupper_l.texi.
53320         * doc/posix-functions/iswxdigit_l.texi: Renamed from
53321         doc/glibc-functions/iswxdigit_l.texi.
53322         * doc/posix-functions/isxdigit_l.texi: Renamed from
53323         doc/glibc-functions/isxdigit_l.texi.
53324         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
53325         doc/glibc-functions/mbsnrtowcs.texi.
53326         * doc/posix-functions/mkdtemp.texi: Renamed from
53327         doc/glibc-functions/mkdtemp.texi.
53328         * doc/posix-functions/newlocale.texi: Renamed from
53329         doc/glibc-functions/newlocale.texi.
53330         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
53331         doc/glibc-functions/nl_langinfo_l.texi.
53332         * doc/posix-functions/open_memstream.texi: Renamed from
53333         doc/glibc-functions/open_memstream.texi.
53334         * doc/posix-functions/opterr.texi: Renamed from
53335         doc/glibc-functions/opterr.texi.
53336         * doc/posix-functions/optind.texi: Renamed from
53337         doc/glibc-functions/optind.texi.
53338         * doc/posix-functions/optopt.texi: Renamed from
53339         doc/glibc-functions/optopt.texi.
53340         * doc/posix-functions/psignal.texi: Renamed from
53341         doc/glibc-functions/psignal.texi.
53342         * doc/posix-functions/scandir.texi: Renamed from
53343         doc/glibc-functions/scandir.texi.
53344         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
53345         doc/glibc-functions/sched_get_priority_min.texi.
53346         * doc/posix-functions/signgam.texi: Renamed from
53347         doc/glibc-functions/signgam.texi.
53348         * doc/posix-functions/stpcpy.texi: Renamed from
53349         doc/glibc-functions/stpcpy.texi.
53350         * doc/posix-functions/stpncpy.texi: Renamed from
53351         doc/glibc-functions/stpncpy.texi.
53352         * doc/posix-functions/strcasecmp_l.texi: Renamed from
53353         doc/glibc-functions/strcasecmp_l.texi.
53354         * doc/posix-functions/strcoll_l.texi: Renamed from
53355         doc/glibc-functions/strcoll_l.texi.
53356         * doc/posix-functions/strfmon_l.texi: Renamed from
53357         doc/glibc-functions/strfmon_l.texi.
53358         * doc/posix-functions/strftime_l.texi: Renamed from
53359         doc/glibc-functions/strftime_l.texi.
53360         * doc/posix-functions/strncasecmp_l.texi: Renamed from
53361         doc/glibc-functions/strncasecmp_l.texi.
53362         * doc/posix-functions/strndup.texi: Renamed from
53363         doc/glibc-functions/strndup.texi.
53364         * doc/posix-functions/strnlen.texi: Renamed from
53365         doc/glibc-functions/strnlen.texi.
53366         * doc/posix-functions/strsignal.texi: Renamed from
53367         doc/glibc-functions/strsignal.texi.
53368         * doc/posix-functions/strxfrm_l.texi: Renamed from
53369         doc/glibc-functions/strxfrm_l.texi.
53370         * doc/posix-functions/timer_gettime.texi: Renamed from
53371         doc/glibc-functions/timer_gettime.texi.
53372         * doc/posix-functions/tolower_l.texi: Renamed from
53373         doc/glibc-functions/tolower_l.texi.
53374         * doc/posix-functions/toupper_l.texi: Renamed from
53375         doc/glibc-functions/toupper_l.texi.
53376         * doc/posix-functions/towctrans_l.texi: Renamed from
53377         doc/glibc-functions/towctrans_l.texi.
53378         * doc/posix-functions/towlower_l.texi: Renamed from
53379         doc/glibc-functions/towlower_l.texi.
53380         * doc/posix-functions/towupper_l.texi: Renamed from
53381         doc/glibc-functions/towupper_l.texi.
53382         * doc/posix-functions/uselocale.texi: Renamed from
53383         doc/glibc-functions/uselocale.texi.
53384         * doc/posix-functions/vdprintf.texi: Renamed from
53385         doc/glibc-functions/vdprintf.texi.
53386         * doc/posix-functions/wcpcpy.texi:
53387         Renamed from doc/glibc-functions/wcpcpy.texi.
53388         * doc/posix-functions/wcpncpy.texi: Renamed from
53389         doc/glibc-functions/wcpncpy.texi.
53390         * doc/posix-functions/wcscasecmp.texi: Renamed from
53391         doc/glibc-functions/wcscasecmp.texi.
53392         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
53393         doc/glibc-functions/wcscasecmp_l.texi.
53394         * doc/posix-functions/wcscoll_l.texi: Renamed from
53395         doc/glibc-functions/wcscoll_l.texi.
53396         * doc/posix-functions/wcsdup.texi: Renamed from
53397         doc/glibc-functions/wcsdup.texi.
53398         * doc/posix-functions/wcsncasecmp.texi: Renamed from
53399         doc/glibc-functions/wcsncasecmp.texi.
53400         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
53401         doc/glibc-functions/wcsncasecmp_l.texi.
53402         * doc/posix-functions/wcsnlen.texi: Renamed from
53403         doc/glibc-functions/wcsnlen.texi.
53404         * doc/posix-functions/wcsnrtombs.texi: Renamed from
53405         doc/glibc-functions/wcsnrtombs.texi.
53406         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
53407         doc/glibc-functions/wcsxfrm_l.texi.
53408         * doc/posix-functions/wctrans_l.texi: Renamed from
53409         doc/glibc-functions/wctrans_l.texi.
53410         * doc/posix-functions/wctype_l.texi: Renamed from
53411         doc/glibc-functions/wctype_l.texi.
53412         * doc/gnulib.texi (Function Substitutes): Add these subsections.
53413         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
53414         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
53415         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
53416         these subsections.
53417         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
53418         Remove sections.
53419
53420 2008-12-14  Bruno Haible  <bruno@clisp.org>
53421
53422         Update doc for POSIX:2008.
53423         * doc/posix-functions/*.texi: Update URL of POSIX specification.
53424
53425 2008-12-14  Bruno Haible  <bruno@clisp.org>
53426
53427         Update doc for POSIX:2008.
53428         * doc/pastposix-functions/bcmp.texi: Renamed from
53429         doc/posix-functions/bcmp.texi.
53430         * doc/pastposix-functions/bcopy.texi: Renamed from
53431         doc/posix-functions/bcopy.texi.
53432         * doc/pastposix-functions/bsd_signal.texi: Renamed from
53433         doc/posix-functions/bsd_signal.texi.
53434         * doc/pastposix-functions/bzero.texi: Renamed from
53435         doc/posix-functions/bzero.texi.
53436         * doc/pastposix-functions/ecvt.texi: Renamed from
53437         doc/posix-functions/ecvt.texi.
53438         * doc/pastposix-functions/fcvt.texi: Renamed from
53439         doc/posix-functions/fcvt.texi.
53440         * doc/pastposix-functions/ftime.texi: Renamed from
53441         doc/posix-functions/ftime.texi.
53442         * doc/pastposix-functions/gcvt.texi: Renamed from
53443         doc/posix-functions/gcvt.texi.
53444         * doc/pastposix-functions/getcontext.texi: Renamed from
53445         doc/posix-functions/getcontext.texi.
53446         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
53447         doc/posix-functions/gethostbyaddr.texi.
53448         * doc/pastposix-functions/gethostbyname.texi: Renamed from
53449         doc/posix-functions/gethostbyname.texi.
53450         * doc/pastposix-functions/getwd.texi: Renamed from
53451         doc/posix-functions/getwd.texi.
53452         * doc/pastposix-functions/h_errno.texi: Renamed from
53453         doc/posix-functions/h_errno.texi.
53454         * doc/pastposix-functions/index.texi: Renamed from
53455         doc/posix-functions/index.texi.
53456         * doc/pastposix-functions/makecontext.texi: Renamed from
53457         doc/posix-functions/makecontext.texi.
53458         * doc/pastposix-functions/mktemp.texi: Renamed from
53459         doc/posix-functions/mktemp.texi.
53460         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
53461         doc/posix-functions/pthread_attr_getstackaddr.texi.
53462         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
53463         doc/posix-functions/pthread_attr_setstackaddr.texi.
53464         * doc/pastposix-functions/rindex.texi: Renamed from
53465         doc/posix-functions/rindex.texi.
53466         * doc/pastposix-functions/scalb.texi: Renamed from
53467         doc/posix-functions/scalb.texi.
53468         * doc/pastposix-functions/setcontext.texi: Renamed from
53469         doc/posix-functions/setcontext.texi.
53470         * doc/pastposix-functions/swapcontext.texi: Renamed from
53471         doc/posix-functions/swapcontext.texi.
53472         * doc/pastposix-functions/ualarm.texi: Renamed from
53473         doc/posix-functions/ualarm.texi.
53474         * doc/pastposix-functions/usleep.texi: Renamed from
53475         doc/posix-functions/usleep.texi.
53476         * doc/pastposix-functions/vfork.texi: Renamed from
53477         doc/posix-functions/vfork.texi.
53478         * doc/pastposix-functions/wcswcs.texi: Renamed from
53479         doc/posix-functions/wcswcs.texi.
53480         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
53481         (Function Substitutes): Update.
53482
53483 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53484
53485         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
53486         m4/strerror.m4.
53487
53488 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53489             Bruno Haible  <bruno@clisp.org>
53490
53491         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
53492
53493 2008-12-13  Bruno Haible  <bruno@clisp.org>
53494
53495         * modules/strtoull (Depends-on): Remove unistd.
53496
53497 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53498
53499         * modules/strtoull (Depends-on): Add stdlib.
53500
53501 2008-12-11  Simon Josefsson  <simon@josefsson.org>
53502
53503         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
53504
53505 2008-12-10  Jim Meyering  <meyering@redhat.com>
53506
53507         gl_ASSERT: don't say assertions are disabled when they're not
53508         * m4/assert.m4 (gl_ASSERT): Do not make configure report
53509         "checking whether to enable assertions... no", when they are in
53510         fact enabled.  This is solely a bug in the output of configure.
53511         In spite of saying "no", NDEBUG was not defined in that case.
53512         Also, as noted by Eric Blake, leave assertions enabled upon
53513         --enable-assert=INVALID.
53514
53515 2008-12-10  Bruno Haible  <bruno@clisp.org>
53516
53517         Change MODULES.html to refer to POSIX:2008 where possible.
53518         * MODULES.html.sh (POSIX2008_URL): New variable.
53519         (posix_headers): Remove sys/timeb, ucontext.
53520         (posix2001_headers): New variable.
53521         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
53522         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
53523         index, makecontext, mktemp, pthread_attr_getstackaddr,
53524         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
53525         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
53526         (posix2001_functions): New variable.
53527         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
53528         otherwise.
53529
53530 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53531
53532         add missing include to parse-duration.c
53533         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
53534         * modules/parse-duration (Depends-on): Add xalloc.
53535
53536         fix sed script reading maint.mk
53537         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
53538         (syntax-check-rules): Use it.
53539
53540 2008-12-09  Bruno Haible  <bruno@clisp.org>
53541
53542         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
53543         MacOS X 10.4/PowerPC.
53544         Reported by Simon Josefsson.
53545
53546 2008-12-08  Jim Meyering  <meyering@redhat.com>
53547
53548         work around mingw's lack of some S_IF definitions
53549         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
53550         Reported by Simon Josefsson.
53551
53552 2008-12-08  Bruno Haible  <bruno@clisp.org>
53553
53554         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
53555         applied to variables. Needed on MacOS X 10.4/PowerPC.
53556         Reported by Simon Josefsson.
53557
53558 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
53559         and Eric Blake  <ebb9@byu.net>
53560
53561         assert: honor --enable-assert
53562         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
53563         order to honor --enable-assert, rather than treating it as a
53564         synonym for --disable-assert.
53565
53566 2008-12-08  Jim Meyering  <meyering@redhat.com>
53567
53568         * lib/posixtm.c: Remove now-useless declaration of mktime.
53569
53570         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
53571
53572 2008-12-07  Bruno Haible  <bruno@clisp.org>
53573
53574         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
53575         test_once): Mark functions as static.
53576         * tests/test-tls.c (test_tls): Likewise.
53577
53578 2008-12-07  Bruno Haible  <bruno@clisp.org>
53579
53580         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
53581         iconv_register_autodetect.
53582
53583 2008-12-07  Jim Meyering  <meyering@redhat.com>
53584
53585         posixtm.c: avoid a warning
53586         * lib/posixtm.c (posixtime): Don't initialize tm0.
53587         It's no longer needed to placate gcc4's -Wuninitialized,
53588         and the attempt to placate would elicit a new warning.
53589
53590         unicodeio.c: mark unused parameters
53591         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53592         (fallback_failure_callback): Likewise.
53593
53594 2008-12-07  Bruno Haible  <bruno@clisp.org>
53595
53596         * gnulib-tool (func_create_testdir): When building the tests
53597         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
53598         Reported by Simon Josefsson.
53599
53600 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53601
53602         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
53603
53604 2008-12-06  Bruno Haible  <bruno@clisp.org>
53605
53606         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
53607         Suggested by Eric Blake.
53608
53609 2008-12-06  Bruno Haible  <bruno@clisp.org>
53610
53611         Fix a c-stack test failure on MacOS X.
53612         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
53613         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
53614         handler for SIGBUS as well.
53615         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
53616         install a signal handler for SIGBUS as well.
53617         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
53618
53619 2008-12-06  Bruno Haible  <bruno@clisp.org>
53620
53621         Advocacy documentation.
53622         * doc/gnulib-intro.texi (Benefits): New section.
53623         * doc/gnulib.texi: Update.
53624
53625 2008-12-06  Bruno Haible  <bruno@clisp.org>
53626
53627         Document the 'manywarnings' module.
53628         * doc/manywarnings.texi: New file.
53629         * doc/gnulib.texi: Include it.
53630
53631 2008-12-05  Eric Blake  <ebb9@byu.net>
53632
53633         tests: silence some gcc warnings
53634         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
53635         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
53636         type mismatches.
53637
53638 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53639             Bruno Haible  <bruno@clisp.org>
53640
53641         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
53642
53643 2008-11-29  Jim Meyering  <meyering@redhat.com>
53644
53645         unicodeio.c: mark unused parameters
53646         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
53647         (fallback_failure_callback): Likewise.
53648
53649         fts: fix a thinko
53650         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
53651         (set_stat_type): Return S_IF*-valued "type" directly.
53652         Prompted by James Youngman's spotting a related bug.
53653         Confirmed by further testing through find.
53654
53655         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
53656         * lib/fts.c (D_TYPE): Define.
53657         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
53658         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
53659         (s_ifmt_shift_bits): New function.
53660         (set_stat_type): New function.
53661         (fts_build): When not calling fts_stat, call set_stat_type
53662         to propagate dirent.d_type info to fts_read caller.
53663         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
53664         fts_statp->st_mode type information may be valid.
53665
53666 2008-11-28  Simon Josefsson  <simon@josefsson.org>
53667
53668         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
53669         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
53670         <sds@gnu.org>.
53671
53672 2008-11-20  Bruno Haible  <bruno@clisp.org>
53673
53674         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
53675         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
53676         INCLUDE_NEXT.
53677         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
53678         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
53679         * modules/math (Makefile.am): Substitute
53680         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
53681         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53682
53683 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
53684             Bruno Haible  <bruno@clisp.org>
53685
53686         * lib/stdint.in.h: Define all type macros so that their expansion is
53687         a single typedef'ed token. Fixes a compilation failure in Boost which
53688         does "using ::int8_t;".
53689
53690 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53691
53692         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
53693         gl_MANYWARN_ALL_GCC.
53694         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
53695         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
53696         * modules/manywarnings: New file.
53697         * MODULES.html.sh: Mention manywarnings module.
53698
53699 2008-11-18  Bruno Haible  <bruno@clisp.org>
53700
53701         * doc/gnulib-tool.texi (Unit tests): New section.
53702
53703 2008-11-18  Simon Josefsson  <simon@josefsson.org>
53704
53705         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
53706         paths like 'lib/po/foo.po'.
53707
53708 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53709
53710         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
53711         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
53712
53713 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53714
53715         * m4/warnings.m4: Use CPPFLAGS to really check whether the
53716         parameter works.
53717
53718 2008-11-17  Simon Josefsson  <simon@josefsson.org>
53719
53720         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
53721
53722 2008-11-17  Bruce Korb  <bkorb@gnu.org>
53723
53724         * modules/parse-duration-tests: New file.
53725         * tests/test-parse-duration.sh: New file.
53726         * tests/test-parse-duration.c: New file.
53727
53728         New module 'parse-duration'.
53729         * lib/parse-duration.h: New file.
53730         * lib/parse-duration.c: New file.
53731         * modules/parse-duration: New file.
53732
53733 2008-11-17  Bruno Haible  <bruno@clisp.org>
53734
53735         * tests/test-select-out.sh: Comment out the first pipe test.
53736         Reported by Simon Josefsson.
53737
53738 2008-11-17  Bruno Haible  <bruno@clisp.org>
53739
53740         * modules/getaddrinfo (Depends-on): Add servent, hostent.
53741         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
53742         gl_HOSTENT.
53743
53744 2008-11-17  Bruno Haible  <bruno@clisp.org>
53745
53746         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
53747         -lnetwork and -lnet. Needed for Haiku and BeOS.
53748
53749 2008-11-16  Bruno Haible  <bruno@clisp.org>
53750
53751         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
53752
53753 2008-11-16  Bruno Haible  <bruno@clisp.org>
53754
53755         Avoid test failure on Haiku.
53756         * tests/test-fsync.c: Include <errno.h>.
53757         (main): Don't require that fsync (0) fails.
53758
53759 2008-11-15  Bruno Haible  <bruno@clisp.org>
53760
53761         New module 'hostent'.
53762         * modules/hostent: New file.
53763         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53764
53765 2008-11-15  Bruno Haible  <bruno@clisp.org>
53766
53767         New module 'servent'.
53768         * modules/servent: New file.
53769         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
53770
53771 2008-11-15  Bruno Haible  <bruno@clisp.org>
53772
53773         Avoid generating same test program with two different rules.
53774         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
53775         test-frexp to test-frexp-nolibm.
53776         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
53777         test-frexpl to test-frexpl-nolibm.
53778
53779 2008-11-15  Bruno Haible  <bruno@clisp.org>
53780
53781         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
53782         $(FREXPL_LIBM).
53783
53784 2008-11-15  Bruno Haible  <bruno@clisp.org>
53785
53786         * lib/netdb.in.h: Activate the definitions also when the system's
53787         <netdb.h> has 'struct addrinfo'.
53788         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
53789         EAI_OVERFLOW or AI_NUMERICSERV.
53790         * doc/posix-headers/netdb.texi: Document the problem.
53791
53792 2008-11-15  Bruno Haible  <bruno@clisp.org>
53793
53794         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
53795
53796         Make the 'sched' module work on platforms where <sched.h> exists but
53797         is incomplete (such as Haiku).
53798         * lib/sched.in.h; Include the system's <sched.h> if it exists.
53799         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
53800         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
53801         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
53802         HAVE_STRUCT_SCHED_PARAM.
53803         * modules/sched (Depends-on): Add include_next.
53804         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
53805         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
53806         * doc/posix-headers/sched.texi: Document the issue.
53807
53808 2008-11-13  Jim Meyering  <meyering@redhat.com>
53809
53810         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53811         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53812         test would fail due to the difference in the Report bugs to ...
53813         line.  The expected address is empty, "<>", while the actual
53814         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53815
53816 2008-11-12  Bruno Haible  <bruno@clisp.org>
53817
53818         lstat: don't compile lstat.c on systems lacking lstat
53819         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53820         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53821         Reported by Daniel P. Berrange via Jim Meyering.
53822
53823 2008-11-12  Jim Meyering  <meyering@redhat.com>
53824
53825         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53826
53827 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53828
53829         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53830         instead.
53831
53832 2008-11-12  Bruno Haible  <bruno@clisp.org>
53833
53834         * lib/unicodeio.c: Include unistr.h.
53835         (utf8_wctomb): Remove function.
53836         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53837
53838 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53839
53840         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53841         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53842         <bruno@clisp.org>.
53843         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53844
53845 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53846
53847         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53848         * doc/gnulib.texi: Add section for warnings.
53849
53850 2008-11-11  Bruno Haible  <bruno@clisp.org>
53851
53852         * lib/sockets.h: Add a comment.
53853
53854 2008-11-11  Karl Berry  <karl@gnu.org>
53855
53856         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53857
53858 2008-11-11  Eric Blake  <ebb9@byu.net>
53859
53860         fdl.texi: avoid git symlinks
53861         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53862
53863 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53864
53865         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53866
53867 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53868
53869         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53870         (gl_WARN_ADD): Substitute $2 if literal.
53871
53872 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53873
53874         * m4/warning.m4: Remove.
53875
53876 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53877
53878         * m4/warnings.m4: Almost complete rewrite. :-)
53879
53880 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53881
53882         * modules/warnings: New module.
53883         * m4/warnings.m4: New file.
53884         * MODULES.html.sh: Mention warnings module.
53885         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53886         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53887
53888 2008-11-10  Eric Blake  <ebb9@byu.net>
53889
53890         fdl.texi: make a symlink to the latest version
53891         * doc/standards.texi: Revert today's earlier change.
53892         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53893         * doc/fdl.texi: ...and replace this with a symlink to the newer
53894         fdl-1.3.texi.
53895
53896 2008-11-10  Bruno Haible  <bruno@clisp.org>
53897
53898         * tests/test-select-fd.c (main): Accept the result file name as fourth
53899         argument.
53900         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53901         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53902
53903 2008-11-10  Bruno Haible  <bruno@clisp.org>
53904
53905         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53906         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53907         as autoconf-substituted macros.
53908         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53909         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53910         gl_NETDB_H_DEFAULTS. Set these variables.
53911         * modules/netdb (Makefile.am): Substitute these variables.
53912
53913 2008-11-10  Eric Blake  <ebb9@byu.net>
53914
53915         standards.texi: include correct file for FDL 1.3
53916         * doc/standards.texi (GNU Free Documentation License): Change
53917         include file to pull in FDL 1.3, not 1.2.
53918
53919         fdl.texi: revert accidental change to license
53920         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53921
53922 2008-11-10  Bruno Haible  <bruno@clisp.org>
53923
53924         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53925         cross-compiling guesses also when the native compile gives no result.
53926
53927 2008-11-10  Bruno Haible  <bruno@clisp.org>
53928
53929         * lib/spawni.c (__spawni): Force variable into the stack.
53930
53931 2008-11-10  Bruno Haible  <bruno@clisp.org>
53932
53933         Add support for Haiku.
53934         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53935         glibc and BeOS, but also on Haiku.
53936         * lib/fpurge.c (fpurge): Likewise.
53937         * lib/freadable.c (freadable): Likewise.
53938         * lib/freadahead.c (freadahead): Likewise.
53939         * lib/freading.c (freading): Likewise.
53940         * lib/freadptr.c (freadptr): Likewise.
53941         * lib/freadseek.c (freadptrinc): Likewise.
53942         * lib/fseeko.c (rpl_fseeko): Likewise.
53943         * lib/fseterr.c (fseterr): Likewise.
53944         * lib/fwritable.c (fwritable): Likewise.
53945         * lib/fwriting.c (fwriting): Likewise.
53946         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53947
53948 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53949
53950         * lib/config.charset: Treat Haiku like BeOS.
53951
53952 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53953
53954         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53955         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53956
53957 2008-11-08  Bruno Haible  <bruno@clisp.org>
53958
53959         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53960         AC_CACHE_CHECK.
53961
53962 2008-11-08  Bruno Haible  <bruno@clisp.org>
53963
53964         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53965
53966 2008-11-08  Bruno Haible  <bruno@clisp.org>
53967
53968         * tests/test-select-fd.c: New file.
53969         * tests/test-select-in.sh: New file.
53970         * tests/test-select-out.sh: New file.
53971         * tests/test-select-stdin.c: New file.
53972         * modules/select-tests (Files): Add the new files.
53973         (Depends-on): Add gettimeofday.
53974         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53975         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53976         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53977
53978 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53979             Bruno Haible  <bruno@clisp.org>
53980
53981         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53982
53983 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53984
53985         * build-aux/pmccabe2html: Added support for C++ source files.
53986
53987 2008-11-05  Ben Pfaff  <blp@gnu.org>
53988
53989         Fix lib/close.c build on Windows.
53990         * modules/close (Files): Add lib/w32sock.h.
53991
53992 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53993
53994         Accept Bison's NEWS format.
53995         * build-aux/announce-gen (print_news_deltas): Tweak
53996         $re_prefix.
53997
53998 2008-11-04  Bruno Haible  <bruno@clisp.org>
53999
54000         * modules/random_r (Maintainer): Add glibc.
54001
54002 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54003
54004         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
54005         by karl@freefriends.org (Karl Berry).
54006         * doc/alloca.texi: Likewise.
54007         * doc/c-ctype.texi: Likewise.
54008         * doc/c-strcase.texi: Likewise.
54009         * doc/c-strcaseeq.texi: Likewise.
54010         * doc/c-strcasestr.texi: Likewise.
54011         * doc/c-strstr.texi: Likewise.
54012         * doc/c-strtod.texi: Likewise.
54013         * doc/c-strtold.texi: Likewise.
54014         * doc/ctime.texi: Likewise.
54015         * doc/error.texi: Likewise.
54016         * doc/fdl.texi: Likewise.
54017         * doc/gcd.texi: Likewise.
54018         * doc/getdate.texi: Likewise.
54019         * doc/gnulib-intro.texi: Likewise.
54020         * doc/gnulib-tool.texi: Likewise.
54021         * doc/gnulib.texi: Likewise.
54022         * doc/inet_ntoa.texi: Likewise.
54023         * doc/maintain.texi: Likewise.
54024         * doc/make-stds.texi: Likewise.
54025         * doc/quote.texi: Likewise.
54026         * doc/regexprops-generic.texi: Likewise.
54027         * doc/standards.texi: Likewise.
54028         * doc/verify.texi: Likewise.
54029         * doc/visibility.texi: Likewise.
54030         * doc/gnulib.texi (GNU Free Documentation License): Include
54031         fdl-1.3.texi instead of fdl.texi.
54032
54033 2008-11-04  Simon Josefsson  <simon@josefsson.org>
54034
54035         * doc/fdl-1.3.texi: New file, from
54036         <http://www.gnu.org/licenses/fdl-1.3.texi>.
54037         * modules/fdl-1.3: Add.
54038         * MODULES.html.sh: Add fdl-1.3.
54039
54040 2008-11-03  Bruno Haible  <bruno@clisp.org>
54041
54042         Make determination of absolute name of header file work with AIX xlc.
54043         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
54044         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
54045         preprocessing.
54046         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
54047         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54048
54049 2008-11-03  Simon Josefsson  <simon@josefsson.org>
54050
54051         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
54052         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
54053         <ludo@gnu.org>.
54054
54055 2008-11-02  Bruno Haible  <bruno@clisp.org>
54056
54057         Mark 'strpbrk' obsolete.
54058         * modules/strpbrk (Status, Notice): New sections.
54059         * modules/strtok_r (Depends-on): Add strpbrk.
54060
54061 2008-11-02  Bruno Haible  <bruno@clisp.org>
54062
54063         Mark 'strdup' obsolete.
54064         * modules/strdup (Status, Notice): New sections.
54065         * modules/findprog (Depends-on): Add strdup.
54066         * modules/getaddrinfo (Depends-on): Likewise.
54067         * modules/localename (Depends-on): Likewise.
54068         * modules/relocatable-lib (Depends-on): Likewise.
54069         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
54070         * modules/relocatable-prog (Depends-on): Likewise.
54071         * modules/trim (Depends-on): Likewise.
54072         * modules/unictype/gen-ctype (Depends-on): Likewise.
54073         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54074
54075 2008-11-02  Bruno Haible  <bruno@clisp.org>
54076
54077         Mark 'strcspn' obsolete.
54078         * modules/strcspn (Status, Notice): New sections.
54079
54080 2008-11-02  Bruno Haible  <bruno@clisp.org>
54081
54082         Mark 'rmdir' obsolete.
54083         * modules/rmdir (Status, Notice): New sections.
54084         * modules/clean-temp (Depends-on): Add rmdir.
54085         * modules/openat (Depends-on): Likewise.
54086
54087 2008-11-02  Bruno Haible  <bruno@clisp.org>
54088
54089         Mark 'raise' obsolete.
54090         * modules/raise (Status, Notice): New sections.
54091         (Include): Specify <signal.h>.
54092         * modules/stdio (Depends-on): Add raise.
54093         * modules/write (Depends-on): Likewise.
54094
54095 2008-11-02  Bruno Haible  <bruno@clisp.org>
54096
54097         Mark 'memset' obsolete.
54098         * modules/memset (Status, Notice): New sections.
54099
54100 2008-11-02  Bruno Haible  <bruno@clisp.org>
54101
54102         Mark 'memmove' obsolete.
54103         * modules/memmove (Status, Notice): New sections.
54104         * modules/argp (Depends-on): Add memmove.
54105         * modules/argz (Depends-on): Likewise.
54106         * modules/canonicalize (Depends-on): Likewise.
54107         * modules/canonicalize-lgpl (Depends-on): Likewise.
54108         * modules/fts (Depends-on): Likewise.
54109         * modules/getcwd (Depends-on): Likewise.
54110         * modules/human (Depends-on): Likewise.
54111         * modules/regex (Depends-on): Likewise.
54112         * modules/striconveh (Depends-on): Likewise.
54113         * modules/trim (Depends-on): Likewise.
54114         * modules/unistr/u8-move (Depends-on): Likewise.
54115         * modules/unistr/u16-move (Depends-on): Likewise.
54116         * modules/unistr/u32-move (Depends-on): Likewise.
54117
54118 2008-11-02  Bruno Haible  <bruno@clisp.org>
54119
54120         Mark 'memcpy' obsolete.
54121         * modules/memcpy (Status, Notice): New sections.
54122
54123 2008-11-02  Bruno Haible  <bruno@clisp.org>
54124
54125         Mark 'memcmp' obsolete.
54126         * modules/memcmp (Status, Notice): New sections.
54127         * modules/argmatch (Depends-on): Add memchr.
54128         * modules/backupfile (Depends-on): Likewise.
54129         * modules/c-strcasestr (Depends-on): Likewise.
54130         * modules/crypto/des (Depends-on): Likewise.
54131         * modules/csharpcomp (Depends-on): Likewise.
54132         * modules/fnmatch (Depends-on): Likewise.
54133         * modules/git-merge-changelog (Depends-on): Likewise.
54134         * modules/isnand (Depends-on): Likewise.
54135         * modules/isnand-nolibm (Depends-on): Likewise.
54136         * modules/isnanf (Depends-on): Likewise.
54137         * modules/isnanf-nolibm (Depends-on): Likewise.
54138         * modules/isnanl (Depends-on): Likewise.
54139         * modules/isnanl-nolibm (Depends-on): Likewise.
54140         * modules/mbchar (Depends-on): Likewise.
54141         * modules/memcoll (Depends-on): Likewise.
54142         * modules/quotearg (Depends-on): Likewise.
54143         * modules/regex (Depends-on): Likewise.
54144         * modules/relocatable-prog (Depends-on): Likewise.
54145         * modules/same (Depends-on): Likewise.
54146         * modules/signbit (Depends-on): Likewise.
54147         * modules/strcasestr-simple (Depends-on): Likewise.
54148         * modules/unictype/gen-ctype (Depends-on): Likewise.
54149         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
54150         * modules/uniname/uniname (Depends-on): Likewise.
54151         * modules/unistr/u8-cmp (Depends-on): Likewise.
54152
54153 2008-11-02  Bruno Haible  <bruno@clisp.org>
54154
54155         Mark 'memchr' obsolete.
54156         * modules/memchr (Status, Notice): New sections.
54157         * modules/argp (Depends-on): Add memchr.
54158         * modules/base64 (Depends-on): Likewise.
54159         * modules/c-strcasestr (Depends-on): Likewise.
54160         * modules/chdir-long (Depends-on): Likewise.
54161         * modules/fnmatch (Depends-on): Likewise.
54162         * modules/getsubopt (Depends-on): Likewise.
54163         * modules/git-merge-changelog (Depends-on): Likewise.
54164         * modules/glob (Depends-on): Likewise.
54165         * modules/strcasestr-simple (Depends-on): Likewise.
54166         * modules/strnlen (Depends-on): Likewise.
54167
54168 2008-11-02  Bruno Haible  <bruno@clisp.org>
54169
54170         Mark 'atexit' obsolete.
54171         * modules/atexit (Status, Notice): New sections.
54172         * modules/chdir-long (Depends-on): Add atexit.
54173         * modules/wait-process (Depends-on): Likewise.
54174
54175 2008-11-02  Bruno Haible  <bruno@clisp.org>
54176
54177         * gnulib-tool: New option --with-obsolete.
54178         (func_usage): Document it.
54179         (func_modules_transitive_closure): Drop obsolete dependencies if
54180         incobsolete is not true.
54181         (func_import): Read and save the incobsolete variable to the cache.
54182
54183 2008-11-02  Bruno Haible  <bruno@clisp.org>
54184
54185         * modules/TEMPLATE-EXTENDED: New field 'Status'.
54186         * gnulib-tool: New option --extract-status.
54187         (func_usage): Document it.
54188         (sed_extract_prog): Recognize it.
54189         (func_get_status): New function.
54190
54191 2008-10-30  Simon Josefsson  <simon@josefsson.org>
54192
54193         * modules/sockets (License): Change from LGPL to LGPLv2+.
54194
54195 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54196
54197         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
54198
54199 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54200
54201         * MODULES.html.sh (Support for systems lacking POSIX:2001):
54202         Mention times and sys_times.
54203         * modules/sys_times, modules/sys_times-tests: New modules.
54204         * modules/times, modules/times-tests: Likewise
54205         * m4/sys_times_h.m4: New file.
54206         * lib/sys_times.in.h: Likewise
54207         * lib/times.c: Likewise.
54208         * tests/test-sys_times.c: Likewise.
54209         * tests/test-times.c: Likewise.
54210         * doc/posix-headers/sys_times.texi: Update.
54211         * doc/posix-functions/times.texi: Update.
54212
54213 2008-10-28  Jim Meyering  <meyering@redhat.com>
54214
54215         * modules/tempname (Depends-on): Add lstat.
54216
54217         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
54218
54219 2008-10-28  Simon Josefsson  <simon@josefsson.org>
54220
54221         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
54222         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
54223         using idiom used elsewhere in gnulib.
54224
54225 2008-10-27  Jim Meyering  <meyering@redhat.com>
54226
54227         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
54228
54229 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54230
54231         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
54232         TESTS_ENVIRONMENT, for shell scripts that needs to call built
54233         programs.
54234         * tests/test-argp-2.sh: Use $EXEEXT when needed.
54235
54236 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54237
54238         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
54239
54240 2008-10-27  Bruno Haible  <bruno@clisp.org>
54241
54242         * tests/test-lstat.c: Include <stdio.h>.
54243
54244 2008-10-27  Simon Josefsson  <simon@josefsson.org>
54245
54246         * modules/lstat-tests: New module.
54247         * tests/test-lstat.c: New file.
54248
54249 2008-10-26  Jim Meyering  <meyering@redhat.com>
54250
54251         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
54252
54253 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54254             Bruno Haible  <bruno@clisp.org>
54255
54256         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
54257         * modules/configmake (Include): Add a note that the include must come
54258         after all system headers.
54259         * lib/javaversion.c: Include configmake.h after all other includes.
54260
54261 2008-10-26  Bruno Haible  <bruno@clisp.org>
54262
54263         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
54264         HAVE_STRUCT_RANDOM_DATA to 1.
54265         (gl_STDLIB_H): Simplify.
54266
54267 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54268
54269         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
54270         substitute HAVE_STRUCT_RANDOM_DATA.
54271         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
54272         random_data.
54273         * modules/stdlib (Makefile.am): Substitute
54274         HAVE_STRUCT_RANDOM_DATA.
54275
54276 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54277
54278         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
54279         * doc/gnulib-intro.texi (Copyright): Likewise.
54280
54281 2008-10-26  Simon Josefsson  <simon@josefsson.org>
54282
54283         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
54284         findings.
54285
54286 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
54287             Bruno Haible  <bruno@clisp.org>
54288
54289         * lib/unistd.in.h: Include <winsock2.h>.
54290         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
54291         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
54292         Provide dummy declarations.
54293         (gethostname): Override.
54294         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
54295         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
54296         gl_PREREQ_SYS_H_WINSOCK2.
54297         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
54298         * doc/posix-functions/gethostname.texi: More details.
54299
54300 2008-10-25  Bruno Haible  <bruno@clisp.org>
54301
54302         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54303         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
54304         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
54305
54306         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
54307         here ...
54308         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
54309         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
54310         gl_UNISTD_H_DEFAULTS.
54311
54312 2008-10-25  Eric Blake  <ebb9@byu.net>
54313
54314         signbit: avoid spurious compiler failure
54315         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
54316         declarations inside function.
54317
54318 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54319             Bruno Haible  <bruno@clisp.org>
54320
54321         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
54322         * modules/random_r (Depends-on): Add stdint.
54323
54324 2008-10-24  Bruno Haible  <bruno@clisp.org>
54325
54326         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
54327         Eggert.
54328         * modules/strerror (License): Likewise.
54329
54330 2008-10-24  Jim Meyering  <meyering@redhat.com>
54331
54332         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
54333         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
54334
54335 2008-10-24  Eric Blake  <ebb9@byu.net>
54336
54337         getgroups: fix compilation when getgroups is available
54338         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
54339         but with <config.h> override of getgroups disabled.
54340
54341 2008-10-24  Simon Josefsson  <simon@josefsson.org>
54342
54343         * doc/gnulib.texi (Header files): Add note about C++ problems.
54344         Explained by Bruno Haible <bruno@clisp.org>.
54345
54346 2008-10-23  Bruno Haible  <bruno@clisp.org>
54347
54348         Define a dummy SA_NODEFER macro on Interix.
54349         * lib/signal.in.h (SA_NODEFER): Define fallback.
54350         Reported by Aleksey Cheusov <cheusov@tut.by> via
54351         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
54352
54353 2008-10-23  Bruno Haible  <bruno@clisp.org>
54354
54355         * modules/freadahead (License): Change to LGPLv2+.
54356         Suggested by Simon Josefsson.
54357
54358 2008-10-23  Jim Meyering  <meyering@redhat.com>
54359
54360         random_r: new module
54361         * modules/random_r: New file.
54362         * m4/random_r.m4: New file.
54363         * lib/random_r.c: New file, from glibc.
54364         * modules/random_r-tests: New file.
54365         * tests/test-random_r.c: New file.
54366         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
54367          Declare.
54368         (RAND_MAX): Define.
54369         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
54370         * modules/stdlib: Substitute them, too.
54371         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
54372         * doc/glibc-functions/initstate_r.texi: Mention the new module.
54373         * doc/glibc-functions/random_r.texi: Likewise.
54374         * doc/glibc-functions/setstate_r.texi: Likewise.
54375         * doc/glibc-functions/srandom_r.texi: Likewise.
54376         * config/srclist.txt: Mention it.
54377
54378 2008-10-23  David Lutterkort  <lutter@redhat.com>
54379
54380         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
54381         link requirement
54382
54383 2008-10-23  Jim Meyering  <meyering@redhat.com>
54384
54385         selinux-h: mark parameters of stub functions as intentionally unused
54386         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
54387         * lib/se-context.in.h: Likewise.
54388
54389 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54390
54391         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
54392
54393 2008-10-22  Simon Josefsson  <simon@josefsson.org>
54394
54395         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
54396
54397 2008-10-22  Eric Blake  <ebb9@byu.net>
54398
54399         glthread/thread: avoid compiler warning
54400         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
54401         Add unreachable abort to silence compiler.
54402
54403 2008-10-22  Eric Blake  <ebb9@byu.net>
54404
54405         netdb: also supply struct addrinfo for cygwin 1.5.x
54406         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
54407         older cygwin.
54408         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
54409         cygwin.
54410         * doc/posix-headers/netdb.texi (netdb.h): Document this.
54411
54412 2008-10-22  Bruno Haible  <bruno@clisp.org>
54413
54414         * users.txt: Update entry about pspp.
54415
54416 2008-10-21  Bruno Haible  <bruno@clisp.org>
54417
54418         Simplification.
54419         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
54420         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
54421
54422         Simplification.
54423         * lib/ioctl.c (ioctl): Don't undefine.
54424         * lib/socket.c (socket): Don't undefine.
54425
54426         Remove unused module indicator macros.
54427         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
54428         GNULIB_$1 as a C macro.
54429
54430         * doc/posix-functions/close.texi: Undo last change.
54431         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
54432         Windows platforms.
54433
54434 2008-10-21  Bruno Haible  <bruno@clisp.org>
54435
54436         Add gethostname() declaration to <unistd.h>.
54437         * lib/unistd.in.h (gethostname): New declaration.
54438         * lib/gethostname.c: Include <unistd.h>.
54439         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
54440         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
54441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
54442         and HAVE_GETHOSTNAME.
54443         * modules/gethostname (Depends-on): Add unistd.
54444         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54445         (Include): Specify <unistd.h>.
54446         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
54447         HAVE_GETHOSTNAME.
54448         * tests/test-gethostname.c: Include <unistd.h> first.
54449
54450 2008-10-21  Bruno Haible  <bruno@clisp.org>
54451
54452         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
54453         * modules/select-tests (Depends-on): Likewise.
54454         Reported by Simon Josefsson.
54455
54456 2008-10-21  Simon Josefsson  <simon@josefsson.org>
54457
54458         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
54459         * lib/accept.c: New file, based on winsock.c.
54460         * lib/bind.c: New file, based on winsock.c.
54461         * lib/connect.c: New file, based on winsock.c.
54462         * lib/getpeername.c: New file, based on winsock.c.
54463         * lib/getsockname.c: New file, based on winsock.c.
54464         * lib/getsockopt.c: New file, based on winsock.c.
54465         * lib/ioctl.c: New file, based on winsock.c.
54466         * lib/listen.c: New file, based on winsock.c.
54467         * lib/recv.c: New file, based on winsock.c.
54468         * lib/recvfrom.c: New file, based on winsock.c.
54469         * lib/send.c: New file, based on winsock.c.
54470         * lib/sendto.c: New file, based on winsock.c.
54471         * lib/setsockopt.c: New file, based on winsock.c.
54472         * lib/shutdown.c: New file, based on winsock.c.
54473         * lib/socket.c: New file, based on winsock.c.
54474         * lib/w32sock.h: New file, based on winsock.c.
54475         * lib/winsock.c: Remove file.
54476         * modules/accept: Likewise.
54477         * modules/bind: Likewise.
54478         * modules/connect: Likewise.
54479         * modules/getpeername: Likewise.
54480         * modules/getsockname: Likewise.
54481         * modules/getsockopt: Likewise.
54482         * modules/ioctl: Likewise.
54483         * modules/listen: Likewise.
54484         * modules/recv: Likewise.
54485         * modules/recvfrom: Likewise.
54486         * modules/send: Likewise.
54487         * modules/sendto: Likewise.
54488         * modules/setsockopt: Likewise.
54489         * modules/shutdown: Likewise.
54490         * modules/socket: Use socket.c instead of winsock.c.
54491         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
54492         * doc/posix-functions/accept.texi: Doc fix.
54493         * doc/posix-functions/bind.texi: Doc fix.
54494         * doc/posix-functions/close.texi: Doc fix.
54495         * doc/posix-functions/connect.texi: Doc fix.
54496         * doc/posix-functions/getpeername.texi: Doc fix.
54497         * doc/posix-functions/getsockname.texi: Doc fix.
54498         * doc/posix-functions/getsockopt.texi: Doc fix.
54499         * doc/posix-functions/ioctl.texi: Doc fix.
54500         * doc/posix-functions/listen.texi: Doc fix.
54501         * doc/posix-functions/recv.texi: Doc fix.
54502         * doc/posix-functions/recvfrom.texi: Doc fix.
54503         * doc/posix-functions/send.texi: Doc fix.
54504         * doc/posix-functions/sendto.texi: Doc fix.
54505         * doc/posix-functions/setsockopt.texi: Doc fix.
54506         * doc/posix-functions/shutdown.texi: Doc fix.
54507         * doc/posix-functions/socket.texi: Doc fix.
54508
54509 2008-10-20  Bruno Haible  <bruno@clisp.org>
54510
54511         Take into account the role of SIGABRT_COMPAT on Windows 2008.
54512         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
54513         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
54514         as an alias for SIGABRT.
54515         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
54516         (sigaction): Map it to SIGABRT.
54517         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
54518
54519 2008-10-20  Bruno Haible  <bruno@clisp.org>
54520
54521         * lib/fts.c: Don't include lstat.h.
54522         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
54523
54524         Move the lstat() declaration to <sys/stat.h>.
54525         * lib/lstat.h: Remove file.
54526         * lib/sys_stat.in.h: Add special invocation convention.
54527         (lstat): New declaration.
54528         * lib/lstat.c (orig_lstat): New function.
54529         (rpl_lstat): Use orig_lstat instead of lstat.
54530         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
54531         AC_C_INLINE. Set REPLACE_LSTAT.
54532         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
54533         and REPLACE_LSTAT.
54534         * modules/lstat (Files): Remove lib/lstat.h.
54535         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54536         (Include): Specify <sys/stat.h> instead of lstat.h.
54537         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
54538         REPLACE_LSTAT.
54539         * NEWS: Mention the change.
54540
54541 2008-10-20  Bruno Haible  <bruno@clisp.org>
54542
54543         * modules/posix_spawn-tests: New file.
54544         * tests/test-posix_spawn3.c: New file.
54545
54546 2008-10-20  Bruno Haible  <bruno@clisp.org>
54547
54548         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
54549         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54550         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
54551         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
54552         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
54553
54554 2008-10-20  Bruno Haible  <bruno@clisp.org>
54555
54556         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
54557         of posix_spawn on AIX 5.3.
54558
54559 2008-10-20  Bruno Haible  <bruno@clisp.org>
54560
54561         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
54562
54563 2008-10-20  Bruno Haible  <bruno@clisp.org>
54564
54565         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
54566         of AC_LANG_PROGRAM.
54567
54568 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54569
54570         * lib/netdb.in.h: Don't define GNU specific constants until they
54571         are supported or needed.  Reported by Bruno Haible
54572         <bruno@clisp.org>.
54573
54574 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54575
54576         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
54577
54578 2008-10-20  Simon Josefsson  <simon@josefsson.org>
54579
54580         * lib/getaddrinfo.h: Remove file.
54581         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
54582         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
54583         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
54584         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
54585         * modules/netdb: Substitute GNULIB_GETADDRINFO.
54586         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
54587         * tests/test-getaddrinfo.c: Likewise.
54588         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
54589         * NEWS: Mention change.
54590
54591 2008-10-19  Bruno Haible  <bruno@clisp.org>
54592
54593         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
54594
54595 2008-10-19  Bruno Haible  <bruno@clisp.org>
54596
54597         * lib/wait-process.c: Include simply <sys/wait.h>.
54598         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
54599         WIFSTOPPED): Remove fallback definitions.
54600         * modules/wait-process (Depends-on): Add sys_wait.
54601
54602         New module 'sys_wait'.
54603         * modules/sys_wait: New file.
54604         * lib/sys_wait.in.h: New file, partially copied from
54605         lib/wait-process.c.
54606         * m4/sys_wait_h.m4: New file.
54607         * doc/posix-headers/sys_wait.texi: Mention the new module.
54608
54609 2008-10-19  Bruno Haible  <bruno@clisp.org>
54610
54611         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
54612
54613 2008-10-19  Bruno Haible  <bruno@clisp.org>
54614
54615         Assume that waitpid() fills an 'int' status, not a 'union wait'.
54616         * lib/wait-process.c (WAIT_T): Remove type.
54617         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
54618         (wait_subprocess): Update.
54619
54620 2008-10-19  Bruno Haible  <bruno@clisp.org>
54621
54622         New module 'atoll'.
54623         * modules/atoll: New file.
54624         * lib/stdlib.in.h (atoll): New declaration.
54625         * lib/atoll.c: New file, from glibc with modifications.
54626         * m4/atoll.m4: New file.
54627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
54628         HAVE_ATOLL.
54629         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
54630         * doc/posix-functions/atoll.texi: Mention the new module.
54631
54632 2008-10-19  Bruno Haible  <bruno@clisp.org>
54633
54634         Add strtoull() declaration to <stdlib.h>.
54635         * lib/stdlib.in.h (strtoull): New declaration.
54636         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54637         Set HAVE_STRTOULL.
54638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
54639         HAVE_STRTOULL.
54640         * modules/strtoull (Depends-on): Add stdlib.
54641         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54642         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
54643         HAVE_STRTOULL.
54644
54645 2008-10-19  Bruno Haible  <bruno@clisp.org>
54646
54647         Add strtoll() declaration to <stdlib.h>.
54648         * lib/stdlib.in.h (strtoll): New declaration.
54649         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
54650         Set HAVE_STRTOLL.
54651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
54652         HAVE_STRTOLL.
54653         * modules/strtoll (Depends-on): Add stdlib.
54654         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54655         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
54656
54657 2008-10-19  Bruno Haible  <bruno@clisp.org>
54658
54659         * modules/bcopy (Depends-on): Add strings.
54660         (Include): Specify <strings.h>.
54661
54662 2008-10-19  Bruno Haible  <bruno@clisp.org>
54663
54664         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
54665
54666 2008-10-19  Bruno Haible  <bruno@clisp.org>
54667
54668         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
54669         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
54670         mingw.
54671
54672 2008-10-19  Bruno Haible  <bruno@clisp.org>
54673
54674         * lib/atanl.c: Don't include isnanl.h.
54675         * lib/cosl.c: Likewise.
54676         * lib/ldexpl.c: Likewise.
54677         * lib/logl.c: Likewise.
54678         * lib/sinl.c: Likewise.
54679         * lib/sqrtl.c: Likewise.
54680         * lib/tanl.c: Likewise.
54681
54682         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
54683         * lib/isnanf.h: Remove file.
54684         * lib/isnand.h: Remove file.
54685         * lib/isnanl.h: Remove file.
54686         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
54687         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
54688         macros.
54689         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
54690         HAVE_ISNANF, don't define it as a C macro.
54691         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
54692         HAVE_ISNAND, don't define it as a C macro.
54693         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
54694         HAVE_ISNANL, don't define it as a C macro.
54695         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
54696         HAVE_ISNAN[FDL].
54697         * modules/isnanf (Files): Remove lib/isnanf.h.
54698         (Depends-on): Add math.
54699         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54700         (Include): Specify <math.h> instead of isnanf.h.
54701         * modules/isnand (Files): Remove lib/isnand.h.
54702         (Depends-on): Add math.
54703         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54704         (Include): Specify <math.h> instead of isnand.h.
54705         * modules/isnanl (Files): Remove lib/isnanl.h.
54706         (Depends-on): Add math.
54707         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
54708         (Include): Specify <math.h> instead of isnanl.h.
54709         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
54710         HAVE_ISNAN[FDL].
54711         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
54712         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
54713         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
54714         * NEWS: Mention the change.
54715
54716 2008-10-18  Bruno Haible  <bruno@clisp.org>
54717
54718         Add getusershell(), setusershell(), endusershell() declarations to
54719         <unistd.h>.
54720         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
54721         declarations.
54722         * lib/getusershell.c: Include unistd.h.
54723         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
54724         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54725         HAVE_GETUSERSHELL.
54726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
54727         and HAVE_GETUSERSHELL.
54728         * modules/getusershell (Depends-on): Add unistd, extensions.
54729         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54730         (Include): Specify <unistd.h>.
54731         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
54732         HAVE_GETUSERSHELL.
54733
54734 2008-10-18  Bruno Haible  <bruno@clisp.org>
54735
54736         Add a getloadavg() declaration to <stdlib.h>.
54737         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
54738         getloadavg declaration.
54739         (getloadavg): New declaration.
54740         * lib/getloadavg.c: Include <stdlib.h> first.
54741         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
54742         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
54743         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
54744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
54745         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54746         * modules/getloadavg (Depends-on): Add stdlib, extensions.
54747         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54748         (Include): Specify <stdlib.h>.
54749         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
54750         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
54751
54752 2008-10-18  Bruno Haible  <bruno@clisp.org>
54753
54754         * lib/dirchownmod.c: Don't include lchmod.h.
54755
54756         Move the lchmod() declaration to <sys/stat.h>.
54757         * lib/lchmod.h: Remove file.
54758         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
54759         (lchmod): New declaration, moved here from lib/lchown.h.
54760         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
54761         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
54762         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
54763         and HAVE_LCHMOD.
54764         * modules/lchmod (Files): Remove lib/lchmod.h.
54765         (Depends-on): Add sys_stat, extensions.
54766         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
54767         (Include): Specify <sys/stat.h> instead of lchmod.h.
54768         * modules/sys_stat (Depends-on): Add link-warning.
54769         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
54770         definition of GL_LINK_WARNING.
54771         * NEWS: Mention the change.
54772
54773 2008-10-18  Bruno Haible  <bruno@clisp.org>
54774
54775         * lib/fchdir.c: Don't include dirfd.h.
54776         * lib/fts.c: Likewise.
54777         * lib/getcwd.c: Likewise.
54778         * lib/glob.c: Likewise.
54779
54780         Move the dirfd() declaration to <dirent.h>.
54781         * lib/dirfd.h: Remove file.
54782         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
54783         (dirfd): New declaration.
54784         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
54785         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
54786         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
54787         HAVE_DECL_DIRFD.
54788         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
54789         HAVE_DECL_DIRFD.
54790         * modules/dirfd (Files): Remove lib/dirfd.h.
54791         (Depends-on): Add dirent, extensions.
54792         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
54793         (Include): Specify <dirent.h> instead of dirfd.h.
54794         * modules/dirent (Depends-on): Add link-warning.
54795         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
54796         definition of GL_LINK_WARNING.
54797         * NEWS: Mention the change.
54798
54799 2008-10-18  Bruno Haible  <bruno@clisp.org>
54800
54801         Move the euidaccess() declaration to <unistd.h>.
54802         * lib/euidaccess.h: Remove file.
54803         * lib/unistd.in.h (euidaccess): New declaration.
54804         * lib/euidaccess.c: Don't include euidaccess.h.
54805         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
54806         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
54807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
54808         and HAVE_EUIDACCESS.
54809         * modules/euidaccess (Files): Remove lib/euidaccess.h.
54810         (Depends-on): Add unistd.
54811         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54812         (Include): Specify <unistd.h> instead of euidaccess.h.
54813         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54814         HAVE_EUIDACCESS.
54815         * NEWS: Mention the change.
54816
54817 2008-10-18  Bruno Haible  <bruno@clisp.org>
54818
54819         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54820
54821         Move the getdomainname() declaration to <unistd.h>.
54822         * lib/getdomainname.h: Remove file.
54823         * lib/unistd.in.h (getdomainname): New declaration.
54824         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54825         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54826         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54827         HAVE_GETDOMAINNAME.
54828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54829         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54830         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54831         (Depends-on): Add unistd, extensions.
54832         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54833         (Includes): Specify <unistd.h> instead of getdomainname.h.
54834         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54835         HAVE_GETDOMAINNAME.
54836         * NEWS: Mention the change.
54837
54838 2008-10-18  Bruno Haible  <bruno@clisp.org>
54839
54840         * modules/dirent: New file.
54841         * m4/dirent_h.m4: New file.
54842         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54843         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54844         * modules/fchdir (Files): Remove lib/dirent.in.h.
54845         (Depends-on): Add dirent.
54846         (Makefile.am): Move rules to modules/dirent.
54847         * doc/posix-headers/dirent.texi: Mention the new module.
54848
54849 2008-10-18  Bruno Haible  <bruno@clisp.org>
54850
54851         Avoid -Wunused-parameter warnings in public gnulib header files.
54852         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54853         macro.
54854         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54855
54856 2008-10-18  Bruno Haible  <bruno@clisp.org>
54857
54858         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54859         * doc/glibc-functions/error.texi: Mention the module 'error'.
54860         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54861         * doc/glibc-functions/getdomainname.texi: Mention the module
54862         'getdomainname'.
54863         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54864         * doc/glibc-functions/getpagesize.texi: Mention the module
54865         'getpagesize'.
54866         * doc/glibc-functions/getusershell.texi: Mention the module
54867         'getusershell'.
54868         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54869         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54870         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54871         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54872         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54873         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54874         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54875         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54876         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54877         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54878         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54879         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54880         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54881         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54882
54883 2008-10-17  Bruno Haible  <bruno@clisp.org>
54884
54885         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54886         HP-UX and IRIX, use -0.0L.
54887         * tests/test-ceill.c (minus_zero): Likewise.
54888         * tests/test-floorl.c (minus_zero): Likewise.
54889         * tests/test-frexpl.c (minus_zero): Likewise.
54890         * tests/test-isnan.c (minus_zerol): Likewise.
54891         * tests/test-isnanl.h (minus_zero): Likewise.
54892         * tests/test-ldexpl.c (minus_zero): Likewise.
54893         * tests/test-roundl.c (minus_zero): Likewise.
54894         * tests/test-signbit.c (minus_zerol): Likewise.
54895         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54896         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54897         * tests/test-truncl.c (minus_zero): Likewise.
54898         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54899         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54900         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54901         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54902
54903 2008-10-17  Bruno Haible  <bruno@clisp.org>
54904
54905         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54906         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54907         that it gets activated only for gcc >= 3.0.
54908         * lib/dirent.in.h: Likewise.
54909         * lib/errno.in.h: Likewise.
54910         * lib/fcntl.in.h: Likewise.
54911         * lib/float.in.h: Likewise.
54912         * lib/iconv.in.h: Likewise.
54913         * lib/inttypes.in.h: Likewise.
54914         * lib/locale.in.h: Likewise.
54915         * lib/math.in.h: Likewise.
54916         * lib/netdb.in.h: Likewise.
54917         * lib/netinet_in.in.h: Likewise.
54918         * lib/search.in.h: Likewise.
54919         * lib/signal.in.h: Likewise.
54920         * lib/spawn.in.h: Likewise.
54921         * lib/stdarg.in.h: Likewise.
54922         * lib/stdint.in.h: Likewise.
54923         * lib/stdio.in.h: Likewise.
54924         * lib/stdlib.in.h: Likewise.
54925         * lib/string.in.h: Likewise.
54926         * lib/strings.in.h: Likewise.
54927         * lib/sys_file.in.h: Likewise.
54928         * lib/sys_ioctl.in.h: Likewise.
54929         * lib/sys_select.in.h: Likewise.
54930         * lib/sys_socket.in.h: Likewise.
54931         * lib/sys_stat.in.h: Likewise.
54932         * lib/sys_time.in.h: Likewise.
54933         * lib/sysexits.in.h: Likewise.
54934         * lib/time.in.h: Likewise.
54935         * lib/unistd.in.h: Likewise.
54936         * lib/wchar.in.h: Likewise.
54937         * lib/wctype.in.h: Likewise.
54938         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54939
54940 2008-10-17  Jim Meyering  <meyering@redhat.com>
54941
54942         ignore-value: don't depend on inline module
54943         * modules/ignore-value (Depends-on): Remove 'inline'.
54944         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54945         Suggestion from Bruno Haible.
54946
54947 2008-10-17  Bruno Haible  <bruno@clisp.org>
54948
54949         New implementation of condition variables for Win32.
54950         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54951         (gl_linked_waitqueue_t): New type.
54952         (gl_cond_t): Use it.
54953         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54954         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54955         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54956         (glthread_cond_init_func, glthread_cond_wait_func,
54957         glthread_cond_timedwait_func, glthread_cond_signal_func,
54958         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54959         Reimplemented on the basis of gl_linked_waitqueue_t.
54960         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54961         gl_waitqueue_t.
54962         (gl_rwlock_t): Update.
54963         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54964
54965 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54966
54967         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54968         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54969
54970 2008-10-17  Jim Meyering  <meyering@redhat.com>
54971
54972         ignore-value: new module
54973         * modules/ignore-value: New file.
54974         * lib/ignore-value.h: New file.
54975         * MODULES.html.sh (Compiler warning management): New section,
54976         just for this module.  More to come.
54977
54978 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54979
54980         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54981         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54982         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54983
54984 2008-10-16  Jim Meyering  <meyering@redhat.com>
54985
54986         openat-die.c: avoid 'no previous prototype' warning
54987         * lib/openat-die.c: Include "openat.h".
54988         Reported by Reuben Thomas <rrt@sc3d.org>.
54989
54990 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54991
54992         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54993         * lib/netdb.in.h: Fix typo.
54994         Reported by Bruno Haible  <bruno@clisp.org>
54995
54996         * lib/netdb.in.h: Include sys/socket.h for platforms without
54997         netdb.h, to get structures like hostent on MinGW.
54998         * modules/netdb (Depends-on): Add sys_socket.
54999
55000 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55001
55002         * modules/netdb, modules/netdb-tests: New file.
55003         * m4/netdb_h.m4: New file.
55004         * lib/netdb.in.h: Add, currently just an empty file pending
55005         definitions.
55006         * tests/test-netdb.c: New file.
55007         * doc/posix-headers/netdb.texi: Mention that we replace it if
55008         needed.
55009         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55010         netdb.
55011
55012 2008-10-15  Simon Josefsson  <simon@josefsson.org>
55013
55014         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
55015         with code.
55016
55017 2008-10-13  Bruno Haible  <bruno@clisp.org>
55018
55019         * lib/glthread/cond.c (glthread_cond_wait_func,
55020         glthread_cond_timedwait_func): Add a comment.
55021
55022 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55023
55024         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
55025         * tests/test-select.c: Likewise,
55026
55027 2008-10-13  Bruno Haible  <bruno@clisp.org>
55028
55029         * lib/glthread/cond.c (glthread_cond_wait_func,
55030         glthread_cond_timedwait_func): Fix variable name.
55031         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55032
55033 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
55034
55035         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
55036         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
55037         struct sockaddr.sa_len.
55038         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
55039
55040 2008-10-13  Simon Josefsson  <simon@josefsson.org>
55041
55042         * build-aux/pmccabe2html: Add css and css_url parameters.
55043
55044 2008-10-12  Bruno Haible  <bruno@clisp.org>
55045
55046         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
55047         calling aclx_get.
55048         Reported by Rainer Tammer <tammer@tammer.net>.
55049
55050 2008-10-12  Bruno Haible  <bruno@clisp.org>
55051
55052         Use msvcrt aware primitives for creation/termination of Win32 threads.
55053         * lib/glthread/thread.c: Include <process.h>.
55054         (glthread_create_func): Use _beginthreadex instead of CreateThread.
55055         (wrapper_func): Update signature.
55056         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
55057
55058 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
55059             Bruno Haible  <bruno@clisp.org>
55060
55061         Provide a Win32 implementation of the 'cond' module.
55062         * lib/glthread/cond.h [USE_WIN32]: New implementation.
55063         * lib/glthread/cond.c (glthread_cond_init_func,
55064         glthread_cond_wait_func, glthread_cond_timedwait_func,
55065         glthread_cond_signal_func, glthread_cond_broadcast_func,
55066         glthread_cond_destroy_func) [USE_WIN32]: New functions.
55067         * modules/cond (Dependencies): Add gettimeofday.
55068
55069 2008-10-11  Bruno Haible  <bruno@clisp.org>
55070
55071         Make sleep work on older versions of mingw.
55072         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
55073         only whether it exists.
55074         * doc/posix-functions/sleep.texi: Mention the problem with older
55075         versions of mingw.
55076
55077 2008-10-11  Bruno Haible  <bruno@clisp.org>
55078
55079         New module 'shutdown'.
55080         * modules/shutdown: New file.
55081         * lib/sys_socket.in.h (shutdown): New declaration.
55082         * lib/winsock.c (shutdown): New function.
55083         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
55084         GNULIB_SHUTDOWN.
55085         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
55086         * doc/posix-functions/shutdown.texi: Document the new module.
55087
55088 2008-10-11  Jim Meyering  <meyering@redhat.com>
55089
55090         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
55091
55092 2008-10-11  Bruno Haible  <bruno@clisp.org>
55093
55094         New module 'fclose'.
55095         * modules/fclose: New file.
55096         * lib/stdio.in.h (fclose): New declaration.
55097         * lib/fclose.c: New file.
55098         * m4/fclose.m4: New file.
55099         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
55100         REPLACE_FCLOSE.
55101         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
55102         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
55103         REPLACE_FCLOSE.
55104         * modules/close (Depends-on): fclose.
55105         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
55106
55107 2008-10-11  Bruno Haible  <bruno@clisp.org>
55108
55109         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
55110         set errno and don't call _close.
55111
55112 2008-10-10  Bruno Haible  <bruno@clisp.org>
55113
55114         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
55115         ACL, not afterwards. Fixes test failure on Cygwin.
55116
55117 2008-10-09  Ben Pfaff  <blp@gnu.org>
55118
55119         * build-aux/announce-gen: Fix gnulib version related part of usage
55120         message.  Die with a useful error message if no tarballs are
55121         found.
55122
55123 2008-10-10  Jim Meyering  <meyering@redhat.com>
55124
55125         bootstrap: use git's --depth=N option only if it's supported
55126         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
55127         recognize the --depth option.  Reported by Pádraig Brady.
55128
55129 2008-10-09  Bruno Haible  <bruno@clisp.org>
55130
55131         New module 'ioctl'.
55132         * modules/ioctl: New file.
55133         * lib/sys_socket.in.h (ioctl): Remove declaration.
55134         * lib/winsock.c: Include <sys/ioctl.h>.
55135         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
55136         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
55137         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
55138         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
55139         * doc/posix-functions/ioctl.texi: Mention the new module.
55140
55141 2008-10-09  Bruno Haible  <bruno@clisp.org>
55142
55143         New module 'sys_ioctl'.
55144         * lib/sys_ioctl.in.h: New file.
55145         * m4/sys_ioctl_h.m4: New file.
55146         * modules/sys_ioctl: New file.
55147         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
55148
55149 2008-10-09  Bruno Haible  <bruno@clisp.org>
55150
55151         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
55152         * lib/winsock.c: Include <stdarg.h>.
55153         (rpl_ioctl): Change to second argument 'int' and then varargs.
55154
55155 2008-10-09  Bruno Haible  <bruno@clisp.org>
55156
55157         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
55158         when the sys_socket module is present and the system has <winsock2.h>.
55159
55160 2008-10-09  Bruno Haible  <bruno@clisp.org>
55161
55162         * doc/posix-functions/close.texi: Mention module 'close' instead of
55163         module 'sys_socket'.
55164
55165 2008-10-09  Bruno Haible  <bruno@clisp.org>
55166
55167         * doc/glibc-headers/sys_ioctl.texi: New file.
55168         * doc/gnulib.texi: Include it.
55169
55170 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55171             Bruno Haible  <bruno@clisp.org>
55172
55173         Combine the two replacements of 'close'.
55174         * lib/sys_socket.in.h (close): Define to a reminder to include
55175         <unistd.h>.
55176         (_gl_close_fd_maybe_socket): New declaration.
55177         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
55178         * lib/winsock.c (close): Remove undefinition.
55179         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
55180         needed for the gnulib module 'close'.
55181         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
55182         define to an error symbol or to a warning, if suitable.
55183         * lib/close.c: Include <sys/socket.h>.
55184         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
55185         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
55186         UNISTD_H_HAVE_WINSOCK2_H.
55187         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
55188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55189         UNISTD_H_HAVE_WINSOCK2_H.
55190         * modules/sys_socket (Files): Add m4/unistd_h.m4.
55191         (configure.ac): Set a module indicator.
55192         (Makefile.am): Substitute GNULIB_CLOSE.
55193         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
55194         * modules/poll-tests (Depends-on): Add close.
55195         * modules/select-tests (Depends-on): Likewise.
55196
55197 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55198             Bruno Haible  <bruno@clisp.org>
55199
55200         New module 'close'.
55201         * modules/close: New file.
55202         * lib/unistd.in.h (close): Move declaration out of the
55203         FCHDIR_REPLACEMENT scope.
55204         (_gl_unregister_fd): New declaration.
55205         * lib/close.c: New file.
55206         * lib/fchdir.c (rpl_close): Remove function.
55207         * m4/close.m4: New file.
55208         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55209         close.
55210         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
55211         REPLACE_CLOSE.
55212         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
55213         REPLACE_CLOSE.
55214         * modules/fchdir (Depends-on): Add close.
55215
55216 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55217             Bruno Haible  <bruno@clisp.org>
55218
55219         * lib/fcntl.in.h (open): Simplify conditionals.
55220         (_gl_register_fd): New declaration.
55221         * lib/fchdir.c (rpl_open): Remove function.
55222         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
55223         also.
55224         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
55225         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
55226         open.
55227
55228 2008-10-09  Jim Meyering  <meyering@redhat.com>
55229
55230         GNUmakefile: use the more name-space-friendly "_version"
55231         * top/GNUmakefile (_dummy): Update.
55232         (_version): Rename from "version".
55233
55234 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55235             Bruno Haible  <bruno@clisp.org>
55236
55237         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
55238         rpl_close.
55239         (_gl_register_fd): New function, extracted from rpl_open.
55240         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
55241         (rpl_open, rpl_opendir): Use _gl_register_fd.
55242
55243 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
55244
55245         Fix organization of 'open' replacement.
55246         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
55247         (gl_FUNC_OPEN): Use it.
55248         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
55249
55250 2008-10-08  Bruno Haible  <bruno@clisp.org>
55251
55252         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
55253
55254 2008-10-08  Simon Josefsson  <simon@josefsson.org>
55255
55256         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
55257         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
55258         listen).
55259
55260 2008-10-08  Eric Blake  <ebb9@byu.net>
55261
55262         GNUmakefile: add 'make version' target
55263         * top/GNUmakefile (_curr-ver): Split version update rules...
55264         (version): ...into a target.
55265
55266 2008-10-07  Bruno Haible  <bruno@clisp.org>
55267
55268         Use a more portable replacement expression for -0.0L.
55269         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
55270         instead of -0.0L. Fix m4 quotation.
55271
55272         * tests/test-signbit.c: Include <float.h>.
55273         (minus_zero): New variable.
55274         (test_signbitl): Use minus_zero instead of -zero.
55275         * modules/signbit-tests (Depends-on): Add float.
55276
55277         * tests/test-ceill.c: Include <float.h>.
55278         (zero): Remove variable.
55279         (minus_zero): New variable.
55280         (main): Use minus_zero instead of -zero.
55281         * modules/ceill-tests (Depends-on): Add float.
55282
55283         * tests/test-floorl.c: Include <float.h>.
55284         (zero): Remove variable.
55285         (minus_zero): New variable.
55286         (main): Use minus_zero instead of -zero.
55287         * modules/floorl-tests (Depends-on): Add float.
55288
55289         * tests/test-roundl.c: Include <float.h>.
55290         (zero): Remove variable.
55291         (minus_zero): New variable.
55292         (main): Use minus_zero instead of -zero.
55293         * modules/roundl-tests (Depends-on): Add float.
55294
55295         * tests/test-truncl.c: Include <float.h>.
55296         (zero): Remove variable.
55297         (minus_zero): New variable.
55298         (main): Use minus_zero instead of -zero.
55299         * modules/truncl-tests (Depends-on): Add float.
55300
55301         * tests/test-frexpl.c (zero): Remove variable.
55302         (minus_zero): New variable.
55303         (main): Use minus_zero instead of -zero.
55304         * modules/frexpl-tests (Depends-on): Add float.
55305
55306         * tests/test-isnan.c (zerol): Remove variable.
55307         (minus_zerol): New variable.
55308         (test_long_double): Use minus_zerol instead of -zerol.
55309         * modules/isnan-tests (Depends-on): Add float.
55310
55311         * tests/test-isnanl.h (zero): Remove variable.
55312         (minus_zero): New variable.
55313         (main): Use minus_zero instead of -zero.
55314         * modules/isnanl-nolibm-tests (Depends-on): Add float.
55315         * modules/isnanl-tests (Depends-on): Add float.
55316
55317         * tests/test-ldexpl.c (zero): Remove variable.
55318         (minus_zero): New variable.
55319         (main): Use minus_zero instead of -zero.
55320         * modules/ldexpl-tests (Depends-on): Add float.
55321
55322         * tests/test-snprintf-posix.h (zerol): Remove variable.
55323         (minus_zerol): New variable.
55324         (test_function): Use minus_zerol instead of -zerol.
55325         * modules/snprintf-posix-tests (Depends-on): Add float.
55326         * modules/vsnprintf-posix-tests (Depends-on): Add float.
55327
55328         * tests/test-sprintf-posix.h (zerol): Remove variable.
55329         (minus_zerol): New variable.
55330         (test_function): Use minus_zerol instead of -zerol.
55331         * modules/sprintf-posix-tests (Depends-on): Add float.
55332         * modules/vsprintf-posix-tests (Depends-on): Add float.
55333
55334         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
55335         (minus_zerol): New variable.
55336         (test_function): Use minus_zerol instead of -zerol.
55337         * modules/vasnprintf-posix-tests (Depends-on): Add float.
55338
55339         * tests/test-vasprintf-posix.c (zerol): Remove variable.
55340         (minus_zerol): New variable.
55341         (test_function): Use minus_zerol instead of -zerol.
55342         * modules/vasprintf-posix-tests (Depends-on): Add float.
55343
55344 2008-10-07  Simon Josefsson  <simon@josefsson.org>
55345
55346         * MODULES.html.sh (Support for building documentation): Mention
55347         pmccabe2html.  Sort entries.
55348
55349         Add pmccabe2html module, from gnupdf.
55350         * build-aux/pmccabe.css: New file.
55351         * build-aux/pmccabe2html: New file.
55352         * m4/pmccabe2html.m4: New file.
55353         * modules/pmccabe2html: New file.
55354
55355 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
55356
55357         flock: new module
55358         * MODULES.html.sh: Add to list of modules.
55359         * lib/flock.c: flock implementation for Windows and Unix systems
55360         which have fcntl.
55361         * doc/glibc-functions/flock.texi: Update documentation.
55362         * lib/sys_file.in.h: <sys/file.h> header file.
55363         * m4/flock.m4: M4 macros.
55364         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
55365         * modules/flock: flock module.
55366         * modules/flock-tests: flock tests module.
55367         * modules/sys_file: sys/file.h module.
55368         * tests/test-flock.c: test suite for flock.
55369
55370 2008-10-06  Jim Meyering  <meyering@redhat.com>
55371
55372         bootstrap: check for LT_INIT more portably still ;-)
55373         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
55374         Spotted by Bruno Haible.
55375
55376 2008-10-06  Eric Blake  <ebb9@byu.net>
55377
55378         test-signbit: avoid tripping Irix cc bug on -0.0L
55379         * tests/test-signbit.c (minus_zerol): Delete, and replace with
55380         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
55381         entire testsuite consistent and avoids an Irix 6.2 bug.
55382
55383 2008-10-05  Bruno Haible  <bruno@clisp.org>
55384             Jim Meyering  <jim@meyering.net>
55385
55386         Add an option for ignoring EPIPE during close_stdout.
55387         * lib/closeout.h: Include <stdbool.h>.
55388         (close_stdout_set_ignore_EPIPE): New declaration.
55389         * lib/closeout.c: Include <stdbool.h>.
55390         (ignore_EPIPE): New variable.
55391         (close_stdout_set_ignore_EPIPE): New function.
55392         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
55393         * lib/close-stream.c (close_stream): Mention the possible EPIPE
55394         failure.
55395         * modules/closeout (Depends-on): Add stdbool.
55396
55397 2008-10-05  Bruno Haible  <bruno@clisp.org>
55398
55399         * modules/accept: New file.
55400         * modules/bind: New file.
55401         * modules/connect: New file.
55402         * modules/getpeername: New file.
55403         * modules/getsockname: New file.
55404         * modules/getsockopt: New file.
55405         * modules/listen: New file.
55406         * modules/recv: New file.
55407         * modules/recvfrom: New file.
55408         * modules/send: New file.
55409         * modules/sendto: New file.
55410         * modules/setsockopt: New file.
55411         * modules/socket: New file.
55412         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
55413         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
55414         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
55415         the particular module is requested. Add a link warning when the
55416         particular module is not requested.
55417         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
55418         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
55419         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
55420         the particular module is requested.
55421         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
55422         gl_SYS_SOCKET_H_DEFAULTS): New macros.
55423         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
55424         * modules/sys_socket (Depends-on): Add link-warning.
55425         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
55426         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
55427         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
55428         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
55429         GL_LINK_WARNING.
55430         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
55431         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
55432         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
55433         * doc/posix-functions/getpeername.texi: Mention the new module
55434         'getpeername'.
55435         * doc/posix-functions/getsockname.texi: Mention the new module
55436         'getsockname'.
55437         * doc/posix-functions/getsockopt.texi: Mention the new module
55438         'getsockopt'.
55439         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
55440         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
55441         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
55442         * doc/posix-functions/send.texi: Mention the new module 'send'.
55443         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
55444         * doc/posix-functions/setsockopt.texi: Mention the new module
55445         'setsockopt'.
55446         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
55447         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
55448         listen, connect, accept.
55449         * modules/select-tests (Depends-on): Likewise.
55450
55451 2008-10-05  Bruno Haible  <bruno@clisp.org>
55452
55453         * lib/winsock.c (strerror): Remove unused #undef.
55454         (rpl_close): Remove unused local variable.
55455
55456         * modules/sys_socket (Depends-on); Add errno.
55457
55458 2008-10-05  Bruno Haible  <bruno@clisp.org>
55459
55460         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
55461         (select): Add a link warning when the 'select' module is not used.
55462         * modules/sys_select (Depends-on): Add link-warning.
55463         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
55464         Suggested by Paolo Bonzini.
55465
55466 2008-10-05  Jim Meyering  <meyering@redhat.com>
55467
55468         bootstrap: check for LT_INIT more portably
55469         * build-aux/bootstrap: Avoid using grep -E, since it's not
55470         portable enough.  Suggestion from Bruno Haible.
55471
55472 2008-10-05  Bruno Haible  <bruno@clisp.org>
55473
55474         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
55475         as being fixed by gnulib.
55476
55477 2008-10-05  Bruno Haible  <bruno@clisp.org>
55478
55479         * modules/select-tests: New file, mostly copied from
55480         modules/sys_select-tests.
55481         * tests/test-select.c: New file, mostly copied from
55482         tests/test-sys_select.c.
55483         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
55484         * modules/sys_select-tests (Depends-on): Remove all dependencies.
55485         (Makefile.am): Remove test_sys_select_LDADD.
55486
55487         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
55488         to an undefined symbol, for an error message.
55489         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
55490         (gl_SYS_SELECT_H_DEFAULTS): New macro.
55491         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
55492         winsock-select.c here.
55493         * modules/sys_select (Files): Remove lib/winsock-select.c.
55494         (Depends-on): Remove alloca.
55495         (Makefile.am): Substitute GNULIB_SELECT.
55496         * modules/select: New file.
55497         * doc/posix-functions/select.texi: Update.
55498
55499 2008-10-05  Bruno Haible  <bruno@clisp.org>
55500
55501         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
55502         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
55503         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
55504         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
55505         getdtablesize.
55506         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
55507         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
55508
55509 2008-10-05  Bruno Haible  <bruno@clisp.org>
55510
55511         * modules/getdtablesize-tests: New file.
55512         * tests/test-getdtablesize.c: New file.
55513
55514         New module 'getdtablesize'.
55515         * lib/unistd.in.h (getdtablesize): New declaration.
55516         * lib/getdtablesize.c: New file.
55517         * m4/getdtablesize.m4: New file.
55518         * modules/getdtablesize: New file.
55519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55520         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
55521         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
55522         HAVE_GETDTABLESIZE.
55523         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
55524
55525 2008-10-05  Bruno Haible  <bruno@clisp.org>
55526
55527         * modules/sched (Makefile.am): Fix typo.
55528         Reported by Simon Josefsson.
55529
55530 2008-10-05  Jim Meyering  <meyering@redhat.com>
55531
55532         bootstrap: check for LT_INIT, too
55533         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
55534         are deprecated.  Suggestion from Ralf Wildenhues.
55535
55536 2008-10-05  Bruno Haible  <bruno@clisp.org>
55537
55538         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
55539         overriding them by ours.
55540         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
55541
55542 2008-10-05  Jim Meyering  <meyering@redhat.com>
55543
55544         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
55545         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
55546         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
55547
55548 2008-10-04  Bruno Haible  <bruno@clisp.org>
55549
55550         * modules/dup2 (License): Change to LGPLv2+.
55551         * modules/sleep (License): Likewise.
55552         * modules/perror (License): Likewise.
55553         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
55554         Blake.
55555         * modules/signal (License): Likewise.
55556         * modules/sigprocmask (License): Likewise.
55557         * modules/raise (License): Change to LGPLv2+, with approval by Jim
55558         Meyering.
55559
55560 2008-10-04  Bruno Haible  <bruno@clisp.org>
55561
55562         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
55563         Reported by Rainer Tammer <tammer@tammer.net>.
55564
55565 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
55566             Bruno Haible  <bruno@clisp.org>
55567
55568         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
55569         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
55570         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
55571
55572 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
55573
55574         filevercmp: new module
55575         * lib/filevercmp.h: New function filevercmp comparing version strings.
55576         * lib/filevercmp.c: Implementation of filevercmp function.
55577         * modules/filevercmp: Module metadata.
55578         * tests/test-filevercmp.c: Unit test for new module.
55579         * modules/filevercmp-tests: Unit test metadata.
55580         * MODULES.html.sh: Add filevercmp module.
55581
55582 2008-10-03  Bruno Haible  <bruno@clisp.org>
55583
55584         * lib/c-ctype.h: Add comment.
55585         Reported by Jim Meyering.
55586
55587 2008-10-02  Bruno Haible  <bruno@clisp.org>
55588
55589         * modules/posix_spawn-internal (Depends-on): Add 'open'.
55590
55591 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55592
55593         * build-aux/bootstrap: Allow renaming bootstrap, and change the
55594         name of bootstrap.conf accordingly.
55595
55596 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55597
55598         * build-aux/bootstrap: Install git-merge-changelog configuration
55599         items into .gitconfig if needed.
55600
55601 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
55602
55603         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
55604         git repository, and initialize/update it accordingly.
55605
55606 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
55607
55608         * modules/fsync-tests: New file.
55609         * tests/test-fsync.c: New file.
55610
55611         New module 'fsync'.
55612         * lib/fsync.c: New file.
55613         * m4/fsync.m4: New file.
55614         * modules/fsync: New file.
55615         * lib/unistd.in.h (fsync): New declaration.
55616         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
55617         GNULIB_FSYNC and HAVE_FSYNC.
55618         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
55619         * MODULES.html.sh (posix_functions): Add fsync.
55620         * doc/posix-functions/fsync.texi: Mention the new module.
55621
55622 2008-10-02  Jim Meyering  <meyering@redhat.com>
55623
55624         fts.c: sync with similar code from coreutils' remove.c
55625         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
55626         Guard also with "#if defined __linux__", since for now at least,
55627         this code is Linux-kernel-specific.
55628
55629 2008-10-02  Jim Meyering  <meyering@redhat.com>
55630
55631         fts: bug fixes
55632         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
55633         Include <sys/vfs.h>, not <sys/statfs.h>.
55634
55635         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
55636         Include <sys/vfs.h>, not <sys/statfs.h>.
55637
55638 2008-10-01  Bruno Haible  <bruno@clisp.org>
55639
55640         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
55641         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
55642         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
55643         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
55644         * doc/posix-functions/posix_spawnp.texi: Likewise.
55645         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
55646         whether posix_spawn actually works.
55647         * m4/pipe.m4 (gl_PIPE): Likewise.
55648         * modules/execute (Files): Add m4/posix_spawn.m4.
55649         * modules/pipe (Files): Add m4/posix_spawn.m4.
55650         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
55651
55652 2008-10-01  Jim Meyering  <meyering@redhat.com>
55653
55654         remove trailing spaces
55655         * NEWS: Likewise.
55656         * lib/poll.c (poll): Likewise.
55657         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
55658         * lib/winsock.c (rpl_close): Likewise.
55659         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
55660         * modules/yield: Likewise.
55661         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
55662         * tests/test-sys_select.c (connect_to_socket): Likewise.
55663
55664         fts.c: adjust a new interface to be more generally useful
55665         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
55666         (fts_build): Adjust caller.
55667
55668 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55669
55670         * modules/cond-tests: New file.
55671         * tests/test-cond.c: New file.
55672
55673 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55674             Bruno Haible  <bruno@clisp.org>
55675
55676         * modules/cond (Dependencies): Add errno, time.
55677         * lib/glthread/cond.h: Include <time.h>.
55678         (gl_cond_define, gl_cond_define_initialized): Use the same definition
55679         across platforms.
55680
55681 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55682             Bruno Haible  <bruno@clisp.org>
55683
55684         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
55685
55686 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55687             Bruno Haible  <bruno@clisp.org>
55688
55689         * modules/tls-tests (Depends-on): Add thread, yield.
55690         (configure.ac): Remove all checks.
55691         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
55692         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55693         gl_thread_self): Remove definitions. Include glthread/thread.h and
55694         glthread/yield.h instead.
55695         (test_tls): Pass an additional NULL argument to gl_thread_join.
55696
55697 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55698             Bruno Haible  <bruno@clisp.org>
55699
55700         * modules/lock-tests (Depends-on): Add thread, yield.
55701         (configure.ac): Remove all checks.
55702         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
55703         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
55704         gl_thread_self): Remove definitions. Include glthread/thread.h and
55705         glthread/yield.h instead.
55706         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
55707         additional NULL argument to gl_thread_join.
55708
55709 2008-09-30  Bruno Haible  <bruno@clisp.org>
55710
55711         Fix the Win32 implementation of the 'thread' module.
55712         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
55713         pointer type.
55714         (gl_thread_self): Invoke gl_thread_self_func.
55715         (gl_thread_self_func): New declaration.
55716         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
55717         (do_init_self_key, init_self_key): New functions.
55718         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
55719         Remove some fields.
55720         (running_threads, running_lock): Remove variables.
55721         (get_current_thread_handle): New function.
55722         (gl_thread_self_func, wrapper_func, glthread_create_func,
55723         glthread_join_func, gl_thread_exit_func): Largely rewritten and
55724         simplified.
55725
55726 2008-09-30  Bruno Haible  <bruno@clisp.org>
55727
55728         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
55729         files.
55730
55731 2008-09-30  Jim Meyering  <meyering@redhat.com>
55732
55733         fts.m4: correct the test for statfs.f_type
55734         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
55735         when checking for statfs.f_type.
55736
55737 2008-09-15  Simon Josefsson  <simon@josefsson.org>
55738
55739         tests: avoid some compiler warnings
55740         * tests/test-memchr.c (main): Pass NULL indirectly.
55741         * tests/test-getdate.c (main): Remove unused variable 'ret'.
55742
55743 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
55744
55745         getdate.y: disallow countable dayshifts like "4 yesterday ago"
55746         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
55747         exactly specified dayshifts.
55748         (dayshift): New rule.
55749         (rel): Add dayshift.
55750         (relative_time_table) [tomorrow, yesterday, today, now]:
55751         Use tDAY_SHIFT in place of tDAY_UNIT.
55752         * tests/test-getdate.c: Add tests for now-disallowed countable
55753         dayshifts, e.g., "4 yesterday ago".
55754
55755 2008-09-29  Bruno Haible  <bruno@clisp.org>
55756
55757         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
55758         * tests/test-posix_spawn1.in.sh: Renamed from
55759         tests/test-posix_spawn.in.sh.
55760         * tests/test-posix_spawn2.c: New file.
55761         * tests/test-posix_spawn2.in.sh: New file.
55762         * modules/posix_spawnp-tests (Files): Update.
55763         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
55764
55765 2008-09-29  Bruno Haible  <bruno@clisp.org>
55766
55767         Propagate effects of putenv/setenv/unsetenv to child processes.
55768         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
55769         * lib/pipe.c (create_pipe): Likewise.
55770
55771 2008-09-29  Bruno Haible  <bruno@clisp.org>
55772
55773         Enable use of shell scripts as executables in mingw.
55774         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
55775         run the program as a shell script.
55776         * lib/pipe.c (create_pipe): Likewise.
55777         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
55778         resulting array.
55779
55780 2008-09-29  Eric Blake  <ebb9@byu.net>
55781
55782         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
55783
55784 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
55785
55786         * doc/posix-functions/accept.texi: Update mingw problems.
55787         * doc/posix-functions/bind.texi: Update mingw problems.
55788         * doc/posix-functions/close.texi: Update mingw problems.
55789         * doc/posix-functions/connect.texi: Update mingw problems.
55790         * doc/posix-functions/getpeername.texi: Update mingw problems.
55791         * doc/posix-functions/getsockname.texi: Update mingw problems.
55792         * doc/posix-functions/getsockopt.texi: Update mingw problems.
55793         * doc/posix-functions/ioctl.texi: Update mingw problems.
55794         * doc/posix-functions/listen.texi: Update mingw problems.
55795         * doc/posix-functions/recv.texi: Update mingw problems.
55796         * doc/posix-functions/recvfrom.texi: Update mingw problems.
55797         * doc/posix-functions/select.texi: Update mingw problems.
55798         * doc/posix-functions/send.texi: Update mingw problems.
55799         * doc/posix-functions/sendto.texi: Update mingw problems.
55800         * doc/posix-functions/setsockopt.texi: Update mingw problems.
55801         * doc/posix-functions/socket.texi: Update mingw problems.
55802
55803 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
55804             Bruno Haible  <bruno@clisp.org>
55805
55806         * lib/sys_select.in.h: Include sys/time.h.
55807         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
55808         * modules/sys_select: Depend on sys_time.
55809         * tests/test-sys_select.c: Test that sys/select.h defines struct
55810         timeval fully.
55811
55812 2008-09-29  Bruno Haible  <bruno@clisp.org>
55813
55814         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55815         * lib/sys_select.in.h: Likewise.
55816
55817 2008-09-29  Bruno Haible  <bruno@clisp.org>
55818
55819         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55820
55821 2008-09-29  Bruno Haible  <bruno@clisp.org>
55822
55823         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55824         Set LIBSOCKET instead of augmenting LIBS.
55825         * modules/sockets (Link): New section.
55826         * modules/sockets-tests (test_sockets_LDADD): New variable.
55827         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55828         * modules/poll-tests (test_poll_LDADD): New variable.
55829         * NEWS: Document the change.
55830
55831 2008-09-29  Bruno Haible  <bruno@clisp.org>
55832
55833         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55834         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55835         ARPA_INET_H directly.
55836         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55837
55838 2008-09-28  Bruno Haible  <bruno@clisp.org>
55839
55840         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55841         from gl_HEADER_SYS_SOCKET.
55842         (gl_HEADER_SYS_SOCKET): Invoke it.
55843         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55844
55845 2008-09-28  Bruno Haible  <bruno@clisp.org>
55846
55847         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55848         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55849         Needed on OSF/1 4.0.
55850
55851 2008-09-28  Bruno Haible  <bruno@clisp.org>
55852
55853         Override open more carefully.
55854         * lib/open.c (orig_open): New function.
55855         (rpl_open): Use orig_open instead of open.
55856         * lib/fcntl.in.h: Add special invocation convention.
55857         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55858         (gl_FUNC_OPEN): Invoke it.
55859
55860         Override freopen more carefully.
55861         * lib/freopen.c (orig_freopen): New function.
55862         (rpl_freopen): Use orig_freopen instead of freopen.
55863         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55864         (gl_FUNC_FREOPEN): Invoke it.
55865
55866         Override fopen more carefully.
55867         * lib/fopen.c (orig_fopen): New function.
55868         (rpl_fopen): Use orig_fopen instead of fopen.
55869         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55870         (gl_FUNC_FOPEN): Invoke it.
55871         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55872
55873 2008-09-28  Bruno Haible  <bruno@clisp.org>
55874
55875         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55876         SIGPIPE.
55877
55878 2008-09-28  Bruno Haible  <bruno@clisp.org>
55879
55880         * tests/test-sigaction.c (handler, main): Disable the check whether
55881         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55882         glibc systems with LinuxThreads.
55883
55884 2008-09-28  Bruno Haible  <bruno@clisp.org>
55885
55886         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55887
55888         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55889         with AIX xlc.
55890         * lib/fcntl.in.h (open): Likewise.
55891         Reported by Rainer Tammer <tammer@tammer.net>.
55892
55893 2008-09-28  Bruno Haible  <bruno@clisp.org>
55894
55895         * modules/posix_spawnp-tests: New file.
55896         * tests/test-posix_spawn.c: New file.
55897         * tests/test-posix_spawn.in.sh: New file.
55898
55899         New module 'posix_spawnp'.
55900         * modules/posix_spawnp: New file.
55901         * lib/spawnp.c: New file, from GNU libc with modifications.
55902         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55903
55904         New module 'posix_spawn'.
55905         * modules/posix_spawn: New file.
55906         * lib/spawn.c: New file, from GNU libc with modifications.
55907         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55908
55909         New module 'posix_spawnattr_destroy'.
55910         * modules/posix_spawnattr_destroy: New file.
55911         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55912         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55913         module.
55914
55915         New module 'posix_spawnattr_setsigmask'.
55916         * modules/posix_spawnattr_setsigmask: New file.
55917         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55918         modifications.
55919         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55920         new module.
55921
55922         New module 'posix_spawnattr_getsigmask'.
55923         * modules/posix_spawnattr_getsigmask: New file.
55924         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55925         modifications.
55926         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55927         new module.
55928
55929         New module 'posix_spawnattr_setsigdefault'.
55930         * modules/posix_spawnattr_setsigdefault: New file.
55931         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55932         modifications.
55933         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55934         new module.
55935
55936         New module 'posix_spawnattr_getsigdefault'.
55937         * modules/posix_spawnattr_getsigdefault: New file.
55938         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55939         modifications.
55940         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55941         new module.
55942
55943         New module 'posix_spawnattr_setschedpolicy'.
55944         * modules/posix_spawnattr_setschedpolicy: New file.
55945         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55946         modifications.
55947         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55948         new module.
55949
55950         New module 'posix_spawnattr_getschedpolicy'.
55951         * modules/posix_spawnattr_getschedpolicy: New file.
55952         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55953         modifications.
55954         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55955         new module.
55956
55957         New module 'posix_spawnattr_setschedparam'.
55958         * modules/posix_spawnattr_setschedparam: New file.
55959         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55960         modifications.
55961         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55962         new module.
55963
55964         New module 'posix_spawnattr_getschedparam'.
55965         * modules/posix_spawnattr_getschedparam: New file.
55966         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55967         modifications.
55968         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55969         new module.
55970
55971         New module 'posix_spawnattr_setpgroup'.
55972         * modules/posix_spawnattr_setpgroup: New file.
55973         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55974         modifications.
55975         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55976         module.
55977
55978         New module 'posix_spawnattr_getpgroup'.
55979         * modules/posix_spawnattr_getpgroup: New file.
55980         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55981         modifications.
55982         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55983         module.
55984
55985         New module 'posix_spawnattr_setflags'.
55986         * modules/posix_spawnattr_setflags: New file.
55987         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55988         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55989         module.
55990
55991         New module 'posix_spawnattr_getflags'.
55992         * modules/posix_spawnattr_getflags: New file.
55993         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55994         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55995         module.
55996
55997         New module 'posix_spawnattr_init'.
55998         * modules/posix_spawnattr_init: New file.
55999         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
56000         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
56001         module.
56002
56003         New module 'posix_spawn_file_actions_destroy'.
56004         * modules/posix_spawn_file_actions_destroy: New file.
56005         * lib/spawn_faction_destroy.c: New file, from GNU libc with
56006         modifications.
56007         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
56008         the new module.
56009
56010         New module 'posix_spawn_file_actions_addopen'.
56011         * modules/posix_spawn_file_actions_addopen: New file.
56012         * lib/spawn_faction_addopen.c: New file, from GNU libc with
56013         modifications.
56014         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
56015         the new module.
56016
56017         New module 'posix_spawn_file_actions_adddup2'.
56018         * modules/posix_spawn_file_actions_adddup2: New file.
56019         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
56020         modifications.
56021         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
56022         the new module.
56023
56024         New module 'posix_spawn_file_actions_addclose'.
56025         * modules/posix_spawn_file_actions_addclose: New file.
56026         * lib/spawn_faction_addclose.c: New file, from GNU libc with
56027         modifications.
56028         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
56029         the new module.
56030
56031         New module 'posix_spawn_file_actions_init'.
56032         * modules/posix_spawn_file_actions_init: New file.
56033         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
56034         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
56035         new module.
56036
56037         New module 'posix_spawn-internal'.
56038         * modules/posix_spawn-internal: New file.
56039         * lib/spawn_int.h: New file, from GNU libc with modifications.
56040         * lib/spawni.c: New file, from GNU libc with modifications.
56041         * m4/posix_spawn.m4: New file.
56042
56043         New module 'spawn'.
56044         * modules/spawn: New file.
56045         * lib/spawn.in.h: New file, from GNU libc with modifications.
56046         * m4/spawn_h.m4: New file.
56047         * doc/posix-headers/spawn.texi: Mention the new module.
56048
56049 2008-09-28  Bruno Haible  <bruno@clisp.org>
56050
56051         * modules/sched-tests: New file.
56052         * tests/test-sched.c: New file.
56053
56054         New module 'sched'.
56055         * modules/sched: New file.
56056         * lib/sched.in.h: New file.
56057         * m4/sched_h.m4: New file.
56058         * doc/posix-headers/sched.texi: Mention the new module.
56059
56060 2008-09-27  Eric Blake  <ebb9@byu.net>
56061
56062         Fix previous patch, and tweak references to $0.
56063         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
56064         (func_version, func_gnulib_dir): Don't call this program
56065         gnulib-tool.
56066         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
56067         with using $0 in function.
56068         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
56069         (func_fatal_error): Reuse the name the user invoked us with.
56070
56071 2008-09-27  Bruno Haible  <bruno@clisp.org>
56072
56073         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
56074         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
56075         (gl_ICONV_H): Not here.
56076         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
56077         instead of assigning ICONV_H directly.
56078
56079         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
56080         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
56081         WCHAR_H directly.
56082
56083 2008-09-27  Bruno Haible  <bruno@clisp.org>
56084
56085         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
56086         * modules/arpa_inet (Depends-on): Add link-warning.
56087         (Makefile.am): Insert the definition of GL_LINK-WARNING.
56088         * modules/unistd (Makefile.am): Likewise.
56089
56090 2008-09-26  Bruno Haible  <bruno@clisp.org>
56091
56092         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
56093         variables.
56094         (func_version): Essentially copied from gnulib-tool.
56095         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
56096         func_readlink): Copied from gnulib-tool.
56097
56098 2008-09-26  Bruno Haible  <bruno@clisp.org>
56099
56100         * gnulib-tool (func_version): Change directory to $gnulib_dir before
56101         invoking git-version-gen.
56102
56103 2008-09-26  Bruno Haible  <bruno@clisp.org>
56104
56105         * posix-modules: Update to directory names changed on 2008-01-19.
56106         Remove commas in output before splitting into words. No more need to
56107         avoid 'ftruncate' since 2007-02-19.
56108
56109 2008-09-26  Bruno Haible  <bruno@clisp.org>
56110
56111         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
56112
56113 2008-09-26  Bruno Haible  <bruno@clisp.org>
56114
56115         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
56116         * modules/fwriteerror (Depends-on): Add errno.
56117
56118 2008-09-26  Bruno Haible  <bruno@clisp.org>
56119
56120         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
56121         * tests/test-vc-list-files-cvs.sh: Likewise.
56122
56123 2008-09-26  Bruno Haible  <bruno@clisp.org>
56124
56125         * doc/posix-headers/sys_resource.texi: Reorder items.
56126
56127 2008-09-26  Jim Meyering  <meyering@redhat.com>
56128
56129         fts: tweak inode comparison function
56130         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
56131         inode numbers, as documented.
56132
56133         fts: sort dirent entries on inode number before traversing
56134         This avoids a quadratic, seek-related performance penalty when
56135         operating on a directory containing many entries (measurable at 10k;
56136         3.5 hours at 2 million entries with a cold cache) on certain types
56137         of file systems, including ext3 and ext4, but not tmpfs.
56138         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
56139         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
56140         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
56141         (fs_handles_readdir_ordered_dirents_efficiently): New function.
56142         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
56143         (fts_build): Set the stat.st_ino member from D_INO.
56144         If it is likely to be useful, sort dirent entries on inode number.
56145
56146         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
56147         and the struct statfs.f_type member.
56148         * modules/fts (Depends-on): Add d-ino.
56149
56150 2008-09-26  Bruno Haible  <bruno@clisp.org>
56151
56152         * modules/sigpipe-die (Depends-on): Add sigpipe.
56153
56154         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
56155         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
56156         and GNULIB_STDIO_H_SIGPIPE are set.
56157         * lib/stdio-write.c: New file.
56158         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
56159         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56160         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56161         REPLACE_STDIO_WRITE_FUNCS.
56162         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
56163         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56164         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56165         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56166         * modules/stdio (Files): Add lib/stdio-write.c.
56167         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
56168         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
56169         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
56170         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
56171         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
56172         REPLACE_FPRINTF_POSIX.
56173         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
56174         REPLACE_PRINTF_POSIX.
56175         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
56176         REPLACE_VFPRINTF_POSIX.
56177         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
56178         REPLACE_VPRINTF_POSIX.
56179         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
56180         SIGPIPE issue.
56181         * doc/posix-functions/fputc.texi: Likewise.
56182         * doc/posix-functions/fputs.texi: Likewise.
56183         * doc/posix-functions/fwrite.texi: Likewise.
56184         * doc/posix-functions/printf.texi: Likewise.
56185         * doc/posix-functions/putc.texi: Likewise.
56186         * doc/posix-functions/putchar.texi: Likewise.
56187         * doc/posix-functions/puts.texi: Likewise.
56188         * doc/posix-functions/vfprintf.texi: Likewise.
56189         * doc/posix-functions/vprintf.texi: Likewise.
56190
56191         * modules/safe-write (Depends-on): Add write.
56192
56193         * modules/sigpipe-tests: New file.
56194         * tests/test-sigpipe.c: New file.
56195         * tests/test-sigpipe.sh: New file.
56196
56197         * modules/write: New file.
56198         * lib/unistd.in.h: Include <sys/types.h>.
56199         (write): New declaration.
56200         * lib/write.c: New file.
56201         * m4/write.m4: New file.
56202         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
56203         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
56204         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
56205         GNULIB_WRITE, REPLACE_WRITE.
56206         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
56207         and the SIGPIPE issue.
56208
56209         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
56210         (raise): New declaration.
56211         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
56212         (ext_signal): New function.
56213         (rpl_raise): New function.
56214         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
56215         GNULIB_SIGNAL_H_SIGPIPE.
56216         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
56217         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
56218
56219         * modules/sigpipe: New file.
56220         * m4/sigpipe.m4: New file.
56221
56222 2008-09-25  Derek Price  <derek@ximbiot.com>
56223             Bruno Haible  <bruno@clisp.org>
56224
56225         * gnulib-tool (func_import): Report all license incompatibilities, not
56226         just the first one.
56227
56228 2008-09-25  Bruno Haible  <bruno@clisp.org>
56229
56230         * gnulib-tool (func_import): When computing the edits, consider not
56231         only the Makefile.ams that exist but also those that will be generated.
56232
56233 2008-09-25  Simon Josefsson  <simon@josefsson.org>
56234
56235         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
56236         fixes gnulib-tool --test warning about duplicate dependency.
56237
56238 2008-09-25  Bruno Haible  <bruno@clisp.org>
56239
56240         * gnulib-tool: Don't ask the user to perform edits in the generated
56241         Makefile.ams.
56242         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
56243         apply to the Makefile.am being generated.
56244         (func_emit_tests_Makefile_am): Execute edits that apply to the
56245         Makefile.am being generated.
56246         (func_import): Setup list of Makefile.am edits before emitting the
56247         Makefile.ams, not at the end.
56248         (func_create_testdir): Update.
56249         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56250
56251 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56252
56253         * gnulib-tool (func_import): Store the --tests-base option in the
56254         comment in gnulib-cache.m4.
56255
56256 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
56257
56258         * NEWS: Document increased portability that sys_select now provides.
56259
56260         * lib/sys_select.in.h: Install select wrapper.
56261         * lib/sys_socket.in.h: Use more descriptive name when there is no
56262         select wrapper.
56263         * lib/winsock-select.c: New.
56264         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
56265         Require gl_HEADER_SYS_SOCKET.
56266         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
56267         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
56268         * tests/test-sys_select.c: Add functional tests.
56269
56270 2008-09-24  Eric Blake  <ebb9@byu.net>
56271
56272         open, fopen: close fd leak in last patch
56273         * lib/open.c (rpl_open): Close fd before returning error.
56274         * lib/fopen.c (rpl_fopen): Close fd before returning error.
56275         * doc/posix-functions/open.texi (open): Document that Irix also
56276         has the bug.
56277         * doc/posix-functions/fopen.texi (fopen): Likewise.
56278         Reported by Paolo Bonzini.
56279
56280 2008-09-24  Bruno Haible  <bruno@clisp.org>
56281
56282         Ensure that a filename ending in a slash cannot be used to access a
56283         non-directory.
56284         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
56285         to check whether it's really a directory.
56286         * lib/fopen.c: Include fcntl.h, unistd.h.
56287         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
56288         and fdopen().
56289         * modules/fopen (Depends-on): Add unistd.
56290         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
56291         * tests/test-fopen.c (main): Likewise.
56292         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
56293         * doc/posix-functions/fopen.texi: Likewise.
56294         Reported by Eric Blake.
56295
56296 2008-09-23  Eric Blake  <ebb9@byu.net>
56297
56298         c-stack: avoid compiler optimizations when provoking overflow
56299         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
56300         recursion harder to optimize, to ensure a stack overflow occurs.
56301         * tests/test-c-stack.c (recurse): Likewise.
56302         Borrowed from libsigsegv.
56303
56304         c-stack: work around Irix sigaltstack bug
56305         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
56306         whether sigaltstack uses wrong end of stack_t (copied in part from
56307         libsigsegv).
56308         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
56309         Irix bug, without requiring an over-allocation.
56310         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
56311         bug.
56312
56313         fopen: document mingw bug on directories
56314         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
56315         not allowing a stream visiting a directory, even though reading
56316         from such a stream is not portable.
56317
56318 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56319
56320         * lib/poll.c: Rewrite.
56321         * modules/poll: Depend on alloca.
56322
56323 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56324
56325         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
56326         instead define prototypes for a full set of wrappers.  Ensure
56327         that Cygwin does not use the compatibility code, which is only
56328         for MinGW.
56329         * lib/winsock.c: New.
56330         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
56331         * modules/sys_socket: Add lib/winsock.c.
56332
56333         * modules/poll-tests: Add errno and perror.
56334         * tests/test-poll.c: Use ioctl, not ioctlsocket.
56335
56336 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
56337
56338         * tests/test-poll.c: Downgrade minimum needed Winsock version.
56339
56340 2008-09-23  Bruno Haible  <bruno@clisp.org>
56341
56342         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
56343         * doc/glibc-functions/*: Likewise.
56344
56345 2008-09-23  Simon Josefsson  <simon@josefsson.org>
56346
56347         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
56348         success.
56349
56350 2008-09-22  Eric Blake  <ebb9@byu.net>
56351             Bruno Haible  <bruno@clisp.org>
56352
56353         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
56354         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
56355         supply %A but mishandle pseudo-NaN.
56356         Reported by Simon Josefsson.
56357
56358 2008-09-21  Bruno Haible  <bruno@clisp.org>
56359
56360         * tests/test-lock.c (main): Tweak skip message.
56361         * tests/test-tls.c (main): Likewise.
56362
56363 2008-09-21  Bruno Haible  <bruno@clisp.org>
56364
56365         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
56366         whether 'struct sigaction' has sa_sigaction here...
56367         (gl_PREREQ_SIG_HANDLER_H): ... not here.
56368         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
56369
56370 2008-09-21  Bruno Haible  <bruno@clisp.org>
56371
56372         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
56373         section.
56374         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
56375         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
56376         the new section.
56377         (Support for obsolete systems lacking POSIX:2001): New section.
56378         (String handling <string.h>): Move strdup to the new section.
56379         Suggested by Simon Josefsson and Paolo Bonzini.
56380
56381 2008-09-21  Bruno Haible  <bruno@clisp.org>
56382
56383         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
56384         exponents in %e and %g results on 'long double'. Needed for mingw's
56385         improved *printf functions.
56386         * tests/test-vasprintf-posix.c (test_function): Likewise.
56387         * tests/test-snprintf-posix.h (test_function): Likewise.
56388         * tests/test-sprintf-posix.h (test_function): Likewise.
56389         Reported by Eric Blake.
56390
56391 2008-09-21  Bruno Haible  <bruno@clisp.org>
56392
56393         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
56394         * tests/test-sprintf-posix.h (test_function): Likewise.
56395
56396 2008-09-21  Bruno Haible  <bruno@clisp.org>
56397
56398         * modules/getpass (Depends-on): Add strdup-posix.
56399
56400         New module 'strdup-posix'.
56401         * modules/strdup-posix: New file.
56402         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
56403         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
56404         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
56405         REPLACE_STRDUP.
56406         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
56407         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
56408         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56409         strdup-posix.
56410
56411         * modules/strdup (Depends-on): Remove malloc-posix.
56412
56413 2008-09-20  Bruno Haible  <bruno@clisp.org>
56414
56415         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
56416         Wildenhues.
56417
56418 2008-09-20  Bruno Haible  <bruno@clisp.org>
56419
56420         Ensure that wint_t gets defined on IRIX 5.3.
56421         * lib/wchar.in.h (wint_t): Define if not defined by the system.
56422         * lib/wctype.in.h (wint_t): Likewise.
56423         (__wctype_wint_t): Remove type.
56424         (isw*): Use wint_t instead of __wctype_wint_t.
56425         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
56426         * modules/wchar (Files): Add m4/wint_t.m4.
56427         (Makefile.am): Substitute HAVE_WINT_T.
56428         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
56429         * tests/test-wctype.c: Check that wint_t is defined.
56430         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
56431         * doc/posix-headers/wctype.texi: Likewise.
56432         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
56433
56434 2008-09-18  Bruno Haible  <bruno@clisp.org>
56435
56436         * gnulib-tool (func_exit): Update comment.
56437
56438 2008-09-18  Simon Josefsson  <simon@josefsson.org>
56439
56440         * modules/getaddrinfo (Depends-on): Remove strdup, this module
56441         assumes strdup exists and does not depend on strdup to return
56442         ENOMEM on out of memory conditions.
56443
56444 2008-09-18  Bruno Haible  <bruno@clisp.org>
56445
56446         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
56447         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
56448         digits for the exponent.
56449
56450 2008-09-18  Jim Meyering  <meyering@redhat.com>
56451             Bruno Haible  <bruno@clisp.org>
56452
56453         * lib/vasnprintf.c (decimal_point_char): Define also if
56454         NEED_PRINTF_INFINITE_LONG_DOUBLE.
56455
56456 2008-09-16  Bruno Haible  <bruno@clisp.org>
56457         and Eric Blake  <ebb9@byu.net>
56458
56459         vasnprintf: support Irix 5.3
56460         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
56461         that mishandle long double infinity.
56462         Reported by Tom G. Christensen.
56463
56464 2008-09-16  Bruno Haible  <bruno@clisp.org>
56465
56466         * doc/glibc-functions/scandir.texi: Mention the function is missing on
56467         Solaris 9.
56468         * doc/glibc-functions/alphasort.texi: Likewise.
56469         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
56470
56471 2008-09-16  Jim Meyering  <meyering@redhat.com>
56472
56473         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
56474         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
56475         a umask modification leak out of a subshell.  Otherwise, the
56476         opensolaris /bin/sh would be accepted and thus cause unwarranted
56477         failures in the coreutils test suite.
56478
56479 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
56480
56481         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
56482         to succeed.
56483
56484 2008-09-16  Jim Meyering  <meyering@redhat.com>
56485
56486         avoid spurious test failure when library is built without ACL support
56487         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
56488         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
56489         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
56490         * tests/test-copy-acl.sh: Likewise.
56491
56492 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56493
56494         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
56495         based on character occurrence counts.
56496
56497 2008-09-15  Eric Blake  <ebb9@byu.net>
56498
56499         tests: avoid some compiler warnings
56500         * tests/test-memchr.c (main): Pass NULL indirectly.
56501         * tests/test-closein.c (main): Avoid unused variable.
56502
56503 2008-09-15  Bruno Haible  <bruno@clisp.org>
56504
56505         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
56506         are missing on OpenBSD 4.0 individually.
56507         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56508
56509 2008-09-15  Bruno Haible  <bruno@clisp.org>
56510
56511         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
56512         * doc/posix-functions/strerror.texi: Mention also Cygwin.
56513         * doc/posix-functions/perror.texi: Likewise.
56514         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
56515         is missing.
56516         Reported by Eric Blake.
56517
56518         * lib/errno.in.h: Use replacement values >= 2000.
56519         Reported by Eric Blake.
56520
56521 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56522
56523         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
56524         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
56525         limit.
56526         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
56527         compareseq was aborted.
56528
56529 2008-09-14  Bruno Haible  <bruno@clisp.org>
56530
56531         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
56532         yvec_edit_count.
56533         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
56534         (fstrcmp_bounded): Simplify result computation accordingly.
56535
56536 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56537
56538         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
56539         (fstrcmp): Define in terms of fstrcmp_bounded.
56540         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
56541         lower_bound argument.
56542         Return quickly if the result is certainly < lower_bound.
56543         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
56544
56545 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56546
56547         * lib/diffseq.h (EARLY_ABORT): New macro.
56548         (compareseq): Change return type to bool. Return true when EARLY_ABORT
56549         evaluates to true.
56550
56551 2008-09-14  Bruno Haible  <bruno@clisp.org>
56552
56553         * modules/perror-tests: New file.
56554         * tests/test-perror.sh: New file.
56555         * tests/test-perror.c: New file.
56556
56557         New module 'perror'.
56558         * lib/stdio.in.h (perror): New declaration.
56559         * lib/perror.c: New file.
56560         * m4/perror.m4: New file.
56561         * modules/perror: New file.
56562         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
56563         * doc/posix-functions/perror.texi: Mention the perror module.
56564         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
56565         REPLACE_PERROR.
56566         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
56567         REPLACE_PERROR.
56568
56569 2008-09-14  Bruno Haible  <bruno@clisp.org>
56570
56571         * modules/stdio (Makefile.am): Reorder to match the order in
56572         lib/stdio.in.h.
56573         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56574
56575 2008-09-13  Bruno Haible  <bruno@clisp.org>
56576
56577         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
56578
56579 2008-09-13  Bruno Haible  <bruno@clisp.org>
56580
56581         Extend strerror to cover the added errno values.
56582         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
56583         (rpl_strerror): Provide error messages for the added errno values and
56584         for the WSA* values.
56585         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
56586         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
56587         strerror.
56588         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
56589         * modules/strerror (Depends-on): Add errno.
56590         * doc/posix-functions/strerror.texi: Document the change.
56591         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
56592         and EOVERFLOW.
56593
56594 2008-09-13  Bruno Haible  <bruno@clisp.org>
56595
56596         * modules/EOVERFLOW: Remove file.
56597         * m4/eoverflow.m4: Remove file.
56598         * modules/EOVERFLOW-tests: Remove file.
56599         * tests/test-EOVERFLOW.c: Remove file.
56600         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
56601         * modules/ftell (Depends-on): Likewise.
56602         * modules/getdelim (Depends-on): Likewise.
56603         * modules/getugroups (Depends-on): Likewise.
56604         * modules/poll (Depends-on): Likewise.
56605         * modules/snprintf (Depends-on): Likewise.
56606         * modules/sprintf-posix (Depends-on): Likewise.
56607         * modules/vasnprintf (Depends-on): Likewise.
56608         * modules/vasprintf (Depends-on): Likewise.
56609         * modules/vfprintf-posix (Depends-on): Likewise.
56610         * modules/vsnprintf (Depends-on): Likewise.
56611         * modules/vsprintf-posix (Depends-on): Likewise.
56612         * modules/xvasprintf (Depends-on): Likewise.
56613         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56614         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
56615         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
56616         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
56617         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56618         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
56619         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
56620         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
56621         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56622         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
56623         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
56624         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
56625         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56626         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
56627         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
56628         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
56629         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56630         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
56631         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
56632         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
56633         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56634         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
56635         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
56636         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
56637         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
56638         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56639         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
56640         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
56641         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
56642         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
56643         * MODULES.html.sh: Remove EOVERFLOW.
56644         * NEWS: Mention the change.
56645
56646 2008-09-13  Bruno Haible  <bruno@clisp.org>
56647
56648         * modules/errno-tests: New file.
56649         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
56650
56651         * lib/errno.in.h: New file.
56652         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
56653         * modules/errno: New file.
56654         * doc/posix-headers/errno.texi: Update documentation.
56655         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
56656
56657 2008-09-13  Bruno Haible  <bruno@clisp.org>
56658
56659         * tests/test-poll.c: Use #if for native Windows, rather than testing
56660         __MSVCRT__.
56661
56662 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56663             Bruno Haible  <bruno@clisp.org>
56664
56665         * lib/glob.c: Don't include <pwd.h> on native Windows.
56666         (WINDOWS32): New macro.
56667         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
56668
56669 2008-09-13  Bruno Haible  <bruno@clisp.org>
56670
56671         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
56672         (ETIMEDOUT): Remove macro.
56673         (glthread_cond_timedwait_multithreaded): New declaration.
56674         (glthread_cond_timedwait): Use it.
56675         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
56676         (glthread_cond_timedwait_multithreaded): New function.
56677
56678 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56679
56680         * modules/poll-tests: Do not check for io.h.
56681         * tests/test-poll.c: Check for __MSVCRT__ instead.
56682
56683 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56684
56685         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
56686         * modules/poll-tests: Add inet_pton, stdbool, sockets.
56687         * tests/test-poll.c: Use them.  Use _pipe on Windows.
56688
56689 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
56690
56691         * modules/poll-tests: New.
56692         * tests/test-poll.c: New.
56693
56694 2008-09-12  Eric Blake  <ebb9@byu.net>
56695
56696         frexp: test for NetBSD failure on -0.0
56697         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
56698         not all, bugs from NetBSD 3.0 have been fixed.
56699         * doc/posix-functions/frexp.texi (frexp): Document bug.
56700         Reported by Thomas Klausner.
56701
56702         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
56703         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
56704         literal -0.0.
56705         Reported by Jonathan C. Patschke <jp@centtech.com>.
56706
56707 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56708
56709         * lib/glthread/cond.h: Use dummy implementation also if
56710         USE_WIN32_THREADS.
56711
56712 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56713
56714         * modules/fnmatch-posix (License): Change to LGPLv2+.
56715         * modules/fnmatch-gnu (License): Likewise.
56716
56717 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56718
56719         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
56720
56721 2008-09-11  Jim Meyering  <meyering@redhat.com>
56722
56723         * users.txt: Add gtk-vnc.
56724
56725 2008-09-08  Simon Josefsson  <simon@josefsson.org>
56726
56727         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
56728         rotate amounts.
56729
56730         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
56731         required for 16-bit and 8-bit rotates.
56732         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
56733         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
56734         UINT8_MAX instead of hard-coded constants.
56735         Suggested by Paul Eggert.
56736
56737 2008-09-07  Bruno Haible  <bruno@clisp.org>
56738
56739         * tests/test-striconveh.c (main): Check behaviour when converting from
56740         UTF-7.
56741
56742         Make striconveh work better with stateful encodings.
56743         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
56744         that iconv does not increment the inptr when returning -1/EINVAL.
56745
56746 2008-09-07  Bruno Haible  <bruno@clisp.org>
56747
56748         * build-aux/config.rpath: Update according to libtool-2.2.6.
56749         * build-aux/config.libpath: Likewise.
56750
56751 2008-09-06  Bruno Haible  <bruno@clisp.org>
56752
56753         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
56754         * lib/freadptr.c (freadptr): Likewise.
56755         * lib/freadseek.c (freadptrinc): Likewise.
56756         Reported by Simon Josefsson.
56757
56758 2008-09-06  Bruno Haible  <bruno@clisp.org>
56759
56760         * modules/freadptr (License): Change to LGPLv2+.
56761         * modules/freadseek (License): Likewise.
56762         Suggested by Eric Blake.
56763
56764         * modules/memchr2 (License): Change to LGPLv2+.
56765         Approved by Eric Blake.
56766
56767 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56768             Bruno Haible  <bruno@clisp.org>
56769
56770         Make gnulib-tool work with native 'sed' on AIX.
56771         * gnulib-tool (sed_noop): New variable.
56772         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
56773         func_add_or_update, func_create_testdir): Use it to initialize sed
56774         script variables.
56775         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56776
56777 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
56778             Bruno Haible  <bruno@clisp.org>
56779
56780         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
56781         also works after #include directives.
56782
56783 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
56784
56785         getdate.y: reject an out-of-range timezone value
56786         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
56787         the range [-24...+24].  When specified with only one or two digits,
56788         * tests/test-getdate.c: Tests for the fix.
56789         * doc/getdate.texi: Document this change.
56790
56791 2008-09-03  Bruno Haible  <bruno@clisp.org>
56792
56793         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
56794
56795 2008-09-02  Simon Josefsson  <simon@josefsson.org>
56796
56797         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
56798         <bruce.korb@gmail.com> with ideas from Ben Pfaff
56799         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
56800         Blake <ebb9@byu.net>.
56801
56802         * tests/test-bitrotate.c: Add more test vectors.
56803
56804 2008-09-02  Eric Blake  <ebb9@byu.net>
56805
56806         vasnprintf-posix: handle large precision via %.*d
56807         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
56808         when handling it ourselves.
56809         * tests/test-vasnprintf-posix.c (test_function): Add test.
56810         * tests/test-snprintf-posix.h (test_function): Likewise.
56811         * tests/test-sprintf-posix.h (test_function): Likewise.
56812         * tests/test-vasprintf-posix.c (test_function): Likewise.
56813         Reported by Alain Guibert.
56814
56815 2008-09-01  Eric Blake  <ebb9@byu.net>
56816
56817         c-stack: make configure-time check more robust
56818         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56819         successful sigaction call.
56820         Reported by Tom G. Christensen.
56821
56822 2008-09-01  Bruno Haible  <bruno@clisp.org>
56823
56824         New module 'findprog-lgpl'.
56825         * modules/findprog-lgpl: New file.
56826         * lib/findprog-lgpl.c: New file.
56827         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56828         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56829         to decide whether to use strdup or xstrdup, concatenated_filename or
56830         xconcatenated_filename.
56831
56832 2008-09-01  Bruno Haible  <bruno@clisp.org>
56833
56834         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56835         'xconcat-filename' (GPL).
56836         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56837         (License): Change to LGPLv2+.
56838         * modules/xconcat-filename: New file.
56839         * lib/concat-filename.h (concatenated_filename): Change specification.
56840         (xconcatenated_filename): New declaration.
56841         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56842         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56843         memory situations.
56844         * lib/xconcat-filename.c: New file.
56845         * NEWS: Mention the change.
56846         * lib/findprog.c: Include concat-filename.h, not filename.h.
56847         (find_in_path): Use xconcatenated_filename instead of
56848         concatenated_filename.
56849         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56850         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56851         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56852         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56853         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56854         instead of concatenated_filename.
56855         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56856         (execute_java_class): Use xconcatenated_filename instead of
56857         concatenated_filename.
56858         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56859         * modules/javacomp (Depends-on): Likewise.
56860         * modules/javaexec (Depends-on): Likewise.
56861
56862 2008-09-01  Bruno Haible  <bruno@clisp.org>
56863
56864         Split module 'filename' into 'filename' and 'concat-filename'.
56865         * modules/filename: Keep only lib/filename.h.
56866         (License): Change to LGPLv2+.
56867         * modules/concat-filename: New file, extracted from modules/filename.
56868         * lib/filename.h (concatenated_filename): Remove declaration.
56869         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56870         * lib/concat-filename.c: Include concat-filename.h.
56871         * NEWS: Mention the change.
56872
56873 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56874
56875         * lib/bitrotate.h (rotl8, rotr8): Add.
56876
56877         * modules/bitrotate (configure.ac): Need
56878         AC_REQUIRE([AC_C_INLINE]).
56879         (Description): Mention stdint.h.  Reported by Bruno Haible
56880         <bruno@clisp.org>.
56881
56882         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56883         Paolo Bonzini <bonzini@gnu.org>.
56884
56885 2008-08-31  Bruno Haible  <bruno@clisp.org>
56886
56887         Assume Solaris specific bi-arch conventions on Solaris systems.
56888         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56889         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56890         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56891         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56892         like acl_libdirstem.
56893         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56894         acl_libdirstem.
56895         * NEWS: Mention the change.
56896         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56897
56898 2008-08-31  Jim Meyering  <meyering@redhat.com>
56899
56900         * lib/strftime.h: Add comments describing the two added arguments.
56901
56902         remove duplicate #include directives
56903         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56904         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56905
56906 2008-08-31  Bruno Haible  <bruno@clisp.org>
56907
56908         New module 'sigpipe-die'.
56909         * modules/sigpipe-die: New file.
56910         * lib/sigpipe-die.h: New file.
56911         * lib/sigpipe-die.c: New file.
56912         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56913
56914 2008-08-31  Bruno Haible  <bruno@clisp.org>
56915
56916         Don't override previously installed signal handlers.
56917         * lib/fatal-signal.c (saved_sigactions): New variable.
56918         (uninstall_handlers): Reset the signal to the saved handler, not
56919         to SIG_DFL (except when ignored).
56920         (install_handlers): Save the previous handlers.
56921
56922 2008-08-30  Bruno Haible  <bruno@clisp.org>
56923
56924         * gnulib-tool (func_reset_sigpipe): New function.
56925         (func_get_automake_snippet, func_modules_transitive_closure,
56926         func_import): Invoke it before a join command that reads from stdin,
56927         to avoid "echo: write error: Broken pipe" error messages on stderr.
56928         Reported by Sam Steingold <sds@gnu.org>.
56929
56930 2008-08-30  Bruno Haible  <bruno@clisp.org>
56931
56932         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56933         Code copied from m4/open.m4.
56934         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56935         access and the filename ends in a slash. Code copied from lib/open.c.
56936         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56937         * tests/test-fopen.c (main): Check against bug with trailing slash.
56938
56939 2008-08-29  Bruno Haible  <bruno@clisp.org>
56940
56941         Avoid some "gcc -pedantic" warnings.
56942         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56943         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56944         * lib/dirent.in.h: Likewise.
56945         * lib/fcntl.in.h: Likewise.
56946         * lib/float.in.h: Likewise.
56947         * lib/iconv.in.h: Likewise.
56948         * lib/inttypes.in.h: Likewise.
56949         * lib/locale.in.h: Likewise.
56950         * lib/math.in.h: Likewise.
56951         * lib/netinet_in.in.h: Likewise.
56952         * lib/search.in.h: Likewise.
56953         * lib/signal.in.h: Likewise.
56954         * lib/stdarg.in.h: Likewise.
56955         * lib/stdint.in.h: Likewise.
56956         * lib/stdio.in.h: Likewise.
56957         * lib/stdlib.in.h: Likewise.
56958         * lib/string.in.h: Likewise.
56959         * lib/strings.in.h: Likewise.
56960         * lib/sys_select.in.h: Likewise.
56961         * lib/sys_socket.in.h: Likewise.
56962         * lib/sys_stat.in.h: Likewise.
56963         * lib/sys_time.in.h: Likewise.
56964         * lib/sysexits.in.h: Likewise.
56965         * lib/time.in.h: Likewise.
56966         * lib/unistd.in.h: Likewise.
56967         * lib/wchar.in.h: Likewise.
56968         * lib/wctype.in.h: Likewise.
56969         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56970         * modules/fchdir (Makefile.am): Likewise.
56971         * modules/fcntl (Makefile.am): Likewise.
56972         * modules/float (Makefile.am): Likewise.
56973         * modules/iconv_open (Makefile.am): Likewise.
56974         * modules/inttypes (Makefile.am): Likewise.
56975         * modules/locale (Makefile.am): Likewise.
56976         * modules/math (Makefile.am): Likewise.
56977         * modules/netinet_in (Makefile.am): Likewise.
56978         * modules/search (Makefile.am): Likewise.
56979         * modules/signal (Makefile.am): Likewise.
56980         * modules/stdarg (Makefile.am): Likewise.
56981         * modules/stdint (Makefile.am): Likewise.
56982         * modules/stdio (Makefile.am): Likewise.
56983         * modules/stdlib (Makefile.am): Likewise.
56984         * modules/string (Makefile.am): Likewise.
56985         * modules/strings (Makefile.am): Likewise.
56986         * modules/sys_select (Makefile.am): Likewise.
56987         * modules/sys_socket (Makefile.am): Likewise.
56988         * modules/sys_stat (Makefile.am): Likewise.
56989         * modules/sys_time (Makefile.am): Likewise.
56990         * modules/sysexits (Makefile.am): Likewise.
56991         * modules/time (Makefile.am): Likewise.
56992         * modules/unistd (Makefile.am): Likewise.
56993         * modules/wchar (Makefile.am): Likewise.
56994         * modules/wctype (Makefile.am): Likewise.
56995         Reported by Reuben Thomas <rrt@sc3d.org>.
56996
56997 2008-08-29  Bruno Haible  <bruno@clisp.org>
56998
56999         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
57000         any more.
57001
57002 2008-08-29  Simon Josefsson  <simon@josefsson.org>
57003
57004         * MODULES.html.sh (Misc): Add bitrotate.
57005
57006         * modules/bitrotate: New file.
57007
57008         * lib/bitrotate.h: New file.
57009
57010         * modules/bitrotate-tests: New file.
57011
57012         * tests/test-bitrotate.c: New file.
57013
57014         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
57015         on the bitrotate module.
57016
57017         * lib/arctwo.c: Use new bitrotate module.
57018
57019 2008-08-29  Jim Meyering  <meyering@redhat.com>
57020
57021         bootstrap: merge changes from coreutils
57022         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
57023         of copied files.  Remove a kludge, now that this is fixed.
57024         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
57025         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
57026         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
57027
57028 2008-08-29  Bruno Haible  <bruno@clisp.org>
57029
57030         * MODULES.html.sh: Remove --cvs-urls option.
57031
57032 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
57033
57034         maint.mk: adjust to file name change
57035         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
57036
57037 2008-08-28  Jim Meyering  <meyering@redhat.com>
57038
57039         * modules/getndelim2 (License): Relicense to LGPLv2+.
57040         Approved by Richard Stallman for the version of 1995, and by
57041         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
57042
57043 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
57044
57045         * lib/getdelim.c (flockfile, funlockfile): Make all of them
57046         dummy if one is not available.  Do not touch them if
57047         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
57048         (getc_maybe_unlocked): New.
57049         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
57050
57051 2008-08-26  Eric Blake  <ebb9@byu.net>
57052
57053         doc/INSTALL: resync from autoconf
57054         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
57055         (INSTALL_PRELUDE): Delete; this is done more efficiently by
57056         moving...
57057         * install.texi [!autoconf]: ...here.  Resync from autoconf.
57058         * INSTALL: Regenerate.
57059         * INSTALL.ISO: New file.
57060         * INSTALL.UTF-8: Likewise.
57061
57062 2008-08-26  Jim Meyering  <meyering@redhat.com>
57063
57064         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
57065         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
57066         these definitions conditional, so that they may be overridden, too.
57067
57068 2008-08-26  Bruno Haible  <bruno@clisp.org>
57069
57070         Generate INSTALL file variants with prettier quotes.
57071         * doc/Makefile (INSTALL_PRELUDE): New macro.
57072         (INSTALL): Use it.
57073         (INSTALL.ISO, INSTALL.UTF-8): New rules.
57074
57075 2008-08-26  Bruno Haible  <bruno@clisp.org>
57076
57077         Run makeinfo in an English locale.
57078         * doc/Makefile (MAKEINFO): New variable.
57079
57080 2008-08-26  Bruno Haible  <bruno@clisp.org>
57081
57082         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
57083         Suggested by Eric Blake.
57084
57085 2008-08-25  Bruno Haible  <bruno@clisp.org>
57086
57087         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
57088
57089 2008-08-25  Eric Blake  <ebb9@byu.net>
57090
57091         c-stack: test that stack overflow can be caught
57092         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
57093         that platform allows handling stack overflow; at least OS/2 EMX
57094         has sigaltstack, but crashes before transferring control to
57095         handler on stack overflow.
57096         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
57097         check for HAVE_STACK_OVERFLOW_HANDLING.
57098         Reported by Elbert Pol.
57099
57100 2008-08-25  Bruno Haible  <bruno@clisp.org>
57101
57102         * doc/posix-functions/strftime.texi: Fix description of strftime
57103         module.
57104
57105 2008-08-24  Bruno Haible  <bruno@clisp.org>
57106
57107         * tests/uniwidth/test-uc_width2.c: New file.
57108         * tests/uniwidth/test-uc_width2.sh: New file.
57109         * modules/uniwidth/width-tests (Files): Add the new files.
57110         (TESTS): Add uniwidth/test-uc_width2.sh.
57111         (TESTS_ENVIRONMENT): New variable.
57112         (check_PROGRAMS): Add test-uc_width2.
57113         (test_uc_width2_SOURCES): New variable.
57114
57115         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
57116         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
57117         not 0x00AB.
57118         Reported by Alexander V. Lukyanov <lav@netis.ru>.
57119
57120 2008-08-22  Eric Blake  <ebb9@byu.net>
57121
57122         test-lock, test-tls: mention why a test is skipped
57123         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
57124         skipped.
57125         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
57126
57127         count-one-bits: relax license
57128         * modules/count-one-bits (License): Relicense to LGPLv2+.
57129         Suggested by Ludovic Courtès, approved by Ben Pfaff.
57130
57131 2008-08-22  Andreas Schwab  <schwab@suse.de>
57132
57133         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
57134         Remove spurious space in assignment.
57135
57136 2008-08-21  Simon Josefsson  <simon@josefsson.org>
57137
57138         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
57139         Paul Eggert <eggert@CS.UCLA.EDU>.
57140
57141 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
57142
57143         * modules/gettext: Add m4/threadlib.m4.
57144
57145 2008-08-19  Eric Blake  <ebb9@byu.net>
57146
57147         test-c-stack: fix compilation failure on FreeBSD 5.0
57148         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
57149         headers before <sys/resource.h>.
57150         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
57151         the bug.
57152         Reported by Nelson H. F. Beebe.
57153
57154         strverscmp: migrate from "strverscmp.h" to <string.h>
57155         * modules/string (Makefile.am): Add new hooks.
57156         * modules/strverscmp (Files): Remove strverscmp.h.
57157         (Depends-on): Add string.
57158         (configure.ac): Add indicator.
57159         (Include): Mention new header.
57160         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
57161         defaults.
57162         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
57163         results.
57164         * lib/strverscmp.h: Delete.
57165         * lib/string.in.h (strverscmp): Provide declaration, when needed.
57166         * tests/test-strverscmp.c (includes): Adjust client.
57167         * lib/check-version.c (includes): Likewise.
57168         * NEWS: Document the change.
57169
57170         strverscmp: add unit test
57171         * modules/strverscmp-tests: New file.
57172         * tests/test-strverscmp.c: Likewise.
57173
57174 2008-08-19  Simon Josefsson  <simon@josefsson.org>
57175
57176         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
57177         regarding Windows crypto stuff, from Mono.
57178
57179 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
57180
57181         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
57182         if present, for intel RND.  Return error on failures.
57183
57184 2008-08-18  Ben Pfaff  <blp@gnu.org>
57185
57186         gitlog-to-changelog: give better diagnostic for failed pipe-open
57187         * build-aux/gitlog-to-changelog: Improve error message: suggest
57188         that the version of Git may be too old.
57189
57190 2008-08-18  Simon Josefsson  <simon@josefsson.org>
57191
57192         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
57193         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
57194
57195 2008-08-18  Bruno Haible  <bruno@clisp.org>
57196
57197         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
57198         pthread_in_use().
57199
57200 2008-08-18  Bruno Haible  <bruno@clisp.org>
57201
57202         * lib/glthread/threadlib.c: Include <pthread.h>.
57203
57204 2008-08-18  Bruno Haible  <bruno@clisp.org>
57205
57206         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
57207         glthread_recursive_lock_* macros.
57208         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
57209         Fix syntax error.
57210
57211 2008-08-18  Bruno Haible  <bruno@clisp.org>
57212
57213         * lib/glthread/thread.c: Avoid forcing a context switch right after
57214         thread creation.
57215
57216 2008-08-17  Bruno Haible  <bruno@clisp.org>
57217
57218         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
57219         * lib/glthread/thread.h: Provide Win32 specific implementation.
57220         * modules/thread (Files): Add lib/glthread/thread.c.
57221         (Depends-on): Add lock.
57222         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
57223
57224 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57225
57226         New module 'yield'.
57227         * modules/yield: New file.
57228         * lib/glthread/yield.h: New file.
57229         * m4/yield.m4: New file.
57230         * MODULES.html.sh (Multithreading): Add yield.
57231
57232 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57233
57234         New module 'thread'.
57235         * modules/thread: New file.
57236         * lib/glthread/thread.h: New file.
57237         * m4/thread.m4: New file.
57238         * MODULES.html.sh (Multithreading): Add thread.
57239
57240 2008-08-17  Bruno Haible  <bruno@clisp.org>
57241
57242         * lib/glthread/lock.h: Include <stdlib.h> always.
57243         * lib/glthread/tls.h: Likewise.
57244         * lib/glthread/cond.h: Likewise.
57245
57246 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57247
57248         New module 'cond'.
57249         * modules/cond: New file.
57250         * lib/glthread/cond.h: New file.
57251         * lib/glthread/cond.c: New file.
57252         * m4/cond.m4: New file.
57253         * MODULES.html.sh (Multithreading): Add cond.
57254
57255 2008-08-16  Eric Blake  <ebb9@byu.net>
57256
57257         c-stack: fix regression on Irix 5.3 from 2008-06-21
57258         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
57259         sa_sigaction...
57260         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
57261         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
57262         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
57263         * modules/signal (Makefile.am): Use the value.
57264         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
57265         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
57266         * doc/posix-headers/signal.texi (signal.h): Document this
57267         portability issue.
57268         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
57269         Reported by Tom G. Christensen.
57270
57271 2008-08-17  Bruno Haible  <bruno@clisp.org>
57272
57273         New module 'threadlib'.
57274         * modules/threadlib: New file.
57275         * lib/glthread/threadlib.c: New file, extracted from
57276         lib/glthread/lock.c.
57277         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
57278         functions.
57279         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
57280         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
57281         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
57282         macros.
57283         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
57284         (gl_DISABLE_THREADS): Remove macro.
57285         * modules/lock (Files): Remove build-aux/config.rpath.
57286         (Depends-on): Remove havelib. Add threadlib.
57287         (configure.ac-early): Remove section.
57288         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
57289         * modules/tls (Depends-on): Remove lock. Add threadlib.
57290         (Link): New section, copied from threadlib.
57291         * MODULES.html.sh (Multithreading): Add threadlib.
57292
57293 2008-08-14  Bruno Haible  <bruno@clisp.org>
57294
57295         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
57296         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
57297         glthread_rwlock_unlock, glthread_rwlock_destroy,
57298         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
57299         glthread_recursive_lock_destroy): Define as macros always.
57300         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
57301         glthread_lock_lock.
57302         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
57303         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
57304         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
57305         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
57306         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
57307         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
57308         (glthread_recursive_lock_lock_func): Renamed from
57309         glthread_recursive_lock_lock.
57310         (glthread_recursive_lock_unlock_func): Renamed from
57311         glthread_recursive_lock_unlock.
57312         (glthread_recursive_lock_destroy_func): Renamed from
57313         glthread_recursive_lock_destroy.
57314
57315 2008-08-14  Bruno Haible  <bruno@clisp.org>
57316
57317         * lib/glthread/lock.h: Renamed from lib/lock.h.
57318         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
57319         * lib/glthread/tls.h: Renamed from lib/tls.h.
57320         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
57321         * lib/fstrcmp.c: Update includes.
57322         * lib/strsignal.c: Update includes.
57323         * modules/lock (Files, Makefile.am): Update.
57324         (Include): Change to "glthread/lock.h".
57325         * modules/tls (Files, Makefile.am): Update.
57326         (Include): Change to "glthread/tls.h".
57327         * tests/test-lock.c: Update includes.
57328         * tests/test-tls.c: Update includes.
57329         * NEWS: Mention the renamed header files.
57330
57331 2008-08-11  Jim Meyering  <meyering@redhat.com>
57332
57333         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
57334
57335 2008-08-11  Eric Blake  <ebb9@byu.net>
57336
57337         test-c-stack: avoid C99-ism
57338         * tests/test-c-stack.c (main): Fix whitespace, move declaration
57339         before statement.
57340         Reported by Alain Guibert.
57341
57342 2008-08-10  Jim Meyering  <meyering@redhat.com>
57343
57344         ensure that return value of uinttostr et al are not ignored
57345         * lib/inttostr.h (__GNUC_PREREQ): Define.
57346         (__attribute_warn_unused_result__): Define.
57347         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
57348
57349 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
57350
57351         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
57352         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
57353
57354 2008-08-07  Jim Meyering  <meyering@redhat.com>
57355
57356         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
57357
57358         * modules/mkstemp (License): Relicense under LGPLv2+.
57359         * modules/tempname (License): Likewise.
57360
57361 2008-08-06  Bruno Haible  <bruno@clisp.org>
57362
57363         * lib/poll.c (poll): Further micro-optimization.
57364
57365 2008-08-06  Jim Meyering  <meyering@redhat.com>
57366
57367         inet_pton.c: use locale-independent tolower
57368         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
57369         (inet_pton6): Use c_tolower rather than tolower.
57370         * modules/inet_pton (Depends-on): Add c-ctype.
57371
57372 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
57373
57374         * lib/poll.c (poll): Avoid division when timeout is 0, cache
57375         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
57376
57377 2008-08-06  Jim Meyering  <meyering@redhat.com>
57378
57379         * modules/inet_pton (License): Relicense under LGPLv2+.
57380
57381 2008-08-03  Bruno Haible  <bruno@clisp.org>
57382
57383         Additional non-aborting API for lock and tls.
57384         * lib/lock.h: Include <errno.h>.
57385         (glthread_lock_init): New macro/function.
57386         (gl_lock_init): Define as wrapper around glthread_lock_init.
57387         (glthread_lock_lock): New macro/function.
57388         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
57389         (glthread_lock_unlock): New macro/function.
57390         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
57391         (glthread_lock_destroy): New macro/function.
57392         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
57393         (glthread_rwlock_init): New macro/function.
57394         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
57395         (glthread_rwlock_rdlock): New macro/function.
57396         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
57397         (glthread_rwlock_wrlock): New macro/function.
57398         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
57399         (glthread_rwlock_unlock): New macro/function.
57400         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
57401         (glthread_rwlock_destroy): New macro/function.
57402         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
57403         (glthread_recursive_lock_init): New macro/function.
57404         (gl_recursive_lock_init): Define as wrapper around
57405         glthread_recursive_lock_init.
57406         (glthread_recursive_lock_lock): New macro/function.
57407         (gl_recursive_lock_lock): Define as wrapper around
57408         glthread_recursive_lock_lock.
57409         (glthread_recursive_lock_unlock): New macro/function.
57410         (gl_recursive_lock_unlock): Define as wrapper around
57411         glthread_recursive_lock_unlock.
57412         (glthread_recursive_lock_destroy): New macro/function.
57413         (gl_recursive_lock_destroy): Define as wrapper around
57414         glthread_recursive_lock_destroy.
57415         (glthread_once): New macro/function.
57416         (gl_once): Define as wrapper around glthread_once.
57417         Update function declarations.
57418         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
57419         glthread_rwlock_init. Return error code.
57420         (glthread_rwlock_rdlock_multithreaded): Renamed from
57421         glthread_rwlock_rdlock. Return error code.
57422         (glthread_rwlock_wrlock_multithreaded): Renamed from
57423         glthread_rwlock_wrlock. Return error code.
57424         (glthread_rwlock_unlock_multithreaded): Renamed from
57425         glthread_rwlock_unlock. Return error code.
57426         (glthread_rwlock_destroy_multithreaded): Renamed from
57427         glthread_rwlock_destroy. Return error code.
57428         (glthread_recursive_lock_init_multithreaded): Renamed from
57429         glthread_recursive_lock_init. Return error code.
57430         (glthread_recursive_lock_lock_multithreaded): Renamed from
57431         glthread_recursive_lock_lock. Return error code.
57432         (glthread_recursive_lock_unlock_multithreaded): Renamed from
57433         glthread_recursive_lock_unlock. Return error code.
57434         (glthread_recursive_lock_destroy_multithreaded): Renamed from
57435         glthread_recursive_lock_destroy. Return error code.
57436         (glthread_once_call): Make static.
57437         (glthread_once_multithreaded): Renamed from glthread_once.
57438         * lib/tls.h: Include <errno.h>.
57439         (glthread_tls_key_init): New macro/function.
57440         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
57441         (glthread_tls_set): New macro/function.
57442         (gl_tls_set): Define as wrapper around glthread_tls_set.
57443         (glthread_tls_key_destroy): New macro/function.
57444         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
57445         Update function declarations.
57446         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
57447         glthread_tls_get.
57448         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
57449
57450 2008-08-04  Eric Blake  <ebb9@byu.net>
57451
57452         gnumakefile: use space, not TAB, outside of targets
57453         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
57454
57455 2008-08-02  Jim Meyering  <meyering@redhat.com>
57456
57457         getdate.y: avoid locale-dependent date parsing failure
57458         In Turkish locales, getdate would fail to recognize keywords
57459         containing a lowercase "i".  The solution is not to rely on
57460         locale-sensitive case-conversion.
57461         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
57462         (lookup_word): Use c_toupper in place of toupper.
57463         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
57464         Reported by Vefa Bicakci <bicave@superonline.com> in
57465         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
57466         * modules/getdate (Depends-on): Add c-ctype.
57467
57468 2008-08-02  Bruno Haible  <bruno@clisp.org>
57469
57470         * gnulib-tool (func_import): When updating or creating a .gitignore
57471         file, prepend each added line with a slash, and ignore leading slashes
57472         from the existing lines.
57473         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
57474
57475 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57476
57477         Portability fix for GNU make 3.79.1.
57478         * top/GNUmakefile: Avoid 'else COND', which older GNU make
57479         versions do not understand.
57480
57481 2008-08-01  Bruno Haible  <bruno@clisp.org>
57482
57483         Work around bug of HP-UX 10.20 cc with -0.0 literal.
57484         * tests/test-isnanf.h (zero): New variable.
57485         (main): Avoid literal -0.0f.
57486         * tests/test-isnand.h (zero): New variable.
57487         (main): Avoid literal -0.0.
57488         * tests/test-isnanl.h (zero): New variable.
57489         (main): Avoid literal -0.0L.
57490         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
57491         (test_float, test_double, test_long_double): Avoid literals -0.0f,
57492         -0.0, -0.0L.
57493         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
57494         (test_signbitd): Avoid literal -0.0.
57495         (test_signbitl): Avoid literal -0.0L.
57496         * tests/test-ceilf1.c (zero): New variable.
57497         (main): Avoid literal -0.0f.
57498         * tests/test-ceill.c (zero): New variable.
57499         (main): Avoid literal -0.0L.
57500         * tests/test-floorf1.c (zero): New variable.
57501         (main): Avoid literal -0.0f.
57502         * tests/test-floorl.c (zero): New variable.
57503         (main): Avoid literal -0.0L.
57504         * tests/test-roundf1.c (zero): New variable.
57505         (main): Avoid literal -0.0f.
57506         * tests/test-round1.c (zero): New variable.
57507         (main): Avoid literal -0.0.
57508         * tests/test-roundl.c (zero): New variable.
57509         (main): Avoid literal -0.0L.
57510         * tests/test-truncf1.c (zero): New variable.
57511         (main): Avoid literal -0.0f.
57512         * tests/test-trunc1.c (zero): New variable.
57513         (main): Avoid literal -0.0.
57514         * tests/test-truncl.c (zero): New variable.
57515         (main): Avoid literal -0.0L.
57516         * tests/test-frexp.c (zero): New variable.
57517         (main): Avoid literal -0.0.
57518         * tests/test-frexpl.c (zero): New variable.
57519         (main): Avoid literal -0.0L.
57520         * tests/test-ldexpl.c (zero): New variable.
57521         (main): Avoid literal -0.0L.
57522         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57523         (zerod, zerol): New variables.
57524         (test_function): Avoid literals -0.0, -0.0L.
57525         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
57526         (zerod, zerol): New variables.
57527         (test_function): Avoid literals -0.0, -0.0L.
57528         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57529         (zerod, zerol): New variables.
57530         (test_function): Avoid literals -0.0, -0.0L.
57531         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
57532         (zerod, zerol): New variables.
57533         (test_function): Avoid literals -0.0, -0.0L.
57534         * tests/test-strtod.c (zero): New variable.
57535         (main): Avoid literal -0.0.
57536         Reported by Jonathan C. Patschke <jp@centtech.com>.
57537
57538 2008-07-31  Jim Meyering  <meyering@redhat.com>
57539
57540         sha256.h: correct definition of SHA224_DIGEST_SIZE
57541         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
57542         Reported by Paulie Pena IV <paulie4@gmail.com>.
57543         Define as 224 / 8, rather than as a literal.
57544         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
57545         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
57546         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
57547
57548 2008-07-31  Bruno Haible  <bruno@clisp.org>
57549
57550         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
57551         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
57552         Reported by Jonathan Patschke <jp@centtech.com>.
57553
57554 2008-07-31  Bruno Haible  <bruno@clisp.org>
57555
57556         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
57557         Reported by Paolo Bonzini <bonzini@gnu.org>.
57558
57559 2008-07-30  Eric Blake  <ebb9@byu.net>
57560
57561         test-strtod: allow compilation without -lm
57562         * tests/test-strtod.c (main): Avoid link dependence on fabs.
57563         Reported by Dennis Clarke <blastwave@gmail.com>.
57564
57565 2008-07-28  Jim Meyering  <meyering@redhat.com>
57566
57567         bootstrap: work also when there are no .po files in po/
57568         * build-aux/bootstrap (update_po_files): Complete the change
57569         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
57570
57571 2008-07-27  Jim Meyering  <meyering@redhat.com>
57572
57573         * users.txt: Add zile.
57574
57575 2008-07-26  Ben Pfaff  <blp@gnu.org>
57576
57577         Add missing dependencies on new m4/exponent[fdl].m4 files.
57578         * modules/isnanf-nolibm: Add m4/exponentf.m4.
57579         * modules/isnand-nolibm: Add m4/exponentd.m4.
57580         * modules/isnanl-nolibm: Add m4/exponentl.m4.
57581         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
57582         m4/isnan[fdl].m4, because the macros actually used moved.
57583         Reported by Jim Meyering.
57584
57585 2008-07-14  Ben Pfaff  <blp@gnu.org>
57586
57587         Add isinf module.
57588         * lib/isinf.c: New file.
57589         * lib/math.in.h: Define isinf macro if we have decided to replace
57590         it.
57591         * m4/isinf.m4: New file.
57592         * m4/math_h.m4: Initialize and substitute variables for isinf
57593         module.
57594         * modules/isinf: New file.
57595         * modules/isinf-tests: New file.
57596         * modules/math: Add substitutions for new module.
57597         * tests/test-isinf.c: New file.
57598         * doc/posix-functions/isinf.texi: Mention new module.
57599         * MODULES.html.sh: Mention new module.
57600
57601 2008-07-14  Ben Pfaff  <blp@gnu.org>
57602
57603         Factor out some macros for use by additional modules.
57604         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
57605         exponentf.m4.
57606         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
57607         exponentd.m4.
57608         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
57609         file exponentl.m4.
57610         * m4/exponentf.m4: New file.
57611         * m4/exponentd.m4: New file.
57612         * m4/exponentl.m4: New file.
57613         * modules/isnanf: Use new file m4/exponentf.m4.
57614         * modules/isnand: Use new file m4/exponentd.m4.
57615         * modules/isnanl: Use new file m4/exponentl.m4.
57616
57617 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
57618
57619         mktime.c: normalize tp->tm_isdst value to -1/0/1.
57620         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
57621         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
57622         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
57623
57624         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
57625         readlink on platforms without PATH_MAX.
57626
57627 2008-07-21  Eric Blake  <ebb9@byu.net>
57628
57629         Warn, not fail, on stale version.
57630         * top/GNUmakefile (_curr-ver): Tone down previous patch.
57631
57632         Don't allow installation with stale devel version number.
57633         * top/GNUmakefile (_is-install-target): New macro.
57634         (_curr-ver): Forbid installation with stale version number.
57635
57636 2008-07-20  Bruno Haible  <bruno@clisp.org>
57637
57638         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
57639         TESTS_ENVIRONMENT.
57640         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
57641
57642 2008-07-20  Bruno Haible  <bruno@clisp.org>
57643
57644         * lib/c-stack.h (c_stack_action): Add documentation.
57645         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
57646
57647 2008-07-20  Bruno Haible  <bruno@clisp.org>
57648
57649         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
57650         * modules/readlink (License): Likewise.
57651
57652 2008-07-17  Eric Blake  <ebb9@byu.net>
57653
57654         * modules/c-stack (Link): Fix typo.
57655
57656         Make c-stack use libsigsegv, when available.
57657         * modules/c-stack (Depends-on): Add libsigsegv.
57658         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
57659         needed.
57660         * lib/c-stack.c (SIGSTKSZ): Define fallback.
57661         (segv_handler, overflow_handler, c_stack_action)
57662         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
57663         implementation when libsigsegv is available, but only when using
57664         the library is necessary.
57665         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
57666         comment, explaining why XSI check fails on Linux.
57667         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
57668         * tests/test-c-stack2.sh: Tweak skip message.
57669         * NEWS: Document new link-time requirements.
57670
57671 2008-07-16  Eric Blake  <ebb9@byu.net>
57672
57673         c-stack: Expose false positives when not using libsigsegv.
57674         * modules/c-stack-tests (Files): Expand test.
57675         * tests/test-c-stack.c (main): Add means to conditionally trigger
57676         non-overflow SIGSEGV.
57677         * tests/test-c-stack2.sh: New file.
57678
57679 2008-07-14  Bruno Haible  <bruno@clisp.org>
57680
57681         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
57682         Reported by Eric Blake.
57683
57684 2008-07-14  Sam Steingold  <sds@gnu.org>
57685             Bruno Haible  <bruno@clisp.org>
57686
57687         New module libsigsegv.
57688         * modules/libsigsegv: New file.
57689         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
57690         modifications.
57691         * MODULES.html.sh (Signal handling): New section.
57692
57693 2008-07-14  Bruno Haible  <bruno@clisp.org>
57694
57695         * modules/unictype/ctype-* (Description): Add the word "function".
57696         Improves the resulting doc in MODULES.html.
57697
57698 2008-07-12  Ben Pfaff  <blp@gnu.org>
57699
57700         Add longlong module.
57701         * modules/longlong: New file.
57702
57703 2008-07-12  Bruno Haible  <bruno@clisp.org>
57704
57705         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
57706         to empty.
57707
57708 2008-07-10  Ben Pfaff  <blp@gnu.org>
57709
57710         Add isnan module.
57711         * doc/posix-functions/isnan.texi: Mention new module.
57712         * lib/math.in.h: Define isnan macro if we have decided to replace
57713         it.
57714         * m4/isnan.m4: New file.
57715         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
57716         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
57717         also.
57718         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
57719         redundancy.
57720         * m4/math_h.m4: Initialize and substitute variables for isnan
57721         module.
57722         * modules/isnan: New file.
57723         * modules/isnan-tests: New file.
57724         * modules/math: Add substitutions for new module.
57725         * tests/test-isnan.c: New file.
57726         * MODULES.html.sh: Mention new module.
57727
57728 2008-07-10  Ben Pfaff  <blp@gnu.org>
57729
57730         Add isnanf module.
57731         * lib/isnanf.m4: New file.
57732         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
57733         (gl_HAVE_ISNANF_IN_LIBM): New macro.
57734         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
57735         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
57736         * modules/isnanf: New file.
57737         * modules/isnanf-tests: New file.
57738         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
57739         files.
57740         * tests/test-isnanf-nolibm.c: factored most of its contents into
57741         new file tests/test-isnanf.h.
57742         * tests/test-isnanf.h: New file.
57743         * tests/test-isnanf.c: New file.
57744         * MODULES.html.sh: Mention new module.
57745         * doc/glibc-functions/isnanf.texi: Mention new module.
57746
57747 2008-07-10  Ben Pfaff  <blp@gnu.org>
57748
57749         Add isnand module.
57750         * lib/isnand.h: New file.
57751         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
57752         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
57753         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
57754         functionality also.
57755         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
57756         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
57757         (gl_HAVE_ISNAND_IN_LIBM): New macro.
57758         * modules/isnand: New file.
57759         * modules/isnand-tests: New file.
57760         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
57761         files.
57762         * tests/test-isnand-nolibm.c: factored most of its contents into
57763         new file tests/test-isnand.h.
57764         * tests/test-isnand.h: New file.
57765         * tests/test-isnand.c: New file.
57766         * MODULES.html.sh: Mention new module.
57767
57768 2008-07-10  Ben Pfaff  <blp@gnu.org>
57769
57770         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
57771         * lib/isnand.h: Rename lib/isnand-nolibm.h.
57772         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
57773         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
57774         * modules/isnanf-nolibm: Update references to renamed files.
57775         * modules/isnand-nolibm: Likewise.
57776         * modules/isnanf-nolibm-tests: Likewise.
57777         * modules/isnand-nolibm-tests: Likewise.
57778         * lib/frexp.c: Likewise.
57779         * lib/isfinite.c: Likewise.
57780         * lib/signbitd.c: Likewise.
57781         * lib/signbitf.c: Likewise.
57782         * lib/vasnprintf.c: Likewise.
57783         * tests/test-ceilf1.c: Likewise.
57784         * tests/test-ceilf2.c: Likewise.
57785         * tests/test-floorf1.c: Likewise.
57786         * tests/test-floorf2.c: Likewise.
57787         * tests/test-frexp.c: Likewise.
57788         * tests/test-round1.c: Likewise.
57789         * tests/test-round2.c: Likewise.
57790         * tests/test-roundf1.c: Likewise.
57791         * tests/test-strtod.c: Likewise.
57792         * tests/test-trunc1.c: Likewise.
57793         * tests/test-trunc2.c: Likewise.
57794         * tests/test-truncf1.c: Likewise.
57795         * tests/test-truncf2.c: Likewise.
57796         * NEWS: Mention the renamed header files.
57797
57798 2008-07-11  Jim Meyering  <meyering@redhat.com>
57799
57800         vc-list-files: make the last-resort awk code more portable
57801         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
57802         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
57803         does not support it.
57804
57805 2008-07-10  Eric Blake  <ebb9@byu.net>
57806
57807         Work with tar's bootstrap.
57808         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
57809         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
57810         an m4 comment.
57811
57812 2008-07-09  Jim Meyering  <meyering@redhat.com>
57813
57814         posix-shell.m4: fix typo that made this test malfunction
57815         * m4/posix-shell.m4: Remove capitalization in variable name.
57816
57817 2008-07-08  Bruno Haible  <bruno@clisp.org>
57818
57819         * m4/onceonly.m4: Update comments.
57820         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57821
57822 2008-07-04  Jim Meyering  <meyering@redhat.com>
57823
57824         * users.txt: Add vc-dwim.
57825         (bison, coreutils): Use the gitweb URL.
57826
57827 2008-07-03  Jim Meyering  <meyering@redhat.com>
57828
57829         * users.txt: Add libffcall.  From Sam Steingold.
57830
57831 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57832
57833         getdate.y: do not ignore TZ with relative day, month or year offset
57834         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57835         relative-date-handling, since otherwise, the latter would clobber the
57836         sole output (an updated Start value) of the tz-handling block.
57837         * tests/test-getdate.c: Tests for the fix
57838
57839 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57840
57841         Recognize 'foo_LIBRARIES += libgnu.a'.
57842         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57843         makefile snippet has already specified an installation location,
57844         also using '+='.
57845
57846 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57847
57848         getdate.y: factor out common actions
57849         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57850         Use them in place of open-coded actions.
57851
57852 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57853
57854         Add self-test for getdate module.
57855         * modules/getdate-tests: New file.
57856         * tests/test-getdate.c: New file.
57857
57858 2008-06-29  Bruno Haible  <bruno@clisp.org>
57859
57860         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57861         .gitignore.
57862         Reported by Sylvain Beucler <beuc@beuc.net>.
57863
57864 2008-06-29  Bruno Haible  <bruno@clisp.org>
57865
57866         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57867         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57868
57869 2008-06-29  Bruno Haible  <bruno@clisp.org>
57870
57871         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57872         EXTRA_DIST.
57873         Reported by Sylvain Beucler <beuc@beuc.net>.
57874
57875 2008-06-26  Jim Meyering  <meyering@redhat.com>
57876
57877         make several modules depend on the "open" module
57878         This provides slightly increased consistency when opening-for-write
57879         the name of a non-directory spelled with a trailing slash.
57880         * modules/chdir-safer: Likewise.
57881         * modules/chown: Likewise.
57882         * modules/clean-temp: Likewise.
57883         * modules/copy-file: Likewise.
57884         * modules/fchdir: Likewise.
57885         * modules/fcntl-safer: Likewise.
57886         * modules/pipe: Likewise.
57887         * modules/utime: Likewise.
57888         Prompted by Eric Blake and Bruno Haible.
57889
57890 2008-06-24  Andreas Schwab  <schwab@suse.de>
57891
57892         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57893         literals can be used as initializers for global variables.
57894
57895 2008-06-23  Eric Blake  <ebb9@byu.net>
57896
57897         Make gnulib-cache.m4 easier to diff.
57898         * gnulib-tool (func_import): Allow newlines when reading cached
57899         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57900
57901 2008-06-23  Bruno Haible  <bruno@clisp.org>
57902
57903         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57904         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57905         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57906         m4/signalblocking.m4.
57907         (gl_PREREQ_SIGACTION): Don't invoke it.
57908         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57909         gl_PREREQ_SIG_HANDLER_H.
57910         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57911         Don't check for sigaction here.
57912
57913 2008-06-23  Bruno Haible  <bruno@clisp.org>
57914
57915         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57916         (install_handlers): Don't set the SA_RESETHAND flag.
57917
57918 2008-06-23  Bruno Haible  <bruno@clisp.org>
57919
57920         * m4/sigaction.m4: Comment fixes.
57921         * lib/signal.in.h: Likewise.
57922
57923 2008-06-23  Eric Blake  <ebb9@byu.net>
57924
57925         Fix typo.
57926         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57927
57928         Avoid SA_ namespace.
57929         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57930         Reported by Ralf Wildenhues.
57931
57932         Avoid test failure due to SA_RESTORER.
57933         * tests/test-sigaction.c (SA_MASK): New macro.
57934         (main): Avoid failing due to extension flags being set.
57935         Reported by Jim Meyering.
57936
57937         Revert use of sig-handler.h in sigprocmask.c.
57938         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57939         it requires the existence of struct sigaction.
57940         * lib/sigprocmask.c (handler_t): Restore typedef.
57941         (rpl_signal, old_handlers): Use local type.
57942
57943 2008-06-22  Bruno Haible  <bruno@clisp.org>
57944
57945         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57946         conditionally.
57947         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57948
57949 2008-06-22  Bruno Haible  <bruno@clisp.org>
57950
57951         * doc/posix-functions/siginterrupt.texi: Move note.
57952
57953         * lib/signal.in.h (SA_RESTART): New macro.
57954         * lib/sigaction.c: Update comment.
57955
57956         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57957
57958         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57959         (gl_PREREQ_SIGPROCMASK): Invoke it.
57960         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57961
57962         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57963
57964         * lib/sigprocmask.c: Update a comment.
57965
57966 2008-06-21  Eric Blake  <ebb9@byu.net>
57967
57968         Use sigaction module rather than signal().
57969         * modules/c-stack (Depends-on): Add sigaction.
57970         * modules/fatal-signal (Depends-on): Likewise.
57971         * modules/nanosleep (Depends-on): Likewise.
57972         * modules/sigprocmask (Files): Add sig-handler.h.
57973         * modules/sigaction (Files): Likewise.
57974         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57975         Eggert.
57976         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57977         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57978         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57979         (init_fatal_signals): Likewise.
57980         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57981         (siginterrupt): Delete fallback.
57982         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57983         instead.
57984         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57985         siginterrupt.
57986
57987         New module sigaction, for mingw.
57988         * modules/sigaction: New module...
57989         * modules/sigaction-tests: ...and its test.
57990         * m4/sigaction.m4: New file.
57991         * lib/sigaction.c: Likewise.
57992         * tests/test-sigaction.c: Likewise.
57993         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57994         * modules/signal (Makefile.am): Likewise.
57995         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57996         needed.
57997         * doc/posix-headers/signal.texi (signal.h): Mention provided
57998         types.
57999         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
58000         that sigaction is preferable.
58001         * doc/posix-functions/sigaction.texi (sigaction): Mention new
58002         module.
58003         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58004         sigaction.
58005
58006         Improve robustness of sigprocmask by overriding signal.
58007         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
58008         is in use.
58009         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
58010         (SIGKILL, SIGSTOP): Provide fallbacks.
58011         (rpl_signal): Implement.
58012         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
58013         signal can be called inside handlers.
58014
58015         Fix nanosleep module on mingw.
58016         * modules/nanosleep (Depends-on): Add sys_select.
58017         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
58018
58019         Fix licensing of sigprocmask.
58020         * modules/raise (License): Relicense as LGPL.
58021
58022 2008-06-21  Bruno Haible  <bruno@clisp.org>
58023
58024         * lib/propername.c (proper_name_utf8): Don't use the transliterated
58025         result if it contains question marks.
58026         Reported by Michael Geng <linux@michaelgeng.de>.
58027
58028 2008-06-19  Bruno Haible  <bruno@clisp.org>
58029
58030         Fix CVS-ism.
58031         * doc/gnulib.texi: Include updated-stamp.texi.
58032         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
58033         (updated-stamp.texi): New rule.
58034         (gnulib.info): Depend on it.
58035         * doc/.gitignore: Add updated-stamp.texi.
58036         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
58037
58038 2008-06-19  Bruno Haible  <bruno@clisp.org>
58039
58040         * doc/Makefile (gnulib.info): Update and simplify dependencies.
58041         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58042
58043 2008-06-19  Eric Blake  <ebb9@byu.net>
58044
58045         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
58046         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
58047         Reported by Stepan Kasal.
58048
58049 2008-06-18  Bruno Haible  <bruno@clisp.org>
58050
58051         * lib/fatal-signal.c (init_fatal_signals): Add comment.
58052         Reported by Eric Blake.
58053
58054 2008-06-18  Eric Blake  <ebb9@byu.net>
58055
58056         Work around cygwin 1.5.25 strsignal bug.
58057         * tests/test-strsignal.c: Allow for const char *.
58058         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
58059
58060 2008-06-18  Simon Josefsson  <simon@josefsson.org>
58061
58062         * users.txt: Update URL to article and add author/date
58063         information.
58064
58065 2008-06-17  Bruno Haible  <bruno@clisp.org>
58066
58067         New macro gl_DISABLE_THREADS.
58068         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
58069         if the user did not pass --enable-threads or --disable-threads option.
58070         (gl_DISABLE_THREADS): New macro.
58071         Reported by Eric Blake <ebb9@byu.net>.
58072
58073 2008-06-17  Bruno Haible  <bruno@clisp.org>
58074
58075         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
58076         when the macro ignores it.
58077         Based on a patch by Eric Blake <ebb9@byu.net>.
58078
58079 2008-06-17  Bruno Haible  <bruno@clisp.org>
58080
58081         * modules/tls (License): Change to LGPLv2+.
58082         Reported by Eric Blake.
58083
58084 2008-06-17  Eric Blake  <ebb9@byu.net>
58085
58086         Simplify c-stack prerequisites.
58087         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
58088         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
58089         no longer requires <ucontext.h> to exist.  Optimize setrlimit
58090         check.
58091         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
58092         <sys/resource.h>.
58093
58094         Move c-stack test into testsuite.
58095         * modules/c-stack-tests: New file.
58096         * lib/c-stack.c [DEBUG]: Move test program...
58097         * tests/test-c-stack.c: ...into this new file.  Skip rather than
58098         fail test if sigaltstack is lacking.
58099         * tests/test-c-stack.sh: New driver file.
58100
58101 2008-06-16  Eric Blake  <ebb9@byu.net>
58102
58103         Use raise module consistently.
58104         * modules/fatal-signal (Depends-on): Add raise.
58105         * modules/sigprocmask (Depends-on): Likewise.
58106         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
58107         * lib/sigprocmask.c (sigprocmask): Likewise.
58108         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
58109         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
58110
58111         Fix compliance bug in sigpending.
58112         * lib/sigprocmask.c (sigpending): Return pending array via
58113         parameter, not return value.
58114
58115 2008-06-14  Eric Blake  <ebb9@byu.net>
58116
58117         Improve obstack-printf test code.
58118         * tests/test-obstack-printf.c (test_function): Fix comment, and
58119         simplify usage of obstack_* in macros.  Add a test for coverage.
58120         Reported by Bruno Haible.
58121
58122 2008-06-14  Bruno Haible  <bruno@clisp.org>
58123
58124         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
58125         array size as a constant, not as a const variable.
58126         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
58127         AC_USE_SYSTEM_EXTENSIONS.
58128         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
58129         Test whether the obstack_printf function actually exists.
58130         * modules/obstack-printf (Depends-on): Add extensions.
58131         (Include): Remove obstack.h.
58132         * modules/obstack-printf-posix (Depends-on): Add extensions.
58133         (Include): Remove obstack.h.
58134
58135 2008-06-13  Eric Blake  <ebb9@byu.net>
58136
58137         Add obstack-printf and obstack-printf-posix modules.
58138         * modules/obstack-printf: New file.
58139         * modules/obstack-printf-posix: Likewise.
58140         * MODULES.html.sh (Misc): Mention them.
58141         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
58142         Likewise.
58143         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
58144         Likewise.
58145         * modules/stdio (Makefile.am): Accomodate new modules.
58146         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
58147         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
58148         Declare.
58149         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
58150         functions.
58151         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
58152         (gl_REPLACE_OBSTACK_PRINTF): New macros
58153         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
58154         * tests/test-obstack-printf.c: New file.
58155         * modules/obstack-printf-tests: Likewise.
58156         * modules/obstack-printf-posix-tests: Likewise.
58157
58158 2008-06-11  Bruno Haible  <bruno@clisp.org>
58159
58160         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
58161         * lib/open.c: Include errno.h.
58162         (open): Fail when attempting to write to a file that has a trailing
58163         slash.
58164         * tests/test-open.c (main): Test against trailing slash bug.
58165         * doc/posix-functions/open.texi: Mention the trailing slash bug.
58166
58167 2008-06-10  Bruno Haible  <bruno@clisp.org>
58168
58169         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
58170         for $? to work inside the trap command, with various /bin/sh-s.
58171         * tests/test-vc-list-files-cvs.sh: Likewise.
58172
58173 2008-06-10  Bruno Haible  <bruno@clisp.org>
58174
58175         * lib/acl-internal.h: Don't include gettext.h here.
58176         * lib/set-mode-acl.c: Include gettext.h here.
58177         * lib/copy-acl.c: Likewise.
58178
58179 2008-06-10  Bruno Haible  <bruno@clisp.org>
58180
58181         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
58182         * lib/wait-process.c (wait_subprocess): Likewise.
58183         * lib/execute.h (execute): Add termsigp argument.
58184         * lib/execute.c (execute): Likewise.
58185         * lib/csharpcomp.c (compile_csharp_using_pnet,
58186         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
58187         * lib/csharpexec.c (execute_csharp_using_pnet,
58188         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
58189         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
58190         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
58191         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
58192         is_jikes_present): Update.
58193         * lib/javaexec.c (execute_java_class): Update.
58194         * lib/javaversion.c (execute_and_read_line): Update.
58195         * NEWS: Document the changes.
58196         Reported by Eric Blake.
58197
58198 2008-06-10  Eric Blake  <ebb9@byu.net>
58199
58200         Add missing include.
58201         * tests/test-strstr.c (includes): Add <signal.h>.
58202         * tests/test-strcasestr.c (includes): Likewise.
58203         * tests/test-memmem.c (includes): Likewise.
58204
58205 2008-06-10  Bruno Haible  <bruno@clisp.org>
58206
58207         * lib/wait-process.c (wait_subprocess): Add an assertion.
58208
58209 2008-06-10  Bruno Haible  <bruno@clisp.org>
58210
58211         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
58212
58213 2008-06-10  Bruno Haible  <bruno@clisp.org>
58214
58215         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
58216         using alarm().
58217         * tests/test-strcasestr.c (main): Likewise.
58218         * tests/test-strstr.c (main): Likewise.
58219
58220 2008-06-09  Bruno Haible  <bruno@clisp.org>
58221
58222         Work around the Solaris 10 ACE ACLs ABI change.
58223         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
58224         declare if ACL_NO_TRIVIAL is present.
58225         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
58226         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
58227         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
58228         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
58229         define if ACL_NO_TRIVIAL is present.
58230         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
58231         and use the current ABI.
58232         (file_has_acl): Use same #if condition as elsewhere.
58233         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
58234         in use, and use the current ABI.
58235         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
58236         Reported by Jim Meyering.
58237
58238 2008-06-09  Eric Blake  <ebb9@byu.net>
58239
58240         Work around environments that (stupidly) ignore SIGALRM.
58241         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
58242         before using alarm().
58243         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58244         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58245         Reported by Ian Beckwith <ianb@erislabs.net>.
58246
58247         Produce autobuild blurb earlier in log.
58248         * modules/autobuild (configure.ac-early): Move AB_INIT here.
58249
58250 2008-06-09  Jim Meyering  <meyering@redhat.com>
58251         and OndÅ™ej Vašík  <ovasik@redhat.com>
58252
58253         utimens.c: correct kernel bug work-around
58254         OndÅ™ej Vašík found that the invalid return value of 280 indicates
58255         failure, not success, and the kernel bug we're trying to work
58256         around affects not just the utimensat call, but also the fallback
58257         futimens call.
58258         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
58259         not success.
58260         [HAVE_FUTIMENS]: Use the same work-around, here.
58261
58262 2008-06-09  Jim Meyering  <meyering@redhat.com>
58263
58264         add more guards around definition of ACE_-related code
58265         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
58266         ALLOW and ACE_OWNER are also defined.
58267
58268 2008-06-08  Bruno Haible  <bruno@clisp.org>
58269
58270         * lib/acl-internal.h: Add me as co-author.
58271         * lib/file-has-acl.c: Likewise.
58272         * lib/set-mode-acl.c: Likewise.
58273         * lib/copy-acl.c: Likewise.
58274
58275 2008-06-08  Bruno Haible  <bruno@clisp.org>
58276
58277         Add support for AIX ACLs.
58278         * lib/acl-internal.h (acl_nontrivial): New declaration.
58279         * lib/file-has-acl.c (acl_nontrivial): New function.
58280         (file_has_acl): Add implementation using AIX 4 ACL API.
58281         * lib/set-mode-acl.c (qset_acl): Likewise.
58282         * lib/copy-acl.c (qcopy_acl): Likewise.
58283
58284 2008-06-08  Bruno Haible  <bruno@clisp.org>
58285
58286         Add support for HP-UX ACLs.
58287         * lib/acl-internal.h (acl_nontrivial): New declaration.
58288         * lib/file-has-acl.c (acl_nontrivial): New function.
58289         (file_has_acl): Add implementation using HP-UX 11 ACL API.
58290         * lib/set-mode-acl.c (qset_acl): Likewise.
58291         * lib/copy-acl.c (qcopy_acl): Likewise.
58292
58293 2008-06-08  Bruno Haible  <bruno@clisp.org>
58294
58295         Add support for Cygwin ACLs.
58296         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
58297         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
58298         the chmod_or_fchmod call.
58299         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
58300
58301 2008-06-08  Bruno Haible  <bruno@clisp.org>
58302
58303         Fix bug with setuid modes in Solaris 10+ code.
58304         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
58305         succeeded, when the mode contains some special bits.
58306
58307 2008-06-08  Bruno Haible  <bruno@clisp.org>
58308
58309         Add support for Solaris 7..10 ACLs.
58310         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
58311         declarations.
58312         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
58313         functions.
58314         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
58315         * lib/set-mode-acl.c (qset_acl): Likewise.
58316         * lib/copy-acl.c (qcopy_acl): Likewise.
58317
58318 2008-06-08  Bruno Haible  <bruno@clisp.org>
58319
58320         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
58321         declaration.
58322         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
58323         (acl_access_nontrivial): Remove MacOS X case.
58324         (file_has_acl): Use acl_extended_nontrivial.
58325         * lib/copy-acl.c (qcopy_acl): Likewise.
58326
58327 2008-06-08  Bruno Haible  <bruno@clisp.org>
58328
58329         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
58330
58331 2008-06-08  Jim Meyering  <meyering@redhat.com>
58332
58333         * modules/acl (Maintainer): Add Bruno Haible.
58334
58335 2008-06-07  Bruno Haible  <bruno@clisp.org>
58336
58337         Improve support for Tru64 ACLs.
58338         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
58339         ACL on OSF/1.
58340
58341 2008-06-07  Bruno Haible  <bruno@clisp.org>
58342
58343         Add support for MacOS X ACLs.
58344         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
58345         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
58346         * lib/set-mode-acl.c (qset_acl): Likewise.
58347         * lib/copy-acl.c (qcopy_acl): Likewise.
58348
58349 2008-06-07  Bruno Haible  <bruno@clisp.org>
58350
58351         Fix memory leak introduced on 2008-05-22.
58352         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
58353         use.
58354
58355 2008-06-07  Bruno Haible  <bruno@clisp.org>
58356
58357         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
58358         to construct an empty ACL.
58359
58360 2008-06-07  Bruno Haible  <bruno@clisp.org>
58361
58362         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
58363         precisely.
58364         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
58365
58366 2008-06-07  Bruno Haible  <bruno@clisp.org>
58367
58368         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
58369         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
58370
58371 2008-06-07  Bruno Haible  <bruno@clisp.org>
58372
58373         * doc/posix-functions/_setjmp.texi: Explain the use of this function
58374         regardless of POSIX.
58375         * doc/posix-functions/_longjmp.texi: Likewise.
58376         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
58377         SystemV platform in this case.
58378
58379 2008-06-06  Eric Blake  <ebb9@byu.net>
58380
58381         Document abort() bugs.
58382         * doc/posix-functions/abort.texi (abort): Mention anomalies.
58383
58384         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
58385         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
58386         sigsetjmp.
58387         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
58388         siglongjmp, but only as a macro.
58389         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
58390         is obsolete.
58391         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
58392
58393         Tweak documentation to cover cygwin argz bugs.
58394         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
58395         argz bug fix; no code change needed since no cygwin releases
58396         occurred between the last fix and the bug being tested.
58397         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
58398         module and recently fixed cygwin bugs.
58399         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
58400         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
58401         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
58402         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
58403         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
58404         Likewise.
58405         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
58406         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
58407         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
58408         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
58409         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
58410         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
58411         Likewise.
58412
58413         Avoid gcc warning on cygwin.
58414         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
58415         !ACL_NO_TRIVIAL]: Avoid unused variable.
58416
58417 2008-06-05  Eric Blake  <ebb9@byu.net>
58418
58419         Be tolerant of UNKNOWN version in gnulib-tool test dir.
58420         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
58421         git-version-gen fails to come up with a version.
58422         Reported by Simon Josefsson.
58423
58424 2008-06-05  Jim Meyering  <meyering@redhat.com>
58425             Paul Eggert  <eggert@cs.ucla.edu>
58426
58427         utimens.c: work around a probable Linux kernel bug
58428         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
58429         appears to be a kernel bug that causes utimensat to return 280
58430         instead of 0, indicating success.
58431
58432 2008-06-04  Bruno Haible  <bruno@clisp.org>
58433
58434         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
58435         2008-06-01 commit.
58436
58437 2008-06-04  Bruno Haible  <bruno@clisp.org>
58438
58439         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
58440         * lib/file-has-acl.c (acl_access_nontrivial): New function.
58441         (file_has_acl): Use it. Save errno afterwards.
58442         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
58443
58444 2008-06-03  Bruno Haible  <bruno@clisp.org>
58445
58446         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
58447         draft code. Simplify #ifs.
58448         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
58449         Put Solaris code after POSIX-draft code. Fix comments regarding
58450         Solaris 10, HP-UX. Mention Cygwin.
58451         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
58452
58453 2008-06-03  Eric Blake  <ebb9@byu.net>
58454
58455         Provide fallback for older kernels.
58456         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
58457         Provide runtime fallback if kernel lacks support.
58458         Reported by Mike Frysinger.
58459
58460 2008-06-02  Bruno Haible  <bruno@clisp.org>
58461
58462         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
58463         it exists.
58464
58465 2008-06-02  Bruno Haible  <bruno@clisp.org>
58466
58467         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
58468         * lib/copy-acl.c (qcopy_acl): Update comment.
58469
58470 2008-06-02  Bruno Haible  <bruno@clisp.org>
58471
58472         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
58473         like ACL APIs.
58474
58475 2008-06-02  Bruno Haible  <bruno@clisp.org>
58476
58477         * tests/test-file-has-acl.sh: Use different code for Cygwin.
58478         * tests/test-set-mode-acl.sh: Likewise.
58479         * tests/test-copy-acl.sh: Likewise.
58480         * tests/test-copy-file.sh: Likewise.
58481
58482 2008-06-02  Bruno Haible  <bruno@clisp.org>
58483
58484         * tests/test-file-has-acl.sh: Remove unused code.
58485
58486 2008-06-01  Bruno Haible  <bruno@clisp.org>
58487
58488         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
58489         (copy_acl): Just a wrapper around qcopy_acl that emits the error
58490         messages.
58491         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
58492
58493 2008-06-01  Bruno Haible  <bruno@clisp.org>
58494
58495         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
58496         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
58497         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
58498         APIs.
58499         * modules/acl-tests (configure.ac): Remove tests now contained in
58500         m4/acl.m4.
58501
58502 2008-06-02  Jim Meyering  <meyering@redhat.com>
58503
58504         announce-gen: use a better key-server host name
58505         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
58506         it may be more consistently reliable.  Suggested by Werner Koch
58507         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
58508
58509 2008-06-01  Bruno Haible  <bruno@clisp.org>
58510
58511         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
58512         Reported by Voroskoi Andras <voroskoi@gmail.com>.
58513
58514 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
58515
58516         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
58517
58518 2008-06-01  Bruno Haible  <bruno@clisp.org>
58519
58520         New ACL tests.
58521         * tests/test-file-has-acl.sh: New file.
58522         * tests/test-file-has-acl.c: New file.
58523         * tests/test-set-mode-acl.sh: New file.
58524         * tests/test-set-mode-acl.c: New file.
58525         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
58526         * tests/test-copy-acl.c: New file.
58527         * modules/acl-tests: New file, based on modules/copy-file-tests.
58528         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
58529         (Depends-on): Add acl-tests.
58530         (configure.ac): Remove checks.
58531         (Makefile.am): Don't create test-sameacls program here any more.
58532
58533 2008-06-01  Bruno Haible  <bruno@clisp.org>
58534
58535         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
58536         * tests/test-sameacls.c: Include progname.h.
58537         (main): Invoke set_program_name. Portability fixes for MacOS X,
58538         Solaris, HP-UX.
58539
58540 2008-06-01  Bruno Haible  <bruno@clisp.org>
58541
58542         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
58543         function.
58544         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
58545
58546 2008-06-01  Bruno Haible  <bruno@clisp.org>
58547
58548         * modules/rpmatch (Depends-on): Add strdup.
58549
58550 2008-06-01  Bruno Haible  <bruno@clisp.org>
58551
58552         * lib/pipe.c: Include unistd-safer.h.
58553         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
58554         * modules/pipe (Depends-on): Add unistd-safer.
58555
58556 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58557
58558         * modules/autobuild (configure.ac): Call AB_INIT.
58559
58560 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58561
58562         * tests/test-getaddrinfo.c: Don't print debug messages by default.
58563         Suggested by Bruno Haible <bruno@clisp.org>.
58564
58565 2008-05-30  Simon Josefsson  <simon@josefsson.org>
58566
58567         * tests/test-base64.c: Cast size_t to unsigned long when invoking
58568         printf.  Use %lu instead of %d.  Reported by Bruno Haible
58569         <bruno@clisp.org>.
58570
58571 2008-05-29  Eric Blake  <ebb9@byu.net>
58572
58573         Prefer new POSIX 200x interfaces over futimesat.
58574         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
58575         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
58576         when available.
58577         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
58578
58579 2008-05-28  Bruno Haible  <bruno@clisp.org>
58580
58581         * modules/stpcpy (License): Change to LGPLv2+.
58582         Requested by David Lutterkort <dlutter@redhat.com>.
58583
58584 2008-05-27  Bruno Haible  <bruno@clisp.org>
58585
58586         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
58587         current mingw.
58588         Reported by Jose E. Marchesi <jemarch@gnu.org>.
58589
58590 2008-05-27  Bruno Haible  <bruno@clisp.org>
58591
58592         * modules/iconv_open (Link): New section, from module 'iconv'.
58593         * modules/striconv (Link): Likewise.
58594         * modules/striconveh (Link): Likewise.
58595         * modules/xstriconv (Link): Likewise.
58596         * modules/unicodeio (Link): Likewise.
58597         * modules/propername (Link): Likewise.
58598         Reported by Jim Meyering.
58599
58600 2008-05-26  Jim Meyering  <meyering@redhat.com>
58601
58602         sha256: do not artificially restrict buffer length to be < 2^32
58603         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
58604         uint32_t to size_t.
58605         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
58606         to match.
58607
58608         avoid unaligned access errors, e.g., on sparc
58609         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
58610         direct access through a possibly-unaligned uint64* pointer.
58611         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
58612         direct access through a possibly-unaligned uint32* pointer.
58613         Prompted by this patch from Tom "spot" Callaway:
58614         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
58615
58616         sha512.c: fix typo in comment
58617         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
58618
58619 2008-05-25  Bruno Haible  <bruno@clisp.org>
58620
58621         * lib/set-mode-acl.c: Renamed from lib/acl.c.
58622         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
58623         (Makefile.am): Update lib_SOURCES.
58624
58625 2008-05-25  Bruno Haible  <bruno@clisp.org>
58626
58627         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
58628
58629 2008-05-25  Jim Meyering  <meyering@redhat.com>
58630
58631         useless-if-before-free: freed expr may have white-space differences
58632         * build-aux/useless-if-before-free: Recognize cases in which the
58633         freed expression differs from the tested one in embedded white
58634         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
58635         $1 was used, so we can't make any regexp shy.  Improved tests now
58636         detect this.
58637
58638         useless-if-before-free: accept white space in the expression.
58639         * build-aux/useless-if-before-free: For now, any white space
58640         in the expression must be identical in the free argument.
58641
58642         useless-if-before-free: efficiency tweak
58643         * build-aux/useless-if-before-free: Make the expression-matching
58644         regexp "shy".
58645         Make the *outer* regexp shy, not the expr-matching one.
58646
58647         update code-in-comment to accept cast of free arg
58648         * build-aux/useless-if-before-free: Update regexp.
58649
58650 2008-05-25  Bruno Haible  <bruno@clisp.org>
58651
58652         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
58653         * modules/copy-file-tests (Files, Makefile.am): Update.
58654         * tests/test-copy-file.c (func_test_copy): Update.
58655
58656 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
58657
58658         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
58659
58660 2008-05-23  Bruno Haible  <bruno@clisp.org>
58661
58662         Improve support for ACLs on OSF/1.
58663         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
58664         Remove fallback for unknown flavors of ACLs.
58665
58666 2008-05-22  Bruno Haible  <bruno@clisp.org>
58667
58668         Add support for ACLs on OSF/1.
58669         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
58670         replacements.
58671         (acl_free_text): New macro fallback.
58672         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
58673         acl_free.
58674         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
58675         acl_free_text function. Require AC_C_INLINE.
58676
58677 2008-05-22  Bruno Haible  <bruno@clisp.org>
58678
58679         Make copy_acl work on MacOS X 10.5.
58680         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
58681         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
58682         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
58683         If MODE_INSIDE_ACL, don't assume that every system has the same text
58684         representation for ACLs as FreeBSD.
58685         * lib/copy-acl.c (copy_acl): Add support for platforms with
58686         !MODE_INSIDE_ACL.
58687         * lib/file-has-acl.c (file_has_acl): Likewise.
58688         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
58689         FreeBSD, MacOS X, or IRIX, respectively.
58690
58691 2008-05-22  Bruno Haible  <bruno@clisp.org>
58692
58693         * lib/acl.h: Don't include <sys/acl.h>.
58694         (GETACLCNT): Move fallback to lib/acl-internal.h.
58695         * lib/acl-internal.h: Include <sys/acl.h> here.
58696         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
58697
58698 2008-05-22  Bruno Haible  <bruno@clisp.org>
58699
58700         Split off copy_acl function to separate file.
58701         * lib/copy-acl.c: New file, extracted from lib/acl.c.
58702         * lib/acl.c (copy_acl): Moved function to separate file.
58703         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
58704         * modules/acl (Files): Add lib/copy-acl.c.
58705         (Makefiles.am): Augment lib_SOURCES.
58706
58707 2008-05-22  Bruno Haible  <bruno@clisp.org>
58708
58709         * modules/copy-file-tests: New file.
58710         * tests/test-copy-file.sh: New file.
58711         * tests/test-copy-file.c: New file.
58712         * tests/test-copy-file-sameacls.c: New file.
58713
58714 2008-05-22  Eric Blake  <ebb9@byu.net>
58715
58716         Avoid gcc warning.
58717         * tests/test-memcmp.c (main): Pass NULL indirectly.
58718
58719 2008-05-21  Bruno Haible  <bruno@clisp.org>
58720
58721         Add reference doc about ACLs.
58722         * doc/acl-resources.txt: New file.
58723         * doc/acl-cygwin.txt: New file.
58724
58725 2008-05-21  Bruno Haible  <bruno@clisp.org>
58726
58727         Avoid one more warning from gcc.
58728         * lib/vasnprintf.c (IF_LINT): Update comments.
58729         (VASNPRINTF): Use it also for the 'prefix' array initializer.
58730
58731 2008-05-21  Jim Meyering  <meyering@redhat.com>
58732
58733         avoid a warning from gcc
58734         * lib/vasnprintf.c (IF_LINT): Define.
58735         (scale10_round_decimal_long_double):
58736         Use it to avoid a "may be used uninitialized" warning.
58737         (scale10_round_decimal_double): Likewise.
58738
58739 2008-05-21  Simon Josefsson  <simon@josefsson.org>
58740
58741         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
58742         declared.
58743
58744 2008-05-20  Bruno Haible  <bruno@clisp.org>
58745
58746         * tests/test-memcmp.c (main): Test also the sign of the result. Test
58747         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
58748
58749 2008-05-20  Simon Josefsson  <simon@josefsson.org>
58750
58751         * modules/memcmp-tests: New file.
58752         * tests/test-memcmp.c: New file.
58753
58754 2008-05-19  Bruno Haible  <bruno@clisp.org>
58755
58756         * modules/propername (Notice, configure.ac): Put quoted "..." into
58757         --keyword option.
58758         * lib/propername.h: Update comments accordingly.
58759         Reported by Eric Blake.
58760
58761 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
58762
58763         * modules/getpass-gnu (Depends-on): Add fseeko.
58764
58765 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58766
58767         * modules/base64-tests: New file.
58768
58769 2008-05-19  Bo Borgerson <gigabo@gmail.com>
58770
58771         * lib/base64.c (base64_decode_ctx): If a decode context structure
58772         was passed in use it to ignore newlines.  If a context structure
58773         was _not_ passed in, continue to treat newlines as garbage (this
58774         is the historical behavior).  Formerly base64_decode.
58775         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58776         takes a decode context structure.
58777         * lib/base64.h (base64_decode): Macro for four-argument calls.
58778         (base64_decode_alloc): Likewise.
58779         * lib/base64.c (base64_decode_ctx): If a decode context structure
58780         was passed in use it to ignore newlines.  If a context structure
58781         was _not_ passed in, continue to treat newlines as garbage (this
58782         is the historical behavior).  Formerly base64_decode.
58783         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
58784         takes a decode context structure.
58785         * lib/base64.h (base64_decode): Macro for four-argument calls.
58786         (base64_decode_alloc): Likewise.
58787
58788 2008-05-19  Jim Meyering  <meyering@redhat.com>
58789
58790         avoid a warning from gcc
58791         * lib/trim.c (IF_LINT): Define.
58792         (trim2): Use it to avoid a "may be used uninitialized" warning.
58793
58794         Fix doc typo.
58795         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
58796
58797 2008-05-19  Bruno Haible  <bruno@clisp.org>
58798
58799         * doc/glibc-functions/getpass.texi: Document limits of other
58800         implementations.
58801
58802 2008-05-19  Simon Josefsson  <simon@josefsson.org>
58803             Bruno Haible <bruno@clisp.org>
58804
58805         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
58806
58807 2008-05-18  Bruno Haible  <bruno@clisp.org>
58808
58809         * modules/propername: New file, from GNU gettext.
58810         * lib/propername.h: New file, from GNU gettext.
58811         * lib/propername.c: New file, from GNU gettext.
58812         * MODULES.html.sh (Internationalization functions): Add propername.
58813
58814 2008-05-16  Jim Meyering  <meyering@redhat.com>
58815             Bruno Haible  <bruno@clisp.org>
58816
58817         Avoid some warnings from "gcc -Wshadow".
58818         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58819
58820 2008-05-15  Eric Blake  <ebb9@byu.net>
58821
58822         Extend previous patch to cygwin 1.7.0.
58823         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58824         fast implementation in cygwin >= 1.7.0.
58825         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58826         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58827
58828 2008-05-15  Bruno Haible  <bruno@clisp.org>
58829
58830         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58831         implementation in glibc >= 2.9.
58832         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58833         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58834
58835 2008-05-15  Bruno Haible  <bruno@clisp.org>
58836
58837         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58838         (Unicode string functions): Add unilbrk/*.
58839         Reported by Karl Berry.
58840
58841 2008-05-15  Eric Blake  <ebb9@byu.net>
58842
58843         Fix violation of <stdbool.h> replacement in regex.
58844         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58845         * lib/regexec.c (re_search_internal): Likewise.
58846         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58847
58848 2008-05-15  Jim Meyering  <meyering@redhat.com>
58849
58850         avoid distracting test output when git or cvs is not found
58851         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58852         * tests/test-vc-list-files-git.sh: Likewise.
58853
58854 2008-05-15  Eric Blake  <ebb9@byu.net>
58855
58856         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58857         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58858         glibc version.
58859         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58860         * doc/posix-functions/strstr.texi (strstr): Likewise.
58861         * lib/str-two-way.h (MAX): Sychronize with glibc.
58862
58863 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58864
58865         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58866         opr.ctx_type.
58867         (calc_first): Initialize constraint field.
58868         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58869         Fix grammar.
58870         (duplicate_node): Merge constraint field for all node types.
58871         (calc_eclosure_iter): Look at constraint field for all node types.
58872         * lib/regex_internal.c (create_cd_newstate): Don't look at
58873         opr.ctx_type.
58874
58875 2008-05-14  Bruno Haible  <bruno@clisp.org>
58876
58877         Help GCC to do better code generation.
58878         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58879         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58880         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58881         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58882         Declare with attribute 'malloc' if supported.
58883
58884 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58885
58886         use "echo STR|wc -c" rather than unportable "expr length STR"
58887         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58888         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58889
58890 2008-05-14  Jim Meyering  <meyering@redhat.com>
58891
58892         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58893         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58894         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58895         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58896         via Collin Lasse.
58897
58898 2008-05-14  Eric Blake  <ebb9@byu.net>
58899
58900         Avoid quadratic growth in gl_LIBSOURCES.
58901         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58902         Suggested by Bruno Haible.
58903
58904         Test xmemdup0.
58905         * modules/xmemdup0-tests: New file.
58906         * tests/test-xmemdup0.c: Likewise.
58907
58908 2008-05-13  Eric Blake  <ebb9@byu.net>
58909
58910         Split xmemdup0 into its own module.
58911         * modules/xmemdup0: New file.
58912         * lib/xmemdup0.h: Likewise.
58913         * lib/xmemdup0.c: Likewise.
58914         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58915         * lib/xalloc.h (xmemdup0): Remove.
58916         * lib/xmalloc.c (xmemdup0): Likewise.
58917
58918 2008-05-13  Eric Blake  <ebb9@byu.net>
58919             Bruno Haible  <bruno@clisp.org>
58920
58921         Reduce number of forks required during autoconf.
58922         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58923         and gl_LIBSOURCES_DIR.
58924         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58925         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58926         m4_syscmd per file.
58927         <m4_foreach_w>: Move...
58928         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58929
58930 2008-05-13  Eric Blake  <ebb9@byu.net>
58931
58932         * gnulib-tool: Fix various comment typos.
58933
58934 2008-05-12  Bruno Haible  <bruno@clisp.org>
58935
58936         Tailor the linebreaking algorithm.
58937         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58938
58939 2008-05-12  Bruno Haible  <bruno@clisp.org>
58940
58941         Update to Unicode 5.0.0.
58942         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58943         LBP_JV, LBP_JT. Redistribute values.
58944         (unilbrk_table): Change size.
58945         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58946         Unicode TR#14 rev. 22.
58947         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58948         LBP_JV, LBP_JT. Redistribute values.
58949         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58950         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58951         Update.
58952         * lib/unilbrk/lbrkprop1.h: Regenerated.
58953         * lib/unilbrk/lbrkprop2.h: Regenerated.
58954         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58955         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58956         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58957         Likewise.
58958         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58959         Likewise.
58960         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58961         result.
58962         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58963         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58964         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58965         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58966         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58967         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58968
58969 2008-05-11  Bruno Haible  <bruno@clisp.org>
58970
58971         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58972
58973 2008-05-11  Bruno Haible  <bruno@clisp.org>
58974
58975         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58976         * modules/unilbrk/gen-lbrk: New file.
58977
58978 2008-05-11  Bruno Haible  <bruno@clisp.org>
58979
58980         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58981         * m4/sha512.m4 (gl_SHA512): Likewise.
58982
58983 2008-05-11  Jim Meyering  <meyering@redhat.com>
58984
58985         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58986         * modules/crypto/sha256: New file.
58987         * modules/crypto/sha512: Likewise.
58988         * lib/sha256.c: Likewise.
58989         * lib/sha256.h: Likewise.
58990         * lib/sha512.c: Likewise.
58991         * lib/sha512.h: Likewise.
58992         * lib/u64.h: Likewise.
58993         * m4/sha256.m4: Likewise.
58994         * m4/sha512.m4: Likewise.
58995         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58996
58997 2008-05-10  Bruno Haible  <bruno@clisp.org>
58998
58999         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
59000         (Input/Output <stdio.h>): Add xprintf.
59001         (Signal handling <signal.h>): Add strsignal.
59002         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
59003         (Core language properties): Add func.
59004         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
59005         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
59006         strings.
59007         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
59008         (Input/output): New section.
59009         (File system functions): Add openat-die, stat-macros.
59010         (Networking functions): Add sockets.
59011         (Unicode string functions): Add unictype/*.
59012         (Support for building libraries and executables): Add gperf.
59013         (Support for building documentation): Add agpl-3.0.
59014         (Misc): Add nocrash.
59015
59016 2008-05-10  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/unictype/gen-ctype: New file.
59019
59020 2008-05-10  Jim Meyering  <meyering@redhat.com>
59021
59022         Make chdir-safer.c more efficient on a system with no symlinks.
59023         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
59024         also if ELOOP is zero.  Suggested by Bruno Haible.
59025
59026         Make chdir-safer.c slightly safer.
59027         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
59028         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
59029
59030         Avoid compile failure on systems without ELOOP (like mingw).
59031         * lib/chdir-safer.c (ELOOP): Define if not already defined.
59032         Reported by Bruno Haible.
59033
59034 2008-05-10  Bruno Haible  <bruno@clisp.org>
59035
59036         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
59037         (is_utf8_encoding): Use a case-insensitive comparison.
59038         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
59039         streq.
59040
59041 2008-05-10  Bruno Haible  <bruno@clisp.org>
59042
59043         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
59044         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
59045         * lib/unilbrk/ulc-common.h (iconv_string_length,
59046         iconv_string_keeping_offsets): Remove declarations.
59047         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
59048         Don't include <iconv.h>, streq.h, xsize.h.
59049         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
59050         conversion.
59051         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
59052         <iconv.h>, streq.h, xsize.h.
59053         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
59054         conversion.
59055         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
59056         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
59057         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
59058         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
59059
59060 2008-05-10  Bruno Haible  <bruno@clisp.org>
59061
59062         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
59063         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
59064
59065         * modules/unilbrk/u32-width-linebreaks-tests: New file.
59066         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
59067
59068         * modules/unilbrk/u16-width-linebreaks-tests: New file.
59069         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
59070
59071         * modules/unilbrk/u8-width-linebreaks-tests: New file.
59072         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
59073
59074         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
59075         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
59076
59077         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
59078         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
59079
59080         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
59081         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
59082
59083         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
59084         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
59085
59086 2008-05-10  Bruno Haible  <bruno@clisp.org>
59087
59088         Split up 'linebreak' module.
59089         * lib/unilbrk.h: New file, based on lib/linebreak.h.
59090         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
59091         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
59092         modifications.
59093         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
59094         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
59095         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
59096         lib/linebreak.c.
59097         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
59098         lib/linebreak.c.
59099         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
59100         lib/linebreak.c.
59101         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
59102         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
59103         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
59104         lib/linebreak.c.
59105         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
59106         lib/linebreak.c.
59107         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
59108         lib/linebreak.c.
59109         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
59110         lib/linebreak.c.
59111         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
59112         lib/linebreak.c.
59113         * modules/unilbrk/base: New file.
59114         * modules/unilbrk/tables: New file.
59115         * modules/unilbrk/u8-possible-linebreaks: New file.
59116         * modules/unilbrk/u16-possible-linebreaks: New file.
59117         * modules/unilbrk/u32-possible-linebreaks: New file.
59118         * modules/unilbrk/ulc-common: New file.
59119         * modules/unilbrk/ulc-possible-linebreaks: New file.
59120         * modules/unilbrk/u8-width-linebreaks: New file.
59121         * modules/unilbrk/u16-width-linebreaks: New file.
59122         * modules/unilbrk/u32-width-linebreaks: New file.
59123         * modules/unilbrk/ulc-width-linebreaks: New file.
59124         * lib/linebreak.h: Remove file.
59125         * lib/linebreak.c: Remove file.
59126         * m4/linebreak.m4: Remove file.
59127         * modules/linebreak: Remove file.
59128         * NEWS: Mention the changes.
59129
59130 2008-05-09  Eric Blake  <ebb9@byu.net>
59131
59132         Add xmemdup0.
59133         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
59134         implementation.
59135         * lib/xmalloc.c (xmemdup0): New C implementation.
59136
59137 2008-05-08  Bruno Haible  <bruno@clisp.org>
59138
59139         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
59140
59141 2008-05-07  Eric Blake  <ebb9@byu.net>
59142
59143         Support cross-compilation of <wctype.h>.
59144         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
59145         AC_CACHE_CHECK.
59146
59147 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
59148
59149         * build-aux/vc-list-files: Add support for bzr.
59150
59151 2008-05-03  Jim Meyering  <meyering@redhat.com>
59152
59153         avoid failed assertion with tight malloc
59154         * tests/test-getndelim2.c: Correct an off-by-one assertion.
59155
59156 2008-05-03  Simon Josefsson  <simon@josefsson.org>
59157
59158         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
59159         are needed from arpa/inet.h.
59160         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
59161         Reported by Bruno Haible.
59162
59163 2008-05-02  Jim Meyering  <meyering@redhat.com>
59164
59165         avoid compilation error on FreeBSD 6
59166         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
59167
59168 2008-05-01  Jim Meyering  <meyering@redhat.com>
59169
59170         useless-if-before-free: correct --help's exit status description
59171         * build-aux/useless-if-before-free (usage): Like grep, exit 0
59172         for one or more matches, etc.  Reported by Bruno Haible.
59173
59174         vc-list-files: make the stand-alone gnulib test work
59175         * modules/vc-list-files-tests (configure.ac):
59176         Define and AC_SUBST abs_aux_dir.
59177         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
59178         $(abs_top_srcdir) to each script and having each of them
59179         duplicate the work of setting PATH, set PATH here, using
59180         the new variable, abs_aux_dir instead.
59181         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
59182         * tests/test-vc-list-files-git.sh: Likewise.
59183         Reported by Bruno Haible.
59184
59185 2008-05-01  Bruno Haible  <bruno@clisp.org>
59186
59187         * lib/getndelim2.c (getndelim2): Fix newsize computation during
59188         reallocation. Rename 'done' to 'found_delimiter'.
59189
59190 2008-05-01  Jim Meyering  <meyering@redhat.com>
59191
59192         vc-list-files: accommodate /bin/sh like the one from Solaris 10
59193         * build-aux/vc-list-files: Use `...`, not $(...).
59194
59195 2008-04-30  Jim Meyering  <meyering@redhat.com>
59196
59197         add tests for vc-list-files
59198         * modules/vc-list-files-tests: New module.
59199         * tests/test-vc-list-files-cvs.sh: New file.
59200         * tests/test-vc-list-files-git.sh: New file.
59201
59202         avoid a warning from gcc
59203         * lib/getndelim2.c (IF_LINT): Define.
59204         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
59205
59206         vc-list-files: work properly with build-aux/cvsu, too
59207         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
59208         to all cvs-based clauses.
59209
59210         vc-list-files: work properly in the CVS+awk case, too
59211         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
59212
59213         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
59214         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
59215         take more than one file argument, so .  Add quotes, just in case $dir
59216         ever contains a shell meta-character.  Prompted by Soren Hansen in
59217         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
59218
59219 2008-04-29  Eric Blake  <ebb9@byu.net>
59220
59221         Optimize getndelim2 to use block operations when possible.
59222         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
59223         freadseek, and memchr2.
59224         * lib/getndelim2.c (getndelim2): Use them for block reads.
59225
59226 2008-04-29  Bruno Haible  <bruno@clisp.org>
59227
59228         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
59229         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59230         * modules/inet_ntop (Depends-on): Add extensions.
59231         * modules/inet_pton (Depends-on): Likewise.
59232         Reported by Simon Josefsson.
59233
59234 2008-04-29  Jim Meyering  <meyering@redhat.com>
59235
59236         When the is more than one match in a block, match all of them.
59237         * build-aux/useless-if-before-free: Iterate through each block
59238         until there are no more matches.
59239
59240         Fix broken useless-if-before-free script.
59241         * build-aux/useless-if-before-free: Fix typo: missing "?" after
59242         the expression to match cast of argument to free-like function.
59243
59244 2008-04-29  Eric Blake  <ebb9@byu.net>
59245
59246         Use new header.
59247         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
59248
59249 2008-04-29  Jim Meyering  <meyering@redhat.com>
59250
59251         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
59252         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
59253         by gnulib to exist and to declare e.g., inet_ntop.
59254         Don't include "inet_ntop.h", now removed.
59255
59256         * m4/arpa_inet_h.m4: Remove trailing blanks.
59257
59258 2008-04-29  Eric Blake  <ebb9@byu.net>
59259
59260         Silence valgrind on safe reads beyond potential array bounds.
59261         * lib/rawmemchr.valgrind: New file.
59262         * lib/strchrnul.valgrind: Likewise.
59263         * modules/rawmemchr (Files): Distribute new file.
59264         * modules/strchrnul (Files): Likewise.
59265         Suggested by Bruno Haible.
59266
59267 2008-04-29  Bruno Haible  <bruno@clisp.org>
59268
59269         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
59270         (inet_ntop, inet_pton): Change portability warning's wording.
59271         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
59272         Invoke gl_CHECK_NEXT_HEADERS.
59273         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
59274         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
59275         set ARPA_INET_H.
59276         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
59277         * modules/arpa_inet (Description): No longer only for systems that
59278         lack it.
59279         (Depends-on): Add include_next.
59280         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
59281         HAVE_ARPA_INET_H.
59282
59283 2008-04-29  Jim Meyering  <meyering@redhat.com>
59284
59285         * modules/mkdir (License): Re-license as LGPLv2+.
59286
59287 2008-04-29  Bruno Haible  <bruno@clisp.org>
59288
59289         * modules/rawmemchr (Maintainer): Set to Eric.
59290         * modules/strchrnul (Maintainer): Likewise.
59291
59292 2008-04-29  Simon Josefsson  <simon@josefsson.org>
59293
59294         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
59295         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
59296
59297         * modules/arpa_inet (arpa/inet.h): Use them.
59298
59299 2008-04-28  Eric Blake  <ebb9@byu.net>
59300
59301         Test getndelim2.
59302         * modules/getndelim2-tests: New file.
59303         * tests/test-getndelim2.c: Likewise.
59304         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
59305         stream.
59306         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
59307
59308         * MODULES.html.sh: Document new module.
59309
59310 2008-04-20  Bruno Haible  <bruno@clisp.org>
59311
59312         * lib/c-stack.c (die): Use raise.
59313         * modules/c-stack (Depends-on): Add raise.
59314
59315 2008-04-28  Bruno Haible  <bruno@clisp.org>
59316
59317         Expect rpmatch to be declared.
59318         * lib/yesno.c (rpmatch): Remove declaration.
59319
59320         Declare rpmatch.
59321         * lib/stdlib.in.h (rpmatch): New declaration.
59322         * lib/rpmatch.c: Include <stdlib.h> first.
59323         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
59324         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
59325         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
59326         HAVE_RPMATCH.
59327         * modules/rpmatch (Depends-on): Add stdlib, extensions.
59328         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59329         (Include): Set to <stdlib.h>.
59330         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
59331         HAVE_RPMATCH.
59332         * NEWS: Document the change.
59333
59334 2008-04-28  Bruno Haible  <bruno@clisp.org>
59335
59336         Change rpmatch to use nl_langinfo when appropriate.
59337         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
59338         (N_): New macro.
59339         (localized_pattern): New function/macro.
59340         (try): Remove match, nomatch arguments. Copy the pattern into safe
59341         memory before caching it.
59342         (rpmatch): Use localized_pattern. Add translator comments.
59343         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
59344         Suggested by Eric Blake.
59345         * modules/rpmatch (Depends-on): Add stdbool.
59346
59347 2008-04-28  Eric Blake  <ebb9@byu.net>
59348
59349         Add rawmemchr module, matching glibc.
59350         * modules/string (Makefile.am): New indicator.
59351         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
59352         * lib/string.in.h (rawmemchr): Declare when appropriate.
59353         * modules/rawmemchr: New file.
59354         * m4/rawmemchr.m4: Likewise.
59355         * lib/rawmemchr.c: Likewise.
59356         * modules/rawmemchr-tests: Likewise.
59357         * tests/test-rawmemchr.c: Likewise.
59358         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
59359         module.
59360         * modules/strchrnul (Depends-on): Add rawmemchr.
59361         * lib/strchrnul.c (strchrnul): Optimize a corner case.
59362
59363         Whitespace cleanup.
59364         * tests/test-strchrnul.c: Reindent.
59365         * lib/strchrnul.c: Likewise.
59366
59367         Optimize and test strchrnul.
59368         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
59369         * modules/strchrnul-tests: New file.
59370         * tests/test-strchrnul.c: Likewise.
59371
59372         Remove intprops dependency.
59373         * modules/memchr (Depends-on): Remove intprops.
59374         * modules/memrchr (Depends-on): Likewise.
59375         * modules/memchr2 (Depends-on): Likewise.
59376         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
59377         * lib/memrchr.c (__memrchr): Likewise.
59378         * lib/memrchr2.c (memchr2): Likewise.
59379         Reported by Simon Josefsson.
59380
59381 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59382
59383         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
59384         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59385
59386 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59387
59388         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
59389
59390         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
59391
59392         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
59393
59394         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
59395         declarations.
59396         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
59397
59398         * m4/inet_pton.m4: Don't check for header files.
59399
59400         * m4/inet_ntop.m4: Don't check for header files.
59401
59402 2008-04-28  Simon Josefsson  <simon@josefsson.org>
59403
59404         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
59405         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
59406         trigger for cygwin).
59407         Reported by Bruno Haible  <bruno@clisp.org>.
59408
59409 2008-04-28  Bruno Haible  <bruno@clisp.org>
59410
59411         * doc/posix-functions/strdup.texi: Mention mingw problem.
59412
59413 2008-04-27  Bruno Haible  <bruno@clisp.org>
59414
59415         * modules/stat-time-tests (Depends-on): Add sleep.
59416         * tests/test-stat-time.c (force_unlink): New function.
59417         (cleanup): Use it.
59418         (test_mtime): Remove the ctime related tests.
59419         (test_ctime): New function, containing the ctime related tests.
59420         (main): Call test_ctime, except on native Windows platforms.
59421
59422 2008-04-27  Bruno Haible  <bruno@clisp.org>
59423
59424         * lib/rpmatch.c (rpmatch): Add some comments.
59425         Reported by James Youngman <jay@gnu.org>.
59426
59427 2008-04-27  Bruno Haible  <bruno@clisp.org>
59428
59429         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
59430         quiet NaNs.
59431
59432 2008-04-27  Bruno Haible  <bruno@clisp.org>
59433
59434         Make test-yesno.sh work on mingw.
59435         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
59436         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
59437         (main): Set stdin to binary mode.
59438         * modules/yesno-tests (Depends-on): Add binary-io.
59439
59440 2008-04-27  Bruno Haible  <bruno@clisp.org>
59441
59442         Fix 'isfinite' on x86, x86_64, ia64 platforms.
59443         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
59444         argument that lie outside the IEEE 854 domain.
59445         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
59446         (gl_ISFINITE): Use it.
59447         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
59448
59449 2008-04-27  Bruno Haible  <bruno@clisp.org>
59450
59451         Allow local renaming in config.h.
59452         * lib/memrchr.c (memrchr): Don't undefine outside libc.
59453
59454 2008-04-27  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/memchr.c (__memchr): Change type of 'i'.
59457         * lib/memchr2.c (memchr2): Likewise.
59458
59459 2008-04-26  Eric Blake  <ebb9@byu.net>
59460         and Bruno Haible  <bruno@clisp.org>
59461
59462         Optimize and test memrchr.
59463         * modules/memrchr (Depends-on): Add intprops.
59464         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
59465         * modules/memrchr-tests: New file.
59466         * tests/test-memrchr.c: New file.
59467
59468 2008-04-26  Bruno Haible  <bruno@clisp.org>
59469
59470         Add tentative support for DragonFly BSD.
59471         * lib/stdio-impl.h: Add macros for DragonFly BSD.
59472         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
59473         fp.
59474         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59475         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
59476         * lib/fpurge.c (fpurge): Likewise.
59477         * lib/freadable.c (freaadable): Likewise.
59478         * lib/freadahead.c (freadahead): Likewise.
59479         * lib/freading.c (freading): Likewise.
59480         * lib/freadptr.c (freadptr): Likewise.
59481         * lib/freadseek.c (freadptrinc): Likewise.
59482         * lib/fseeko.c (fseeko): Likewise.
59483         * lib/fseterr.c (fseterr): Likewise.
59484         * lib/fwritable.c (fwritable): Likewise.
59485         * lib/fwriting.c (fwriting): Likewise.
59486
59487 2008-04-26  Bruno Haible  <bruno@clisp.org>
59488
59489         * lib/stdio-impl.h: New file.
59490         * lib/fbufmode.c: Include stdio-impl.h.
59491         (fbufmode): Use fp_, remove redundant #defines.
59492         * lib/fflush.c: Include stdio-impl.h.
59493         (clear_ungetc_buffer): Remove redundant #defines.
59494         * lib/fpurge.c: Include stdio-impl.h.
59495         (fpurge): Remove redundant #defines.
59496         * lib/freadable.c: Include stdio-impl.h.
59497         (freadable): Remove redundant #defines.
59498         * lib/freadahead.c: Include stdio-impl.h.
59499         (freadahead): Remove redundant #defines.
59500         * lib/freading.c: Include stdio-impl.h.
59501         (freading): Remove redundant #defines.
59502         * lib/freadptr.c: Include stdio-impl.h.
59503         (freadptr): Remove redundant #defines.
59504         * lib/freadseek.c: Include stdio-impl.h.
59505         (freadptrinc): Remove redundant #defines.
59506         * lib/fseeko.c: Include stdio-impl.h.
59507         (rpl_fseeko): Remove redundant #defines.
59508         * lib/fseterr.c: Include stdio-impl.h.
59509         (fseterr): Remove redundant #defines.
59510         * lib/fwritable.c: Include stdio-impl.h.
59511         (fwritable: Remove redundant #defines.
59512         * lib/fwriting.c: Include stdio-impl.h.
59513         (fwriting): Remove redundant #defines.
59514         * modules/fbufmode (Files): Add lib/stdio-impl.h.
59515         * modules/fflush (Files): Likewise.
59516         * modules/fpurge (Files): Likewise.
59517         * modules/freadable (Files): Likewise.
59518         * modules/freadahead (Files): Likewise.
59519         * modules/freading (Files): Likewise.
59520         * modules/freadptr (Files): Likewise.
59521         * modules/freadseek (Files): Likewise.
59522         * modules/fseeko (Files): Likewise.
59523         * modules/fseterr (Files): Likewise.
59524         * modules/fwritable (Files): Likewise.
59525         * modules/fwriting (Files): Likewise.
59526
59527 2008-04-26  Bruno Haible  <bruno@clisp.org>
59528
59529         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
59530         restore_seek_optimization, update_fpos_cache): New functions, extracted
59531         from rpl_fflush.
59532         (rpl_fflush): Use them.
59533         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
59534         (gl_REPLACE_FFLUSH): Use it.
59535
59536 2008-04-26  Bruno Haible  <bruno@clisp.org>
59537
59538         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
59539         on Solaris.
59540         * tests/test-xstrtoimax.sh: Likewise.
59541         * tests/test-xstrtoumax.sh: Likewise.
59542         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59543
59544 2008-04-26  Bruno Haible  <bruno@clisp.org>
59545
59546         * modules/memchr-tests: New file.
59547         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
59548
59549 2008-04-26  Eric Blake  <ebb9@byu.net>
59550             Bruno Haible  <bruno@clisp.org>
59551
59552         * lib/memchr.c: Include intprops.h.
59553         (__memchr): Optimize parallel detection of matching bytes. Rename local
59554         variables. Add explanatory comments.
59555
59556 2008-04-26  Bruno Haible  <bruno@clisp.org>
59557
59558         Fix module 'memchr', broken since 2000-10-28.
59559         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
59560
59561 2008-04-26  Bruno Haible  <bruno@clisp.org>
59562
59563         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
59564         comments.
59565
59566 2008-04-25  Eric Blake  <ebb9@byu.net>
59567
59568         Use native fstatat on cygwin 1.7.0.
59569         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
59570         first.
59571
59572 2008-04-23  Eric Blake  <ebb9@byu.net>
59573
59574         Improve memchr2 performance.
59575         * lib/memchr2.c (memchr2): Further optimize parallel detection of
59576         NUL bytes.
59577         * modules/memchr2 (Depends-on): Use intprops.h.
59578
59579 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59580
59581         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
59582         an inline function instead of a CPP macro.  Patch by Ben Pfaff
59583         <blp@cs.stanford.edu>.
59584
59585 2008-04-23  Simon Josefsson  <simon@josefsson.org>
59586
59587         * lib/arpa_inet.in.h: New file.
59588
59589         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
59590         (Makefile.am): Sed in substitute header file.
59591
59592         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
59593         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
59594
59595         * modules/inet_ntop (configure.ac): Use
59596         gl_ARPA_INET_MODULE_INDICATOR.
59597
59598         * modules/inet_pton (configure.ac): Use
59599         gl_ARPA_INET_MODULE_INDICATOR.
59600
59601 2008-04-22  Jim Meyering  <meyering@redhat.com>
59602
59603         * modules/verify (License): Re-license as LGPLv2+.
59604
59605 2008-04-22  Simon Josefsson  <simon@josefsson.org>
59606
59607         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
59608         parameter to void* as per POSIX standard (MinGW uses char*).
59609
59610 2008-04-21  Bruno Haible  <bruno@clisp.org>
59611
59612         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
59613         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
59614         Define to replacements if REPLACE_ISWCNTRL is 1.
59615         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
59616         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
59617         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
59618         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
59619         what it fixes.
59620         * doc/posix-functions/iswalpha.texi: Likewise.
59621         * doc/posix-functions/iswblank.texi: Likewise.
59622         * doc/posix-functions/iswcntrl.texi: Likewise.
59623         * doc/posix-functions/iswdigit.texi: Likewise.
59624         * doc/posix-functions/iswgraph.texi: Likewise.
59625         * doc/posix-functions/iswlower.texi: Likewise.
59626         * doc/posix-functions/iswprint.texi: Likewise.
59627         * doc/posix-functions/iswpunct.texi: Likewise.
59628         * doc/posix-functions/iswspace.texi: Likewise.
59629         * doc/posix-functions/iswupper.texi: Likewise.
59630         * doc/posix-functions/iswxdigit.texi: Likewise.
59631         Reported by Alain Guibert.
59632
59633 2008-04-21  Bruno Haible  <bruno@clisp.org>
59634
59635         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
59636         Patch by Alain Guibert.
59637
59638 2008-04-21  Bruno Haible  <bruno@clisp.org>
59639
59640         Fix test failures on mingw.
59641         * tests/test-xstrtol.c (print_no_progname): New function.
59642         (main): Install it in error_print_progname hook.
59643         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
59644         * tests/test-xstrtoimax.sh: Likewise.
59645         * tests/test-xstrtoumax.sh: Likewise.
59646
59647 2008-04-21  Bruno Haible  <bruno@clisp.org>
59648
59649         Fix test failure on mingw.
59650         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
59651
59652 2008-04-21  Bruno Haible  <bruno@clisp.org>
59653
59654         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
59655         Actually assign a value.
59656
59657 2008-04-20  Bruno Haible  <bruno@clisp.org>
59658
59659         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
59660         take 2.
59661         * lib/canonicalize.c (canonicalize_file_name): Elide if the
59662         'canonicalize-lgpl' module is also used.
59663         * lib/canonicalize-lgpl.c: Undo last change.
59664         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
59665
59666 2008-04-20  Bruno Haible  <bruno@clisp.org>
59667
59668         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
59669         config.h. Provide _mkdir based fallback for mingw.
59670         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
59671         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
59672         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
59673         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
59674         rather than defining mkdir in config.h.
59675         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
59676         (gl_SYS_STAT_H_DEFAULTS): New macro.
59677         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
59678         HAVE_IO_H any more.
59679         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
59680         HAVE_DECL_MKDIR and HAVE_IO_H.
59681
59682 2008-04-20  Bruno Haible  <bruno@clisp.org>
59683
59684         * lib/isapipe.c: Port to native Windows platforms.
59685
59686 2008-04-20  Bruno Haible  <bruno@clisp.org>
59687
59688         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
59689
59690 2008-04-21  Eric Blake  <ebb9@byu.net>
59691
59692         Work around preprocessors that don't handle UINTMAX_MAX.
59693         * lib/memchr2.c (memchr2): Avoid embedded #if.
59694         Reported by Alain Guibert, fix suggested by Bruno Haible.
59695
59696 2008-04-21  Simon Josefsson  <simon@josefsson.org>
59697
59698         * doc/posix-functions/strftime.texi (strftime): Explain better
59699         Windows incompatibility.  Suggested by Micah Cowan
59700         <micah@cowan.name>.
59701
59702 2008-04-20  Bruno Haible  <bruno@clisp.org>
59703
59704         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
59705         unistr/u8-mblen.
59706
59707 2008-04-20  Bruno Haible  <bruno@clisp.org>
59708
59709         Fix test failure on platforms with non-GNU iconv.
59710         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
59711         (U_TO_U8): Use it, rather than u16_to_u8.
59712         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
59713         units at the end of the input string.
59714         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
59715
59716 2008-04-20  Bruno Haible  <bruno@clisp.org>
59717
59718         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
59719         when the resulting length is 0.
59720         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
59721
59722 2008-04-20  Bruno Haible  <bruno@clisp.org>
59723
59724         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
59725         works.
59726         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
59727
59728 2008-04-20  Bruno Haible  <bruno@clisp.org>
59729
59730         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
59731         * modules/tsearch-tests (configure.ac): Test for initstate function.
59732
59733 2008-04-20  Bruno Haible  <bruno@clisp.org>
59734
59735         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
59736         for nlink_t if missing.
59737         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
59738
59739 2008-04-19  Bruno Haible  <bruno@clisp.org>
59740
59741         Work around snprintf bug on Linux libc5.
59742         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
59743         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59744         gl_SNPRINTF_SIZE1.
59745         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59746         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
59747         that test failed.
59748         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
59749         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
59750         * modules/snprintf (Files): Add m4/printf.m4.
59751         * modules/vsnprintf (Files): Likewise.
59752         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
59753         * doc/posix-functions/vsnprintf.texi: Likewise.
59754
59755 2008-04-19  Bruno Haible  <bruno@clisp.org>
59756
59757         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
59758         from 0.0058 to less than 10^-7.
59759
59760 2008-04-19  Bruno Haible  <bruno@clisp.org>
59761
59762         Fix rounding when a precision is given.
59763         * lib/vasnprintf.c (is_borderline): New function.
59764         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
59765         9...9x.
59766         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
59767         %e, %g.
59768         * tests/test-vasprintf-posix.c (test_function): Likewise.
59769         * tests/test-snprintf-posix.h (test_function): Likewise.
59770         * tests/test-sprintf-posix.h (test_function): Likewise.
59771         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
59772         * tests/test-printf-posix.h (test_function): Likewise.
59773         * tests/test-printf-posix.output: Update.
59774         Reported by John Darrington <john@darrington.wattle.id.au> via
59775         Ben Pfaff <blp@cs.stanford.edu>.
59776
59777 2008-04-18  Simon Josefsson  <simon@josefsson.org>
59778
59779         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
59780         Suggested by Bruno Haible <bruno@clisp.org>.
59781
59782 2008-04-17  Bruno Haible  <bruno@clisp.org>
59783
59784         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
59785         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
59786         implementation.
59787         Patch by Bruce Merry <bmerry@gmail.com>.
59788
59789 2008-04-17  Simon Josefsson  <simon@josefsson.org>
59790
59791         * doc/posix-functions/strftime.texi (strftime): Mention that %e
59792         doesn't work under Windows.
59793
59794 2008-04-16  Bruno Haible  <bruno@clisp.org>
59795
59796         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
59797         New macros.
59798         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
59799         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
59800         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
59801         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
59802         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
59803         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
59804         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
59805         macros.
59806         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
59807         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
59808         Northern Sotho, Uighur.
59809
59810 2008-04-16  Bruno Haible  <bruno@clisp.org>
59811
59812         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59813         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59814         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59815         Reported by Daniel Bergström <daniel@octocode.com>.
59816
59817 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59818             Bruno Haible  <bruno@clisp.org>
59819
59820         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59821         function.
59822         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59823         New functions, mostly extracted from gl_locale_name_default.
59824         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59825
59826 2008-04-16  Eric Blake  <ebb9@byu.net>
59827
59828         Adjust strtod detection to catch glibc 2.7 bug.
59829         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59830         Reported by John Gatewood Ham.
59831
59832 2008-04-16  Bruno Haible  <bruno@clisp.org>
59833
59834         Add tentative support for Linux libc5.
59835         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59836         * lib/fpurge.c (fpurge): Likewise.
59837         * lib/freadable.c (freadable): Likewise.
59838         * lib/freadahead.c (freadahead): Likewise.
59839         * lib/freading.c (freading): Likewise.
59840         * lib/freadptr.c (freadptr): Likewise.
59841         * lib/freadseek.c (freadptrinc): Likewise.
59842         * lib/fseeko.c (rpl_fseeko): Likewise.
59843         * lib/fseterr.c (fseterr): Likewise.
59844         * lib/fwritable.c (fwritable): Likewise.
59845         * lib/fwriting.c (fwriting): Likewise.
59846         Reported by Alain Guibert <alguibert+bts@free.fr>.
59847
59848 2008-04-15  Bruno Haible  <bruno@clisp.org>
59849
59850         * modules/mathl (configure.ac): Define module indicator.
59851
59852 2008-04-15  Bruno Haible  <bruno@clisp.org>
59853
59854         * lib/logl.c (logl): Remove unused variables.
59855
59856 2008-04-15  Bruno Haible  <bruno@clisp.org>
59857
59858         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59859         fails.
59860
59861 2008-04-15  Bruno Haible  <bruno@clisp.org>
59862
59863         * lib/trim.c (trim2): Fix argument of isspace() macro.
59864
59865 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59866
59867         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59868         to 0.
59869         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59870
59871 2008-04-14  Bruno Haible  <bruno@clisp.org>
59872
59873         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59874         AC_LANG_PROGRAM argument.
59875         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59876         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59877         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59878         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59879         * m4/math_h.m4 (gl_MATH_H): Likewise.
59880         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59881         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59882         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59883         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59884         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59885         * m4/regex.m4 (gl_REGEX): Likewise.
59886         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59887         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59888         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59889         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59890         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59891         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59892         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59893         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59894
59895 2008-04-14  Jim Meyering  <meyering@redhat.com>
59896
59897         test-strtod: fix typos: s/abs/fabs/
59898         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59899
59900 2008-04-13  Bruno Haible  <bruno@clisp.org>
59901
59902         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59903         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59904         module is also used and while not building the reloc-wrapper.
59905
59906 2008-04-13  Bruno Haible  <bruno@clisp.org>
59907
59908         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59909
59910 2008-04-13  Bruno Haible  <bruno@clisp.org>
59911
59912         Fix AIX compilation failure introduced on 2008-04-02.
59913         * tests/test-frexp.c (exp): Undefine before redefining.
59914         * tests/test-frexpl.c (exp): Likewise.
59915
59916 2008-04-13  Bruno Haible  <bruno@clisp.org>
59917
59918         Work around a HP-UX stdio bug.
59919         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59920         * tests/test-ftello.c (main): Likewise.
59921         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59922         * doc/posix-functions/ftello.texi: Likewise.
59923
59924 2008-04-13  Bruno Haible  <bruno@clisp.org>
59925
59926         Make test-signbit pass on HP-UX/hppa.
59927         * tests/test-signbit.c (minus_zerol): New variable.
59928         (test_signbitl): Use it.
59929
59930 2008-04-13  Bruno Haible  <bruno@clisp.org>
59931
59932         Make truncl work on OSF/1 4.0.
59933         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59934         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59935         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59936         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59937         HAVE_DECL_TRUNCL.
59938         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59939         HAVE_DECL_TRUNCL.
59940         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59941
59942 2008-04-13  Bruno Haible  <bruno@clisp.org>
59943
59944         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59945
59946 2008-04-13  Bruno Haible  <bruno@clisp.org>
59947
59948         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59949         expression, so as to avoid HP-UX 11 cc compiler bug.
59950
59951 2008-04-13  Bruno Haible  <bruno@clisp.org>
59952
59953         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59954
59955 2008-04-13  Bruno Haible  <bruno@clisp.org>
59956
59957         * lib/git-merge-changelog.c: Remove empty declaration outside of
59958         functions.
59959
59960 2008-04-13  Bruno Haible  <bruno@clisp.org>
59961
59962         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59963
59964 2008-04-13  Bruno Haible  <bruno@clisp.org>
59965
59966         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59967         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59968         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59969         also if it exists but lacks definitions of the SHUT_* macros.
59970         * modules/sys_socket (Description): Update.
59971         Reported by Elbert Pol <e.pol@chello.nl>.
59972
59973 2008-04-13  Bruno Haible  <bruno@clisp.org>
59974
59975         * lib/localcharset.c (OS2): Don't redefine if already defined.
59976         Reported by Elbert Pol <e.pol@chello.nl>.
59977
59978 2008-04-13  Bruno Haible  <bruno@clisp.org>
59979
59980         * lib/binary-io.h [__EMX__]: Include <io.h>.
59981         Reported by Elbert Pol <e.pol@chello.nl>.
59982
59983 2008-04-12  Bruno Haible  <bruno@clisp.org>
59984
59985         * lib/fpucw.h: Enable the definitions also for x86_64.
59986         Needed for NetBSD/x86_64.
59987         Reported by Thomas Klausner <tk@giga.or.at>.
59988
59989 2008-04-12  Bruno Haible  <bruno@clisp.org>
59990
59991         * tests/test-strtod.c: Include isnand.h.
59992         (main): Use isnand instead of isnan.
59993         Reported by Jim Meyering.
59994
59995 2008-04-12  Bruno Haible  <bruno@clisp.org>
59996
59997         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59998         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59999
60000 2008-04-12  Jim Meyering  <meyering@redhat.com>
60001
60002         * m4/math_h.m4 (gl_MATH_H): Fix typos.
60003
60004 2008-04-12  Bruno Haible  <bruno@clisp.org>
60005
60006         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
60007         Reported by Elbert Pol <e.pol@chello.nl>.
60008
60009 2008-04-12  Eric Blake  <ebb9@byu.net>
60010
60011         Work around Solaris 10 math.h bug.
60012         * m4/math_h.m4 (gl_MATH_H): Check for bug.
60013         (gl_MATH_H_DEFAULTS): Set up default.
60014         * modules/math (Makefile.am): Replace new indicators.
60015         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
60016         * tests/test-math.c (main): Test this.
60017         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
60018         * doc/posix-headers/math.texi (math.h): Mention bug.
60019         Reported by Nelson H. F. Beebe and Jim Meyering.
60020
60021 2008-04-11  Bruno Haible  <bruno@clisp.org>
60022
60023         Adapt to future versions of Apple GCC.
60024         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
60025         Reported by Peter O'Gorman <peter@pogma.com>.
60026
60027 2008-04-11  Bruno Haible  <bruno@clisp.org>
60028
60029         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
60030
60031 2008-04-11  Bruno Haible  <bruno@clisp.org>
60032
60033         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
60034
60035         * modules/getaddrinfo-tests (Makefile.am): Define
60036         test_getaddrinfo_LDADD.
60037
60038 2008-04-11  Bruno Haible  <bruno@clisp.org>
60039
60040         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
60041         (init): Fix syntax error.
60042         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
60043         is declared.
60044
60045 2008-04-11  Bruno Haible  <bruno@clisp.org>
60046
60047         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
60048         * modules/glob (Depends-on): Add stdbool.
60049
60050 2008-04-11  Bruno Haible  <bruno@clisp.org>
60051
60052         * lib/trim.c: Include <string.h>.
60053
60054 2008-04-11  Eric Blake  <ebb9@byu.net>
60055
60056         Avoid compile failure on OS/2.
60057         * lib/regex_internal.h (internal_function): Disable optimization
60058         on OS/2 (__EMX__), where it caused compiler error.
60059         Reported by Elbert Pol.
60060
60061 2008-04-11  Bruno Haible  <bruno@clisp.org>
60062
60063         Flush the standard error stream before aborting. Needed on mingw.
60064         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
60065         * tests/test-array_list.c (ASSERT): Likewise.
60066         * tests/test-array_oset.c (ASSERT): Likewise.
60067         * tests/test-avltree_list.c (ASSERT): Likewise.
60068         * tests/test-avltree_oset.c (ASSERT): Likewise.
60069         * tests/test-avltreehash_list.c (ASSERT): Likewise.
60070         * tests/test-binary-io.c (ASSERT): Likewise.
60071         * tests/test-byteswap.c (ASSERT): Likewise.
60072         * tests/test-c-ctype.c (ASSERT): Likewise.
60073         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
60074         * tests/test-c-strcasestr.c (ASSERT): Likewise.
60075         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
60076         * tests/test-c-strstr.c (ASSERT): Likewise.
60077         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
60078         * tests/test-canonicalize.c (ASSERT): Likewise.
60079         * tests/test-carray_list.c (ASSERT): Likewise.
60080         * tests/test-ceilf1.c (ASSERT): Likewise.
60081         * tests/test-ceilf2.c (ASSERT): Likewise.
60082         * tests/test-ceill.c (ASSERT): Likewise.
60083         * tests/test-count-one-bits.c (ASSERT): Likewise.
60084         * tests/test-fbufmode.c (ASSERT): Likewise.
60085         * tests/test-fflush2.c (ASSERT): Likewise.
60086         * tests/test-floorf1.c (ASSERT): Likewise.
60087         * tests/test-floorf2.c (ASSERT): Likewise.
60088         * tests/test-floorl.c (ASSERT): Likewise.
60089         * tests/test-fopen.c (ASSERT): Likewise.
60090         * tests/test-fpending.c (ASSERT): Likewise.
60091         * tests/test-fprintf-posix.c (ASSERT): Likewise.
60092         * tests/test-fpurge.c (ASSERT): Likewise.
60093         * tests/test-freadable.c (ASSERT): Likewise.
60094         * tests/test-freadahead.c (ASSERT): Likewise.
60095         * tests/test-freading.c (ASSERT): Likewise.
60096         * tests/test-freadptr.c (ASSERT): Likewise.
60097         * tests/test-freadptr2.c (ASSERT): Likewise.
60098         * tests/test-freadseek.c (ASSERT): Likewise.
60099         * tests/test-freopen.c (ASSERT): Likewise.
60100         * tests/test-frexp.c (ASSERT): Likewise.
60101         * tests/test-frexpl.c (ASSERT): Likewise.
60102         * tests/test-fseek.c (ASSERT): Likewise.
60103         * tests/test-fseeko.c (ASSERT): Likewise.
60104         * tests/test-fstrcmp.c (ASSERT): Likewise.
60105         * tests/test-ftell.c (ASSERT): Likewise.
60106         * tests/test-ftello.c (ASSERT): Likewise.
60107         * tests/test-func.c (ASSERT): Likewise.
60108         * tests/test-fwritable.c (ASSERT): Likewise.
60109         * tests/test-fwriting.c (ASSERT): Likewise.
60110         * tests/test-getdelim.c (ASSERT): Likewise.
60111         * tests/test-getline.c (ASSERT): Likewise.
60112         * tests/test-i-ring.c (ASSERT): Likewise.
60113         * tests/test-iconv-utf.c (ASSERT): Likewise.
60114         * tests/test-iconv.c (ASSERT): Likewise.
60115         * tests/test-isfinite.c (ASSERT): Likewise.
60116         * tests/test-isnand.c (ASSERT): Likewise.
60117         * tests/test-isnanf.c (ASSERT): Likewise.
60118         * tests/test-isnanl.h (ASSERT): Likewise.
60119         * tests/test-ldexpl.c (ASSERT): Likewise.
60120         * tests/test-linked_list.c (ASSERT): Likewise.
60121         * tests/test-linkedhash_list.c (ASSERT): Likewise.
60122         * tests/test-localename.c (ASSERT): Likewise.
60123         * tests/test-lseek.c (ASSERT): Likewise.
60124         * tests/test-mbscasecmp.c (ASSERT): Likewise.
60125         * tests/test-mbscasestr1.c (ASSERT): Likewise.
60126         * tests/test-mbscasestr2.c (ASSERT): Likewise.
60127         * tests/test-mbscasestr3.c (ASSERT): Likewise.
60128         * tests/test-mbscasestr4.c (ASSERT): Likewise.
60129         * tests/test-mbschr.c (ASSERT): Likewise.
60130         * tests/test-mbscspn.c (ASSERT): Likewise.
60131         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
60132         * tests/test-mbspbrk.c (ASSERT): Likewise.
60133         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
60134         * tests/test-mbsrchr.c (ASSERT): Likewise.
60135         * tests/test-mbsspn.c (ASSERT): Likewise.
60136         * tests/test-mbsstr1.c (ASSERT): Likewise.
60137         * tests/test-mbsstr2.c (ASSERT): Likewise.
60138         * tests/test-mbsstr3.c (ASSERT): Likewise.
60139         * tests/test-memchr2.c (ASSERT): Likewise.
60140         * tests/test-memmem.c (ASSERT): Likewise.
60141         * tests/test-open.c (ASSERT): Likewise.
60142         * tests/test-printf-frexp.c (ASSERT): Likewise.
60143         * tests/test-printf-frexpl.c (ASSERT): Likewise.
60144         * tests/test-printf-posix.c (ASSERT): Likewise.
60145         * tests/test-quotearg.c (ASSERT): Likewise.
60146         * tests/test-rbtree_list.c (ASSERT): Likewise.
60147         * tests/test-rbtree_oset.c (ASSERT): Likewise.
60148         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
60149         * tests/test-round1.c (ASSERT): Likewise.
60150         * tests/test-roundf1.c (ASSERT): Likewise.
60151         * tests/test-roundl.c (ASSERT): Likewise.
60152         * tests/test-signbit.c (ASSERT): Likewise.
60153         * tests/test-sleep.c (ASSERT): Likewise.
60154         * tests/test-snprintf-posix.c (ASSERT): Likewise.
60155         * tests/test-snprintf.c (ASSERT): Likewise.
60156         * tests/test-sprintf-posix.c (ASSERT): Likewise.
60157         * tests/test-stat-time.c (ASSERT): Likewise.
60158         * tests/test-strcasestr.c (ASSERT): Likewise.
60159         * tests/test-strerror.c (ASSERT): Likewise.
60160         * tests/test-striconv.c (ASSERT): Likewise.
60161         * tests/test-striconveh.c (ASSERT): Likewise.
60162         * tests/test-striconveha.c (ASSERT): Likewise.
60163         * tests/test-strsignal.c (ASSERT): Likewise.
60164         * tests/test-strstr.c (ASSERT): Likewise.
60165         * tests/test-strtod.c (ASSERT): Likewise.
60166         * tests/test-trunc1.c (ASSERT): Likewise.
60167         * tests/test-trunc2.c (ASSERT): Likewise.
60168         * tests/test-truncf1.c (ASSERT): Likewise.
60169         * tests/test-truncf2.c (ASSERT): Likewise.
60170         * tests/test-truncl.c (ASSERT): Likewise.
60171         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
60172         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
60173         * tests/test-vasnprintf.c (ASSERT): Likewise.
60174         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
60175         * tests/test-vasprintf.c (ASSERT): Likewise.
60176         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
60177         * tests/test-vprintf-posix.c (ASSERT): Likewise.
60178         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
60179         * tests/test-vsnprintf.c (ASSERT): Likewise.
60180         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
60181         * tests/test-wcwidth.c (ASSERT): Likewise.
60182         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
60183         * tests/test-xprintf-posix.c (ASSERT): Likewise.
60184         * tests/test-xvasprintf.c (ASSERT): Likewise.
60185         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
60186         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
60187         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
60188         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
60189         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
60190         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
60191         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
60192         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
60193         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
60194         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
60195         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
60196         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
60197         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
60198         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
60199         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
60200         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
60201         * tests/unictype/test-block_list.c (ASSERT): Likewise.
60202         * tests/unictype/test-block_of.c (ASSERT): Likewise.
60203         * tests/unictype/test-block_test.c (ASSERT): Likewise.
60204         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
60205         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
60206         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
60207         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
60208         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
60209         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
60210         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
60211         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
60212         * tests/unictype/test-combining.c (ASSERT): Likewise.
60213         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
60214         * tests/unictype/test-digit.c (ASSERT): Likewise.
60215         * tests/unictype/test-mirror.c (ASSERT): Likewise.
60216         * tests/unictype/test-numeric.c (ASSERT): Likewise.
60217         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
60218         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
60219         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
60220         * tests/unictype/test-scripts.c (ASSERT): Likewise.
60221         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
60222         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
60223         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
60224         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
60225         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
60226         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
60227         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
60228         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
60229         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
60230         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
60231         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
60232         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
60233         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
60234         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
60235         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
60236         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
60237         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
60238         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
60239         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
60240         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
60241         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
60242         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
60243         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
60244         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
60245         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
60246         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
60247         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
60248         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
60249         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
60250         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
60251         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
60252         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
60253         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
60254         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
60255         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
60256         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
60257         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
60258         Reported by Eric Blake.
60259
60260 2008-04-11  Bruno Haible  <bruno@clisp.org>
60261
60262         * lib/wchar.in.h: Tweak comment.
60263
60264 2008-04-11  Bruno Haible  <bruno@clisp.org>
60265
60266         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
60267         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
60268         gl_COMMON.
60269         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
60270
60271 2008-04-11  Bruno Haible  <bruno@clisp.org>
60272
60273         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
60274
60275 2008-04-11  Simon Josefsson  <simon@josefsson.org>
60276
60277         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
60278         of attempting to use non-existing /dev/*random.  Based on patch
60279         from Adam Strzelecki <ono@java.pl> in
60280         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
60281
60282 2008-04-08  Bruno Haible  <bruno@clisp.org>
60283
60284         Add tentative support for emx+gcc.
60285         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
60286         * lib/fpurge.c (fpurge): Likewise.
60287         * lib/freadable.c (freadable): Likewise.
60288         * lib/freadahead.c (freadahead): Likewise.
60289         * lib/freading.c (freading): Likewise.
60290         * lib/freadptr.c (freadptr): Likewise.
60291         * lib/freadseek.c (freadptrinc): Likewise.
60292         * lib/fseeko.c (rpl_fseeko): Likewise.
60293         * lib/fseterr.c (fseterr): Likewise.
60294         * lib/fwritable.c (fwritable): Likewise.
60295         * lib/fwriting.c (fwriting): Likewise.
60296         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
60297
60298 2008-04-09  Eric Blake  <ebb9@byu.net>
60299
60300         Avoid some autoconf warnings.
60301         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
60302         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
60303         * m4/afs.m4 (gl_AFS): Likewise.
60304         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
60305         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
60306         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60307         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
60308         (gl_INTEGER_TYPE_SUFFIX): Likewise.
60309         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
60310         (AC_CHECK_DECLS_ONCE): Likewise.
60311         Rename file...
60312         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
60313         gnulib-tool requires autoconf 2.59 or better.
60314         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
60315
60316 2008-04-08  Eric Blake  <ebb9@byu.net>
60317
60318         Use 'git describe --match' if present (added in git 1.5.5).
60319         * build-aux/git-version-gen: Limit result to tags that match 'v*'
60320         if possible.
60321
60322 2008-04-08  Bruno Haible  <bruno@clisp.org>
60323
60324         Add tentative support for OpenServer.
60325         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
60326         _ptr, _cnt.
60327         * lib/fpurge.c (fpurge): Likewise.
60328         * lib/freadable.c (freadable): Likewise.
60329         * lib/freadahead.c (freadahead): Likewise.
60330         * lib/freading.c (freading): Likewise.
60331         * lib/freadptr.c (freadptr): Likewise.
60332         * lib/freadseek.c (freadptrinc): Likewise.
60333         * lib/fseeko.c (rpl_fseeko): Likewise.
60334         * lib/fseterr.c (fseterr): Likewise.
60335         * lib/fwritable.c (fwritable): Likewise.
60336         * lib/fwriting.c (fwriting): Likewise.
60337         Reported by Roger Cornelius <rac@tenzing.org> and
60338         Brian K. White <brian@aljex.com>.
60339
60340 2008-04-06  Jim Meyering  <meyering@redhat.com>
60341
60342         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
60343
60344 2008-04-06  Bruno Haible  <bruno@clisp.org>
60345
60346         Avoid possible error with non-ASCII bytes in UTF-8 locales.
60347         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
60348         * tests/test-printf-posix.sh: Likewise.
60349         * tests/test-vfprintf-posix.sh: Likewise.
60350         * tests/test-vprintf-posix.sh: Likewise.
60351         * tests/test-xprintf-posix.sh: Likewise.
60352
60353 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60354
60355         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
60356         hide error from 'ls', needed on OS/2.
60357         Report by Elbert Pol <elbert.pol@gmail.com>.
60358
60359 2008-04-04  Eric Blake  <ebb9@byu.net>
60360
60361         Make test-fseeko.c failures meaningful.
60362         * tests/test-fseeko.c: Print line number on failure.
60363         * tests/test-fseek.c: Likewise.
60364         Reported by Nelson H. F. Beebe.
60365
60366         Improve strtod bug detection check.
60367         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
60368         required for Solaris 10.
60369         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
60370
60371 2008-04-04  Bruno Haible  <bruno@clisp.org>
60372
60373         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
60374         by m4/setenv.m4.
60375
60376 2008-04-03  Eric Blake  <ebb9@byu.net>
60377
60378         Ensure sane .version contents.
60379         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
60380         version string.
60381         * build-aux/git-version-gen: Improve documentation.
60382
60383         Make GNU make output nicer.
60384         * top/GNUmakefile [!_have-Makefile]: Add dependency on
60385         MAKECMDGOALS to enforce message for all command line targets.  Set
60386         srcdir for use in maint.mk.
60387
60388         Another maintainer tweak.
60389         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
60390         a target that regenerates version.
60391
60392 2008-04-03  Jim Meyering  <meyering@redhat.com>
60393
60394         vc-list-files: don't cause coreutils "make po-check" failure
60395         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
60396
60397 2008-04-03  Eric Blake  <ebb9@byu.net>
60398
60399         Allow VPATH usage of vc-list-files.
60400         * build-aux/vc-list-files (scriptversion): Add timestamp.
60401         (options): Add --help, --version, -C.
60402         (CVS): Support installed cvsu.
60403
60404 2008-04-02  Bruno Haible  <bruno@clisp.org>
60405
60406         Avoid some "statement with no effect" warnings from gcc.
60407         * tests/test-wctype.c (main): Explicitly ignore unused values.
60408         Reported by Jim Meyering.
60409
60410 2008-04-02  Jim Meyering  <meyering@redhat.com>
60411
60412         Avoid some warnings from "gcc -Wshadow".
60413         * tests/test-frexp.c (exp): Define to a different identifier.
60414         * tests/test-frexpl.c (exp): Likewise.
60415
60416 2008-04-03  Jim Meyering  <meyering@redhat.com>
60417
60418         bootstrap: remove dangling *.[ch] symlinks from lib
60419         * build-aux/bootstrap [dangling symlink removal]: Move find's
60420         -depth option to precede all others, to avoid a warning.
60421         Remove *.[ch] files too, and from "$source_base" (usually lib/).
60422
60423 2008-04-02  Bruno Haible  <bruno@clisp.org>
60424
60425         Avoid some warnings from "gcc -Wshadow".
60426         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
60427         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
60428         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
60429         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
60430         Reported by Jim Meyering.
60431
60432 2008-04-01  Bruno Haible  <bruno@clisp.org>
60433
60434         Fix test to work on IRIX 6.5 with cc.
60435         * tests/test-math.c (numeric_equal): New function.
60436         (main): Use it.
60437
60438 2008-04-01  Bruno Haible  <bruno@clisp.org>
60439
60440         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
60441
60442 2008-04-01  Bruno Haible  <bruno@clisp.org>
60443
60444         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
60445         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60446         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
60447         (Depends-on): Remove math.
60448
60449         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
60450         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60451         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
60452         (Depends-on): Remove math.
60453
60454         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
60455         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60456         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
60457         (Depends-on): Remove math.
60458         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
60459         (Depends-on): Remove math.
60460
60461         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
60462         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
60463         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
60464         (Depends-on): Remove math.
60465         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
60466         (Depends-on): Remove math.
60467
60468         * tests/test-round1.c: Include nan.h.
60469         (main): Use NaNd instead of NAN.
60470         * modules/round-tests (Files): Add tests/nan.h.
60471
60472         * tests/test-trunc1.c: Include nan.h.
60473         (main): Use NaNd instead of NAN.
60474         * modules/trunc-tests (Files): Add tests/nan.h.
60475
60476         * tests/test-roundf1.c: Include nan.h.
60477         (main): Use NaNf instead of NAN.
60478         * modules/roundf-tests (Files): Add tests/nan.h.
60479
60480         * tests/test-truncf1.c: Include nan.h.
60481         (main): Use NaNf instead of NAN.
60482         * modules/truncf-tests (Files): Add tests/nan.h.
60483
60484         * tests/test-ceilf1.c: Include nan.h.
60485         (main): Use NaNf instead of NAN.
60486         * modules/ceilf-tests (Files): Add tests/nan.h.
60487
60488         * tests/test-floorf1.c: Include nan.h.
60489         (main): Use NaNf instead of NAN.
60490         * modules/floorf-tests (Files): Add tests/nan.h.
60491
60492         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
60493         (main): Use NaNf instead of NAN.
60494         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
60495
60496         * tests/test-isnand.c: Include nan.h instead of <math.h>.
60497         (main): Use NaNd instead of NAN.
60498         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
60499
60500         * tests/test-frexp.c: Include nan.h.
60501         (main): Use NaNd instead of NAN.
60502         * modules/frexp-tests (Files): Add tests/nan.h.
60503
60504         * lib/isnan.c: Don't include <math.h>.
60505         (FUNC): Don't use NAN macro.
60506         * modules/isnand-nolibm (Depends-on): Remove math.
60507         * modules/isnanf-nolibm (Depends-on): Remove math.
60508         * modules/isnanl (Depends-on): Remove math.
60509         * modules/isnanl-nolibm (Depends-on): Remove math.
60510
60511         * tests/nan.h: New file.
60512
60513 2008-04-01  Eric Blake  <ebb9@byu.net>
60514
60515         Fix typos.
60516         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
60517         values to be the right type.
60518
60519         For now, cater to gnulib strtod inaccuracies.
60520         * tests/test-strtod.c (main): Allow 1-ulp error on expected
60521         fractional results.  While not as nice from a QoI perspective, it
60522         is a quicker patch than correctly implementing decimal to binary
60523         rounding.
60524
60525 2008-03-31  Eric Blake  <ebb9@byu.net>
60526
60527         Guarantee a definition of NAN.
60528         * lib/math.in.h (NAN): Define if missing.
60529         * tests/test-math.c (main): Test it.
60530         * doc/posix-headers/math.texi (math.h): Document this.
60531         * lib/isnan.c (rpl_isnand): Use it.
60532         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
60533         * tests/test-floorf1.c (NaN): Likewise.
60534         * tests/test-frexp.c (NaN): Likewise.
60535         * tests/test-isnand.c (NaN): Likewise.
60536         * tests/test-isnanf.c (NaN): Likewise.
60537         * tests/test-round1.c (NaN): Likewise.
60538         * tests/test-roundf1.c (NaN): Likewise.
60539         * tests/test-snprintf-posix.h (NaN): Likewise.
60540         * tests/test-sprintf-posix.h (NaN): Likewise.
60541         * tests/test-trunc1.c (NaN): Likewise.
60542         * tests/test-truncf1.c (NaN): Likewise.
60543         * tests/test-vasnprintf-posix.c (NaN): Likewise.
60544         * tests/test-vasprintf-posix.c (NaN): Likewise.
60545         * modules/isnand-nolibm (Depends-on): Add math.
60546         * modules/isnanf-nolibm (Depends-on): Likewise.
60547         * modules/isnanl (Depends-on): Likewise.
60548         * modules/isnanl-nolibm (Depends-on): Likewise.
60549         * modules/snprintf-posix-tests (Depends-on): Likewise.
60550         * modules/sprintf-posix-tests (Depends-on): Likewise.
60551         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
60552         * modules/vsprintf-posix-tests (Depends-on): Likewise.
60553         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
60554         * modules/vasprintf-posix-tests (Depends-on): Likewise.
60555
60556 2008-03-31  Bruno Haible  <bruno@clisp.org>
60557
60558         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
60559         * doc/posix-functions/strtod.texi: Likewise.
60560
60561 2008-03-31  Bruno Haible  <bruno@clisp.org>
60562
60563         * tests/test-strtod.c (main): Don't use C99 syntax.
60564
60565 2008-03-31  Bruno Haible  <bruno@clisp.org>
60566
60567         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
60568         Reported by Eric Blake.
60569
60570 2008-03-31  Jim Meyering  <meyering@redhat.com>
60571
60572         Don't compare actual signbit return values.
60573         * tests/test-strtod.c (main): Rather, compare only their
60574         zero/non-zero nature.
60575
60576 2008-03-31  Eric Blake  <ebb9@byu.net>
60577
60578         More strtod documentation.
60579         * doc/posix-functions/strtod.texi (strtod): Interpret more test
60580         failures as distinct bugs.
60581
60582 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
60583
60584         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
60585         Problem reported by Erik Benada in
60586         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
60587
60588 2008-03-30  Bruno Haible  <bruno@clisp.org>
60589
60590         * tests/test-strtod.c: Add comments about which assertion fails on which
60591         platform.
60592         * doc/posix-functions/strtod.texi: Add info about many more platforms.
60593
60594 2008-03-30  Eric Blake  <ebb9@byu.net>
60595
60596         Test signbit behavior on zeros.
60597         * tests/test-signbit.c (test_signbitf): Add tests for zero.
60598         (test_signbitd, test_signbitl): Likewise.
60599
60600         More strtod touchups.
60601         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
60602         sign of negative underflow, for now.  Use .5, not .1.
60603         * doc/posix-functions/strtod.texi (strtod): Mention these
60604         limitations.
60605         Reported by Jim Meyering.
60606
60607 2008-03-30  Bruno Haible  <bruno@clisp.org>
60608
60609         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
60610         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
60611
60612 2008-03-30  Bruno Haible  <bruno@clisp.org>
60613
60614         Avoid failure when attempting to return empty iconv results on some
60615         platforms.
60616         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
60617         allocation, don't report ENOMEM when the resulting string is empty.
60618
60619 2008-03-30  Bruno Haible  <bruno@clisp.org>
60620
60621         Fix buffer overrun.
60622         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
60623         Don't consider the width for tmp_length. Check count against tmp_length
60624         before doing the padding. Ensure enough allocation during padding.
60625
60626 2008-03-30  Eric Blake  <ebb9@byu.net>
60627
60628         strtod touchups.
60629         * lib/strtod.c (strtod): Avoid compiler warnings.
60630         Reported by Jim Meyering.
60631
60632 2008-03-30  Bruno Haible  <bruno@clisp.org>
60633
60634         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
60635         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
60636         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
60637         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
60638         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
60639         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
60640         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
60641         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
60642
60643         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
60644         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
60645         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
60646         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
60647         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
60648         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
60649         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
60650         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
60651
60652         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
60653         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
60654         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
60655         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
60656         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
60657         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
60658         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
60659         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
60660
60661         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
60662         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
60663
60664         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
60665         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
60666
60667         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
60668         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
60669
60670         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
60671         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
60672         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
60673
60674         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
60675         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
60676         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
60677
60678         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
60679         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
60680         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
60681
60682         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
60683         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
60684         * modules/vasprintf (Depends-on): Add EOVERFLOW.
60685
60686         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
60687         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
60688         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
60689         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
60690         (Depends-on): Add EOVERFLOW.
60691         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
60692         (Depends-on): Add EOVERFLOW.
60693         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60694         (Depends-on): Add EOVERFLOW.
60695         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
60696         (Depends-on): Add EOVERFLOW.
60697         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60698         (Depends-on): Add EOVERFLOW.
60699         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
60700         (Depends-on): Add EOVERFLOW.
60701         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60702         (Depends-on): Add EOVERFLOW.
60703         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
60704         (Depends-on): Add EOVERFLOW.
60705
60706         * lib/sprintf.c (EOVERFLOW): Remove fallback.
60707         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
60708         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
60709
60710         * lib/snprintf.c (EOVERFLOW): Remove fallback.
60711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
60712         * modules/snprintf (Depends-on): Add EOVERFLOW.
60713
60714         * lib/poll.c (EOVERFLOW): Remove fallback.
60715         * modules/poll (Depends-on): Add EOVERFLOW.
60716
60717         * lib/getugroups.c (EOVERFLOW): Remove fallback.
60718         * modules/getugroups (Depends-on): Add EOVERFLOW.
60719
60720         * lib/getdelim.c (EOVERFLOW): Remove fallback.
60721         * modules/getdelim (Depends-on): Add EOVERFLOW.
60722
60723         * lib/ftell.c (EOVERFLOW): Remove fallback.
60724         * modules/ftell (Depends-on): Add EOVERFLOW.
60725
60726         * lib/fprintf.c (EOVERFLOW): Remove fallback.
60727         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
60728         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
60729
60730         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
60731
60732         * modules/EOVERFLOW-tests: New file.
60733         * tests/test-EOVERFLOW.c: New file.
60734
60735         * modules/EOVERFLOW: New file.
60736         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
60737
60738 2008-03-30  Bruno Haible  <bruno@clisp.org>
60739
60740         Fix bug introduced on 2007-06-10.
60741         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
60742         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
60743
60744 2008-03-30  Bruno Haible  <bruno@clisp.org>
60745
60746         Improve freadseek's efficiency after ungetc.
60747         * lib/freadseek.c: Include freadahead.h.
60748         (freadptrinc): New function, extracted from freadseek.
60749         (freadseek): Use it in a loop. Use freadahead to determine the number
60750         of loop iterations.
60751         * modules/freadseek (Depends-on): Add freadahead.
60752         (configure.ac): Require AC_C_INLINE.
60753
60754 2008-03-30  Bruno Haible  <bruno@clisp.org>
60755
60756         * lib/freadseek.c (freadseek): Don't ignore the return value of
60757         freadptr.
60758
60759 2008-03-29  Eric Blake  <ebb9@byu.net>
60760
60761         Add hex float support.
60762         * modules/strtod (Depends-on): Add c-ctype.
60763         (Link): Mention POW_LIB.
60764         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
60765         whitespace between 'e' and exponent.
60766         * tests/test-strtod.c (main): Enable hex float tests.
60767         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
60768         now provides.
60769
60770         Document various strtod bugs, with some fixes.
60771         * doc/posix-functions/strtod.texi (strtod): Document bugs with
60772         "-0x", "inf", "nan", and hex constants.
60773         * doc/posix-functions/atof.texi (atof): Likewise.
60774         * modules/stdlib (Makefile.am): Support strtod.
60775         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
60776         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
60777         detect additional strtod bugs.
60778         * lib/stdlib.in.h (rpl_strtod): Add declarations.
60779         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
60780         bool where appropriate.  Parse 'inf' and 'nan'.
60781         * tests/test-strtod.c: New file.
60782         * modules/strtod (Depends-on): Add stdbool, stdlib.
60783         (configure.ac): Turn on module indicator.
60784         * modules/strtod-tests: New module.
60785
60786 2008-03-29  Eric Blake  <ebb9@byu.net>
60787
60788         Fix ftell on mingw.
60789         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
60790         * modules/ftell-tests (Depends-on): Add binary-io.
60791         * modules/ftello-tests (Depends-on): Likewise.
60792         * tests/test-ftell.c (main): Enhance test to cover behavior after
60793         ungetc.  Enforce binary mode.
60794         * tests/test-ftello.c (main): Likewise.
60795
60796         Pass test-freadseek on cygwin.
60797         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
60798         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
60799         ungetc buffer.
60800
60801         * tests/test-fflush2.c (main): Fix typo.
60802
60803 2008-03-29  Bruno Haible  <bruno@clisp.org>
60804
60805         * tests/test-fflush2.c (main): Temporarily disable the contents of
60806         this test.
60807         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
60808         Reported by Eric Blake.
60809
60810 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60811
60812         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60813         (GC_SHA224_DIGEST_SIZE): Add.
60814
60815         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60816         (gc_hash_digest_length): Likewise.
60817         (gc_hash_buffer): Likewise.
60818
60819 2008-03-25  Bruno Haible  <bruno@clisp.org>
60820
60821         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60822         detail which gettext release to use.
60823         Reported by Simon Josefsson.
60824
60825 2008-03-26  Jim Meyering  <meyering@redhat.com>
60826
60827         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60828         * modules/gnumakefile (clean-GNUmakefile): Also, use
60829         test ... && ... || : syntax rather than if-then ... fi.
60830
60831         gnumakefile: Don't double-quote-expand $(VPATH) value.
60832         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60833
60834 2008-03-24  Eric Blake  <ebb9@byu.net>
60835
60836         Alter GNUmakefile to install into top directory.
60837         * modules/maintainer-makefile: Split, and add dependency...
60838         * modules/gnumakefile: to this new module.
60839         * build-aux/GNUmakefile: Move...
60840         * top/GNUmakefile: ...here.
60841         * build-aux/maint.mk: Move...
60842         * top/maint.mk: ...here.
60843         * MODULES.html.sh (Support for maintaining...): Document new
60844         module.
60845
60846 2008-03-23  Bruno Haible  <bruno@clisp.org>
60847
60848         * gnulib-tool: New options --vc-files, --no-vc-files.
60849         (func_usage): Document them.
60850         (vc_files): New variable.
60851         (func_import): Consider vc_files.
60852         (func_create_testdir): Set vc_files to empty.
60853         Suggested by Jim Meyering and Karl Berry.
60854
60855 2008-03-23  Bruno Haible  <bruno@clisp.org>
60856
60857         Fix regex compilation error on HP-UX 11.
60858         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60859         * modules/regex (Files): Add m4/mbstate_t.m4.
60860         Reported by Ton Voon <ton.voon@altinity.com>.
60861
60862 2008-03-23  Bruno Haible  <bruno@clisp.org>
60863
60864         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60865
60866 2008-03-23  Eric Blake  <ebb9@byu.net>
60867             Bruno Haible  <bruno@clisp.org>
60868
60869         Install files from top/ in the destination directory.
60870         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60871         augmentation also for the files from top/.
60872         (func_import, func_create_testdir): Rewrite file names:
60873         top/filename -> filename.
60874
60875 2008-03-23  Bruno Haible  <bruno@clisp.org>
60876
60877         Tweak "gnulib --version" output.
60878         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60879
60880 2008-03-23  Bruno Haible  <bruno@clisp.org>
60881
60882         Tweak "gnulib --version" output.
60883         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60884         rather than contents of ChangeLog, when possible.
60885
60886 2008-03-21  Eric Blake  <ebb9@byu.net>
60887
60888         More --version tweaks.
60889         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60890         date of last ChangeLog entry.
60891
60892 2008-03-21  Jim Meyering  <meyering@redhat.com>
60893
60894         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60895
60896 2008-03-20  Eric Blake  <ebb9@byu.net>
60897
60898         VPATH fix.
60899         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60900
60901 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60902
60903         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60904         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60905
60906 2008-03-20  Eric Blake  <ebb9@byu.net>
60907
60908         Sync GNUmakefile with coreutils.
60909         * build-aux/GNUmakefile (have-Makefile): Rename...
60910         (_have-Makefile): ...to this, for namespace consideration.
60911         (GNUmakefile.cfg): Include, if present.
60912         (_autoreconf): Define a default.
60913         (_is-dist-target): New rule for rebuilds to pick up intra-release
60914         version.
60915         (maint-cfg.mk): Rename...
60916         (cfg.mk): ...to this.
60917
60918 2008-03-18  Jim Meyering  <meyering@redhat.com>
60919
60920         New script and module: mktempd
60921         * MODULES.html.sh (maint+release support): Add mktempd.
60922         * build-aux/mktempd: New file.
60923         * modules/mktempd: New file.
60924
60925 2008-03-15  Jim Meyering  <meyering@redhat.com>
60926
60927         Undo last change.
60928         * lib/sha1.c, lib/md5.c: 63 != ~63.
60929         Reported by Andreas Schwab.
60930
60931         sha1.c, md5.c: Hoist a redundant expression.
60932         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60933         "ctx->buflen" only once, before calling *_process_block.
60934         * lib/md5.c (md5_process_bytes): Likewise.
60935
60936 2008-03-14  Eric Blake  <ebb9@byu.net>
60937
60938         Bump copyright year in files generated by gnulib-tool.
60939         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60940         gnulib-tool, rather than hard-coding it.
60941
60942         Fix 'gnulib-tool --version' output to work with git.
60943         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60944         (startup): ...here.
60945         (func_version): Use it to invoke git-version-gen, rather than
60946         relying on CVS keyword expansion.  Modernize wording.
60947         (cvsdatestamp, last_checkin_date, version): Kill unused
60948         variables.
60949
60950 2008-03-12  Jim Meyering  <meyering@redhat.com>
60951
60952         Recognize optional cast of the argument to free.
60953         * build-aux/useless-if-before-free: Update regexps.
60954
60955         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60956
60957 2008-03-11  Bruno Haible  <bruno@clisp.org>
60958
60959         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60960         by a single package.
60961         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60962         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60963         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60964         Reported by Sam Steingold <sds@gnu.org>.
60965
60966 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60967
60968         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60969         repositories.
60970
60971 2008-03-11  Bruno Haible  <bruno@clisp.org>
60972
60973         Avoid conflicts between local macro definitions.
60974         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60975         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60976
60977 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60978             Bruno Haible  <bruno@clisp.org>
60979
60980         Make va_copy work with some version of xlc on AIX 5.1.
60981         * lib/stdarg.in.h: New file.
60982         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60983         On AIX, use a <stdarg.h> file substitute.
60984         * modules/stdarg (Files): Add lib/stdarg.in.h.
60985         (Depends-on): Add include_next.
60986         (Makefile.am): Build a stdarg.h substitute if requested.
60987         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60988
60989 2008-03-10  Bruno Haible  <bruno@clisp.org>
60990
60991         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60992         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60993         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60994
60995 2008-03-10  Bruno Haible  <bruno@clisp.org>
60996
60997         * modules/stdlib (Depends-on): Add include_next, remove
60998         absolute-header.
60999
61000 2008-03-09  Bruno Haible  <bruno@clisp.org>
61001
61002         * lib/freadahead.h (freadahead): Document more precisely.
61003         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
61004         the sum of both buffer sizes.
61005         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
61006         * NEWS: Document the change.
61007
61008 2008-03-09  Bruno Haible  <bruno@clisp.org>
61009
61010         Extend freadptr to return also the buffer size.
61011         * lib/freadptr.h (freadptr): Add sizep argument.
61012         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
61013         (freadptr): Add sizep argument. Determine buffer size like freadahead
61014         does.
61015         * tests/test-freadptr.c: Don't include freadahead.h.
61016         (main): Adapt for new calling convention of freadptr.
61017         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
61018         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
61019         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
61020         tests/test-freadptr2.sh.
61021         (Depends): Remove freadahead.
61022         (TESTS): Add test-freadptr2.sh.
61023         (check_PROGRAMS): Add test-freadptr2.
61024
61025 2008-03-09  Bruno Haible  <bruno@clisp.org>
61026
61027         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
61028         Report and solution by Simon Josefsson.
61029
61030 2008-03-06  Bruno Haible  <bruno@clisp.org>
61031
61032         Make fflush after ungetc work on BSD platforms.
61033         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
61034         * tests/test-fflush2.c: New file.
61035         * tests/test-fflush2.sh: New file.
61036         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
61037         tests/test-fflush2.c.
61038         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
61039         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
61040
61041 2008-03-06  Eric Blake  <ebb9@byu.net>
61042
61043         Likewise for ftello.
61044         * modules/ftello (Dependencies): Add extensions.
61045         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
61046
61047 2008-03-06  Bruno Haible  <bruno@clisp.org>
61048
61049         * modules/fseeko (Dependencies): Add extensions.
61050         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
61051         Needed on glibc systems.
61052
61053 2008-03-06  Bruno Haible  <bruno@clisp.org>
61054
61055         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
61056         email address.
61057         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61058
61059 2008-03-06  Bruno Haible  <bruno@clisp.org>
61060
61061         * users.txt: Add libgnupdf.
61062
61063 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61064
61065         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
61066         (Header File Substitutes, Function Substitutes,
61067         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
61068         (Build robot for gnulib): Fix typo.
61069
61070 2008-03-06  Bruno Haible  <bruno@clisp.org>
61071
61072         * doc/gnulib-tool.texi (VCS Issues): Small updates.
61073         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
61074
61075 2008-03-06  Bruno Haible  <bruno@clisp.org>
61076
61077         * doc/func.texi: New file, extracted from doc/gnulib.texi.
61078         * doc/gnulib.texi: Include it.
61079
61080 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61081
61082         * modules/func (License): Change license to unlimited; there was
61083         no LGPL parts in the module anyway.
61084
61085 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61086
61087         * modules/__func__: Renamed to modules/func.
61088         * modules/__func__-tests: Renamed to modules/func-tests.
61089         * tests/test-__func__.c: Renamed to tests/test-func.c.
61090         * m4/__func__.m4: Renamed to m4/func.m4.
61091         * doc/gnulib.texi (__func__): Section renamed to func.
61092         Suggested by Eric Blake <ebb9@byu.net>.
61093
61094 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61095
61096         * doc/gnulib.texi (__func__): Use C99 terminology when talking
61097         about __func__.  Make example self-contained.  Suggested by Eric
61098         Blake <ebb9@byu.net>.
61099
61100         * tests/test-__func__.c (main): Avoid extraneous () around __func.
61101         Suggested by Eric Blake <ebb9@byu.net>.
61102
61103 2008-03-06  Simon Josefsson  <simon@josefsson.org>
61104
61105         * modules/__func__: New file.
61106         * modules/__func__-tests: New file.
61107         * tests/test-__func__.c: New file.
61108         * m4/__func__.m4: New file.
61109         * doc/gnulib.texi (__func__): Document __func__ module.
61110
61111 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61112
61113         * modules/byteswap (License): Re-license as LGPLv2+.
61114
61115 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61116
61117         * doc/Makefile: Add pdf target.
61118
61119 2008-03-05  Simon Josefsson  <simon@josefsson.org>
61120
61121         * modules/inline (License): Use 'unlimited', since there are only
61122         *.m4 files in this module.
61123
61124 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61125             Bruno Haible  <bruno@clisp.org>
61126
61127         Add support for HP C 7.1 on OpenVMS 8.3.
61128         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
61129
61130 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
61131
61132         Update VMS specifics.
61133         * lib/getopt.c [VMS]: Remove include of unixlib.h.
61134
61135 2008-03-02  Jim Meyering  <meyering@redhat.com>
61136
61137         Remove the last dependency on the "free" module.
61138         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
61139         Reported by Bob Proulx.
61140
61141         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
61142
61143         Remove useless "if" tests before free.  Deprecate "free" module.
61144         * doc/posix-functions/free.texi: Mention that this
61145         module is no longer useful.
61146         * modules/free (Notice): Say this module is obsolete.
61147         * modules/readutmp (Depends-on): Remove free.
61148         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
61149         * lib/putenv.c (putenv): Likewise.
61150         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
61151         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
61152         * tests/test-c-strcasestr.c (main): Likewise.
61153         * tests/test-c-strstr.c (main): Likewise.
61154         * tests/test-mbscasestr1.c (main): Likewise.
61155         * tests/test-mbscasestr2.c (main): Likewise.
61156         * tests/test-mbsstr1.c (main): Likewise.
61157         * tests/test-mbsstr2.c (main): Likewise.
61158         * tests/test-memmem.c (main): Likewise.
61159         * tests/test-strcasestr.c (main): Likewise.
61160         * tests/test-striconv.c (main): Likewise.
61161         * tests/test-striconveh.c (main): Likewise.
61162         * tests/test-striconveha.c (main): Likewise.
61163         * tests/test-strstr.c (main): Likewise.
61164
61165         * build-aux/git-version-gen: Adjust a comment and the Usage string.
61166
61167         bootstrap: sync from coreutils again
61168         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
61169
61170 2008-03-01  Jim Meyering  <meyering@redhat.com>
61171
61172         bootstrap: sync from coreutils
61173         * build-aux/bootstrap (update_po_files): Copy a .po file into place
61174         also when the target doesn't exist.
61175
61176 2008-03-01  Eric Blake  <ebb9@byu.net>
61177
61178         Fix bugs in last patch.
61179         * lib/memchr2.c (memchr2): Fix typo.
61180         * tests/test-memchr2.c: Test previous bug, and don't use GNU
61181         extension.
61182         Reported by Bruce Korb.
61183
61184         New module 'memchr2'.
61185         * modules/memchr2: New file.
61186         * modules/memchr2-tests: Likewise.
61187         * lib/memchr2.h: Likewise.
61188         * lib/memchr2.c: Likewise, based on memchr.c.
61189         * tests/test-memchr2.c: New test.
61190         * MODULES.html.sh (String handling): Add memchr2.
61191
61192 2008-02-29  Bruno Haible  <bruno@clisp.org>
61193
61194         * modules/freadseek-tests: New file.
61195         * tests/test-freadseek.sh: New file.
61196         * tests/test-freadseek.c: New file.
61197
61198         New module 'freadseek'.
61199         * modules/freadseek: New file.
61200         * lib/freadseek.h: New file.
61201         * lib/freadseek.c: New file.
61202         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
61203
61204 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61205
61206         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
61207         wydawca.
61208
61209         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
61210         program_invocation_name and program_invocation_short_name are
61211         present.
61212
61213 2008-02-28  Bruno Haible  <bruno@clisp.org>
61214
61215         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
61216         * tests/test-freadptr.sh: Also test non-seekable stdin.
61217
61218 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
61219
61220         * build-aux/bootstrap (source_base, m4_base)
61221         (doc_base, tests_base): New variables.
61222         (gnulib_tool_options): Do not hardcode base directories, use
61223         the above variables instead.
61224
61225 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
61226
61227         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
61228
61229 2008-02-28  Bruno Haible  <bruno@clisp.org>
61230
61231         * modules/freadptr-tests: New file.
61232         * tests/test-freadptr.sh: New file.
61233         * tests/test-freadptr.c: New file.
61234
61235         New module 'freadptr'.
61236         * modules/freadptr: New file.
61237         * lib/freadptr.h: New file.
61238         * lib/freadptr.c: New file.
61239         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
61240
61241 2008-02-26  Karl Berry  <karl@freefriends.org>
61242
61243         Sync from Libtool:
61244         * libltdl/argz.c (argz_add, argz_count): New functions.
61245         * libltdl/argz.in.h: Declare them.
61246         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
61247
61248 2008-02-22  Bruno Haible  <bruno@clisp.org>
61249
61250         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
61251         is a pointer type.  Needed for HP-UX 10.
61252         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
61253         * doc/posix-functions/gmtime_r.texi: Likewise.
61254         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
61255
61256 2008-02-24  Bruno Haible  <bruno@clisp.org>
61257
61258         * modules/environ-tests: New file.
61259         * tests/test-environ.c: New file.
61260
61261         New module 'environ'.
61262         * modules/environ: New file.
61263         * lib/unistd.in.h (environ): New declaration.
61264         * m4/environ.m4: New file.
61265         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
61266         after use.
61267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
61268         HAVE_DECL_ENVIRON.
61269         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
61270         HAVE_DECL_ENVIRON.
61271         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
61272         wrong claim that 'environ' is missing on some systems.
61273         * modules/execute (Depends-on): Add environ.
61274         * lib/execute.c (environ): Remove fallback declaration.
61275         * modules/pipe (Depends-on): Add environ.
61276         * lib/pipe.c (environ): Remove fallback declaration.
61277         * modules/setenv (Depends-on): Add environ.
61278         * lib/setenv.c (environ): Remove fallback declaration.
61279         * modules/unsetenv (Depends-on): Add environ.
61280         * lib/unsetenv.c (environ): Remove fallback declaration.
61281         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
61282         m4/environ.m4.
61283         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
61284         (gl_PREREQ_UNSETENV): Likewise.
61285
61286 2008-02-24  Bruno Haible  <bruno@clisp.org>
61287
61288         * doc/posix-functions/environ.texi: Document the MacOS X problem.
61289
61290 2008-02-20  Bob Proulx  <bob@proulx.com>
61291
61292         Enable use of older two part flavor 'git describe'.
61293         * build-aux/git-version-gen: If using the older two part flavor of
61294         git version then recreate the third part now present in the
61295         newer three part flavor of git describe.
61296
61297 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
61298
61299         * lib/fts.c (fts_build): Typo correction to comment.
61300
61301 2008-02-17  Bruno Haible  <bruno@clisp.org>
61302
61303         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
61304         generating no-op conflicts.
61305
61306 2008-02-17  Bruno Haible  <bruno@clisp.org>
61307
61308         Speed up by 10%.
61309         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
61310         result_entries, rather than an index-based loop.
61311
61312 2008-02-17  Bruno Haible  <bruno@clisp.org>
61313
61314         Speed up by 25%.
61315         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
61316         'hashcode_cached'.
61317         (entry_create): New function.
61318         (entry_hashcode): Use the cached hashcode if possible.
61319         (read_changelog_file, try_split_merged_entry): Use entry_create.
61320
61321 2008-02-17  Bruno Haible  <bruno@clisp.org>
61322
61323         Speed up from O(n^2) to O(n) for long ChangeLog files.
61324         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
61325         (read_changelog_file): Change implementation of entries_reversed list
61326         to rbtreehash.
61327         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
61328
61329 2008-02-17  Bruno Haible  <bruno@clisp.org>
61330
61331         New option --split-merged-entry.
61332         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
61333         (find_paragraph_end, try_split_merged_entry): New functions.
61334         (long_options): Add option --split-merged-entry.
61335         (usage): Document option --split-merged-entry.
61336         (main): Implement option --split-merged-entry.
61337         Reported by Eric Blake.
61338
61339 2008-02-17  Bruno Haible  <bruno@clisp.org>
61340
61341         * lib/git-merge-changelog.c: Include c-strstr.h.
61342         (main): Support the "git pull --rebase" situation.
61343         * modules/git-merge-changelog (Depends-on): Add c-strstr.
61344         Reported by Eric Blake.
61345
61346 2008-02-16  Eric Blake  <ebb9@byu.net>
61347
61348         Avoid doubling \ in common case of "c-maybe" quoting style.
61349         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
61350         eliding outer quotes.
61351         * lib/quotearg.h: Document this.
61352         * tests/test-quotearg.c (result_strings, inputs, results_g)
61353         (flag_results, locale_results): Test it by adding a new string to
61354         each test group.
61355         (compare_strings): Test new string.
61356
61357 2008-02-13  Eric Blake  <ebb9@byu.net>
61358
61359         Avoid trigraph quoting in default output.
61360         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
61361         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
61362         unless explicitly requested.
61363         * tests/test-quotearg.c (flag_results, main): Add additional tests.
61364
61365 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
61366
61367         Don't rely on signed integer overflowing to negative value.
61368         * lib/getugroups.c (getugroups): Include <limits.h>.
61369         Instead, compare against INT_MAX, and increment only if the test passes.
61370
61371 2008-02-13  Jim Meyering  <meyering@redhat.com>
61372         and Eric Blake  <ebb9@byu.net>
61373
61374         Avoid shadowing warning and compile errors on Linux.
61375         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
61376         forwarding macros on Linux.
61377         (dcgettext): Define a stub, for Linux.
61378         (results_g, main): Avoid warnings.
61379
61380 2008-02-12  Eric Blake  <ebb9@byu.net>
61381
61382         Silence warning in last patch.
61383         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
61384
61385         Quotearg part 4: add tests, fix c-maybe colon quoting.
61386         * lib/quotearg.h: Improve documentation.
61387         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
61388         escapes when adding outer quotes.  When quoting trigraphs, use
61389         valid C notation.  When quoting NUL, omit extra characters if next
61390         character is not digit.  Alter prototype.
61391         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
61392         callers.
61393         * modules/quotearg-tests: New module.
61394         * tests/test-quotearg.c: New test.
61395
61396 2008-02-07  Eric Blake  <ebb9@byu.net>
61397
61398         Quotearg part 3: add flag to control outer quote elision.
61399         * lib/quotearg.h (c_maybe_quoting_style): New style.
61400         (enum quoting_flags): Better documentation of flags.
61401         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
61402         c-maybe style.
61403         (quotearg_buffer_restyled): Handle new flag to elide outer
61404         quotes.
61405
61406         Quotearg part 2: add flag that can control NUL elision.
61407         * lib/quotearg.h (set_quoting_flags): New prototype.
61408         * lib/quotearg.c (struct quoting_options): Add flag field.
61409         (set_quoting_flags): New function.
61410         (quotearg_buffer_restyled): Add flags parameter.
61411         (quotearg_alloc_mem): Set the flag if length cannot be returned.
61412         (quotearg_n_options): Set the flag, since length cannot be
61413         returned.
61414         (quoting_options_from_style): Default flags correctly.
61415
61416         Quotearg part 1: more wrappers, restore quotearg_char state.
61417         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
61418         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
61419         (quotearg_colon_mem): New wrappers.
61420         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
61421         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
61422         functions.
61423         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
61424         (quotearg_colon_mem): New functions.
61425
61426 2008-02-11  Bruno Haible  <bruno@clisp.org>
61427
61428         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
61429         library in the current directory: it does not work with parallel make.
61430         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
61431
61432 2008-02-11  Bruno Haible  <bruno@clisp.org>
61433
61434         * .gitattributes: New file.
61435
61436 2008-02-11  Jim Meyering  <meyering@redhat.com>
61437
61438         useless-if-before-free: Fix reversed exit values.
61439         * build-aux/useless-if-before-free: Use correct values
61440         for EXIT_MATCH and EXIT_NO_MATCH.
61441
61442         * build-aux/useless-if-before-free: Close stdout carefully.
61443
61444 2008-02-10  Bruno Haible  <bruno@clisp.org>
61445
61446         New module 'git-merge-changelog'.
61447         * modules/git-merge-changelog: New file.
61448         * lib/git-merge-changelog.c: New file.
61449
61450 2008-02-10  Jim Meyering  <meyering@redhat.com>
61451
61452         useless-if-before-free: New option: --list (-l).
61453
61454         useless-if-before-free: Don't exit immediately upon open failure.
61455         * build-aux/useless-if-before-free: Exit 2 for errors.
61456         Upon failure to open a file, don't exit immediately.
61457         Rather, just warn and continue with any remaining files.
61458
61459 2008-02-10  Bruno Haible  <bruno@clisp.org>
61460
61461         New abstract list operation 'node_set_value'.
61462         * lib/gl_list.h (gl_list_node_set_value): New function.
61463         (struct gl_list_implementation): New field node_set_value.
61464         * lib/gl_list.c (gl_list_node_set_value): New function.
61465         * lib/gl_array_list.c (gl_array_node_set_value): New function.
61466         (gl_array_list_implementation): Update.
61467         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
61468         (gl_carray_list_implementation): Update.
61469         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
61470         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
61471         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
61472         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
61473         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
61474         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
61475         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
61476         Update.
61477         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
61478         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
61479         (gl_sublist_list_implementation): Update.
61480
61481 2008-02-10  Bruno Haible  <bruno@clisp.org>
61482
61483         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
61484         Needed when ELEMENT is #defined to 'some_type *'.
61485
61486 2008-02-10  Jim Meyering  <meyering@redhat.com>
61487
61488         New script and module: useless-if-before-free
61489         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
61490         * build-aux/useless-if-before-free: New file.
61491         * modules/useless-if-before-free: New file.
61492
61493         * build-aux/gitlog-to-changelog: Use committer date, not author date.
61494
61495         xstrtol_error: Fix typo.
61496         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
61497         s/exit_failure/exit_status/.
61498
61499 2008-02-09  Jim Meyering  <meyering@redhat.com>
61500
61501         New script and module: gitlog-to-changelog
61502         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
61503         * modules/gitlog-to-changelog: New file.
61504         * build-aux/gitlog-to-changelog: New file.
61505
61506 2008-02-08  Jim Meyering  <meyering@redhat.com>
61507
61508         Avoid two "parameter unused" warnings.
61509         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
61510         Mark "st" as used.
61511
61512         Use "git COMMAND", not "git-COMMAND".
61513         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
61514         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
61515         * build-aux/git-version-gen: Use "git status", not "git-status".
61516
61517 2008-02-07  Bruno Haible  <bruno@clisp.org>
61518
61519         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
61520         Avoids a crash on Windows Vista.
61521         Reported by Adam Strzelecki <ono@java.pl> via
61522         Simon Josefsson <simon@josefsson.org>.
61523
61524 2008-02-06  Bruno Haible  <bruno@clisp.org>
61525
61526         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
61527         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
61528         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
61529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
61530         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61531         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61532         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
61533         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
61534         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61535         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61536         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61537         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61538         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61539         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61540         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61541         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
61542         left-adjust flag.
61543         * tests/test-snprintf-posix.h (test_function): Likewise.
61544         * tests/test-sprintf-posix.h (test_function): Likewise.
61545         * tests/test-vasprintf-posix.c (test_function): Likewise.
61546         * doc/posix-functions/fprintf.texi: Update.
61547         * doc/posix-functions/printf.texi: Update.
61548         * doc/posix-functions/snprintf.texi: Update.
61549         * doc/posix-functions/sprintf.texi: Update.
61550         * doc/posix-functions/vfprintf.texi: Update.
61551         * doc/posix-functions/vprintf.texi: Update.
61552         * doc/posix-functions/vsnprintf.texi: Update.
61553         * doc/posix-functions/vsprintf.texi: Update.
61554         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61555
61556 2008-02-06  Bruno Haible  <bruno@clisp.org>
61557
61558         Fix bug introduced on 2008-01-26.
61559         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
61560
61561 2008-02-06  Bruno Haible  <bruno@clisp.org>
61562
61563         Fix bug introduced on 2007-06-10.
61564         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
61565         !NEED_PRINTF_FLAG_ZERO.
61566
61567 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
61568
61569         getloadavg: use libperfstat on AIX5
61570         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
61571
61572 2008-02-03  Bruno Haible  <bruno@clisp.org>
61573
61574         * lib/diffseq.h: Add comments about required #includes.
61575         Reported by Michael Biggs <gnulib@doubleplum.net>.
61576
61577 2008-02-01  Bruno Haible  <bruno@clisp.org>
61578
61579         * users.txt: Add gnuit.
61580
61581 2008-01-31  Bruno Haible  <bruno@clisp.org>
61582
61583         * lib/md4.c (set_uint32): Mark as inline.
61584         * lib/md5.c (set_uint32): Likewise.
61585         * lib/sha1.c (set_uint32): Likewise.
61586         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
61587         * m4/md5.m4 (gl_MD5): Likewise.
61588         * m4/sha1.m4 (gl_SHA1): Likewise.
61589
61590 2008-01-31  Jim Meyering  <meyering@redhat.com>
61591
61592         Use "sizeof VAR", rather than a literal "4".
61593         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
61594         * lib/md4.c (md4_read_ctx): Likewise.
61595         * lib/sha1.c (sha1_read_ctx): Likewise.
61596
61597 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61598
61599         * tests/test-sha1.c: New file, based on test-md5.c.
61600
61601         * modules/crypto/sha1-tests: New file.
61602
61603 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61604
61605         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
61606
61607 2008-01-31  Jim Meyering  <meyering@redhat.com>
61608
61609         Prefer "sizeof v" over the equivalent "4".
61610         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
61611         * lib/md5.c (set_uint32): Likewise.
61612         * lib/sha1.c (set_uint32): Likewise.
61613
61614 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61615
61616         * lib/sha1.c (set_uint32): Mark function as static.
61617
61618 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61619
61620         md2: clarify comments to say that alignment is not required.
61621         * lib/md2.h: Remove warning about alignment in comment.
61622         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
61623         never been required.
61624
61625 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61626
61627         md4: adapt alignment constraint fix from sha1.
61628         * lib/md4.c (set_uint32): New function, from sha1.c
61629         (md4_read_ctx): Use it.
61630         (md4_finish_ctx): Doc fix.
61631         * lib/md4.h: Doc fix.
61632
61633 2008-01-31  Simon Josefsson  <simon@josefsson.org>
61634
61635         md5: adapt alignment constraint fix from sha1.
61636         * lib/md5.c (set_uint32): New function, from sha1.c
61637         (md5_read_ctx): Use it.
61638         (md5_finish_ctx): Doc fix.
61639         * lib/md5.h: Doc fix.
61640
61641 2008-01-30  Peter Palfrader  <weasel@debian.org>
61642
61643         sha1: remove the result buffer alignment constraint
61644         * lib/sha1.c (set_uint32): New function.
61645         (sha1_read_ctx): Rewrite to remove the result buffer alignment
61646         constraint.
61647         (sha1_finish_ctx): Remove comment warning about alignment constraint.
61648         * lib/sha1.h: Likewise.
61649
61650 2008-01-30  Andreas Schwab  <schwab@suse.de>
61651             Bruno Haible  <bruno@clisp.org>
61652
61653         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
61654         correct definition of LDBL_MIN_EXP.
61655
61656 2008-01-30  Karl Berry  <karl@gnu.org>
61657
61658         * config/srclist-update: try to preserve x bit on updates.
61659         * config/srclistvars.sh: update for karl.
61660
61661 2008-01-29  Jim Meyering  <meyering@redhat.com>
61662
61663         vasnprintf.c: Avoid warning about unused label
61664         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
61665         "overflow" label definition and associated code with the
61666         same cpp condition that guards the sole use of that label.
61667
61668 2008-01-26  Bruno Haible  <bruno@clisp.org>
61669
61670         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
61671         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
61672         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
61673         * lib/isnanl-nolibm.h (isnanl): Likewise.
61674         Reported by Paul Eggert <eggert@cs.ucla.edu>.
61675
61676 2008-01-26  Bruno Haible  <bruno@clisp.org>
61677
61678         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
61679         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
61680
61681 2008-01-26  Bruno Haible  <bruno@clisp.org>
61682
61683         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
61684         GCC >= 4.0 built-in.
61685         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
61686
61687 2008-01-26  Bruno Haible  <bruno@clisp.org>
61688
61689         Rename isnan, applicable to 'double' only, to isnand.
61690         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
61691         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
61692         (configure.ac): Update.
61693         (Include): Replace "isnan.h" with "isnand.h".
61694         * m4/isnand.m4: Renamed from m4/isnan.m4.
61695         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
61696         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
61697         instead of isnan.c.
61698         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
61699         instead of HAVE_ISNAN_IN_LIBC.
61700         (isnand): Renamed from isnan.
61701         * lib/isnand.c: New file.
61702         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
61703         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
61704         (Makefile.am): Update.
61705         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
61706         Include isnand.h instead of isnan.h.
61707         (main): Test isnand instead of isnan.
61708         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
61709         isnan-nolibm.
61710         * modules/frexp (Depends-on): Likewise.
61711         * modules/frexp-tests (Depends-on): Likewise.
61712         * modules/frexp-nolibm (Depends-on): Likewise.
61713         * modules/frexp-nolibm-tests (Depends-on): Likewise.
61714         * modules/isfinite (Depends-on): Likewise.
61715         * modules/round-tests (Depends-on): Likewise.
61716         * modules/signbit (Depends-on): Likewise.
61717         * modules/signbit-tests (Depends-on): Likewise.
61718         * modules/snprintf-posix (Depends-on): Likewise.
61719         * modules/sprintf-posix (Depends-on): Likewise.
61720         * modules/trunc-tests (Depends-on): Likewise.
61721         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61722         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61723         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61724         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61725         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61726         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61727         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61728         * modules/vasnprintf-posix (Depends-on): Likewise.
61729         * modules/vasprintf-posix (Depends-on): Likewise.
61730         * modules/vfprintf-posix (Depends-on): Likewise.
61731         * modules/vsnprintf-posix (Depends-on): Likewise.
61732         * modules/vsprintf-posix (Depends-on): Likewise.
61733         * lib/frexp.c: Include isnand.h instead of isnan.h.
61734         (ISNAN): Set to isnand instead of isnan.
61735         * lib/isfinite.c: Include isnand.h instead of isnan.h.
61736         (gl_isfinited): Use isnand instead of isnan.
61737         * lib/signbitd.c: Include isnand.h instead of isnan.h.
61738         (gl_signbitd): Use isnand instead of isnan.
61739         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
61740         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
61741         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
61742         (main): Use isnand instead of isnan.
61743         * tests/test-round1.c: Include isnand.h.
61744         (main): Use isnand instead of isnan.
61745         * tests/test-round2.c: Include isnand.h instead of isnan.h.
61746         (ISNAN): Set to isnand instead of isnan.
61747         * tests/test-trunc1.c: Include isnand.h.
61748         (main): Use isnand instead of isnan.
61749         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
61750         (equal): Use isnand instead of isnan.
61751         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
61752         isnand-nolibm.
61753         * NEWS: Mention the change.
61754
61755 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
61756             Bruno Haible  <bruno@clisp.org>
61757
61758         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
61759         the GCC builtins for signbits are present and set
61760         REPLACE_SIGNBIT_USING_GCC if so.
61761         * lib/math.in.h (signbit): Define using GCC builtins if
61762         REPLACE_SIGNBIT_USING_GCC is set.
61763         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
61764         REPLACE_SIGNBIT_USING_GCC.
61765         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
61766
61767 2008-01-25  Jim Meyering  <meyering@redhat.com>
61768
61769         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
61770         * lib/poll.c: Include <config.h>, not "config.h".
61771         * tests/test-getaddrinfo.c: Likewise.
61772
61773 2008-01-25  Simon Josefsson  <simon@josefsson.org>
61774
61775         * modules/sockets-tests: New file.
61776
61777 2008-01-24  Simon Josefsson  <simon@josefsson.org>
61778
61779         * modules/sockets: New module, can be used to call WSA_Startup and
61780         WSA_Cleanup when needed.
61781
61782         * lib/sockets.h, lib/sockets.c: New files.
61783
61784         * m4/sockets.m4: New file.
61785
61786         * tests/test-sockets.c: New file.
61787
61788 2008-01-19  Bruno Haible  <bruno@clisp.org>
61789
61790         * doc/posix-headers: Renamed from doc/headers.
61791         * doc/posix-functions: Renamed from doc/functions.
61792         * doc/gnulib.texi: Update.
61793
61794 2008-01-19  Bruno Haible  <bruno@clisp.org>
61795
61796         * doc/glibc-functions/strcasestr.texi: Include contents of
61797         doc/functions/strcasestr.texi, fixing the list of platforms.
61798         * doc/functions/strcasestr.texi: Remove file.
61799
61800 2008-01-19  Bruno Haible  <bruno@clisp.org>
61801
61802         * doc/glibc-functions/memmem.texi: Include contents of
61803         doc/functions/memmem.texi.
61804         * doc/functions/memmem.texi: Remove file.
61805
61806 2008-01-18  Bruno Haible  <bruno@clisp.org>
61807
61808         * doc/glibc-functions/*.texi: New files.
61809         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
61810         to use the new files.
61811
61812 2008-01-17  Bruno Haible  <bruno@clisp.org>
61813
61814         * tests/test-gethostname.c (main): Fix printf statement.
61815
61816 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61817
61818         * modules/gethostname-tests: New file.
61819
61820         * tests/test-gethostname.c: New file.
61821
61822 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61823
61824         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61825         used by the UNAME case.  Reported by Bruno Haible
61826         <bruno@clisp.org>.
61827
61828 2008-01-17  Eric Blake  <ebb9@byu.net>
61829
61830         Convert c-strcasestr to be more efficient.
61831         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61832         (Depends-on): Add c-strcase, remove malloca, strnlen.
61833         * tests/test-c-strcasestr.c (main): Enhance test.
61834         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61835
61836 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61837
61838         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61839         Use it in creating po/Makevars.
61840
61841 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61842
61843         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61844         Applications that requires it should initialize libgcrypt
61845         manually.
61846
61847 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61848
61849         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61850
61851 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61852
61853         Fix problem with getdate on mingw32 reported by Simon Josefsson
61854         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61855         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61856         tzname", when deciding whether to declare tzname.
61857         * lib/strftime.c (tzname): Likewise.
61858
61859 2008-01-15  Bruno Haible  <bruno@clisp.org>
61860
61861         Work around a MacOS X 10.5 bug in frexpl().
61862         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61863         * doc/functions/frexpl.texi: Document the bug.
61864         Reported by Elias Pipping <pipping@gentoo.org>.
61865
61866 2008-01-14  Eric Blake  <ebb9@byu.net>
61867
61868         Touch up previous patch.
61869         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61870         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61871
61872         Convert strcasestr module to use Two-Way algorithm.
61873         * modules/strcasestr-simple: New module, based on the old
61874         strcasestr, but with Two-Way rather than KMP.
61875         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61876         * lib/string.in.h (rpl_strcasestr): Declare.
61877         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61878         performance.
61879         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61880         * modules/string (Makefile.am): Support strcasestr.
61881         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61882         * modules/strcasestr-tests (Depends-on): Check for alarm.
61883         * tests/test-strcasestr.c: Augment test.
61884         * lib/str-two-way.h: Clean up stray macro.
61885         * NEWS: Document new module.
61886         * MODULES.html.sh (string handling): Likewise.
61887         * doc/functions/strcasestr.texi: New file.
61888         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61889         here, since it is not a POSIX function.
61890
61891 2008-01-14  Colin Watson  <cjwatson@debian.org>
61892             Bruno Haible  <bruno@clisp.org>
61893
61894         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61895         works fine; if not, set REPLACE_STRSIGNAL.
61896         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61897         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61898         REPLACE_STRSIGNAL.
61899         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61900         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61901         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61902
61903 2008-01-14  Bruno Haible  <bruno@clisp.org>
61904
61905         * modules/strsignal (Include): Change to <string.h>.
61906
61907 2008-01-14  Colin Watson  <cjwatson@debian.org>
61908
61909         * modules/argp (Notice): Add a notice recommending to change
61910         XGETTEXT_OPTIONS.
61911         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61912
61913 2008-01-13  Colin Watson  <cjwatson@debian.org>
61914
61915         * modules/strsignal-tests: New file.
61916         * tests/test-strsignal.c: New file.
61917
61918         * lib/strsignal.c: New file, from glibc with modifications.
61919         * lib/siglist.h: New file, from glibc with modifications.
61920         * lib/string.in.h (strsignal): New declaration.
61921         * m4/strsignal.m4: New file.
61922         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61923         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61924         * modules/strsignal: New file.
61925         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61926         HAVE_DECL_STRSIGNAL.
61927
61928 2008-01-13  Bruno Haible  <bruno@clisp.org>
61929
61930         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61931         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61932         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61933         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61934
61935 2008-01-13  Bruno Haible  <bruno@clisp.org>
61936
61937         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61938         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61939         * lib/argp.h (__attribute__): Likewise.
61940         * lib/c-stack.c (__attribute__): Likewise.
61941         * lib/error.h (__attribute__): Likewise.
61942         * lib/fts.c (__attribute__): Likewise.
61943         * lib/openat.h (__attribute__): Likewise.
61944         * lib/stdio.in.h (__attribute__): Likewise.
61945         * lib/string.in.h (__attribute__): Likewise.
61946         * lib/utimens.c (__attribute__): Likewise.
61947         * lib/vasnprintf.h (__attribute__): Likewise.
61948         * lib/xalloc.h (__attribute__): Likewise.
61949         * lib/xprintf.h (__attribute__): Likewise.
61950         * lib/xstrtol.h (__attribute__): Likewise.
61951         * lib/xvasprintf.h (__attribute__): Likewise.
61952
61953 2008-01-12  Bruno Haible  <bruno@clisp.org>
61954
61955         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61956         * doc/glibc-headers/a.out.texi: New file.
61957         * doc/glibc-headers/aliases.texi: New file.
61958         * doc/glibc-headers/alloca.texi: New file.
61959         * doc/glibc-headers/ar.texi: New file.
61960         * doc/glibc-headers/argp.texi: New file.
61961         * doc/glibc-headers/argz.texi: New file.
61962         * doc/glibc-headers/byteswap.texi: New file.
61963         * doc/glibc-headers/crypt.texi: New file.
61964         * doc/glibc-headers/endian.texi: New file.
61965         * doc/glibc-headers/envz.texi: New file.
61966         * doc/glibc-headers/err.texi: New file.
61967         * doc/glibc-headers/error.texi: New file.
61968         * doc/glibc-headers/execinfo.texi: New file.
61969         * doc/glibc-headers/fpu_control.texi: New file.
61970         * doc/glibc-headers/fstab.texi: New file.
61971         * doc/glibc-headers/fts.texi: New file.
61972         * doc/glibc-headers/getopt.texi: New file.
61973         * doc/glibc-headers/ieee754.texi: New file.
61974         * doc/glibc-headers/ifaddrs.texi: New file.
61975         * doc/glibc-headers/libintl.texi: New file.
61976         * doc/glibc-headers/mcheck.texi: New file.
61977         * doc/glibc-headers/mntent.texi: New file.
61978         * doc/glibc-headers/obstack.texi: New file.
61979         * doc/glibc-headers/paths.texi: New file.
61980         * doc/glibc-headers/printf.texi: New file.
61981         * doc/glibc-headers/pty.texi: New file.
61982         * doc/glibc-headers/resolv.texi: New file.
61983         * doc/glibc-headers/shadow.texi: New file.
61984         * doc/glibc-headers/sysexits.texi: New file.
61985         * doc/glibc-headers/ttyent.texi: New file.
61986
61987 2008-01-12  Jim Meyering  <meyering@redhat.com>
61988
61989         announce-gen: emit Gnulib's git-based version string.
61990         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61991         New option --gnulib-version=V, where V is expected to be
61992         the output of running git describe in the gnulib directory.
61993         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61994         not useful, and plan to stop publishing an xdelta file with each
61995         coreutils release.
61996
61997         * build-aux/announce-gen: Also check for lzma-compressed files.
61998
61999 2008-01-11  Bruno Haible  <bruno@clisp.org>
62000
62001         * tests/test-memmem.c (main): Increase maximum allowed time.
62002         * tests/test-strstr.c (main): Likewise.
62003
62004 2008-01-11  Bruno Haible  <bruno@clisp.org>
62005
62006         * doc/functions/memmem.texi: Add more precisions about platforms.
62007         * doc/functions/strstr.texi: Likewise.
62008
62009 2008-01-10  Eric Blake  <ebb9@byu.net>
62010
62011         * m4/strstr.m4: Delete cruft from copy-n-paste.
62012         Reported by Bruno Haible.
62013
62014 2008-01-10  Bruno Haible  <bruno@clisp.org>
62015
62016         Make c-strstr rely on strstr.
62017         * lib/c-strstr.c: Don't include str-kmp.h.
62018         (c_strstr): Define in terms of strstr.
62019         * modules/c-strstr (Files): Remove lib/str-kmp.h.
62020         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
62021
62022 2008-01-10  Bruno Haible  <bruno@clisp.org>
62023
62024         * doc/gnulib.texi (String Functions in C Locale): New section.
62025         * doc/c-ctype.texi: New file.
62026         * doc/c-strcase.texi: New file.
62027         * doc/c-strcaseeq.texi: New file.
62028         * doc/c-strcasestr.texi: New file.
62029         * doc/c-strstr.texi: New file.
62030         * doc/c-strtod.texi: New file.
62031         * doc/c-strtold.texi: New file.
62032
62033 2008-01-10  Eric Blake  <ebb9@byu.net>
62034
62035         * lib/relocatable.h: Fix a comment.
62036
62037 2008-01-10  Eric Blake  <ebb9@byu.net>
62038
62039         Share two-way algorithm.
62040         * lib/str-two-way.h: New file, merged from...
62041         * lib/memmem.c: ...here...
62042         * lib/strstr.c: ...and here.
62043         * modules/memmem (Files): Use it.
62044         * modules/strstr (Files): Likewise.
62045
62046         Avoid quadratic strstr implementations.
62047         * lib/strstr.c: New file.
62048         * m4/strstr.m4: Likewise.
62049         * modules/strstr: Likewise.
62050         * modules/strstr-tests: Likewise.
62051         * tests/test-strstr.c: Likewise.
62052         * lib/string.in.h (rpl_strstr): Declare.
62053         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
62054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
62055         * modules/string (Makefile.am): Likewise.
62056         * MODULES.html.sh (string handling): Mention new module.
62057         * doc/functions/strstr.texi (strstr): Document the bug.
62058
62059 2008-01-10  Bruno Haible  <bruno@clisp.org>
62060
62061         * lib/relocatable.h (relocate): State whether result is freshly
62062         allocated or not.
62063         * lib/relocatable.c (relocate): Return a freshly allocated string
62064         instead of a pointer to a privately held string.
62065         Reported by Sylvain Beucler <beuc@gnu.org>.
62066
62067 2008-01-10  Colin Watson  <cjwatson@debian.org>
62068
62069         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
62070         s/S_ISNLK/S_ISLNK/.
62071
62072 2008-01-09  Bruno Haible  <bruno@clisp.org>
62073
62074         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
62075         and other files.
62076         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
62077         if it's only a guess.
62078         * modules/memmem: Simplify by depending on memmem-simple.
62079
62080 2008-01-09  Bruno Haible  <bruno@clisp.org>
62081
62082         Work around OpenBSD 4.0 tdelete() bug.
62083         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
62084         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
62085         macros and don't redefine the enum values.
62086         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
62087         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
62088         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
62089
62090 2008-01-09  Bruno Haible  <bruno@clisp.org>
62091
62092         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
62093         (main): Don't perform the tests if setlocale did not install a UTF-8
62094         locale. Needed on OpenBSD 4.0.
62095         * modules/wcwidth-tests (Depends-on): Add localcharset.
62096
62097 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
62098
62099         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
62100         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
62101         * NEWS: announce this.
62102         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
62103
62104 2008-01-09  Simon Josefsson  <simon@josefsson.org>
62105         and Eric Blake  <ebb9@byu.net>
62106
62107         Add memmem-simple module.
62108         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
62109         (gl_FUNC_MEMMEM): Separate performance from presence checks.
62110         * modules/memmem-simple: New file.
62111         * modules/memmem (Description): Tweak.
62112         * MODULES.html.sh (string handling): Mention new module.
62113         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
62114         addressed by memmem-simple.
62115         * NEWS: Document the difference.
62116
62117 2008-01-09  Eric Blake  <ebb9@byu.net>
62118
62119         Give gcc some memmem optimization hints.
62120         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
62121         (strcasestr): Declare as pure.
62122         * modules/memmem (Maintainer): Claim my implementation.
62123
62124 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62125
62126         Support AIX 6.1 and higher.
62127         * build-aux/config.libpath: Likewise.
62128         * build-aux/config.rpath: Likewise.
62129
62130 2008-01-08  Jim Meyering  <meyering@redhat.com>
62131             Bruno Haible  <bruno@clisp.org>
62132
62133         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
62134         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
62135         Reported by Peter Fales in
62136         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
62137
62138 2008-01-08  Bruno Haible  <bruno@clisp.org>
62139
62140         * modules/unictype/category-of (Depends-on): Add
62141         unictype/category-none.
62142         * modules/unictype/category-and-tests (Depends-on): Add
62143         unictype/category-{L,N,Lu,Nd}.
62144         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
62145         * modules/unictype/category-or-tests (Depends-on): Add
62146         unictype/category-{L,N}.
62147         * modules/unictype/category-name-tests (Depends-on): Add
62148         unictype/category-{Z,Nl}.
62149         Reported by Simon Josefsson.
62150
62151 2008-01-08  Bruno Haible  <bruno@clisp.org>
62152
62153         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
62154         convention better.
62155         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
62156         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
62157         Reported by Peter Miller <millerp@canb.auug.org.au>.
62158
62159 2008-01-08  Eric Blake  <ebb9@byu.net>
62160
62161         Rewrite memmem to guarantee linear complexity without malloc.
62162         * lib/memmem.c (memmem): Use Two-Way rather than
62163         Knuth-Morris-Pratt, to allow O(1) space usage.
62164         (critical_factorization, two_way_short_needle)
62165         (two_way_long_needle): New functions.
62166         (knuth_morris_pratt): Delete.
62167         * modules/memmem (Depends-on): No longer need malloca or stdbool.
62168         Add stdint.
62169         * tests/test-memmem.c (main): Add tests for periodic needle and
62170         sublinear performance.
62171         * doc/functions/memmem.texi (memmem): Document other deficiencies
62172         in cygwin and older glibc.
62173
62174 2008-01-08  Bruno Haible  <bruno@clisp.org>
62175
62176         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
62177         augmentation.
62178
62179 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
62180
62181         Add a configure time option: --disable-acl.
62182         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
62183         AC_ARG_ENABLE(acl).
62184
62185 2008-01-06  Simon Josefsson  <simon@josefsson.org>
62186
62187         * tests/test-localename.c: Don't include obsolete "setenv.h".
62188
62189         * modules/localename-tests (Depends-on): Need unsetenv.
62190
62191 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62192
62193         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
62194
62195 2008-01-06  Colin Watson  <cjwatson@debian.org>
62196
62197         * users.txt: Add man-db.
62198
62199 2008-01-07  Bruno Haible  <bruno@clisp.org>
62200
62201         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
62202         previous section name.
62203
62204 2008-01-07  Bruno Haible  <bruno@clisp.org>
62205
62206         * lib/progname.c (set_program_name): Don't strip off a leading
62207         "lt-" prefix outside a .libs directory.
62208         Suggested by Paul Eggert.
62209
62210 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
62211             Bruno Haible  <bruno@clisp.org>
62212
62213         Improve memory cleanup in 'relocatable' module.
62214         * lib/relocatable.h (compute_curr_prefix): Change return type to
62215         'char *'.
62216         * lib/relocatable.c (compute_curr_prefix): Change return type to
62217         'char *'. Free curr_installdir after use.
62218         (relocate): Free curr_prefix_better after use.
62219         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
62220
62221 2008-01-01  Bruno Haible  <bruno@clisp.org>
62222
62223         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
62224         failure on older glibc systems.
62225         Reported by Peter Fales <psfales@alcatel-lucent.com>.
62226
62227 2008-01-05  Eric Blake  <ebb9@byu.net>
62228
62229         Avoid quadratic system memmem.
62230         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
62231         Reported by Ralf Wildenhues.
62232
62233         Fix memmem test for mingw.
62234         * modules/memmem-tests (configure.ac): Check for alarm.
62235         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
62236         it.
62237         * doc/functions/memmem.texi: New file.
62238         * doc/gnulib.texi (Function Substitutes): Add memmem.
62239         Reported by Bruno Haible.
62240
62241 2008-01-04  Bruno Haible  <bruno@clisp.org>
62242
62243         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
62244         Require gl_HEADER_STRINGS_H_DEFAULTS, not
62245         gl_HEADER_STRING_H_DEFAULTS.
62246
62247 2008-01-04  Eric Blake  <ebb9@byu.net>
62248
62249         Shorten duration of memmem test.
62250         * tests/test-memmem.c (main): Use alarm to declare failure if test
62251         is taking too long.
62252         Reported by Ralf Wildenhues.
62253
62254 2007-12-21  Simon Josefsson  <simon@josefsson.org>
62255
62256         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
62257         string, needed by strerror.
62258
62259 2008-01-03  Colin Watson  <cjwatson@debian.org>
62260             Bruno Haible  <bruno@clisp.org>
62261
62262         * doc/gnulib-tool.texi (Localization): New section.
62263
62264 2008-01-02  Bruno Haible  <bruno@clisp.org>
62265
62266         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
62267         variables to 'unsigned char *' type.
62268         Reported by Paul Eggert.
62269
62270 2008-01-02  Jim Meyering  <jim@meyering.net>
62271
62272         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
62273
62274 2007-12-31  Jim Meyering  <jim@meyering.net>
62275
62276         Avoid use of private FTS type name.
62277         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
62278
62279 2007-12-30  Karl Berry  <karl@gnu.org>
62280
62281         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
62282         work around defect in Texinfo and/or the standalone Info browser.
62283
62284 2007-12-30  Bruno Haible  <bruno@clisp.org>
62285
62286         Unify 5 copies of the KMP code.
62287         * lib/str-kmp.h: New file.
62288         * lib/c-strcasestr.c: Include str-kmp.h.
62289         (knuth_morris_pratt): Remove function.
62290         (c_strcasestr): Update.
62291         * lib/c-strstr.c: Include str-kmp.h.
62292         (knuth_morris_pratt): Remove function.
62293         (c_strcasestr): Update.
62294         * lib/mbscasestr.c: Include str-kmp.h.
62295         (knuth_morris_pratt_unibyte): Remove function.
62296         * lib/mbsstr.c: Include str-kmp.h.
62297         (knuth_morris_pratt_unibyte): Remove function.
62298         * lib/strcasestr.c: Include str-kmp.h.
62299         (knuth_morris_pratt): Remove function.
62300         (strcasestr): Update.
62301         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
62302         * modules/c-strstr (Files): Likewise.
62303         * modules/mbscasestr (Files): Likewise.
62304         * modules/mbsstr (Files): Likewise.
62305         * modules/strcasestr (Files): Likewise.
62306         Suggested by Paul Eggert.
62307
62308 2007-12-30  Bruno Haible  <bruno@clisp.org>
62309
62310         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
62311         defined.
62312
62313 2007-12-30  Bruno Haible  <bruno@clisp.org>
62314
62315         * lib/xmalloca.h: Include xalloc.h.
62316         (xnmalloca): New macro.
62317
62318 2007-12-30  Bruno Haible  <bruno@clisp.org>
62319
62320         * lib/malloca.h (nmalloca): New macro.
62321         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
62322         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
62323         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
62324         knuth_morris_pratt_multibyte): Likewise.
62325         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
62326         knuth_morris_pratt_multibyte): Likewise.
62327         * lib/memmem.c (knuth_morris_pratt): Likewise.
62328         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
62329
62330 2007-12-25  Bruno Haible  <bruno@clisp.org>
62331
62332         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
62333         * lib/glob.c: Don't include openat.h.
62334         (link_exists2_p): Add back the code that deals with the
62335         !GLOB_ALTDIRFUNC case.
62336         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
62337         let it do the filename concatenation.
62338         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
62339         * modules/glob (Depends-on): Remove openat.
62340
62341 2007-12-31  Bruno Haible  <bruno@clisp.org>
62342
62343         * modules/dirfd (License): Change to LGPLv2+.
62344         Approved by Jim Meyering.
62345
62346 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62347
62348         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
62349         when multiplying M by sizeof (size_t).
62350
62351 2007-12-10  Martin Lambers  <marlam@marlam.de>
62352
62353         Override getpagesize on mingw.
62354         * lib/getpagesize.c: New file.
62355         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
62356         * modules/getpagesize (Files): Add lib/getpagesize.c.
62357         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
62358         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62359         REPLACE_GETPAGESIZE.
62360         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
62361
62362 2007-12-25  Bruno Haible  <bruno@clisp.org>
62363
62364         * modules/localcharset (Notice): New field.
62365         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
62366         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
62367
62368 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62369             Bruno Haible  <bruno@clisp.org>
62370
62371         Avoid using the syntax symbol() in formatted documentation.
62372         * MODULES.html.sh (func_module): When replacing symbol() with a
62373         hyperlink, remove the parentheses. Show an error if some remain.
62374         Recognize and render the '...' syntax.
62375         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
62376         Rework. Add paragraph about GCC's inlining.
62377         * doc/alloca.texi: Likewise.
62378         * doc/error.texi: Remove parentheses from symbol reference.
62379         * doc/gnulib-intro.texi: Likewise.
62380         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
62381         * modules/fnmatch (Description): Reword to say "the ... function".
62382         * modules/full-read (Description): Likewise.
62383         * modules/full-write (Description): Likewise.
62384         * modules/safe-read (Description): Likewise.
62385         * modules/safe-write (Description): Likewise.
62386         * modules/strchrnul (Description): Likewise.
62387         * modules/trim (Description): Likewise.
62388         * modules/error (Description): Remove parentheses from symbol
62389         references.
62390         * modules/verror (Description): Likewise.
62391         Reported by Karl Berry.
62392
62393 2007-12-25  Bruno Haible  <bruno@clisp.org>
62394
62395         Fixup after 2007-10-16 commit.
62396         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
62397
62398 2007-12-24  Bruno Haible  <bruno@clisp.org>
62399
62400         Make --enable-relocatable work with DESTDIR.
62401         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
62402         to compute installdir from destprog.
62403         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
62404         also set the RELOC_DESTDIR variable.
62405         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62406
62407 2007-12-24  Bruno Haible  <bruno@clisp.org>
62408
62409         Fix link error due to xalloc_die().
62410         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
62411         of xreadlink.
62412         * lib/relocwrapper.c: Update comments.
62413         * build-aux/install-reloc: Remove xreadlink.c from file list.
62414         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
62415         xreadlink.c.
62416         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62417
62418 2007-12-24  Bruno Haible  <bruno@clisp.org>
62419
62420         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
62421         * lib/setenv.h: Remove file.
62422         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
62423         lib/setenv.h.
62424         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
62425         (Depends-on): Add stdlib.
62426         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
62427         gl_FUNC_UNSETENV.
62428         (Include): Replace setenv.h with <stdlib.h>.
62429         * modules/unsetenv: New file.
62430         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
62431         * lib/unsetenv.c: Include <stdlib.h> first.
62432         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
62433         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
62434         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
62435         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
62436         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
62437         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62438         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
62439         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
62440         * doc/functions/unsetenv.texi: Update.
62441         * modules/xsetenv (Depends-on): Add unsetenv.
62442         * modules/getdate (Depends-on): Likewise.
62443         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
62444         * lib/xsetenv.c: Don't include setenv.h.
62445         * lib/getdate.y: Likewise.
62446         * lib/relocwrapper.c: Likewise.
62447         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
62448         (Depends-on): Add stdlib.
62449         * NEWS: Mention the changes.
62450         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
62451
62452 2007-12-23  Bruno Haible  <bruno@clisp.org>
62453
62454         * lib/memmem.c (memmem): Use lowercase variable names. Tab
62455         indentation.
62456
62457 2007-12-23  Bruno Haible  <bruno@clisp.org>
62458
62459         * lib/c-strcasestr.c: Add more comments.
62460         * lib/c-strstr.c: Likewise.
62461         * lib/mbscasestr.c: Likewise.
62462         * lib/mbsstr.c: Likewise.
62463         * lib/strcasestr.c: Likewise.
62464         * lib/memmem.c: Likewise.
62465
62466 2007-12-23  Bruno Haible  <bruno@clisp.org>
62467
62468         * tests/test-memmem.c: Include <string.h> first.
62469
62470 2007-12-22  Bruno Haible  <bruno@clisp.org>
62471
62472         * gnulib-tool (func_create_testdir): Change $auxdir while generating
62473         the contents of $testsbase.
62474         Reported by Ralf Wildenhues.
62475
62476 2007-12-22  Bruno Haible  <bruno@clisp.org>
62477
62478         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
62479         two variables local_ldadd_before, local_ldadd_last.
62480
62481 2007-12-20  Eric Blake  <ebb9@byu.net>
62482
62483         Work around circular library issue when cross-compiling.
62484         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
62485         that progname.o does not need to pull in rpl_memcmp.
62486
62487 2007-12-19  Eric Blake  <ebb9@byu.net>
62488
62489         Fix memmem to avoid O(n^2) worst-case complexity.
62490         * lib/memmem.c (knuth_morris_pratt): New function.
62491         (memmem): Use it if first few naive iterations fail.
62492         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
62493         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
62494         * modules/memchr (License): Likewise.
62495         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
62496         malloca.
62497         * tests/test-memmem.c: Rewrite, borrowing ideas from
62498         test-mbsstr1.c; the old version wouldn't even compile!
62499         * modules/memmem-tests: New file.
62500         * lib/string.in.h (rpl_memmem): Add declaration.
62501         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
62502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
62503         REPLACE_MEMMEM.
62504
62505 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62506
62507         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
62508         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
62509         before any system include files, and undef after them all.  This
62510         should fix a problem on VMS reported by John E. Malmberg in
62511         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
62512
62513 2007-12-17  Eric Blake  <ebb9@byu.net>
62514
62515         Revert addition of verify, for BSD/OS.
62516         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
62517         can't handle large files, for the sake of obsolete platforms.
62518         * modules/fseeko (Depends-on): Remove verify.
62519         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
62520         * doc/functions/ftello.texi (ftello): Likewise.
62521         * doc/functions/fgetpos.texi (fgetpos): Likewise.
62522         Reported by Larry Jones.
62523
62524 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
62525
62526         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
62527         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
62528
62529 2007-12-17  Jim Meyering  <meyering@redhat.com>
62530
62531         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
62532         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
62533         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
62534         * modules/getcwd (Depends-on): Add openat.
62535         Reported by Petr Salinger.
62536
62537 2007-12-17  Bruno Haible  <bruno@clisp.org>
62538
62539         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
62540         avoid a segmentation fault of the configure test on x86_64 systems.
62541
62542 2007-12-15  Jim Meyering  <meyering@redhat.com>
62543
62544         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
62545
62546 2007-12-13  Eric Blake  <ebb9@byu.net>
62547
62548         Another fseek test.
62549         * tests/test-fseek.c (main): Also test ungetc handling.
62550         * tests/test-fseeko.c (main): Likewise.
62551         * modules/fseeko (Depends-on): Add verify.
62552         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
62553         large.
62554         Reported by Larry Jones.
62555
62556         Fix fseeko on mingw.
62557         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
62558         seek.
62559
62560         Beef up fseek tests.
62561         * tests/test-fseek.c (main): Also test eof handling.
62562         * tests/test-fseeko.c (main): Likewise.
62563         Reported by Larry Jones.
62564
62565 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
62566
62567         Fix fseeko on BSD-based platforms.
62568         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
62569         successful seek.
62570
62571 2007-12-12  Eric Blake  <ebb9@byu.net>
62572
62573         Allow circular dependency of separate libtests.a
62574         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
62575         when use_libtests.
62576
62577 2007-12-11  Eric Blake  <ebb9@byu.net>
62578
62579         Fix bug with -0.0L in previous patch.
62580         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
62581         * tests/test-isnan.c (main): Also test on zeroes.
62582         * tests/test-isnanf.c (main): Likewise.
62583         * tests/test-isnanl.h (main): Likewise.
62584
62585         Detect pseudo-denormals on x86 even when cross-compiling.
62586         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
62587         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
62588         invalid bit patterns that happen to satisfy ==.
62589
62590         Avoid link failures with separate libtests.a.
62591         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
62592         last, to satisfy circular dependencies.
62593
62594 2007-12-11  Eric Blake  <ebb9@byu.net>
62595         and Bruno Haible  <bruno@clisp.org>
62596
62597         Fix OpenBSD 4.0 <float.h> handling of long double.
62598         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
62599         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
62600         * doc/headers/float.texi (float.h): Document OpenBSD bug.
62601
62602 2007-12-11  Jim Meyering  <meyering@redhat.com>
62603
62604         * users.txt: Add libvirt.
62605
62606         Support versions of autoconf prior to 2.59c.
62607         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
62608         if it is not already defined.
62609
62610 2007-12-09  Bruno Haible  <bruno@clisp.org>
62611
62612         Let 'gnulib-tool --import' collect sources needed for the tests in
62613         tests/ rather than in lib/.
62614         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
62615         argument. If true, add rules to generate libtests.a, and put libtests.a
62616         into $(LDADD). Consider source files in subdirectories and set
62617         uses_subdirs.
62618         (func_emit_initmacro_start, func_emit_initmacro_end,
62619         func_emit_initmacro_done): Pass all arguments explicitly.
62620         (func_import): Determine two module lists main_modules,
62621         testsrelated_modules. Determine use_libtests. Determine two variables
62622         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
62623         instead of just sed_transform_lib_file. Determine two variables
62624         main_files and testsrelated_files. Compute 'files' as the union of
62625         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
62626         func_add_or_update. In the generated gnulib-comp.m4, collect the
62627         object files for tests/ in different variables than those for lib/.
62628         Substitute LIBTESTS_LIBDEPS.
62629         (func_create_testdir): Combine the uses_subdirs results from
62630         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
62631
62632 2007-12-09  Bruno Haible  <bruno@clisp.org>
62633
62634         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
62635         the build-aux directory.
62636
62637 2007-12-09  Bruno Haible  <bruno@clisp.org>
62638
62639         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
62640         introduced on 2006-09-09.
62641
62642 2007-12-07  Jim Meyering  <meyering@redhat.com>
62643
62644         Let these macros work also with autoconf-2.59.
62645         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
62646         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
62647         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62648
62649 2007-12-06  Jim Meyering  <meyering@redhat.com>
62650
62651         Avoid a configure-time syntax error in gl_FUNC_ACL.
62652         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
62653         function in each branch, before testing the cache variable.
62654
62655 2007-12-04  Eric Blake  <ebb9@byu.net>
62656
62657         Make scripts executable.
62658         * build-aux/config.guess: Add execute permissions.
62659         * build-aux/config.sub: Likewise.
62660         * build-aux/gendocs.sh: Likewise.
62661
62662         Fix frexp on mingw.
62663         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
62664         cross-compiling.
62665         * doc/functions/frexp.texi (frexp): Document the bug.
62666
62667         Make cygwin fseeko check more reliable.
62668         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
62669         version numbers, rather than unrelated feature check.
62670         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
62671         * doc/functions/ftello.texi (ftello): Likewise.
62672         Reported by Bruno Haible.
62673
62674         * m4/strerror.m4: Bump version number.
62675
62676 2007-12-03  Bruno Haible  <bruno@clisp.org>
62677
62678         * doc/functions/mprotect.texi: Mention the mingw problem.
62679
62680 2007-12-03  Eric Blake  <ebb9@byu.net>
62681
62682         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
62683         REPLACE_STRERROR is initialized before this macro.
62684
62685 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62686
62687         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
62688         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
62689         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
62690         put -lsec in even for programs other than 'ls'.  This fixes a problem
62691         for gettext reported by Bruno Haible in
62692         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
62693         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
62694         Add support for Solaris 10.  This isn't efficient, but should get the
62695         job done for now.
62696
62697 2007-12-03  James Youngman  <jay@gnu.org>
62698
62699         * doc/regexprops-generic.texi: change "an close-group" to "a
62700         close-group" and "illegal" to "not allowed".
62701
62702 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62703
62704         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
62705         pr_byname.h. Needed for the rare case when the maintainer has done
62706         "make maintainer-clean" in the source directory and then attempts a
62707         build outside the source directory.
62708         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
62709         scripts_byname.h.
62710
62711 2007-12-02  Martin Lambers <marlam@marlam.de>
62712             Bruno Haible  <bruno@clisp.org>
62713
62714         * lib/getpagesize.h: Remove file.
62715         * lib/unistd.in.h: Include declaration of getpagesize here.
62716         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
62717         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
62718         HAVE_SYS_PARAM_H.
62719         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
62720         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62721         * modules/getpagesize (Files): Remove lib/getpagesize.h.
62722         (Depends-on): Add unistd.
62723         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
62724         (Include): Use <unistd.h> instead of getpagesize.h.
62725         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
62726         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
62727         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
62728         gl_GETPAGESIZE invocation, already handled by module dependency.
62729         * lib/pagealign_alloc.c: Don't include getpagesize.h.
62730
62731 2007-12-02  Bruno Haible  <bruno@clisp.org>
62732
62733         * modules/strings-tests: New file.
62734         * tests/test-strings.c: New file.
62735
62736         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
62737         * lib/strings.in.h: New file.
62738         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
62739         * m4/strings_h.m4: New file.
62740         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
62741         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
62742         * modules/strings: New file.
62743         * modules/string (Makefile.am): Update.
62744         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
62745         Reported by Karl Berry.
62746
62747 2007-12-01  Eric Blake  <ebb9@byu.net>
62748
62749         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
62750         accommodate fix in cygwin 1.5.25.
62751
62752 2007-12-01  Jim Meyering  <meyering@redhat.com>
62753
62754         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
62755         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
62756         that would inhibit utf8-optimization of a regexp containing line-
62757         or buffer-anchors, e.g., `^', `$'.
62758
62759 2007-11-30  Bruno Haible  <bruno@clisp.org>
62760
62761         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
62762         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
62763         glthread_recursive_lock_init.
62764         * lib/lock.c (glthread_recursive_lock_init)
62765         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
62766         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
62767
62768 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
62769
62770         New function qset_acl, like set_acl but with syscall semantics.
62771         * lib/acl.h (qset_acl): New decl.
62772         * lib/acl.c (qset_acl): New function.
62773         (set_acl): Use new function.  Use more-consistent diagnostics.
62774
62775 2007-11-28  Jim Meyering  <meyering@redhat.com>
62776
62777         * modules/physmem (License): Change from GPL to LGPLv2+.
62778
62779 2007-11-26  Bruno Haible  <bruno@clisp.org>
62780
62781         * lib/vasnprintf.c (decode_long_double): Don't abort if the
62782         'long double' type has excess precision.
62783         Reported by Jim Meyering in
62784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
62785
62786 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62787
62788         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
62789         Sync from <http://gnu.org/licenses>.
62790         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
62791         with license text from same location.
62792         * doc/maintain.texi, doc/standards.texi:  Sync from
62793         <http://savannah.gnu.org/projects/gnustandards>.
62794
62795 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
62796         and Jim Meyering  <meyering@redhat.com>
62797
62798         Adjust getdate' grammar to accept a slightly more regular language.
62799         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
62800         Before, the former was rejected.
62801         * lib/getdate.y (digits_to_date_time): New function, factored
62802         out of ...
62803         (number): ...here.  Just call digits_to_date_time.
62804         (hybrid): New non-terminal to handle an <unsigned number,
62805         signed relative offset> sequence consistently.
62806
62807 2007-11-18  Jim Meyering  <meyering@redhat.com>
62808
62809         Pull my changes from coreutils:
62810         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62811         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62812         use of $gnulib_tool_option_extras, so that it's separated from the
62813         preceding argument.
62814
62815         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62816         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62817         parent destination directories before copying a file into place.
62818
62819 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62820
62821         bootstrap: work also with 4-argument variant of AC_INIT
62822         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62823
62824 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62825
62826         Port test-getaddrinfo to Solaris.
62827         Problem reported by Bruno Haible in
62828         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62829         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62830         explanation of setting 'hints'.
62831         Don't reject an implementation merely because it returns EAI_SERVICE.
62832         (EAI_SERVICE): Define to 0 if not defined.
62833
62834 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62835
62836         The license of gnu-make and posix-shell is now "GPLed build tool".
62837         * modules/gnu-make (License): Likewise.
62838         * modules/posix-shell (License): Likewise.
62839
62840         New module posix-shell, for determining a POSIX shell
62841         or perhaps something that is close enough to a POSIX shell.
62842         * m4/posix-shell.m4: New file.
62843         * modules/posix-shell: New file.
62844
62845         * MODULES.html.sh: Mention new module.
62846
62847         New module gnu-make, for determining whether we're using GNU Make.
62848         * m4/gnu-make.m4: New file.
62849         * modules/gnu-make: New file.
62850         * MODULES.html.sh: Mention new module.
62851
62852 2007-11-14  Jim Meyering  <meyering@redhat.com>
62853
62854         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62855         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62856         use this macro to create a function _definition_.
62857         Remove useless "#undef ARGMATCH_DIE".
62858
62859 2007-11-14  Bruno Haible  <bruno@clisp.org>
62860
62861         * lib/config.charset: Update for OpenBSD 4.1.
62862         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62863
62864 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62865
62866         Document 64-bit #if problems in stdint.texi.
62867         * doc/headers/stdint.texi (stdint.h): Mention problems with
62868         64-bit-#if, and how to work around them.
62869
62870         Don't insist on 'long long int' support in the preprocessor.  It
62871         breaks too many things.  For example, PRIdMAX still uses a 'long
62872         long int' format with the latest Sun compiler, even though
62873         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62874         preprocessor problem.  This causes the latest coreutils to dump
62875         core on Solaris 10 sparc with the Sun C compiler.
62876         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62877         the troublesome expressions at configure-time, not at #if-time.
62878         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62879         preprocessor.
62880         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62881         compile-time C checks, done at 'configure'-time.
62882         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62883         * modules/inttypes (Makefile): Substitute the new symbols that
62884         gl_INTTYPES_H now generates.
62885         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62886
62887 2007-11-12  Bruno Haible  <bruno@clisp.org>
62888
62889         Tests for Unicode character classification functions.
62890
62891         * modules/unictype/bidicategory-byname-tests: New file.
62892         * modules/unictype/bidicategory-name-tests: New file.
62893         * modules/unictype/bidicategory-of-tests: New file.
62894         * modules/unictype/bidicategory-test-tests: New file.
62895         * modules/unictype/block-list-tests: New file.
62896         * modules/unictype/block-of-tests: New file.
62897         * modules/unictype/block-test-tests: New file.
62898         * modules/unictype/category-C-tests: New file.
62899         * modules/unictype/category-Cc-tests: New file.
62900         * modules/unictype/category-Cf-tests: New file.
62901         * modules/unictype/category-Cn-tests: New file.
62902         * modules/unictype/category-Co-tests: New file.
62903         * modules/unictype/category-Cs-tests: New file.
62904         * modules/unictype/category-L-tests: New file.
62905         * modules/unictype/category-Ll-tests: New file.
62906         * modules/unictype/category-Lm-tests: New file.
62907         * modules/unictype/category-Lo-tests: New file.
62908         * modules/unictype/category-Lt-tests: New file.
62909         * modules/unictype/category-Lu-tests: New file.
62910         * modules/unictype/category-M-tests: New file.
62911         * modules/unictype/category-Mc-tests: New file.
62912         * modules/unictype/category-Me-tests: New file.
62913         * modules/unictype/category-Mn-tests: New file.
62914         * modules/unictype/category-N-tests: New file.
62915         * modules/unictype/category-Nd-tests: New file.
62916         * modules/unictype/category-Nl-tests: New file.
62917         * modules/unictype/category-No-tests: New file.
62918         * modules/unictype/category-P-tests: New file.
62919         * modules/unictype/category-Pc-tests: New file.
62920         * modules/unictype/category-Pd-tests: New file.
62921         * modules/unictype/category-Pe-tests: New file.
62922         * modules/unictype/category-Pf-tests: New file.
62923         * modules/unictype/category-Pi-tests: New file.
62924         * modules/unictype/category-Po-tests: New file.
62925         * modules/unictype/category-Ps-tests: New file.
62926         * modules/unictype/category-S-tests: New file.
62927         * modules/unictype/category-Sc-tests: New file.
62928         * modules/unictype/category-Sk-tests: New file.
62929         * modules/unictype/category-Sm-tests: New file.
62930         * modules/unictype/category-So-tests: New file.
62931         * modules/unictype/category-Z-tests: New file.
62932         * modules/unictype/category-Zl-tests: New file.
62933         * modules/unictype/category-Zp-tests: New file.
62934         * modules/unictype/category-Zs-tests: New file.
62935         * modules/unictype/category-and-not-tests: New file.
62936         * modules/unictype/category-and-tests: New file.
62937         * modules/unictype/category-byname-tests: New file.
62938         * modules/unictype/category-name-tests: New file.
62939         * modules/unictype/category-none-tests: New file.
62940         * modules/unictype/category-of-tests: New file.
62941         * modules/unictype/category-or-tests: New file.
62942         * modules/unictype/category-test-withtable-tests: New file.
62943         * modules/unictype/combining-class-tests: New file.
62944         * modules/unictype/ctype-alnum-tests: New file.
62945         * modules/unictype/ctype-alpha-tests: New file.
62946         * modules/unictype/ctype-blank-tests: New file.
62947         * modules/unictype/ctype-cntrl-tests: New file.
62948         * modules/unictype/ctype-digit-tests: New file.
62949         * modules/unictype/ctype-graph-tests: New file.
62950         * modules/unictype/ctype-lower-tests: New file.
62951         * modules/unictype/ctype-print-tests: New file.
62952         * modules/unictype/ctype-punct-tests: New file.
62953         * modules/unictype/ctype-space-tests: New file.
62954         * modules/unictype/ctype-upper-tests: New file.
62955         * modules/unictype/ctype-xdigit-tests: New file.
62956         * modules/unictype/decimal-digit-tests: New file.
62957         * modules/unictype/digit-tests: New file.
62958         * modules/unictype/mirror-tests: New file.
62959         * modules/unictype/numeric-tests: New file.
62960         * modules/unictype/property-alphabetic-tests: New file.
62961         * modules/unictype/property-ascii-hex-digit-tests: New file.
62962         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62963         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62964         * modules/unictype/property-bidi-block-separator-tests: New file.
62965         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62966         * modules/unictype/property-bidi-common-separator-tests: New file.
62967         * modules/unictype/property-bidi-control-tests: New file.
62968         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62969         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62970         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62971         * modules/unictype/property-bidi-european-digit-tests: New file.
62972         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62973         * modules/unictype/property-bidi-left-to-right-tests: New file.
62974         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62975         * modules/unictype/property-bidi-other-neutral-tests: New file.
62976         * modules/unictype/property-bidi-pdf-tests: New file.
62977         * modules/unictype/property-bidi-segment-separator-tests: New file.
62978         * modules/unictype/property-bidi-whitespace-tests: New file.
62979         * modules/unictype/property-byname-tests: New file.
62980         * modules/unictype/property-combining-tests: New file.
62981         * modules/unictype/property-composite-tests: New file.
62982         * modules/unictype/property-currency-symbol-tests: New file.
62983         * modules/unictype/property-dash-tests: New file.
62984         * modules/unictype/property-decimal-digit-tests: New file.
62985         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62986         * modules/unictype/property-deprecated-tests: New file.
62987         * modules/unictype/property-diacritic-tests: New file.
62988         * modules/unictype/property-extender-tests: New file.
62989         * modules/unictype/property-format-control-tests: New file.
62990         * modules/unictype/property-grapheme-base-tests: New file.
62991         * modules/unictype/property-grapheme-extend-tests: New file.
62992         * modules/unictype/property-grapheme-link-tests: New file.
62993         * modules/unictype/property-hex-digit-tests: New file.
62994         * modules/unictype/property-hyphen-tests: New file.
62995         * modules/unictype/property-id-continue-tests: New file.
62996         * modules/unictype/property-id-start-tests: New file.
62997         * modules/unictype/property-ideographic-tests: New file.
62998         * modules/unictype/property-ids-binary-operator-tests: New file.
62999         * modules/unictype/property-ids-trinary-operator-tests: New file.
63000         * modules/unictype/property-ignorable-control-tests: New file.
63001         * modules/unictype/property-iso-control-tests: New file.
63002         * modules/unictype/property-join-control-tests: New file.
63003         * modules/unictype/property-left-of-pair-tests: New file.
63004         * modules/unictype/property-line-separator-tests: New file.
63005         * modules/unictype/property-logical-order-exception-tests: New file.
63006         * modules/unictype/property-lowercase-tests: New file.
63007         * modules/unictype/property-math-tests: New file.
63008         * modules/unictype/property-non-break-tests: New file.
63009         * modules/unictype/property-not-a-character-tests: New file.
63010         * modules/unictype/property-numeric-tests: New file.
63011         * modules/unictype/property-other-alphabetic-tests: New file.
63012         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
63013         * modules/unictype/property-other-grapheme-extend-tests: New file.
63014         * modules/unictype/property-other-id-continue-tests: New file.
63015         * modules/unictype/property-other-id-start-tests: New file.
63016         * modules/unictype/property-other-lowercase-tests: New file.
63017         * modules/unictype/property-other-math-tests: New file.
63018         * modules/unictype/property-other-uppercase-tests: New file.
63019         * modules/unictype/property-paired-punctuation-tests: New file.
63020         * modules/unictype/property-paragraph-separator-tests: New file.
63021         * modules/unictype/property-pattern-syntax-tests: New file.
63022         * modules/unictype/property-pattern-white-space-tests: New file.
63023         * modules/unictype/property-private-use-tests: New file.
63024         * modules/unictype/property-punctuation-tests: New file.
63025         * modules/unictype/property-quotation-mark-tests: New file.
63026         * modules/unictype/property-radical-tests: New file.
63027         * modules/unictype/property-sentence-terminal-tests: New file.
63028         * modules/unictype/property-soft-dotted-tests: New file.
63029         * modules/unictype/property-space-tests: New file.
63030         * modules/unictype/property-terminal-punctuation-tests: New file.
63031         * modules/unictype/property-test-tests: New file.
63032         * modules/unictype/property-titlecase-tests: New file.
63033         * modules/unictype/property-unassigned-code-value-tests: New file.
63034         * modules/unictype/property-unified-ideograph-tests: New file.
63035         * modules/unictype/property-uppercase-tests: New file.
63036         * modules/unictype/property-variation-selector-tests: New file.
63037         * modules/unictype/property-white-space-tests: New file.
63038         * modules/unictype/property-xid-continue-tests: New file.
63039         * modules/unictype/property-xid-start-tests: New file.
63040         * modules/unictype/property-zero-width-tests: New file.
63041         * modules/unictype/scripts-tests: New file.
63042         * modules/unictype/syntax-c-ident-tests: New file.
63043         * modules/unictype/syntax-c-whitespace-tests: New file.
63044         * modules/unictype/syntax-java-ident-tests: New file.
63045         * modules/unictype/syntax-java-whitespace-tests: New file.
63046         * tests/unictype/test-bidi_byname.c: New file.
63047         * tests/unictype/test-bidi_name.c: New file.
63048         * tests/unictype/test-bidi_of.c: New file.
63049         * tests/unictype/test-bidi_test.c: New file.
63050         * tests/unictype/test-block_list.c: New file.
63051         * tests/unictype/test-block_of.c: New file.
63052         * tests/unictype/test-block_test.c: New file.
63053         * tests/unictype/test-categ_and.c: New file.
63054         * tests/unictype/test-categ_and_not.c: New file.
63055         * tests/unictype/test-categ_byname.c: New file.
63056         * tests/unictype/test-categ_name.c: New file.
63057         * tests/unictype/test-categ_none.c: New file.
63058         * tests/unictype/test-categ_of.c: New file.
63059         * tests/unictype/test-categ_or.c: New file.
63060         * tests/unictype/test-categ_test_withtable.c: New file.
63061         * tests/unictype/test-combining.c: New file.
63062         * tests/unictype/test-decdigit.c: New file.
63063         * tests/unictype/test-digit.c: New file.
63064         * tests/unictype/test-mirror.c: New file.
63065         * tests/unictype/test-numeric.c: New file.
63066         * tests/unictype/test-pr_byname.c: New file.
63067         * tests/unictype/test-pr_test.c: New file.
63068         * tests/unictype/test-predicate-part1.h: New file.
63069         * tests/unictype/test-predicate-part2.h: New file.
63070         * tests/unictype/test-scripts.c: New file.
63071         * tests/unictype/test-sy_c_ident.c: New file.
63072         * tests/unictype/test-sy_java_ident.c: New file.
63073
63074         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
63075         for Unicode 5.0.0.
63076         * tests/unictype/test-categ_Cc.c: Likewise.
63077         * tests/unictype/test-categ_Cf.c: Likewise.
63078         * tests/unictype/test-categ_Cn.c: Likewise.
63079         * tests/unictype/test-categ_Co.c: Likewise.
63080         * tests/unictype/test-categ_Cs.c: Likewise.
63081         * tests/unictype/test-categ_L.c: Likewise.
63082         * tests/unictype/test-categ_Ll.c: Likewise.
63083         * tests/unictype/test-categ_Lm.c: Likewise.
63084         * tests/unictype/test-categ_Lo.c: Likewise.
63085         * tests/unictype/test-categ_Lt.c: Likewise.
63086         * tests/unictype/test-categ_Lu.c: Likewise.
63087         * tests/unictype/test-categ_M.c: Likewise.
63088         * tests/unictype/test-categ_Mc.c: Likewise.
63089         * tests/unictype/test-categ_Me.c: Likewise.
63090         * tests/unictype/test-categ_Mn.c: Likewise.
63091         * tests/unictype/test-categ_N.c: Likewise.
63092         * tests/unictype/test-categ_Nd.c: Likewise.
63093         * tests/unictype/test-categ_Nl.c: Likewise.
63094         * tests/unictype/test-categ_No.c: Likewise.
63095         * tests/unictype/test-categ_P.c: Likewise.
63096         * tests/unictype/test-categ_Pc.c: Likewise.
63097         * tests/unictype/test-categ_Pd.c: Likewise.
63098         * tests/unictype/test-categ_Pe.c: Likewise.
63099         * tests/unictype/test-categ_Pf.c: Likewise.
63100         * tests/unictype/test-categ_Pi.c: Likewise.
63101         * tests/unictype/test-categ_Po.c: Likewise.
63102         * tests/unictype/test-categ_Ps.c: Likewise.
63103         * tests/unictype/test-categ_S.c: Likewise.
63104         * tests/unictype/test-categ_Sc.c: Likewise.
63105         * tests/unictype/test-categ_Sk.c: Likewise.
63106         * tests/unictype/test-categ_Sm.c: Likewise.
63107         * tests/unictype/test-categ_So.c: Likewise.
63108         * tests/unictype/test-categ_Z.c: Likewise.
63109         * tests/unictype/test-categ_Zl.c: Likewise.
63110         * tests/unictype/test-categ_Zp.c: Likewise.
63111         * tests/unictype/test-categ_Zs.c: Likewise.
63112         * tests/unictype/test-ctype_alnum.c: Likewise.
63113         * tests/unictype/test-ctype_alpha.c: Likewise.
63114         * tests/unictype/test-ctype_blank.c: Likewise.
63115         * tests/unictype/test-ctype_cntrl.c: Likewise.
63116         * tests/unictype/test-ctype_digit.c: Likewise.
63117         * tests/unictype/test-ctype_graph.c: Likewise.
63118         * tests/unictype/test-ctype_lower.c: Likewise.
63119         * tests/unictype/test-ctype_print.c: Likewise.
63120         * tests/unictype/test-ctype_punct.c: Likewise.
63121         * tests/unictype/test-ctype_space.c: Likewise.
63122         * tests/unictype/test-ctype_upper.c: Likewise.
63123         * tests/unictype/test-ctype_xdigit.c: Likewise.
63124         * tests/unictype/test-decdigit.h: Likewise.
63125         * tests/unictype/test-digit.h: Likewise.
63126         * tests/unictype/test-numeric.h: Likewise.
63127         * tests/unictype/test-pr_alphabetic.c: Likewise.
63128         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
63129         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
63130         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
63131         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
63132         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
63133         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
63134         * tests/unictype/test-pr_bidi_control.c: Likewise.
63135         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
63136         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
63137         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
63138         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
63139         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
63140         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
63141         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
63142         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
63143         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
63144         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
63145         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
63146         * tests/unictype/test-pr_combining.c: Likewise.
63147         * tests/unictype/test-pr_composite.c: Likewise.
63148         * tests/unictype/test-pr_currency_symbol.c: Likewise.
63149         * tests/unictype/test-pr_dash.c: Likewise.
63150         * tests/unictype/test-pr_decimal_digit.c: Likewise.
63151         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
63152         * tests/unictype/test-pr_deprecated.c: Likewise.
63153         * tests/unictype/test-pr_diacritic.c: Likewise.
63154         * tests/unictype/test-pr_extender.c: Likewise.
63155         * tests/unictype/test-pr_format_control.c: Likewise.
63156         * tests/unictype/test-pr_grapheme_base.c: Likewise.
63157         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
63158         * tests/unictype/test-pr_grapheme_link.c: Likewise.
63159         * tests/unictype/test-pr_hex_digit.c: Likewise.
63160         * tests/unictype/test-pr_hyphen.c: Likewise.
63161         * tests/unictype/test-pr_id_continue.c: Likewise.
63162         * tests/unictype/test-pr_id_start.c: Likewise.
63163         * tests/unictype/test-pr_ideographic.c: Likewise.
63164         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
63165         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
63166         * tests/unictype/test-pr_ignorable_control.c: Likewise.
63167         * tests/unictype/test-pr_iso_control.c: Likewise.
63168         * tests/unictype/test-pr_join_control.c: Likewise.
63169         * tests/unictype/test-pr_left_of_pair.c: Likewise.
63170         * tests/unictype/test-pr_line_separator.c: Likewise.
63171         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
63172         * tests/unictype/test-pr_lowercase.c: Likewise.
63173         * tests/unictype/test-pr_math.c: Likewise.
63174         * tests/unictype/test-pr_non_break.c: Likewise.
63175         * tests/unictype/test-pr_not_a_character.c: Likewise.
63176         * tests/unictype/test-pr_numeric.c: Likewise.
63177         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
63178         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
63179         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
63180         * tests/unictype/test-pr_other_id_continue.c: Likewise.
63181         * tests/unictype/test-pr_other_id_start.c: Likewise.
63182         * tests/unictype/test-pr_other_lowercase.c: Likewise.
63183         * tests/unictype/test-pr_other_math.c: Likewise.
63184         * tests/unictype/test-pr_other_uppercase.c: Likewise.
63185         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
63186         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
63187         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
63188         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
63189         * tests/unictype/test-pr_private_use.c: Likewise.
63190         * tests/unictype/test-pr_punctuation.c: Likewise.
63191         * tests/unictype/test-pr_quotation_mark.c: Likewise.
63192         * tests/unictype/test-pr_radical.c: Likewise.
63193         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
63194         * tests/unictype/test-pr_soft_dotted.c: Likewise.
63195         * tests/unictype/test-pr_space.c: Likewise.
63196         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
63197         * tests/unictype/test-pr_titlecase.c: Likewise.
63198         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
63199         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
63200         * tests/unictype/test-pr_uppercase.c: Likewise.
63201         * tests/unictype/test-pr_variation_selector.c: Likewise.
63202         * tests/unictype/test-pr_white_space.c: Likewise.
63203         * tests/unictype/test-pr_xid_continue.c: Likewise.
63204         * tests/unictype/test-pr_xid_start.c: Likewise.
63205         * tests/unictype/test-pr_zero_width.c: Likewise.
63206         * tests/unictype/test-sy_c_whitespace.c: Likewise.
63207         * tests/unictype/test-sy_java_whitespace.c: Likewise.
63208
63209 2007-11-12  Bruno Haible  <bruno@clisp.org>
63210
63211         Unicode character classification functions.
63212         * lib/unictype.h: New file.
63213         * modules/unictype/base: New file.
63214         * modules/unictype/category-L: New file.
63215         * modules/unictype/category-Lu: New file.
63216         * modules/unictype/category-Ll: New file.
63217         * modules/unictype/category-Lt: New file.
63218         * modules/unictype/category-Lm: New file.
63219         * modules/unictype/category-Lo: New file.
63220         * modules/unictype/category-M: New file.
63221         * modules/unictype/category-Mn: New file.
63222         * modules/unictype/category-Mc: New file.
63223         * modules/unictype/category-Me: New file.
63224         * modules/unictype/category-N: New file.
63225         * modules/unictype/category-Nd: New file.
63226         * modules/unictype/category-Nl: New file.
63227         * modules/unictype/category-No: New file.
63228         * modules/unictype/category-P: New file.
63229         * modules/unictype/category-Pc: New file.
63230         * modules/unictype/category-Pd: New file.
63231         * modules/unictype/category-Ps: New file.
63232         * modules/unictype/category-Pe: New file.
63233         * modules/unictype/category-Pi: New file.
63234         * modules/unictype/category-Pf: New file.
63235         * modules/unictype/category-Po: New file.
63236         * modules/unictype/category-S: New file.
63237         * modules/unictype/category-Sm: New file.
63238         * modules/unictype/category-Sc: New file.
63239         * modules/unictype/category-Sk: New file.
63240         * modules/unictype/category-So: New file.
63241         * modules/unictype/category-Z: New file.
63242         * modules/unictype/category-Zs: New file.
63243         * modules/unictype/category-Zl: New file.
63244         * modules/unictype/category-Zp: New file.
63245         * modules/unictype/category-C: New file.
63246         * modules/unictype/category-Cc: New file.
63247         * modules/unictype/category-Cf: New file.
63248         * modules/unictype/category-Cs: New file.
63249         * modules/unictype/category-Co: New file.
63250         * modules/unictype/category-Cn: New file.
63251         * modules/unictype/category-or: New file.
63252         * modules/unictype/category-of: New file.
63253         * modules/unictype/category-test: New file.
63254         * modules/unictype/category-test-withtable: New file.
63255         * modules/unictype/category-byname: New file.
63256         * modules/unictype/category-none: New file.
63257         * modules/unictype/category-and: New file.
63258         * modules/unictype/category-and-not: New file.
63259         * modules/unictype/category-name: New file.
63260         * modules/unictype/combining-class: New file.
63261         * modules/unictype/category-all: New file.
63262         * modules/unictype/bidicategory-all: New file.
63263         * modules/unictype/bidicategory-byname: New file.
63264         * modules/unictype/bidicategory-name: New file.
63265         * modules/unictype/bidicategory-of: New file.
63266         * modules/unictype/bidicategory-test: New file.
63267         * modules/unictype/decimal-digit: New file.
63268         * modules/unictype/digit: New file.
63269         * modules/unictype/numeric: New file.
63270         * modules/unictype/mirror: New file.
63271         * modules/unictype/property-white-space: New file.
63272         * modules/unictype/property-alphabetic: New file.
63273         * modules/unictype/property-other-alphabetic: New file.
63274         * modules/unictype/property-not-a-character: New file.
63275         * modules/unictype/property-default-ignorable-code-point: New file.
63276         * modules/unictype/property-other-default-ignorable-code-point: New
63277         file.
63278         * modules/unictype/property-deprecated: New file.
63279         * modules/unictype/property-logical-order-exception: New file.
63280         * modules/unictype/property-variation-selector: New file.
63281         * modules/unictype/property-private-use: New file.
63282         * modules/unictype/property-unassigned-code-value: New file.
63283         * modules/unictype/property-uppercase: New file.
63284         * modules/unictype/property-other-uppercase: New file.
63285         * modules/unictype/property-lowercase: New file.
63286         * modules/unictype/property-other-lowercase: New file.
63287         * modules/unictype/property-titlecase: New file.
63288         * modules/unictype/property-soft-dotted: New file.
63289         * modules/unictype/property-id-start: New file.
63290         * modules/unictype/property-other-id-start: New file.
63291         * modules/unictype/property-id-continue: New file.
63292         * modules/unictype/property-other-id-continue: New file.
63293         * modules/unictype/property-xid-start: New file.
63294         * modules/unictype/property-xid-continue: New file.
63295         * modules/unictype/property-pattern-white-space: New file.
63296         * modules/unictype/property-pattern-syntax: New file.
63297         * modules/unictype/property-join-control: New file.
63298         * modules/unictype/property-grapheme-base: New file.
63299         * modules/unictype/property-grapheme-extend: New file.
63300         * modules/unictype/property-other-grapheme-extend: New file.
63301         * modules/unictype/property-grapheme-link: New file.
63302         * modules/unictype/property-bidi-control: New file.
63303         * modules/unictype/property-bidi-left-to-right: New file.
63304         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
63305         * modules/unictype/property-bidi-arabic-right-to-left: New file.
63306         * modules/unictype/property-bidi-european-digit: New file.
63307         * modules/unictype/property-bidi-eur-num-separator: New file.
63308         * modules/unictype/property-bidi-eur-num-terminator: New file.
63309         * modules/unictype/property-bidi-arabic-digit: New file.
63310         * modules/unictype/property-bidi-common-separator: New file.
63311         * modules/unictype/property-bidi-block-separator: New file.
63312         * modules/unictype/property-bidi-segment-separator: New file.
63313         * modules/unictype/property-bidi-whitespace: New file.
63314         * modules/unictype/property-bidi-non-spacing-mark: New file.
63315         * modules/unictype/property-bidi-boundary-neutral: New file.
63316         * modules/unictype/property-bidi-pdf: New file.
63317         * modules/unictype/property-bidi-embedding-or-override: New file.
63318         * modules/unictype/property-bidi-other-neutral: New file.
63319         * modules/unictype/property-hex-digit: New file.
63320         * modules/unictype/property-ascii-hex-digit: New file.
63321         * modules/unictype/property-ideographic: New file.
63322         * modules/unictype/property-unified-ideograph: New file.
63323         * modules/unictype/property-radical: New file.
63324         * modules/unictype/property-ids-binary-operator: New file.
63325         * modules/unictype/property-ids-trinary-operator: New file.
63326         * modules/unictype/property-zero-width: New file.
63327         * modules/unictype/property-space: New file.
63328         * modules/unictype/property-non-break: New file.
63329         * modules/unictype/property-iso-control: New file.
63330         * modules/unictype/property-format-control: New file.
63331         * modules/unictype/property-dash: New file.
63332         * modules/unictype/property-hyphen: New file.
63333         * modules/unictype/property-punctuation: New file.
63334         * modules/unictype/property-line-separator: New file.
63335         * modules/unictype/property-paragraph-separator: New file.
63336         * modules/unictype/property-quotation-mark: New file.
63337         * modules/unictype/property-sentence-terminal: New file.
63338         * modules/unictype/property-terminal-punctuation: New file.
63339         * modules/unictype/property-currency-symbol: New file.
63340         * modules/unictype/property-math: New file.
63341         * modules/unictype/property-other-math: New file.
63342         * modules/unictype/property-paired-punctuation: New file.
63343         * modules/unictype/property-left-of-pair: New file.
63344         * modules/unictype/property-combining: New file.
63345         * modules/unictype/property-composite: New file.
63346         * modules/unictype/property-decimal-digit: New file.
63347         * modules/unictype/property-numeric: New file.
63348         * modules/unictype/property-diacritic: New file.
63349         * modules/unictype/property-extender: New file.
63350         * modules/unictype/property-ignorable-control: New file.
63351         * modules/unictype/property-test: New file.
63352         * modules/unictype/property-byname: New file.
63353         * modules/unictype/property-all: New file.
63354         * modules/unictype/scripts: New file.
63355         * modules/unictype/scripts-all: New file.
63356         * modules/unictype/block-of: New file.
63357         * modules/unictype/block-test: New file.
63358         * modules/unictype/block-list: New file.
63359         * modules/unictype/block-all: New file.
63360         * modules/unictype/syntax-c-whitespace: New file.
63361         * modules/unictype/syntax-java-whitespace: New file.
63362         * modules/unictype/syntax-c-ident: New file.
63363         * modules/unictype/syntax-java-ident: New file.
63364         * modules/unictype/ctype-alnum: New file.
63365         * modules/unictype/ctype-alpha: New file.
63366         * modules/unictype/ctype-cntrl: New file.
63367         * modules/unictype/ctype-digit: New file.
63368         * modules/unictype/ctype-graph: New file.
63369         * modules/unictype/ctype-lower: New file.
63370         * modules/unictype/ctype-print: New file.
63371         * modules/unictype/ctype-punct: New file.
63372         * modules/unictype/ctype-space: New file.
63373         * modules/unictype/ctype-upper: New file.
63374         * modules/unictype/ctype-xdigit: New file.
63375         * modules/unictype/ctype-blank: New file.
63376         * lib/unictype/bidi_byname.c: New file.
63377         * lib/unictype/bidi_name.c: New file.
63378         * lib/unictype/bidi_of.c: New file.
63379         * lib/unictype/bidi_test.c: New file.
63380         * lib/unictype/bitmap.h: New file.
63381         * lib/unictype/block_test.c: New file.
63382         * lib/unictype/blocks.c: New file.
63383         * lib/unictype/categ_C.c: New file.
63384         * lib/unictype/categ_Cc.c: New file.
63385         * lib/unictype/categ_Cf.c: New file.
63386         * lib/unictype/categ_Cn.c: New file.
63387         * lib/unictype/categ_Co.c: New file.
63388         * lib/unictype/categ_Cs.c: New file.
63389         * lib/unictype/categ_L.c: New file.
63390         * lib/unictype/categ_Ll.c: New file.
63391         * lib/unictype/categ_Lm.c: New file.
63392         * lib/unictype/categ_Lo.c: New file.
63393         * lib/unictype/categ_Lt.c: New file.
63394         * lib/unictype/categ_Lu.c: New file.
63395         * lib/unictype/categ_M.c: New file.
63396         * lib/unictype/categ_Mc.c: New file.
63397         * lib/unictype/categ_Me.c: New file.
63398         * lib/unictype/categ_Mn.c: New file.
63399         * lib/unictype/categ_N.c: New file.
63400         * lib/unictype/categ_Nd.c: New file.
63401         * lib/unictype/categ_Nl.c: New file.
63402         * lib/unictype/categ_No.c: New file.
63403         * lib/unictype/categ_P.c: New file.
63404         * lib/unictype/categ_Pc.c: New file.
63405         * lib/unictype/categ_Pd.c: New file.
63406         * lib/unictype/categ_Pe.c: New file.
63407         * lib/unictype/categ_Pf.c: New file.
63408         * lib/unictype/categ_Pi.c: New file.
63409         * lib/unictype/categ_Po.c: New file.
63410         * lib/unictype/categ_Ps.c: New file.
63411         * lib/unictype/categ_S.c: New file.
63412         * lib/unictype/categ_Sc.c: New file.
63413         * lib/unictype/categ_Sk.c: New file.
63414         * lib/unictype/categ_Sm.c: New file.
63415         * lib/unictype/categ_So.c: New file.
63416         * lib/unictype/categ_Z.c: New file.
63417         * lib/unictype/categ_Zl.c: New file.
63418         * lib/unictype/categ_Zp.c: New file.
63419         * lib/unictype/categ_Zs.c: New file.
63420         * lib/unictype/categ_and.c: New file.
63421         * lib/unictype/categ_and_not.c: New file.
63422         * lib/unictype/categ_byname.c: New file.
63423         * lib/unictype/categ_name.c: New file.
63424         * lib/unictype/categ_none.c: New file.
63425         * lib/unictype/categ_of.c: New file.
63426         * lib/unictype/categ_or.c: New file.
63427         * lib/unictype/categ_test.c: New file.
63428         * lib/unictype/combining.c: New file.
63429         * lib/unictype/ctype_alnum.c: New file.
63430         * lib/unictype/ctype_alpha.c: New file.
63431         * lib/unictype/ctype_blank.c: New file.
63432         * lib/unictype/ctype_cntrl.c: New file.
63433         * lib/unictype/ctype_digit.c: New file.
63434         * lib/unictype/ctype_graph.c: New file.
63435         * lib/unictype/ctype_lower.c: New file.
63436         * lib/unictype/ctype_print.c: New file.
63437         * lib/unictype/ctype_punct.c: New file.
63438         * lib/unictype/ctype_space.c: New file.
63439         * lib/unictype/ctype_upper.c: New file.
63440         * lib/unictype/ctype_xdigit.c: New file.
63441         * lib/unictype/decdigit.c: New file.
63442         * lib/unictype/digit.c: New file.
63443         * lib/unictype/identsyntaxmap.h: New file.
63444         * lib/unictype/mirror.c: New file.
63445         * lib/unictype/numeric.c: New file.
63446         * lib/unictype/pr_alphabetic.c: New file.
63447         * lib/unictype/pr_ascii_hex_digit.c: New file.
63448         * lib/unictype/pr_bidi_arabic_digit.c: New file.
63449         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
63450         * lib/unictype/pr_bidi_block_separator.c: New file.
63451         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
63452         * lib/unictype/pr_bidi_common_separator.c: New file.
63453         * lib/unictype/pr_bidi_control.c: New file.
63454         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
63455         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
63456         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
63457         * lib/unictype/pr_bidi_european_digit.c: New file.
63458         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
63459         * lib/unictype/pr_bidi_left_to_right.c: New file.
63460         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
63461         * lib/unictype/pr_bidi_other_neutral.c: New file.
63462         * lib/unictype/pr_bidi_pdf.c: New file.
63463         * lib/unictype/pr_bidi_segment_separator.c: New file.
63464         * lib/unictype/pr_bidi_whitespace.c: New file.
63465         * lib/unictype/pr_byname.c: New file.
63466         * lib/unictype/pr_byname.gperf: New file.
63467         * lib/unictype/pr_combining.c: New file.
63468         * lib/unictype/pr_composite.c: New file.
63469         * lib/unictype/pr_currency_symbol.c: New file.
63470         * lib/unictype/pr_dash.c: New file.
63471         * lib/unictype/pr_decimal_digit.c: New file.
63472         * lib/unictype/pr_default_ignorable_code_point.c: New file.
63473         * lib/unictype/pr_deprecated.c: New file.
63474         * lib/unictype/pr_diacritic.c: New file.
63475         * lib/unictype/pr_extender.c: New file.
63476         * lib/unictype/pr_format_control.c: New file.
63477         * lib/unictype/pr_grapheme_base.c: New file.
63478         * lib/unictype/pr_grapheme_extend.c: New file.
63479         * lib/unictype/pr_grapheme_link.c: New file.
63480         * lib/unictype/pr_hex_digit.c: New file.
63481         * lib/unictype/pr_hyphen.c: New file.
63482         * lib/unictype/pr_id_continue.c: New file.
63483         * lib/unictype/pr_id_start.c: New file.
63484         * lib/unictype/pr_ideographic.c: New file.
63485         * lib/unictype/pr_ids_binary_operator.c: New file.
63486         * lib/unictype/pr_ids_trinary_operator.c: New file.
63487         * lib/unictype/pr_ignorable_control.c: New file.
63488         * lib/unictype/pr_iso_control.c: New file.
63489         * lib/unictype/pr_join_control.c: New file.
63490         * lib/unictype/pr_left_of_pair.c: New file.
63491         * lib/unictype/pr_line_separator.c: New file.
63492         * lib/unictype/pr_logical_order_exception.c: New file.
63493         * lib/unictype/pr_lowercase.c: New file.
63494         * lib/unictype/pr_math.c: New file.
63495         * lib/unictype/pr_non_break.c: New file.
63496         * lib/unictype/pr_not_a_character.c: New file.
63497         * lib/unictype/pr_numeric.c: New file.
63498         * lib/unictype/pr_other_alphabetic.c: New file.
63499         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
63500         * lib/unictype/pr_other_grapheme_extend.c: New file.
63501         * lib/unictype/pr_other_id_continue.c: New file.
63502         * lib/unictype/pr_other_id_start.c: New file.
63503         * lib/unictype/pr_other_lowercase.c: New file.
63504         * lib/unictype/pr_other_math.c: New file.
63505         * lib/unictype/pr_other_uppercase.c: New file.
63506         * lib/unictype/pr_paired_punctuation.c: New file.
63507         * lib/unictype/pr_paragraph_separator.c: New file.
63508         * lib/unictype/pr_pattern_syntax.c: New file.
63509         * lib/unictype/pr_pattern_white_space.c: New file.
63510         * lib/unictype/pr_private_use.c: New file.
63511         * lib/unictype/pr_punctuation.c: New file.
63512         * lib/unictype/pr_quotation_mark.c: New file.
63513         * lib/unictype/pr_radical.c: New file.
63514         * lib/unictype/pr_sentence_terminal.c: New file.
63515         * lib/unictype/pr_soft_dotted.c: New file.
63516         * lib/unictype/pr_space.c: New file.
63517         * lib/unictype/pr_terminal_punctuation.c: New file.
63518         * lib/unictype/pr_test.c: New file.
63519         * lib/unictype/pr_titlecase.c: New file.
63520         * lib/unictype/pr_unassigned_code_value.c: New file.
63521         * lib/unictype/pr_unified_ideograph.c: New file.
63522         * lib/unictype/pr_uppercase.c: New file.
63523         * lib/unictype/pr_variation_selector.c: New file.
63524         * lib/unictype/pr_white_space.c: New file.
63525         * lib/unictype/pr_xid_continue.c: New file.
63526         * lib/unictype/pr_xid_start.c: New file.
63527         * lib/unictype/pr_zero_width.c: New file.
63528         * lib/unictype/scripts.c: New file.
63529         * lib/unictype/sy_c_ident.c: New file.
63530         * lib/unictype/sy_c_whitespace.c: New file.
63531         * lib/unictype/sy_java_ident.c: New file.
63532         * lib/unictype/sy_java_whitespace.c: New file.
63533
63534         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
63535         Unicode 5.0.0.
63536         * lib/unictype/blocks.h: Likewise.
63537         * lib/unictype/categ_C.h: Likewise.
63538         * lib/unictype/categ_Cc.h: Likewise.
63539         * lib/unictype/categ_Cf.h: Likewise.
63540         * lib/unictype/categ_Cn.h: Likewise.
63541         * lib/unictype/categ_Co.h: Likewise.
63542         * lib/unictype/categ_Cs.h: Likewise.
63543         * lib/unictype/categ_L.h: Likewise.
63544         * lib/unictype/categ_Ll.h: Likewise.
63545         * lib/unictype/categ_Lm.h: Likewise.
63546         * lib/unictype/categ_Lo.h: Likewise.
63547         * lib/unictype/categ_Lt.h: Likewise.
63548         * lib/unictype/categ_Lu.h: Likewise.
63549         * lib/unictype/categ_M.h: Likewise.
63550         * lib/unictype/categ_Mc.h: Likewise.
63551         * lib/unictype/categ_Me.h: Likewise.
63552         * lib/unictype/categ_Mn.h: Likewise.
63553         * lib/unictype/categ_N.h: Likewise.
63554         * lib/unictype/categ_Nd.h: Likewise.
63555         * lib/unictype/categ_Nl.h: Likewise.
63556         * lib/unictype/categ_No.h: Likewise.
63557         * lib/unictype/categ_P.h: Likewise.
63558         * lib/unictype/categ_Pc.h: Likewise.
63559         * lib/unictype/categ_Pd.h: Likewise.
63560         * lib/unictype/categ_Pe.h: Likewise.
63561         * lib/unictype/categ_Pf.h: Likewise.
63562         * lib/unictype/categ_Pi.h: Likewise.
63563         * lib/unictype/categ_Po.h: Likewise.
63564         * lib/unictype/categ_Ps.h: Likewise.
63565         * lib/unictype/categ_S.h: Likewise.
63566         * lib/unictype/categ_Sc.h: Likewise.
63567         * lib/unictype/categ_Sk.h: Likewise.
63568         * lib/unictype/categ_Sm.h: Likewise.
63569         * lib/unictype/categ_So.h: Likewise.
63570         * lib/unictype/categ_Z.h: Likewise.
63571         * lib/unictype/categ_Zl.h: Likewise.
63572         * lib/unictype/categ_Zp.h: Likewise.
63573         * lib/unictype/categ_Zs.h: Likewise.
63574         * lib/unictype/categ_of.h: Likewise.
63575         * lib/unictype/combining.h: Likewise.
63576         * lib/unictype/ctype_alnum.h: Likewise.
63577         * lib/unictype/ctype_alpha.h: Likewise.
63578         * lib/unictype/ctype_blank.h: Likewise.
63579         * lib/unictype/ctype_cntrl.h: Likewise.
63580         * lib/unictype/ctype_digit.h: Likewise.
63581         * lib/unictype/ctype_graph.h: Likewise.
63582         * lib/unictype/ctype_lower.h: Likewise.
63583         * lib/unictype/ctype_print.h: Likewise.
63584         * lib/unictype/ctype_punct.h: Likewise.
63585         * lib/unictype/ctype_space.h: Likewise.
63586         * lib/unictype/ctype_upper.h: Likewise.
63587         * lib/unictype/ctype_xdigit.h: Likewise.
63588         * lib/unictype/decdigit.h: Likewise.
63589         * lib/unictype/digit.h: Likewise.
63590         * lib/unictype/mirror.h: Likewise.
63591         * lib/unictype/numeric.h: Likewise.
63592         * lib/unictype/pr_alphabetic.h: Likewise.
63593         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
63594         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
63595         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
63596         * lib/unictype/pr_bidi_block_separator.h: Likewise.
63597         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
63598         * lib/unictype/pr_bidi_common_separator.h: Likewise.
63599         * lib/unictype/pr_bidi_control.h: Likewise.
63600         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
63601         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
63602         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
63603         * lib/unictype/pr_bidi_european_digit.h: Likewise.
63604         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
63605         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
63606         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
63607         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
63608         * lib/unictype/pr_bidi_pdf.h: Likewise.
63609         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
63610         * lib/unictype/pr_bidi_whitespace.h: Likewise.
63611         * lib/unictype/pr_combining.h: Likewise.
63612         * lib/unictype/pr_composite.h: Likewise.
63613         * lib/unictype/pr_currency_symbol.h: Likewise.
63614         * lib/unictype/pr_dash.h: Likewise.
63615         * lib/unictype/pr_decimal_digit.h: Likewise.
63616         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
63617         * lib/unictype/pr_deprecated.h: Likewise.
63618         * lib/unictype/pr_diacritic.h: Likewise.
63619         * lib/unictype/pr_extender.h: Likewise.
63620         * lib/unictype/pr_format_control.h: Likewise.
63621         * lib/unictype/pr_grapheme_base.h: Likewise.
63622         * lib/unictype/pr_grapheme_extend.h: Likewise.
63623         * lib/unictype/pr_grapheme_link.h: Likewise.
63624         * lib/unictype/pr_hex_digit.h: Likewise.
63625         * lib/unictype/pr_hyphen.h: Likewise.
63626         * lib/unictype/pr_id_continue.h: Likewise.
63627         * lib/unictype/pr_id_start.h: Likewise.
63628         * lib/unictype/pr_ideographic.h: Likewise.
63629         * lib/unictype/pr_ids_binary_operator.h: Likewise.
63630         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
63631         * lib/unictype/pr_ignorable_control.h: Likewise.
63632         * lib/unictype/pr_iso_control.h: Likewise.
63633         * lib/unictype/pr_join_control.h: Likewise.
63634         * lib/unictype/pr_left_of_pair.h: Likewise.
63635         * lib/unictype/pr_line_separator.h: Likewise.
63636         * lib/unictype/pr_logical_order_exception.h: Likewise.
63637         * lib/unictype/pr_lowercase.h: Likewise.
63638         * lib/unictype/pr_math.h: Likewise.
63639         * lib/unictype/pr_non_break.h: Likewise.
63640         * lib/unictype/pr_not_a_character.h: Likewise.
63641         * lib/unictype/pr_numeric.h: Likewise.
63642         * lib/unictype/pr_other_alphabetic.h: Likewise.
63643         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
63644         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
63645         * lib/unictype/pr_other_id_continue.h: Likewise.
63646         * lib/unictype/pr_other_id_start.h: Likewise.
63647         * lib/unictype/pr_other_lowercase.h: Likewise.
63648         * lib/unictype/pr_other_math.h: Likewise.
63649         * lib/unictype/pr_other_uppercase.h: Likewise.
63650         * lib/unictype/pr_paired_punctuation.h: Likewise.
63651         * lib/unictype/pr_paragraph_separator.h: Likewise.
63652         * lib/unictype/pr_pattern_syntax.h: Likewise.
63653         * lib/unictype/pr_pattern_white_space.h: Likewise.
63654         * lib/unictype/pr_private_use.h: Likewise.
63655         * lib/unictype/pr_punctuation.h: Likewise.
63656         * lib/unictype/pr_quotation_mark.h: Likewise.
63657         * lib/unictype/pr_radical.h: Likewise.
63658         * lib/unictype/pr_sentence_terminal.h: Likewise.
63659         * lib/unictype/pr_soft_dotted.h: Likewise.
63660         * lib/unictype/pr_space.h: Likewise.
63661         * lib/unictype/pr_terminal_punctuation.h: Likewise.
63662         * lib/unictype/pr_titlecase.h: Likewise.
63663         * lib/unictype/pr_unassigned_code_value.h: Likewise.
63664         * lib/unictype/pr_unified_ideograph.h: Likewise.
63665         * lib/unictype/pr_uppercase.h: Likewise.
63666         * lib/unictype/pr_variation_selector.h: Likewise.
63667         * lib/unictype/pr_white_space.h: Likewise.
63668         * lib/unictype/pr_xid_continue.h: Likewise.
63669         * lib/unictype/pr_xid_start.h: Likewise.
63670         * lib/unictype/pr_zero_width.h: Likewise.
63671         * lib/unictype/scripts.h: Likewise.
63672         * lib/unictype/scripts_byname.gperf: Likewise.
63673         * lib/unictype/sy_c_ident.h: Likewise.
63674         * lib/unictype/sy_c_whitespace.h: Likewise.
63675         * lib/unictype/sy_java_ident.h: Likewise.
63676         * lib/unictype/sy_java_whitespace.h: Likewise.
63677
63678         * lib/unictype/Makefile: New file.
63679         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
63680         glibc.
63681         * lib/unictype/3level.h: New file, copied from glibc.
63682         * lib/unictype/3levelbit.h: New file.
63683
63684 2007-11-11  Bruno Haible  <bruno@clisp.org>
63685
63686         * modules/gperf: New file.
63687         * modules/iconv_open (Depends-on): Add it.
63688         (Makefile.am): Remove the GPERF definition.
63689
63690 2007-11-11  Bruno Haible  <bruno@clisp.org>
63691
63692         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
63693         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
63694
63695 2007-11-11  Bruno Haible  <bruno@clisp.org>
63696
63697         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
63698         (usage): Remove function.
63699
63700 2007-11-11  Bruno Haible  <bruno@clisp.org>
63701
63702         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
63703         gl_FUNC_CEILF_LIBS.
63704         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
63705         gl_FUNC_CEIL_LIBS.
63706         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
63707         gl_FUNC_CEILL_LIBS.
63708         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
63709         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
63710         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
63711
63712 2007-11-11  Bruno Haible  <bruno@clisp.org>
63713
63714         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
63715         roundf were declared but do not exist on functions.
63716         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
63717         roundl were declared but do not exist on functions.
63718         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
63719         HAVE_FLOORL_AND_CEILL, respectively.
63720         Needed for Sun C on Solaris 10.
63721
63722 2007-11-11  Bruno Haible  <bruno@clisp.org>
63723
63724         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
63725         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
63726         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
63727         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
63728         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
63729         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
63730         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
63731         HAVE_DECL_ROUNDF.
63732         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
63733         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
63734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
63735         of HAVE_DECL_ROUND*.
63736         * modules/math (Makefile.am): Update.
63737
63738 2007-11-10  Bruno Haible  <bruno@clisp.org>
63739
63740         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
63741         ptrdiff_t as m4/intl.m4.
63742
63743 2007-11-10  Jim Meyering  <meyering@redhat.com>
63744
63745         Avoid link failure for the argmatch test.
63746         * tests/test-argmatch.c (usage): Define function to avoid a link
63747         failure: argmatch_die requires a usage function.
63748
63749 2007-11-09  Bruno Haible  <bruno@clisp.org>
63750
63751         * doc/functions/snprintf.texi: Mention BeOS deficiency.
63752         * doc/functions/vsnprintf.texi: Likewise.
63753         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
63754         with a size argument < 2.
63755
63756 2007-11-09  Bruno Haible  <bruno@clisp.org>
63757
63758         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
63759         buffer. Fixes an inefficiency introduced on 2007-11-03.
63760
63761 2007-11-09  Bruno Haible  <bruno@clisp.org>
63762
63763         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
63764         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
63765
63766 2007-11-08  Jim Meyering  <meyering@redhat.com>
63767
63768         Change cache variable name prefix "jm_" to "gl_" everywhere.
63769         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
63770         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
63771         * m4/uptime.m4: s/gl_/jm_/
63772
63773 2007-11-07  Bruno Haible  <bruno@clisp.org>
63774
63775         Update to GNU gettext 0.17.
63776         * m4/intl.m4: Update to GNU gettext 0.17.
63777         * m4/po.m4: Likewise.
63778         * modules/gettext (Files): Remove m4/ulonglong.m4.
63779         (configure.ac): Require gettext infrastructure from version 0.17.
63780
63781 2007-11-06  Bruno Haible  <bruno@clisp.org>
63782
63783         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
63784         symbolic values are not defined in a public header.
63785         * lib/freadable.c (freadable) [QNX]: Likewise.
63786         * lib/freadahead.c (freadahead) [QNX]: Likewise.
63787         * lib/freading.c (freading) [QNX]: Likewise.
63788         * lib/fseterr.c (fseterr) [QNX]: Likewise.
63789         * lib/fwritable.c (fwritable) [QNX]: Likewise.
63790         * lib/fwriting.c (fwriting) [QNX]: Likewise.
63791         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
63792         Reported by Alain Magloire.
63793
63794         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
63795
63796 2007-11-05  Bruno Haible  <bruno@clisp.org>
63797
63798         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
63799         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
63800         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
63801         Reported by Eric Blake.
63802
63803 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63804             Bruno Haible  <bruno@clisp.org>
63805
63806         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
63807         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
63808         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
63809         (malloc): Undefine also before including <stdlib.h>.
63810         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63811         Needed on OSF/1 4.0.
63812
63813 2007-11-05  Jim Meyering  <meyering@redhat.com>
63814
63815         git-version-gen: sync from coreutils.
63816         * build-aux/git-version-gen: Add comments.
63817         Change the first '-' to '.' in the snapshot version string,
63818         e.g., 6.9-377-08144 -> 6.9.377-08144
63819         Remove first parameter.
63820         Don't declare a version "-dirty" merely because a time
63821         stamp has changed.
63822
63823 2007-11-04  Bruno Haible  <bruno@clisp.org>
63824
63825         * lib/lock.h: Protect all macro definitions containing an 'if'
63826         statement through a "do { ... } while (0)".
63827         * lib/tls.h: Likewise.
63828
63829 2007-11-04  Bruno Haible  <bruno@clisp.org>
63830
63831         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63832
63833 2007-11-04  Bruno Haible  <bruno@clisp.org>
63834
63835         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63836         * modules/fprintf-posix (Depends-on): Add nocrash.
63837         * modules/snprintf-posix (Depends-on): Likewise.
63838         * modules/sprintf-posix (Depends-on): Likewise.
63839         * modules/vasnprintf-posix (Depends-on): Likewise.
63840         * modules/vasprintf-posix (Depends-on): Likewise.
63841         * modules/vfprintf-posix (Depends-on): Likewise.
63842         * modules/vsnprintf-posix (Depends-on): Likewise.
63843         * modules/vsprintf-posix (Depends-on): Likewise.
63844         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63845         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63846         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63847         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63848         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63849         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63850         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63851
63852 2007-11-04  Bruno Haible  <bruno@clisp.org>
63853
63854         * modules/nocrash: New file.
63855         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63856         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63857
63858 2007-11-04  Bruno Haible  <bruno@clisp.org>
63859
63860         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63861         precision handling.
63862         * tests/test-vasprintf-posix.c (test_function): Likewise.
63863         * tests/test-snprintf-posix.h (test_function): Likewise.
63864         * tests/test-sprintf-posix.h (test_function): Likewise.
63865
63866         Fix *printf behaviour for large precisions on mingw and BeOS.
63867         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63868         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63870         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63871         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63872         gl_PRINTF_PRECISION and test its result. Invoke
63873         gl_PREREQ_VASNPRINTF_PRECISION.
63874         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63875         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63876         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63877         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63878         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63879         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63880         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63881         * doc/functions/fprintf.texi: Update.
63882         * doc/functions/printf.texi: Update.
63883         * doc/functions/snprintf.texi: Update.
63884         * doc/functions/sprintf.texi: Update.
63885         * doc/functions/vfprintf.texi: Update.
63886         * doc/functions/vprintf.texi: Update.
63887         * doc/functions/vsnprintf.texi: Update.
63888         * doc/functions/vsprintf.texi: Update.
63889
63890 2007-11-04  Bruno Haible  <bruno@clisp.org>
63891
63892         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63893
63894 2007-11-04  Bruno Haible  <bruno@clisp.org>
63895
63896         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63897         Reported by Sylvain Beucler <beuc@gnu.org>.
63898
63899 2007-11-03  Bruno Haible  <bruno@clisp.org>
63900
63901         * tests/test-fprintf-posix2.sh: New file.
63902         * tests/test-fprintf-posix2.c: New file.
63903         * modules/fprintf-posix-tests (Files): Add them.
63904         (TESTS): Add test-fprintf-posix2.sh.
63905         (configure.ac): Check for getrlimit and setrlimit.
63906         (check_PROGRAMS): Add test-fprintf-posix2.
63907
63908         * tests/test-printf-posix2.sh: New file.
63909         * tests/test-printf-posix2.c: New file.
63910         * modules/printf-posix-tests (Files): Add them.
63911         (TESTS): Add test-printf-posix2.sh.
63912         (configure.ac): Check for getrlimit and setrlimit.
63913         (check_PROGRAMS): Add test-printf-posix2.
63914
63915         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63916         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63917         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63918         (decode_double): New function, copied from decode_long_double.
63919         (scale10_round_decimal_decoded): New function, extracted from
63920         scale10_round_decimal_long_double.
63921         (scale10_round_decimal_long_double): Use it.
63922         (scale10_round_decimal_double): New function.
63923         (floorlog10): New function.
63924         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63926         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63927         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63928         gl_PRINTF_ENOMEM and test its result. Invoke
63929         gl_PREREQ_VASNPRINTF_ENOMEM.
63930         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63931         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63932         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63933         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63934         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63935         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63936         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63937         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63938         * modules/snprintf-posix (Depends-on): Likewise.
63939         * modules/sprintf-posix (Depends-on): Likewise.
63940         * modules/vasnprintf-posix (Depends-on): Likewise.
63941         * modules/vasprintf-posix (Depends-on): Likewise.
63942         * modules/vfprintf-posix (Depends-on): Likewise.
63943         * modules/vsnprintf-posix (Depends-on): Likewise.
63944         * modules/vsprintf-posix (Depends-on): Likewise.
63945         * doc/functions/fprintf.texi: Update.
63946         * doc/functions/printf.texi: Update.
63947         * doc/functions/snprintf.texi: Update.
63948         * doc/functions/sprintf.texi: Update.
63949         * doc/functions/vfprintf.texi: Update.
63950         * doc/functions/vprintf.texi: Update.
63951         * doc/functions/vsnprintf.texi: Update.
63952         * doc/functions/vsprintf.texi: Update.
63953
63954 2007-11-03  Bruno Haible  <bruno@clisp.org>
63955
63956         * modules/frexp-nolibm-tests: New file.
63957
63958         * modules/frexp-nolibm: New file.
63959         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63960
63961 2007-11-03  Bruno Haible  <bruno@clisp.org>
63962
63963         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63964         value is C99 compliant.
63965         Needed for OSF/1 5.1.
63966
63967 2007-11-03  Bruno Haible  <bruno@clisp.org>
63968
63969         Fix out-of-memory handling of vasnprintf.
63970         * lib/printf-parse.c: Include <errno.h>.
63971         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63972         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63973         is already set.
63974
63975 2007-11-02  Eric Blake  <ebb9@byu.net>
63976
63977         Fix tests on cygwin.
63978         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63979
63980 2007-11-01  Bruno Haible  <bruno@clisp.org>
63981
63982         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63983         warning.
63984         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63985         needed for POSIX compatibility.
63986
63987 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63988
63989         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63990         for compatibility with GNU.
63991
63992 2007-11-01  Bruno Haible  <bruno@clisp.org>
63993
63994         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63995         (putenv): Renamed from rpl_putenv. Change argument type from
63996         'const char *' to 'char *'.
63997         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63998         of defining putenv in config.h, just set REPLACE_PUTENV.
63999         * modules/putenv (Depends-on): Add stdlib.
64000         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
64001         (Include): Use <stdlib.h>.
64002         * lib/stdlib.in.h (putenv): New declaration.
64003         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
64004         REPLACE_PUTENV.
64005         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
64006         REPLACE_PUTENV.
64007         Needed for MacOS X 10.5.0.
64008         Reported by Peter O'Gorman <peter@pogma.com>.
64009
64010 2007-11-01  Jim Meyering  <meyering@redhat.com>
64011
64012         Treat an empty date string exactly like "0".
64013         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
64014         if the remaining date string (to be parsed) is empty, use "0".
64015         Reported by Mischa Molhoek and discussed in this thread:
64016         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
64017
64018 2007-10-31  Bruno Haible  <bruno@clisp.org>
64019
64020         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
64021         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
64022         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
64023         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
64024         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
64025         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
64026
64027 2007-10-31  Bruno Haible  <bruno@clisp.org>
64028
64029         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
64030         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
64031         (AC_TYPE_LONG_LONG_INT): Use it.
64032         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
64033         it as well.
64034         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
64035         to m4/longlong.m4.
64036         * modules/stdint (Files): Remove m4/ulonglong.m4.
64037         * modules/strtoull (Files): Use m4/longlong.m4 instead of
64038         m4/ulonglong.m4.
64039         * modules/strtoumax (Files): Likewise.
64040
64041 2007-10-30  Bruno Haible  <bruno@clisp.org>
64042
64043         * modules/xvasprintf-posix: New file.
64044         Suggested by Eric Blake.
64045
64046 2007-10-30  Bruno Haible  <bruno@clisp.org>
64047
64048         * modules/xprintf-posix-tests: New file.
64049         * tests/test-xprintf-posix.sh: New file.
64050         * tests/test-xprintf-posix.c: New file.
64051         * tests/test-xfprintf-posix.c: New file.
64052
64053         * modules/xprintf-posix: New file.
64054
64055 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64056
64057         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
64058         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
64059         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
64060
64061 2007-10-29  Bruno Haible  <bruno@clisp.org>
64062
64063         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
64064         contain the special marker '_cv_'.
64065         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
64066         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
64067         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
64068         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
64069         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
64070         Reported by Ralf Wildenhues.
64071
64072 2007-10-29  Bruno Haible  <bruno@clisp.org>
64073
64074         * gnulib-tool (func_import): When --lgpl is not specified, set
64075         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
64076         GPLv3.
64077         Reported by Simon Josefsson.
64078
64079 2007-10-28  Bruno Haible  <bruno@clisp.org>
64080
64081         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
64082         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
64083         HAVE_DECL_ISFINITE.
64084         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64085         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
64086         HAVE_DECL_ISFINITE.
64087
64088 2007-10-28  Bruno Haible  <bruno@clisp.org>
64089
64090         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
64091         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
64092
64093 2007-10-28  Bruno Haible  <bruno@clisp.org>
64094
64095         Fix link errors with Sun C 5.0 on Solaris 10.
64096         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
64097         function is declared but not present in the compiler's libm.
64098         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
64099         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
64100         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
64101         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
64102         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
64103         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
64104         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
64105         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
64106         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
64107         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
64108         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
64109         HAVE_DECL_FLOORL.
64110
64111 2007-10-28  Bruno Haible  <bruno@clisp.org>
64112
64113         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
64114         gl_FUNC_FLOORL. Cache the result.
64115         (gl_FUNC_FLOORL): Use it.
64116         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
64117         gl_FUNC_CEILL. Cache the result.
64118         (gl_FUNC_CEILL): Use it.
64119
64120         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
64121         gl_FUNC_FLOOR. Cache the result.
64122         (gl_FUNC_FLOOR): Use it.
64123         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
64124         gl_FUNC_CEIL. Cache the result.
64125         (gl_FUNC_CEIL): Use it.
64126
64127         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
64128         gl_FUNC_FLOORF. Cache the result.
64129         (gl_FUNC_FLOORF): Use it.
64130         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
64131         gl_FUNC_CEILF. Cache the result.
64132         (gl_FUNC_CEILF): Use it.
64133
64134 2007-10-28  Bruno Haible  <bruno@clisp.org>
64135
64136         * gnulib-tool: Allow specifying the LGPL version number through
64137         --lgpl=2 or --lgpl=3.
64138         (func_usage): Document --lgpl with argument.
64139         Handle --lgpl=... arguments.
64140         (func_import): Recognize also gl_LGPL calls with an argument. When
64141         --lgpl=2 is used and the module's license is just LGPL, report an
64142         error. Set sed_transform_lib_file according to the lgpl variable. In
64143         the generated files, use --lgpl or gl_LGPL invocations with argument,
64144         if necessary.
64145         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
64146         an LGPv2+ license.
64147         * doc/gnulib-tool.texi (Modified imports): Update explanation of
64148         gl_LGPL macro.
64149
64150 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64151             Bruno Haible  <bruno@clisp.org>
64152
64153         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
64154         (u16_uctomb_aux): Likewise.
64155         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
64156         !HAVE_INLINE.
64157         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
64158
64159 2007-10-28  Bruno Haible  <bruno@clisp.org>
64160
64161         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
64162         Invoke AM_GETTEXT_OPTION if it exists.
64163         * modules/vasprintf: Likewise.
64164         * modules/verror: Likewise.
64165         * modules/xprintf: Likewise.
64166         * modules/xvasprintf: Likewise.
64167
64168 2007-10-27  Ben Pfaff  <blp@gnu.org>
64169
64170         * lib/math.in.h: Define isfinite macro and prototypes for
64171         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
64172         implementations.
64173         * m4/math_h.m4: New substitutions for isfinite module.
64174         * lib/isfinite.c: New file.
64175         * m4/isfinite.m4: New file.
64176         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
64177         * modules/isfinite: New file.
64178         * modules/isfinite-tests: New file.
64179         * tests/tests-isfinite.c: New file.
64180         * doc/functions/isfinite.texi: Mention isfinite module.
64181         * MODULES.html.sh: Mention new module.
64182
64183 2007-10-27  Ben Pfaff  <blp@gnu.org>
64184
64185         Ralf Wildenhues reported that Tru64 4.0D declares the round
64186         functions but does not have definitions.
64187         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
64188         cannot be found in any library, set the output variable to
64189         "missing" instead of "".
64190         * m4/round.m4: Also use our substitute if we cannot find round in
64191         any library, even if it is declared.
64192         * m4/roundf.m4: Likewise for roundf.
64193         * m4/roundl.m4: Likewise for roundl.
64194         * lib/math.in.h: Undefine roundf, round, roundl before defining
64195         their replacements, to allow for hypothetical systems where these
64196         may be defined as macros but not available in libraries.
64197
64198 2007-10-27  Bruno Haible  <bruno@clisp.org>
64199
64200         * doc/gnulib.texi: Invoke @firstparagraphindent.
64201         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
64202         changes in gnulib.
64203         (Source changes): New section.
64204
64205 2007-10-26  Bruno Haible  <bruno@clisp.org>
64206
64207         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
64208         borrowed from autoconf.
64209
64210 2007-10-26  Bruno Haible  <bruno@clisp.org>
64211
64212         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
64213         strerror returned the empty string. Needed on HP-UX 11.00.
64214
64215 2007-10-24  Micah Cowan  <micah@cowan.name>
64216
64217         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
64218         * build-aux/bootstrap: Remove support for now-unnecessary option,
64219         --cvs-user, and envvars CVS_USER, CVS_RSH.
64220
64221 2007-10-24  Jim Meyering  <meyering@redhat.com>
64222
64223         Avoid diagnostics from sha1sum when there is no cached checksum.
64224         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
64225         if the po.s1 file hasn't been created yet.
64226
64227         * build-aux/bootstrap: Sync from coreutils:
64228         2007-10-24  Jim Meyering  <meyering@redhat.com>
64229         Get gnulib from the git repository, not from an obsolete cvs one.
64230         * build-aux/bootstrap: Suggestion from Micah Cowan.
64231         2007-10-04  Jim Meyering  <jim@meyering.net>
64232         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
64233         (update_po_files): Work also when there are no .po files in po/.
64234
64235 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
64236
64237         * README: Append ".git" to git and cg examples.
64238         Problem reported by Benoit Sigoure.
64239
64240 2007-10-23  Micah Cowan  <micah@cowan.name>
64241
64242         * users.txt: Add wget.
64243
64244 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64245
64246         Fix linking of some unistdio tests on FreeBSD.
64247         * modules/unistdio/u16-vsnprintf-tests
64248         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
64249         * modules/unistdio/u16-vsprintf-tests
64250         (test_u16_vsnprintf1_LDADD): Likewise.
64251         * modules/unistdio/u32-vsnprintf-tests
64252         (test_u32_vsnprintf1_LDADD): Likewise.
64253         * modules/unistdio/u32-vsprintf-tests
64254         (test_u32_vsprintf1_LDADD): Likewise.
64255         * modules/unistdio/u8-vsnprintf-tests
64256         (test_u8_vsnprintf1_LDADD): Likewise.
64257         * modules/unistdio/u8-vsprintf-tests
64258         (test_u8_vsprintf1_LDADD): Likewise.
64259         * modules/unistdio/ulc-vsnprintf-tests
64260         (test_ulc_vsnprintf1_LDADD): Likewise.
64261         * modules/unistdio/ulc-vsprintf-tests
64262         (test_ulc_vsprintf1_LDADD): Likewise.
64263
64264         Fix linking of some uniconv tests on FreeBSD.
64265         * modules/uniconv/u16-conv-from-enc-tests
64266         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
64267         * modules/uniconv/u16-conv-to-enc-tests
64268         (test_u16_conv_to_enc_LDADD): Likewise.
64269         * modules/uniconv/u16-strconv-from-enc-tests
64270         (test_u16_strconv_from_enc_LDADD): Likewise.
64271         * modules/uniconv/u16-strconv-to-enc-tests
64272         (test_u16_strconv_to_enc_LDADD): Likewise.
64273         * modules/uniconv/u32-conv-from-enc-tests
64274         (test_u32_conv_from_enc_LDADD): Likewise.
64275         * modules/uniconv/u32-conv-to-enc-tests
64276         (test_u32_conv_to_enc_LDADD): Likewise.
64277         * modules/uniconv/u32-strconv-from-enc-tests
64278         (test_u32_strconv_from_enc_LDADD): Likewise.
64279         * modules/uniconv/u32-strconv-to-enc-tests
64280         (test_u32_strconv_to_enc_LDADD): Likewise.
64281         * modules/uniconv/u8-conv-from-enc-tests
64282         (test_u8_conv_from_enc_LDADD): Likewise.
64283         * modules/uniconv/u8-conv-to-enc-tests
64284         (test_u8_conv_to_enc_LDADD): Likewise.
64285         * modules/uniconv/u8-strconv-from-enc-tests
64286         (test_u8_strconv_from_enc_LDADD): Likewise.
64287         * modules/uniconv/u8-strconv-to-enc-tests
64288         (test_u8_strconv_to_enc_LDADD): Likewise.
64289
64290 2007-10-22  Bruno Haible  <bruno@clisp.org>
64291
64292         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
64293         size.
64294
64295 2007-10-22  Eric Blake  <ebb9@byu.net>
64296
64297         Tweak x*printf documentation.
64298         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
64299         variable name and comments.
64300         Suggested by Bruno Haible.
64301
64302 2007-10-22  Bruno Haible  <bruno@clisp.org>
64303
64304         * lib/acl.c (copy_acl): Fix file name in comment.
64305
64306 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64307
64308         Fix Tru64 problem with stdbool.h.
64309         * lib/stdbool.in.h (false, true):
64310         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
64311         Don't declare as an enum in this situation; it runs afoul of Tru64.
64312         Problem reported by Steven M. Schweda in
64313         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
64314
64315 2007-10-22  Eric Blake  <ebb9@byu.net>
64316
64317         Also wrap vf?printf.
64318         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
64319         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
64320         (xvprintf, xvfprintf): New functions.
64321
64322 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64323
64324         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
64325         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
64326
64327         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
64328         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
64329
64330 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
64331
64332         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
64333         by Bruno Haible.
64334
64335 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64336
64337         * lib/getloadavg.c
64338         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
64339         Undef `sys' after including sys/table.h, for Tru64 4.0D.
64340
64341         * tests/test-i-ring.c: Work for C89.
64342
64343 2007-10-22  Bruno Haible  <bruno@clisp.org>
64344
64345         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
64346         -1u, in preprocessor expression, so that we don't test for the bug
64347         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
64348         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
64349
64350 2007-10-22  Eric Blake  <ebb9@byu.net>
64351
64352         * tests/test-yesno.sh: Silence stderr during test.
64353
64354 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64355
64356         * modules/crypto/gc-camellia: New file.
64357
64358         * m4/gc-camellia.m4: New file.
64359
64360         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
64361
64362         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
64363
64364 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64365
64366         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
64367         --help to stdout.  Reported by sms@antinode.org (Steven
64368         M. Schweda).
64369
64370 2007-10-22  Simon Josefsson  <simon@josefsson.org>
64371
64372         * users.txt: Fix link to libksba.
64373
64374 2007-10-21  Ben Pfaff  <blp@gnu.org>
64375
64376         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
64377         round.c roundf implementation that depends on floorf and ceilf to
64378         be tested unconditionally.
64379
64380 2007-10-21  Ben Pfaff  <blp@gnu.org>
64381
64382         * m4/check-libm-func.m4: Removed.
64383         * m4/check-math-lib.m4: New file.
64384         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
64385         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
64386         definition and lack of AC_LIBOBJ([roundf]).
64387         * m4/roundl.m4: Ditto, and similarly for roundl.
64388         * modules/round: Reference new m4 file.
64389         * modules/roundf: Ditto.
64390         * modules/roundl: Ditto.
64391         * tests/test-round2.c (main): Use ROUND instead of round.
64392         Bug report from Bruno Haible.
64393
64394 2007-10-21  Bruno Haible  <bruno@clisp.org>
64395
64396         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
64397         context.
64398
64399 2007-10-21  Bruno Haible  <bruno@clisp.org>
64400
64401         * tests/test-wcwidth.c (main): Allow negative result for some control
64402         characters.
64403
64404         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
64405         Needed on OSF/1 5.1.
64406
64407 2007-10-21  Bruno Haible  <bruno@clisp.org>
64408
64409         * tests/test-floorf1.c: Include isnanf.h.
64410         (main): Use isnanf() instead of isnan().
64411         * tests/test-ceilf1.c: Include isnanf.h.
64412         (main): Use isnanf() instead of isnan().
64413         * tests/test-truncf1.c: Include isnanf.h.
64414         (main): Use isnanf() instead of isnan().
64415         * tests/test-roundf1.c: Include isnanf.h.
64416         (main): Use isnanf() instead of isnan().
64417
64418 2007-10-21  Eric Blake  <ebb9@byu.net>
64419
64420         * users.txt: Update URL for m4.
64421
64422 2007-10-21  Bruno Haible  <bruno@clisp.org>
64423
64424         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
64425
64426 2007-10-21  Bruno Haible  <bruno@clisp.org>
64427
64428         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
64429         Git's management files if the CVS files are not present.
64430
64431 2007-10-20  Bruno Haible  <bruno@clisp.org>
64432
64433         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
64434         gcc-3.4.x.
64435
64436 2007-10-20  Ben Pfaff  <blp@gnu.org>
64437
64438         * lib/math.in.h: Declare round, roundf, roundl if we are providing
64439         implementations.
64440         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
64441         * lib/round.c: New file.
64442         * lib/roundf.c: New file.
64443         * lib/roundl.c: New file.
64444         * m4/round.m4: New file.
64445         * m4/roundf.m4: New file.
64446         * m4/roundl.m4: New file.
64447         * m4/check-libm-func-m4: New file.
64448         * modules/math: Replace round, roundf, roundl related @VARS@ in
64449         math.in.h.
64450         * modules/round: New file.
64451         * modules/round-tests: New file.
64452         * modules/roundf: New file.
64453         * modules/roundf-tests: New file.
64454         * modules/roundl: New file.
64455         * modules/roundl-tests: New file.
64456         * tests/test-round1.c: New file.
64457         * tests/test-round2.c: New file.
64458         * tests/test-roundf1.c: New file.
64459         * tests/test-roundf2.c: New file.
64460         * tests/test-roundl.c: New file.
64461         * doc/functions/round.texi: Mention round module.
64462         * doc/functions/roundf.texi: Mention roundf module.
64463         * doc/functions/roundl.texi: Mention roundl module.
64464         * MODULES.html.sh: Mention new modules.
64465         Thanks to Bruno Haible for suggestions.
64466
64467 2007-10-20  Jim Meyering  <meyering@redhat.com>
64468
64469         * lib/xprintf.c: Include <config.h> unconditionally.
64470
64471         Change xprintf's license to GPL.
64472         * modules/xprintf (License): s/LGPL/GPL/, since this module
64473         depends on modules (exit and exitfail) which are GPL.
64474         Suggestion from Bruno Haible.
64475
64476         xprintf fixes.
64477         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
64478         Use a clearer diagnostic.
64479         Patch from Bruno Haible.
64480
64481 2007-10-20  Bruno Haible  <bruno@clisp.org>
64482
64483         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
64484         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
64485         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64486
64487 2007-10-20  Bruno Haible  <bruno@clisp.org>
64488
64489         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
64490         precision in the comparison result > x - 1 or similar.
64491         * tests/test-ceilf2.c (correct_result_p): Likewise.
64492         * tests/test-truncf2.c (correct_result_p): Likewise.
64493         * tests/test-trunc2.c (correct_result_p): Likewise.
64494         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64495
64496 2007-10-20  Bruno Haible  <bruno@clisp.org>
64497
64498         * modules/ceil: New file.
64499         * m4/ceil.m4: New file.
64500         * doc/functions/ceil.texi: Mention the 'ceil' module.
64501
64502 2007-10-20  Bruno Haible  <bruno@clisp.org>
64503
64504         * modules/floor: New file.
64505         * m4/floor.m4: New file.
64506         * doc/functions/floor.texi: Mention the 'floor' module.
64507
64508 2007-10-20  Bruno Haible  <bruno@clisp.org>
64509
64510         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
64511         of %a.
64512         * modules/floorf-tests (Depends-on): Likewise.
64513         * modules/truncf-tests (Depends-on): Likewise.
64514         * modules/trunc-tests (Depends-on): Likewise.
64515         Reported by Ben Pfaff.
64516
64517 2007-10-19  Jim Meyering  <meyering@redhat.com>
64518
64519         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
64520         Don't bother testing specific errno values.  Just test ferror.
64521
64522         New module: xprintf
64523         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
64524
64525 2007-10-19  Bruno Haible  <bruno@clisp.org>
64526
64527         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
64528         syntax.
64529         * modules/javaexec (Makefile.am): Likewise.
64530         * modules/relocatable-prog (Makefile.am): Likewise.
64531         Suggested by Jim Meyering.
64532
64533 2007-10-18  Bruno Haible  <bruno@clisp.org>
64534
64535         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
64536         Reported by Jim Meyering.
64537
64538 2007-10-18  Eric Blake  <ebb9@byu.net>
64539
64540         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
64541
64542 2007-10-18  Bruno Haible  <bruno@clisp.org>
64543
64544         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
64545         the format string into writable memory. Needed in Fortify conditions.
64546
64547 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
64548             Bruno Haible  <bruno@clisp.org>
64549
64550         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
64551         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
64552         * modules/trim (Depends-on): Add mbchar.
64553         (configure.ac): Add gl_FUNC_MBRTOWC.
64554         (Makefile.am): Augment lib_SOURCES.
64555
64556 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
64557
64558         Modify glob.c to use fstatat and dirfd, to simplify it.
64559         Suggested by Eric Blake.
64560         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
64561         Don't include <stdbool.h>; not used.
64562         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
64563         (link_exists_p): Simplify implementation, since we can now assume
64564         dirfd and fstatat.
64565         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
64566
64567 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64568
64569         * gnulib-tool (func_get_dependencies): Fix sed script to
64570         match only tests.
64571
64572 2007-10-17  Bruno Haible  <bruno@clisp.org>
64573
64574         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
64575         allow locale names without encoding suffix.
64576         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
64577         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64578
64579 2007-10-16  Bruno Haible  <bruno@clisp.org>
64580
64581         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
64582         * lib/getgroups.c (getgroups): Likewise.
64583         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
64584
64585 2007-10-16  Bruno Haible  <bruno@clisp.org>
64586
64587         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
64588         * modules/malloc-posix (License): Likewise.
64589         * modules/realloc-posix (License): Likewise.
64590         * modules/calloc-posix (License): Likewise.
64591         * modules/intprops (License): Change from GPL to LGPL, with
64592         Paul Eggert's approval.
64593
64594 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64595
64596         Merge glibc changes into lib/glob.c.
64597
64598         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
64599         2007-10-15 04:59:03 UTC.  Here are the changes:
64600
64601         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
64602
64603         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
64604
64605         * lib/glob.c: Add some branch prediction throughout.
64606
64607         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
64608
64609         [BZ #5103]
64610         * lib/glob.c (glob): Recognize patterns starting \/.
64611
64612         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
64613
64614         [BZ #3996]
64615         * lib/glob.c (attribute_hidden): Define if not defined.
64616         (glob): Unescape dirname, filename or username when needed and not
64617         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
64618         is NULL.  Handle unescaped [ in pattern without closing ].
64619         Don't pass GLOB_CHECK down to recursive glob for directories.
64620         (__glob_pattern_type): New function.
64621         (__glob_pattern_p): Implement using __glob_pattern_type.
64622         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
64623         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
64624         Remove unreachable code.
64625
64626         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
64627
64628         * lib/glob.c (glob_in_dir): Add some comments and asserts to
64629         explain why there are no leaks.
64630
64631         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
64632
64633         [BZ #3253]
64634         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
64635         time, rather allocate increasingly bigger arrays of pointers, if
64636         possible with alloca, if too large with malloc.
64637
64638 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
64639
64640         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
64641         Problem reported by H.Merijn Brand in
64642         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
64643         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
64644         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
64645
64646 2007-10-15  Bruno Haible  <bruno@clisp.org>
64647
64648         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
64649         with explicit rpl_ prefix.
64650         * lib/fopen.c (fopen): Likewise.
64651         * lib/freopen.c (freopen): Likewise.
64652         * lib/iconv.c (iconv): Likewise.
64653         * lib/iconv_close.c (iconv_close): Likewise.
64654
64655 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64656
64657         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
64658
64659 2007-10-15  Bruno Haible  <bruno@clisp.org>
64660
64661         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
64662         <stddef.h> instead of <stdlib.h> since we only need NULL.
64663         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64664
64665 2007-10-15  Bruno Haible  <bruno@clisp.org>
64666
64667         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
64668         Replace paragraph talking about LIBOBJS.
64669         Reported by Colin Watson <cjwatson@debian.org>.
64670
64671 2007-10-15  Bruno Haible  <bruno@clisp.org>
64672
64673         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
64674         <stdlib.h> before using NULL.
64675
64676 2007-10-15  Simon Josefsson  <simon@josefsson.org>
64677
64678         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
64679         Reported by Albert Chin <china@thewrittenword.com>.
64680
64681 2007-10-14  Bruno Haible  <bruno@clisp.org>
64682
64683         * modules/iconv_open-utf-tests: New file.
64684         * tests/test-iconv-utf.c: New file.
64685
64686         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
64687         * modules/iconv_open-utf: New file.
64688         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
64689         (iconv, iconv_close): New declarations.
64690         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
64691         be defined.
64692         (iconv_open): Add special handling of conversion between UTF-8 and
64693         UTF-{16,32}{BE,LE}.
64694         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
64695         * lib/iconv_close.c: New file.
64696         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
64697         gl_FUNC_ICONV_OPEN.
64698         (gl_FUNC_ICONV_OPEN): Use it.
64699         (gl_FUNC_ICONV_OPEN_UTF): New macro.
64700         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
64701         and REPLACE_ICONV_UTF.
64702         * modules/iconv_open (Depends-on): Add c-strcase.
64703         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
64704         ICONV_CONST.
64705         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
64706
64707 2007-10-13  Albert Chin  <china@thewrittenword.com>
64708             Bruno Haible  <bruno@clisp.org>
64709
64710         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
64711         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
64712
64713 2007-10-13  Bruno Haible  <bruno@clisp.org>
64714
64715         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
64716         defined, use the ISO C99 inline semantics.
64717         * lib/argp.h (ARGP_EI): Likewise.
64718
64719 2007-10-13  Bruno Haible  <bruno@clisp.org>
64720
64721         Handle 'inline' change in gcc 4.3.0.
64722         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
64723         argp_fmtstream_write, argp_fmtstream_set_lmargin,
64724         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
64725         argp_fmtstream_point): Disable 'extern' declaration if the function
64726         definition is going to be provided inline.
64727         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
64728         semantics, not the ISO C99 inline semantics.
64729         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
64730         'extern' declaration if the function definition is going to be provided
64731         inline.
64732         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
64733         the GNU C inline semantics, not the ISO C99 inline semantics. With
64734         GCC 4.2, avoid a warning.
64735
64736 2007-10-13  Bruno Haible  <bruno@clisp.org>
64737
64738         * lib/freading.h (freading): Enable the use of __freading for
64739         glibc >= 2.7.
64740         * lib/freading.c (freading): Likewise.
64741
64742 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
64743
64744         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
64745         "warning: C99 inline functions are not supported; using GNU89".
64746
64747 2007-10-12  Bruno Haible  <bruno@clisp.org>
64748
64749         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
64750         of 2.
64751         * tests/test-ceilf2.c: New file.
64752         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
64753
64754         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
64755         * modules/ceilf-tests: Update.
64756
64757 2007-10-12  Bruno Haible  <bruno@clisp.org>
64758
64759         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
64760         of 2.
64761         * tests/test-floorf2.c: New file.
64762         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
64763
64764         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
64765         * modules/floorf-tests: Update.
64766
64767 2007-10-12  Bruno Haible  <bruno@clisp.org>
64768
64769         * tests/test-trunc2.c: New file.
64770         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
64771
64772         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
64773         * modules/trunc-tests: Update.
64774
64775 2007-10-12  Bruno Haible  <bruno@clisp.org>
64776
64777         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
64778         of 2.
64779         * tests/test-truncf2.c: New file.
64780         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
64781
64782         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
64783         * modules/truncf-tests: Update.
64784
64785 2007-10-11  Eric Blake  <ebb9@byu.net>
64786
64787         Don't claim strerror is broken on Interix.
64788         * doc/functions/strerror.texi (strerror): Known broken systems are
64789         now Solaris 8, and not Interix.
64790         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
64791         Interix on cross-compile.
64792         Reported by Martin Koeppe in
64793         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
64794
64795 2007-10-11  Bruno Haible  <bruno@clisp.org>
64796
64797         * modules/i-ring-tests: New file.
64798         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
64799         instead of assert.
64800
64801 2007-10-11  Bruno Haible  <bruno@clisp.org>
64802
64803         * modules/filenamecat-tests: New file.
64804         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
64805         * lib/filenamecat.c: Remove test code.
64806
64807 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64808
64809         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
64810
64811         * lib/strerror.c: Include <string.h> always, to test interface,
64812         and to remove the need for the dummy.
64813         Include intprops.h to compute width instead of doing it ourselves
64814         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64815         (strerror): Define it to return NULL if there's no system strerror.
64816         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64817         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64818         ancient pre-strerror Unix systems well any more.  Saying "unknown
64819         system error" is enough.
64820         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64821         simpler strerror.c implementation.
64822         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64823         Simplify the tests to reflect the simpler strerror implementation.
64824         * modules/strerror (Depends-on): Add intprops.
64825
64826 2007-10-09  Eric Blake  <ebb9@byu.net>
64827
64828         Silence test-fpending.
64829         * modules/fpending-tests (Files): Add wrapper script.
64830         * tests/test-fpending.sh: New file.
64831
64832 2007-10-09  Bruno Haible  <bruno@clisp.org>
64833
64834         * MODULES.html.sh (func_module): Don't create a hyperlink for
64835         function names like 'printf_frexp'.
64836         (Misc): Add crc, memxor.
64837         (Characteristics of floating types): New section.
64838         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64839         isnanf-nolibm, signbit, trunc, truncf, truncl.
64840         (Enhancements for ISO C 99 functions): New subsection Input/output.
64841         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64842         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64843         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64844         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64845         (Enhancements for POSIX:2001 functions): Add chdir-long.
64846         (File system functions): Add areadlink, chdir-safer, read-file.
64847         Remove cycle-check.
64848         (File system as inode set): New section.
64849         (Date and time): Add gethrxtime.
64850         (Multithreading): Add openmp.
64851         (Internationalization functions): Add localename.
64852         (Unicode string functions): Add unistr/u*-mbsnlen.
64853         (Support for maintaining and releasing projects): Add git-version-gen.
64854         (Lone files): Remove directories.
64855
64856 2007-10-08  Ben Pfaff  <blp@gnu.org>
64857
64858         * lib/xmalloca.h: Fix typo in comment.
64859
64860 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64861
64862         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64863         when avoiding problems with integer overflow.  Use a portable test
64864         instead.
64865
64866 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64867
64868         * modules/dummy (License): Change to LGPLv2+.
64869         * modules/float (License): Likewise
64870         * modules/realloc (License): Likewise
64871         * modules/stdlib (License): Likewise
64872
64873 2007-10-07  Bruno Haible  <bruno@clisp.org>
64874
64875         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64876         * floor.c (TWO_MANT_DIG): Likewise.
64877         * ceil.c (TWO_MANT_DIG): Likewise.
64878         Reported by Ben Pfaff.
64879
64880 2007-10-07  Bruno Haible  <bruno@clisp.org>
64881
64882         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64883         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64884         * lib/frexp.c (FUNC): Likewise.
64885         * lib/printf-frexp.h (printf_frexp): Likewise.
64886         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64887         * lib/printf-frexp.c (FUNC): Likewise.
64888         Suggested by Jim Meyering.
64889
64890 2007-10-07  Jim Meyering  <meyering@redhat.com>
64891
64892         Make xnanosleep's integer overflow test more robust.
64893         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64894         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64895
64896 2007-10-07  Bruno Haible  <bruno@clisp.org>
64897
64898         * NEWS: Mention the license change.
64899
64900         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64901         abbreviations in the modules files.
64902
64903         Change copyright notice from GPLv2+ to GPLv3+.
64904         * README: Change copyright notice.
64905         * MODULES.html.sh: Likewise.
64906         * build-aux/bootstrap.conf: Likewise.
64907         * build-aux/config.libpath: Likewise.
64908         * build-aux/csharpcomp.sh.in: Likewise.
64909         * build-aux/csharpexec.sh.in: Likewise.
64910         * build-aux/install-reloc: Likewise.
64911         * build-aux/javacomp.sh.in: Likewise.
64912         * build-aux/javaexec.sh.in: Likewise.
64913         * build-aux/ldd.sh.in: Likewise.
64914         * build-aux/reloc-ldflags: Likewise.
64915         * build-aux/relocatable.sh.in: Likewise.
64916         * build-aux/x-to-1.in: Likewise.
64917         * check-module: Likewise.
64918         * config/srclistvars.sh: Likewise.
64919         * gnulib-tool: Likewise.
64920         * lib/acl-internal.h: Likewise.
64921         * lib/acl.c: Likewise.
64922         * lib/acl.h: Likewise.
64923         * lib/acl_entries.c: Likewise.
64924         * lib/areadlink-with-size.c: Likewise.
64925         * lib/areadlink.c: Likewise.
64926         * lib/areadlink.h: Likewise.
64927         * lib/argmatch.c: Likewise.
64928         * lib/argmatch.h: Likewise.
64929         * lib/argp-ba.c: Likewise.
64930         * lib/argp-eexst.c: Likewise.
64931         * lib/argp-fmtstream.c: Likewise.
64932         * lib/argp-fmtstream.h: Likewise.
64933         * lib/argp-fs-xinl.c: Likewise.
64934         * lib/argp-help.c: Likewise.
64935         * lib/argp-namefrob.h: Likewise.
64936         * lib/argp-parse.c: Likewise.
64937         * lib/argp-pin.c: Likewise.
64938         * lib/argp-pv.c: Likewise.
64939         * lib/argp-pvh.c: Likewise.
64940         * lib/argp-xinl.c: Likewise.
64941         * lib/argp.h: Likewise.
64942         * lib/at-func.c: Likewise.
64943         * lib/atanl.c: Likewise.
64944         * lib/backupfile.c: Likewise.
64945         * lib/backupfile.h: Likewise.
64946         * lib/basename.c: Likewise.
64947         * lib/binary-io.h: Likewise.
64948         * lib/byteswap.in.h: Likewise.
64949         * lib/c-stack.c: Likewise.
64950         * lib/c-stack.h: Likewise.
64951         * lib/c-strcasestr.c: Likewise.
64952         * lib/c-strcasestr.h: Likewise.
64953         * lib/c-strstr.c: Likewise.
64954         * lib/c-strstr.h: Likewise.
64955         * lib/c-strtod.c: Likewise.
64956         * lib/calloc.c: Likewise.
64957         * lib/canon-host.c: Likewise.
64958         * lib/canon-host.h: Likewise.
64959         * lib/canonicalize-lgpl.c: Likewise.
64960         * lib/canonicalize.c: Likewise.
64961         * lib/canonicalize.h: Likewise.
64962         * lib/ceil.c: Likewise.
64963         * lib/ceilf.c: Likewise.
64964         * lib/ceill.c: Likewise.
64965         * lib/chdir-long.c: Likewise.
64966         * lib/chdir-long.h: Likewise.
64967         * lib/chdir-safer.c: Likewise.
64968         * lib/chdir-safer.h: Likewise.
64969         * lib/chown.c: Likewise.
64970         * lib/classpath.c: Likewise.
64971         * lib/classpath.h: Likewise.
64972         * lib/clean-temp.c: Likewise.
64973         * lib/clean-temp.h: Likewise.
64974         * lib/cloexec.c: Likewise.
64975         * lib/close-stream.c: Likewise.
64976         * lib/closein.c: Likewise.
64977         * lib/closein.h: Likewise.
64978         * lib/closeout.c: Likewise.
64979         * lib/closeout.h: Likewise.
64980         * lib/concat-filename.c: Likewise.
64981         * lib/copy-file.c: Likewise.
64982         * lib/copy-file.h: Likewise.
64983         * lib/count-one-bits.h: Likewise.
64984         * lib/crc.c: Likewise.
64985         * lib/crc.h: Likewise.
64986         * lib/creat-safer.c: Likewise.
64987         * lib/csharpcomp.c: Likewise.
64988         * lib/csharpcomp.h: Likewise.
64989         * lib/csharpexec.c: Likewise.
64990         * lib/csharpexec.h: Likewise.
64991         * lib/cycle-check.c: Likewise.
64992         * lib/cycle-check.h: Likewise.
64993         * lib/diacrit.c: Likewise.
64994         * lib/diacrit.h: Likewise.
64995         * lib/diffseq.h: Likewise.
64996         * lib/dirchownmod.c: Likewise.
64997         * lib/dirent.in.h: Likewise.
64998         * lib/dirfd.c: Likewise.
64999         * lib/dirfd.h: Likewise.
65000         * lib/dirname.c: Likewise.
65001         * lib/dirname.h: Likewise.
65002         * lib/dummy.c: Likewise.
65003         * lib/dup-safer.c: Likewise.
65004         * lib/dup2.c: Likewise.
65005         * lib/eealloc.h: Likewise.
65006         * lib/error.c: Likewise.
65007         * lib/error.h: Likewise.
65008         * lib/euidaccess.c: Likewise.
65009         * lib/exclude.c: Likewise.
65010         * lib/exclude.h: Likewise.
65011         * lib/execute.c: Likewise.
65012         * lib/execute.h: Likewise.
65013         * lib/exitfail.c: Likewise.
65014         * lib/exitfail.h: Likewise.
65015         * lib/expl.c: Likewise.
65016         * lib/fatal-signal.c: Likewise.
65017         * lib/fatal-signal.h: Likewise.
65018         * lib/fbufmode.c: Likewise.
65019         * lib/fbufmode.h: Likewise.
65020         * lib/fchdir.c: Likewise.
65021         * lib/fchmodat.c: Likewise.
65022         * lib/fchownat.c: Likewise.
65023         * lib/fcntl--.h: Likewise.
65024         * lib/fcntl-safer.h: Likewise.
65025         * lib/fcntl.in.h: Likewise.
65026         * lib/fd-safer.c: Likewise.
65027         * lib/fflush.c: Likewise.
65028         * lib/file-has-acl.c: Likewise.
65029         * lib/file-set.c: Likewise.
65030         * lib/file-type.c: Likewise.
65031         * lib/file-type.h: Likewise.
65032         * lib/fileblocks.c: Likewise.
65033         * lib/filemode.c: Likewise.
65034         * lib/filemode.h: Likewise.
65035         * lib/filename.h: Likewise.
65036         * lib/filenamecat.c: Likewise.
65037         * lib/filenamecat.h: Likewise.
65038         * lib/findprog.c: Likewise.
65039         * lib/findprog.h: Likewise.
65040         * lib/float.in.h: Likewise.
65041         * lib/floor.c: Likewise.
65042         * lib/floorf.c: Likewise.
65043         * lib/floorl.c: Likewise.
65044         * lib/fopen-safer.c: Likewise.
65045         * lib/fopen.c: Likewise.
65046         * lib/fpending.c: Likewise.
65047         * lib/fpending.h: Likewise.
65048         * lib/fprintf.c: Likewise.
65049         * lib/fprintftime.h: Likewise.
65050         * lib/fpucw.h: Likewise.
65051         * lib/fpurge.c: Likewise.
65052         * lib/fpurge.h: Likewise.
65053         * lib/freadable.c: Likewise.
65054         * lib/freadable.h: Likewise.
65055         * lib/freadahead.c: Likewise.
65056         * lib/freadahead.h: Likewise.
65057         * lib/freading.c: Likewise.
65058         * lib/freading.h: Likewise.
65059         * lib/free.c: Likewise.
65060         * lib/freopen.c: Likewise.
65061         * lib/frexp.c: Likewise.
65062         * lib/frexpl.c: Likewise.
65063         * lib/fseek.c: Likewise.
65064         * lib/fseterr.c: Likewise.
65065         * lib/fseterr.h: Likewise.
65066         * lib/fstatat.c: Likewise.
65067         * lib/fstrcmp.c: Likewise.
65068         * lib/fstrcmp.h: Likewise.
65069         * lib/fsusage.c: Likewise.
65070         * lib/fsusage.h: Likewise.
65071         * lib/ftell.c: Likewise.
65072         * lib/ftello.c: Likewise.
65073         * lib/fts-cycle.c: Likewise.
65074         * lib/fts.c: Likewise.
65075         * lib/fts_.h: Likewise.
65076         * lib/full-read.c: Likewise.
65077         * lib/full-read.h: Likewise.
65078         * lib/full-write.c: Likewise.
65079         * lib/full-write.h: Likewise.
65080         * lib/fwritable.c: Likewise.
65081         * lib/fwritable.h: Likewise.
65082         * lib/fwriteerror.c: Likewise.
65083         * lib/fwriteerror.h: Likewise.
65084         * lib/fwriting.c: Likewise.
65085         * lib/fwriting.h: Likewise.
65086         * lib/gcd.c: Likewise.
65087         * lib/gcd.h: Likewise.
65088         * lib/getcwd.c: Likewise.
65089         * lib/getdate.h: Likewise.
65090         * lib/getdate.y: Likewise.
65091         * lib/getdomainname.c: Likewise.
65092         * lib/getdomainname.h: Likewise.
65093         * lib/getgroups.c: Likewise.
65094         * lib/gethostname.c: Likewise.
65095         * lib/gethrxtime.c: Likewise.
65096         * lib/gethrxtime.h: Likewise.
65097         * lib/getloadavg.c: Likewise.
65098         * lib/getndelim2.c: Likewise.
65099         * lib/getndelim2.h: Likewise.
65100         * lib/getnline.c: Likewise.
65101         * lib/getnline.h: Likewise.
65102         * lib/getopt.c: Likewise.
65103         * lib/getopt.in.h: Likewise.
65104         * lib/getopt1.c: Likewise.
65105         * lib/getopt_int.h: Likewise.
65106         * lib/getpagesize.h: Likewise.
65107         * lib/getsubopt.c: Likewise.
65108         * lib/gettime.c: Likewise.
65109         * lib/getugroups.c: Likewise.
65110         * lib/getugroups.h: Likewise.
65111         * lib/getusershell.c: Likewise.
65112         * lib/gl_anyavltree_list1.h: Likewise.
65113         * lib/gl_anyavltree_list2.h: Likewise.
65114         * lib/gl_anyhash_list1.h: Likewise.
65115         * lib/gl_anyhash_list2.h: Likewise.
65116         * lib/gl_anylinked_list1.h: Likewise.
65117         * lib/gl_anylinked_list2.h: Likewise.
65118         * lib/gl_anyrbtree_list1.h: Likewise.
65119         * lib/gl_anyrbtree_list2.h: Likewise.
65120         * lib/gl_anytree_list1.h: Likewise.
65121         * lib/gl_anytree_list2.h: Likewise.
65122         * lib/gl_anytree_oset.h: Likewise.
65123         * lib/gl_anytreehash_list1.h: Likewise.
65124         * lib/gl_anytreehash_list2.h: Likewise.
65125         * lib/gl_array_list.c: Likewise.
65126         * lib/gl_array_list.h: Likewise.
65127         * lib/gl_array_oset.c: Likewise.
65128         * lib/gl_array_oset.h: Likewise.
65129         * lib/gl_avltree_list.c: Likewise.
65130         * lib/gl_avltree_list.h: Likewise.
65131         * lib/gl_avltree_oset.c: Likewise.
65132         * lib/gl_avltree_oset.h: Likewise.
65133         * lib/gl_avltreehash_list.c: Likewise.
65134         * lib/gl_avltreehash_list.h: Likewise.
65135         * lib/gl_carray_list.c: Likewise.
65136         * lib/gl_carray_list.h: Likewise.
65137         * lib/gl_linked_list.c: Likewise.
65138         * lib/gl_linked_list.h: Likewise.
65139         * lib/gl_linkedhash_list.c: Likewise.
65140         * lib/gl_linkedhash_list.h: Likewise.
65141         * lib/gl_list.c: Likewise.
65142         * lib/gl_list.h: Likewise.
65143         * lib/gl_oset.c: Likewise.
65144         * lib/gl_oset.h: Likewise.
65145         * lib/gl_rbtree_list.c: Likewise.
65146         * lib/gl_rbtree_list.h: Likewise.
65147         * lib/gl_rbtree_oset.c: Likewise.
65148         * lib/gl_rbtree_oset.h: Likewise.
65149         * lib/gl_rbtreehash_list.c: Likewise.
65150         * lib/gl_rbtreehash_list.h: Likewise.
65151         * lib/gl_sublist.c: Likewise.
65152         * lib/gl_sublist.h: Likewise.
65153         * lib/group-member.c: Likewise.
65154         * lib/group-member.h: Likewise.
65155         * lib/hard-locale.c: Likewise.
65156         * lib/hard-locale.h: Likewise.
65157         * lib/hash-pjw.c: Likewise.
65158         * lib/hash-pjw.h: Likewise.
65159         * lib/hash-triple.c: Likewise.
65160         * lib/hash.c: Likewise.
65161         * lib/hash.h: Likewise.
65162         * lib/human.c: Likewise.
65163         * lib/human.h: Likewise.
65164         * lib/i-ring.c: Likewise.
65165         * lib/i-ring.h: Likewise.
65166         * lib/idcache.c: Likewise.
65167         * lib/imaxabs.c: Likewise.
65168         * lib/imaxdiv.c: Likewise.
65169         * lib/inet_pton.c: Likewise.
65170         * lib/inet_pton.h: Likewise.
65171         * lib/intprops.h: Likewise.
65172         * lib/inttostr.c: Likewise.
65173         * lib/inttostr.h: Likewise.
65174         * lib/inttypes.in.h: Likewise.
65175         * lib/isapipe.c: Likewise.
65176         * lib/isdir.c: Likewise.
65177         * lib/isnan.c: Likewise.
65178         * lib/isnan.h: Likewise.
65179         * lib/isnanf.c: Likewise.
65180         * lib/isnanf.h: Likewise.
65181         * lib/isnanl-nolibm.h: Likewise.
65182         * lib/isnanl.c: Likewise.
65183         * lib/isnanl.h: Likewise.
65184         * lib/javacomp.c: Likewise.
65185         * lib/javacomp.h: Likewise.
65186         * lib/javaexec.c: Likewise.
65187         * lib/javaexec.h: Likewise.
65188         * lib/javaversion.c: Likewise.
65189         * lib/javaversion.h: Likewise.
65190         * lib/javaversion.java: Likewise.
65191         * lib/lbrkprop.h: Likewise.
65192         * lib/lchmod.h: Likewise.
65193         * lib/lchown.c: Likewise.
65194         * lib/ldexpl.c: Likewise.
65195         * lib/linebreak.c: Likewise.
65196         * lib/linebreak.h: Likewise.
65197         * lib/linebuffer.c: Likewise.
65198         * lib/linebuffer.h: Likewise.
65199         * lib/locale.in.h: Likewise.
65200         * lib/logl.c: Likewise.
65201         * lib/long-options.c: Likewise.
65202         * lib/long-options.h: Likewise.
65203         * lib/lstat.c: Likewise.
65204         * lib/lstat.h: Likewise.
65205         * lib/math.in.h: Likewise.
65206         * lib/mbchar.c: Likewise.
65207         * lib/mbchar.h: Likewise.
65208         * lib/mbfile.h: Likewise.
65209         * lib/mbiter.h: Likewise.
65210         * lib/mbscasecmp.c: Likewise.
65211         * lib/mbscasestr.c: Likewise.
65212         * lib/mbschr.c: Likewise.
65213         * lib/mbscspn.c: Likewise.
65214         * lib/mbslen.c: Likewise.
65215         * lib/mbsncasecmp.c: Likewise.
65216         * lib/mbsnlen.c: Likewise.
65217         * lib/mbspbrk.c: Likewise.
65218         * lib/mbspcasecmp.c: Likewise.
65219         * lib/mbsrchr.c: Likewise.
65220         * lib/mbssep.c: Likewise.
65221         * lib/mbsspn.c: Likewise.
65222         * lib/mbsstr.c: Likewise.
65223         * lib/mbstok_r.c: Likewise.
65224         * lib/mbswidth.c: Likewise.
65225         * lib/mbswidth.h: Likewise.
65226         * lib/mbuiter.h: Likewise.
65227         * lib/memcasecmp.c: Likewise.
65228         * lib/memcasecmp.h: Likewise.
65229         * lib/memchr.c: Likewise.
65230         * lib/memcmp.c: Likewise.
65231         * lib/memcoll.c: Likewise.
65232         * lib/memcoll.h: Likewise.
65233         * lib/memcpy.c: Likewise.
65234         * lib/memrchr.c: Likewise.
65235         * lib/mkancesdirs.c: Likewise.
65236         * lib/mkdir-p.c: Likewise.
65237         * lib/mkdir-p.h: Likewise.
65238         * lib/mkdir.c: Likewise.
65239         * lib/mkdirat.c: Likewise.
65240         * lib/mkdtemp.c: Likewise.
65241         * lib/mkstemp-safer.c: Likewise.
65242         * lib/mkstemp.c: Likewise.
65243         * lib/modechange.c: Likewise.
65244         * lib/modechange.h: Likewise.
65245         * lib/mountlist.c: Likewise.
65246         * lib/mountlist.h: Likewise.
65247         * lib/mpsort.c: Likewise.
65248         * lib/nanosleep.c: Likewise.
65249         * lib/obstack.c: Likewise.
65250         * lib/obstack.h: Likewise.
65251         * lib/open-safer.c: Likewise.
65252         * lib/open.c: Likewise.
65253         * lib/openat-die.c: Likewise.
65254         * lib/openat-priv.h: Likewise.
65255         * lib/openat-proc.c: Likewise.
65256         * lib/openat.c: Likewise.
65257         * lib/openat.h: Likewise.
65258         * lib/pagealign_alloc.c: Likewise.
65259         * lib/pagealign_alloc.h: Likewise.
65260         * lib/physmem.c: Likewise.
65261         * lib/physmem.h: Likewise.
65262         * lib/pipe-safer.c: Likewise.
65263         * lib/pipe.c: Likewise.
65264         * lib/pipe.h: Likewise.
65265         * lib/posixtm.c: Likewise.
65266         * lib/posixtm.h: Likewise.
65267         * lib/posixver.c: Likewise.
65268         * lib/printf-frexp.c: Likewise.
65269         * lib/printf-frexp.h: Likewise.
65270         * lib/printf-frexpl.c: Likewise.
65271         * lib/printf-frexpl.h: Likewise.
65272         * lib/printf.c: Likewise.
65273         * lib/progname.c: Likewise.
65274         * lib/progname.h: Likewise.
65275         * lib/progreloc.c: Likewise.
65276         * lib/putenv.c: Likewise.
65277         * lib/quote.c: Likewise.
65278         * lib/quote.h: Likewise.
65279         * lib/quotearg.c: Likewise.
65280         * lib/quotearg.h: Likewise.
65281         * lib/raise.c: Likewise.
65282         * lib/readline.c: Likewise.
65283         * lib/readline.h: Likewise.
65284         * lib/readlink.c: Likewise.
65285         * lib/readtokens.c: Likewise.
65286         * lib/readtokens.h: Likewise.
65287         * lib/readtokens0.c: Likewise.
65288         * lib/readtokens0.h: Likewise.
65289         * lib/readutmp.c: Likewise.
65290         * lib/readutmp.h: Likewise.
65291         * lib/realloc.c: Likewise.
65292         * lib/relocwrapper.c: Likewise.
65293         * lib/rename-dest-slash.c: Likewise.
65294         * lib/rename.c: Likewise.
65295         * lib/rmdir.c: Likewise.
65296         * lib/rpmatch.c: Likewise.
65297         * lib/safe-read.c: Likewise.
65298         * lib/safe-read.h: Likewise.
65299         * lib/safe-write.c: Likewise.
65300         * lib/safe-write.h: Likewise.
65301         * lib/same-inode.h: Likewise.
65302         * lib/same.c: Likewise.
65303         * lib/same.h: Likewise.
65304         * lib/save-cwd.c: Likewise.
65305         * lib/save-cwd.h: Likewise.
65306         * lib/savedir.c: Likewise.
65307         * lib/savedir.h: Likewise.
65308         * lib/savewd.c: Likewise.
65309         * lib/savewd.h: Likewise.
65310         * lib/search.in.h: Likewise.
65311         * lib/setenv.c: Likewise.
65312         * lib/setenv.h: Likewise.
65313         * lib/settime.c: Likewise.
65314         * lib/sh-quote.c: Likewise.
65315         * lib/sh-quote.h: Likewise.
65316         * lib/sig2str.c: Likewise.
65317         * lib/sig2str.h: Likewise.
65318         * lib/signal.in.h: Likewise.
65319         * lib/signbitd.c: Likewise.
65320         * lib/signbitf.c: Likewise.
65321         * lib/signbitl.c: Likewise.
65322         * lib/sigprocmask.c: Likewise.
65323         * lib/sincosl.c: Likewise.
65324         * lib/sleep.c: Likewise.
65325         * lib/sprintf.c: Likewise.
65326         * lib/sqrtl.c: Likewise.
65327         * lib/stat-time.h: Likewise.
65328         * lib/stdio--.h: Likewise.
65329         * lib/stdio-safer.h: Likewise.
65330         * lib/stdlib--.h: Likewise.
65331         * lib/stdlib-safer.h: Likewise.
65332         * lib/stdlib.in.h: Likewise.
65333         * lib/stpcpy.c: Likewise.
65334         * lib/stpncpy.c: Likewise.
65335         * lib/strchrnul.c: Likewise.
65336         * lib/strcspn.c: Likewise.
65337         * lib/strerror.c: Likewise.
65338         * lib/strftime.c: Likewise.
65339         * lib/strftime.h: Likewise.
65340         * lib/striconveh.c: Likewise.
65341         * lib/striconveh.h: Likewise.
65342         * lib/striconveha.c: Likewise.
65343         * lib/striconveha.h: Likewise.
65344         * lib/stripslash.c: Likewise.
65345         * lib/strnlen1.c: Likewise.
65346         * lib/strnlen1.h: Likewise.
65347         * lib/strtod.c: Likewise.
65348         * lib/strtoimax.c: Likewise.
65349         * lib/strtok_r.c: Likewise.
65350         * lib/strtol.c: Likewise.
65351         * lib/strtoll.c: Likewise.
65352         * lib/strtoul.c: Likewise.
65353         * lib/strtoull.c: Likewise.
65354         * lib/sysexits.in.h: Likewise.
65355         * lib/tempname.c: Likewise.
65356         * lib/tempname.h: Likewise.
65357         * lib/timespec.h: Likewise.
65358         * lib/tls.c: Likewise.
65359         * lib/tls.h: Likewise.
65360         * lib/tmpdir.c: Likewise.
65361         * lib/tmpdir.h: Likewise.
65362         * lib/tmpfile-safer.c: Likewise.
65363         * lib/tmpfile.c: Likewise.
65364         * lib/trigl.c: Likewise.
65365         * lib/trigl.h: Likewise.
65366         * lib/trim.c: Likewise.
65367         * lib/trim.h: Likewise.
65368         * lib/trunc.c: Likewise.
65369         * lib/truncf.c: Likewise.
65370         * lib/truncl.c: Likewise.
65371         * lib/tsearch.c: Likewise.
65372         * lib/unicodeio.c: Likewise.
65373         * lib/unicodeio.h: Likewise.
65374         * lib/unistd--.h: Likewise.
65375         * lib/unistd-safer.h: Likewise.
65376         * lib/unistdio/ulc-fprintf.c: Likewise.
65377         * lib/unistdio/ulc-vfprintf.c: Likewise.
65378         * lib/unlinkdir.c: Likewise.
65379         * lib/unlinkdir.h: Likewise.
65380         * lib/unlocked-io.h: Likewise.
65381         * lib/unsetenv.c: Likewise.
65382         * lib/userspec.c: Likewise.
65383         * lib/utime.c: Likewise.
65384         * lib/utimecmp.c: Likewise.
65385         * lib/utimecmp.h: Likewise.
65386         * lib/utimens.c: Likewise.
65387         * lib/verify.h: Likewise.
65388         * lib/verror.c: Likewise.
65389         * lib/verror.h: Likewise.
65390         * lib/version-etc-fsf.c: Likewise.
65391         * lib/version-etc.c: Likewise.
65392         * lib/version-etc.h: Likewise.
65393         * lib/vfprintf.c: Likewise.
65394         * lib/vprintf.c: Likewise.
65395         * lib/vsprintf.c: Likewise.
65396         * lib/w32spawn.h: Likewise.
65397         * lib/wait-process.c: Likewise.
65398         * lib/wait-process.h: Likewise.
65399         * lib/wcwidth.c: Likewise.
65400         * lib/write-any-file.c: Likewise.
65401         * lib/xalloc-die.c: Likewise.
65402         * lib/xalloc.h: Likewise.
65403         * lib/xasprintf.c: Likewise.
65404         * lib/xgetcwd.c: Likewise.
65405         * lib/xgetcwd.h: Likewise.
65406         * lib/xgetdomainname.c: Likewise.
65407         * lib/xgetdomainname.h: Likewise.
65408         * lib/xgethostname.c: Likewise.
65409         * lib/xmalloc.c: Likewise.
65410         * lib/xmalloca.c: Likewise.
65411         * lib/xmalloca.h: Likewise.
65412         * lib/xmemcoll.c: Likewise.
65413         * lib/xnanosleep.c: Likewise.
65414         * lib/xreadlink.c: Likewise.
65415         * lib/xreadlink.h: Likewise.
65416         * lib/xsetenv.c: Likewise.
65417         * lib/xsetenv.h: Likewise.
65418         * lib/xstriconv.c: Likewise.
65419         * lib/xstriconv.h: Likewise.
65420         * lib/xstrndup.c: Likewise.
65421         * lib/xstrndup.h: Likewise.
65422         * lib/xstrtod.c: Likewise.
65423         * lib/xstrtod.h: Likewise.
65424         * lib/xstrtol-error.c: Likewise.
65425         * lib/xstrtol.c: Likewise.
65426         * lib/xstrtol.h: Likewise.
65427         * lib/xtime.h: Likewise.
65428         * lib/xvasprintf.c: Likewise.
65429         * lib/xvasprintf.h: Likewise.
65430         * lib/yesno.c: Likewise.
65431         * lib/yesno.h: Likewise.
65432         * posix-modules: Likewise.
65433         * tests/test-alloca-opt.c: Likewise.
65434         * tests/test-arcfour.c: Likewise.
65435         * tests/test-arctwo.c: Likewise.
65436         * tests/test-argmatch.c: Likewise.
65437         * tests/test-argp-2.sh: Likewise.
65438         * tests/test-argp.c: Likewise.
65439         * tests/test-arpa_inet.c: Likewise.
65440         * tests/test-array_list.c: Likewise.
65441         * tests/test-array_oset.c: Likewise.
65442         * tests/test-atexit.c: Likewise.
65443         * tests/test-avltree_list.c: Likewise.
65444         * tests/test-avltree_oset.c: Likewise.
65445         * tests/test-avltreehash_list.c: Likewise.
65446         * tests/test-base64.c: Likewise.
65447         * tests/test-binary-io.c: Likewise.
65448         * tests/test-byteswap.c: Likewise.
65449         * tests/test-c-ctype.c: Likewise.
65450         * tests/test-c-strcasecmp.c: Likewise.
65451         * tests/test-c-strcasestr.c: Likewise.
65452         * tests/test-c-strncasecmp.c: Likewise.
65453         * tests/test-c-strstr.c: Likewise.
65454         * tests/test-canonicalize-lgpl.c: Likewise.
65455         * tests/test-canonicalize.c: Likewise.
65456         * tests/test-carray_list.c: Likewise.
65457         * tests/test-ceilf.c: Likewise.
65458         * tests/test-ceill.c: Likewise.
65459         * tests/test-count-one-bits.c: Likewise.
65460         * tests/test-crc.c: Likewise.
65461         * tests/test-dirname.c: Likewise.
65462         * tests/test-fbufmode.c: Likewise.
65463         * tests/test-fcntl.c: Likewise.
65464         * tests/test-fflush.c: Likewise.
65465         * tests/test-floorf.c: Likewise.
65466         * tests/test-floorl.c: Likewise.
65467         * tests/test-fopen.c: Likewise.
65468         * tests/test-fprintf-posix.c: Likewise.
65469         * tests/test-fprintf-posix.h: Likewise.
65470         * tests/test-fpurge.c: Likewise.
65471         * tests/test-freadable.c: Likewise.
65472         * tests/test-freadahead.c: Likewise.
65473         * tests/test-freading.c: Likewise.
65474         * tests/test-freopen.c: Likewise.
65475         * tests/test-frexp.c: Likewise.
65476         * tests/test-frexpl.c: Likewise.
65477         * tests/test-fseek.c: Likewise.
65478         * tests/test-fseeko.c: Likewise.
65479         * tests/test-fseterr.c: Likewise.
65480         * tests/test-fstrcmp.c: Likewise.
65481         * tests/test-ftell.c: Likewise.
65482         * tests/test-ftello.c: Likewise.
65483         * tests/test-fwritable.c: Likewise.
65484         * tests/test-fwriting.c: Likewise.
65485         * tests/test-getaddrinfo.c: Likewise.
65486         * tests/test-getpass.c: Likewise.
65487         * tests/test-gettimeofday.c: Likewise.
65488         * tests/test-hmac-md5.c: Likewise.
65489         * tests/test-hmac-sha1.c: Likewise.
65490         * tests/test-iconv.c: Likewise.
65491         * tests/test-iconvme.c: Likewise.
65492         * tests/test-inttypes.c: Likewise.
65493         * tests/test-isnan.c: Likewise.
65494         * tests/test-isnanf.c: Likewise.
65495         * tests/test-isnanl-nolibm.c: Likewise.
65496         * tests/test-isnanl.c: Likewise.
65497         * tests/test-isnanl.h: Likewise.
65498         * tests/test-ldexpl.c: Likewise.
65499         * tests/test-linked_list.c: Likewise.
65500         * tests/test-linkedhash_list.c: Likewise.
65501         * tests/test-locale.c: Likewise.
65502         * tests/test-localename.c: Likewise.
65503         * tests/test-lock.c: Likewise.
65504         * tests/test-lseek.c: Likewise.
65505         * tests/test-malloca.c: Likewise.
65506         * tests/test-math.c: Likewise.
65507         * tests/test-mbscasecmp.c: Likewise.
65508         * tests/test-mbscasestr1.c: Likewise.
65509         * tests/test-mbscasestr2.c: Likewise.
65510         * tests/test-mbscasestr3.c: Likewise.
65511         * tests/test-mbscasestr4.c: Likewise.
65512         * tests/test-mbschr.c: Likewise.
65513         * tests/test-mbscspn.c: Likewise.
65514         * tests/test-mbsncasecmp.c: Likewise.
65515         * tests/test-mbspbrk.c: Likewise.
65516         * tests/test-mbspcasecmp.c: Likewise.
65517         * tests/test-mbsrchr.c: Likewise.
65518         * tests/test-mbsspn.c: Likewise.
65519         * tests/test-mbsstr1.c: Likewise.
65520         * tests/test-mbsstr2.c: Likewise.
65521         * tests/test-mbsstr3.c: Likewise.
65522         * tests/test-md5.c: Likewise.
65523         * tests/test-memmem.c: Likewise.
65524         * tests/test-netinet_in.c: Likewise.
65525         * tests/test-open.c: Likewise.
65526         * tests/test-printf-frexp.c: Likewise.
65527         * tests/test-printf-frexpl.c: Likewise.
65528         * tests/test-printf-posix.c: Likewise.
65529         * tests/test-printf-posix.h: Likewise.
65530         * tests/test-rbtree_list.c: Likewise.
65531         * tests/test-rbtree_oset.c: Likewise.
65532         * tests/test-rbtreehash_list.c: Likewise.
65533         * tests/test-read-file.c: Likewise.
65534         * tests/test-rijndael.c: Likewise.
65535         * tests/test-search.c: Likewise.
65536         * tests/test-signbit.c: Likewise.
65537         * tests/test-sleep.c: Likewise.
65538         * tests/test-snprintf-posix.c: Likewise.
65539         * tests/test-snprintf-posix.h: Likewise.
65540         * tests/test-snprintf.c: Likewise.
65541         * tests/test-sprintf-posix.c: Likewise.
65542         * tests/test-sprintf-posix.h: Likewise.
65543         * tests/test-stat-time.c: Likewise.
65544         * tests/test-stdbool.c: Likewise.
65545         * tests/test-stdint.c: Likewise.
65546         * tests/test-stdio.c: Likewise.
65547         * tests/test-stdlib.c: Likewise.
65548         * tests/test-stpncpy.c: Likewise.
65549         * tests/test-strcasestr.c: Likewise.
65550         * tests/test-striconv.c: Likewise.
65551         * tests/test-striconveh.c: Likewise.
65552         * tests/test-striconveha.c: Likewise.
65553         * tests/test-string.c: Likewise.
65554         * tests/test-sys_select.c: Likewise.
65555         * tests/test-sys_socket.c: Likewise.
65556         * tests/test-sys_stat.c: Likewise.
65557         * tests/test-sys_time.c: Likewise.
65558         * tests/test-sysexits.c: Likewise.
65559         * tests/test-time.c: Likewise.
65560         * tests/test-tls.c: Likewise.
65561         * tests/test-trunc.c: Likewise.
65562         * tests/test-truncf.c: Likewise.
65563         * tests/test-truncl.c: Likewise.
65564         * tests/test-unistd.c: Likewise.
65565         * tests/test-vasnprintf-posix.c: Likewise.
65566         * tests/test-vasnprintf-posix2.c: Likewise.
65567         * tests/test-vasnprintf.c: Likewise.
65568         * tests/test-vasprintf-posix.c: Likewise.
65569         * tests/test-vasprintf.c: Likewise.
65570         * tests/test-verify.c: Likewise.
65571         * tests/test-vfprintf-posix.c: Likewise.
65572         * tests/test-vprintf-posix.c: Likewise.
65573         * tests/test-vsnprintf-posix.c: Likewise.
65574         * tests/test-vsnprintf.c: Likewise.
65575         * tests/test-vsprintf-posix.c: Likewise.
65576         * tests/test-wchar.c: Likewise.
65577         * tests/test-wctype.c: Likewise.
65578         * tests/test-wcwidth.c: Likewise.
65579         * tests/test-xstrtol.c: Likewise.
65580         * tests/test-xvasprintf.c: Likewise.
65581         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
65582         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
65583         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
65584         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
65585         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
65586         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
65587         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
65588         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
65589         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
65590         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
65591         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
65592         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
65593         * tests/uniname/test-uninames.c: Likewise.
65594         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
65595         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
65596         * tests/unistdio/test-u16-printf1.h: Likewise.
65597         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
65598         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
65599         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
65600         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
65601         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
65602         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
65603         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
65604         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
65605         * tests/unistdio/test-u32-printf1.h: Likewise.
65606         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
65607         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
65608         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
65609         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
65610         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
65611         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
65612         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
65613         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
65614         * tests/unistdio/test-u8-printf1.h: Likewise.
65615         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
65616         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
65617         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
65618         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
65619         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
65620         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
65621         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
65622         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
65623         * tests/unistdio/test-ulc-printf1.h: Likewise.
65624         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
65625         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
65626         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
65627         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
65628         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
65629         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
65630         * tests/uniwidth/test-u16-strwidth.c: Likewise.
65631         * tests/uniwidth/test-u16-width.c: Likewise.
65632         * tests/uniwidth/test-u32-strwidth.c: Likewise.
65633         * tests/uniwidth/test-u32-width.c: Likewise.
65634         * tests/uniwidth/test-u8-strwidth.c: Likewise.
65635         * tests/uniwidth/test-u8-width.c: Likewise.
65636         * tests/uniwidth/test-uc_width.c: Likewise.
65637         * config/srclist-update: Likewise.
65638         (fixlicense): Update to GPLv3+.
65639
65640         Change copyright notice from LGPLv2.1+ to LGPLv3+.
65641         * tests/test-tsearch.c: Change copyright notice.
65642
65643         Change copyright notice from LGPLv2.0+ to LGPLv3+.
65644         * lib/c-strcaseeq.h: Change copyright notice.
65645         * lib/streq.h: Likewise.
65646         * lib/uniconv.h: Likewise.
65647         * lib/uniconv/u-conv-from-enc.h: Likewise.
65648         * lib/uniconv/u-conv-to-enc.h: Likewise.
65649         * lib/uniconv/u-strconv-from-enc.h: Likewise.
65650         * lib/uniconv/u-strconv-to-enc.h: Likewise.
65651         * lib/uniconv/u16-conv-from-enc.c: Likewise.
65652         * lib/uniconv/u16-conv-to-enc.c: Likewise.
65653         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
65654         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
65655         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
65656         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
65657         * lib/uniconv/u32-conv-from-enc.c: Likewise.
65658         * lib/uniconv/u32-conv-to-enc.c: Likewise.
65659         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
65660         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
65661         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
65662         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
65663         * lib/uniconv/u8-conv-from-enc.c: Likewise.
65664         * lib/uniconv/u8-conv-to-enc.c: Likewise.
65665         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
65666         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
65667         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
65668         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
65669         * lib/uniname.h: Likewise.
65670         * lib/uniname/uniname.c: Likewise.
65671         * lib/unistdio.h: Likewise.
65672         * lib/unistdio/u-asnprintf.h: Likewise.
65673         * lib/unistdio/u-asprintf.h: Likewise.
65674         * lib/unistdio/u-printf-args.c: Likewise.
65675         * lib/unistdio/u-printf-args.h: Likewise.
65676         * lib/unistdio/u-printf-parse.h: Likewise.
65677         * lib/unistdio/u-snprintf.h: Likewise.
65678         * lib/unistdio/u-sprintf.h: Likewise.
65679         * lib/unistdio/u-vasprintf.h: Likewise.
65680         * lib/unistdio/u-vsnprintf.h: Likewise.
65681         * lib/unistdio/u-vsprintf.h: Likewise.
65682         * lib/unistdio/u16-asnprintf.c: Likewise.
65683         * lib/unistdio/u16-asprintf.c: Likewise.
65684         * lib/unistdio/u16-printf-parse.c: Likewise.
65685         * lib/unistdio/u16-snprintf.c: Likewise.
65686         * lib/unistdio/u16-sprintf.c: Likewise.
65687         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
65688         * lib/unistdio/u16-u16-asprintf.c: Likewise.
65689         * lib/unistdio/u16-u16-snprintf.c: Likewise.
65690         * lib/unistdio/u16-u16-sprintf.c: Likewise.
65691         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
65692         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
65693         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
65694         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
65695         * lib/unistdio/u16-vasnprintf.c: Likewise.
65696         * lib/unistdio/u16-vasprintf.c: Likewise.
65697         * lib/unistdio/u16-vsnprintf.c: Likewise.
65698         * lib/unistdio/u16-vsprintf.c: Likewise.
65699         * lib/unistdio/u32-asnprintf.c: Likewise.
65700         * lib/unistdio/u32-asprintf.c: Likewise.
65701         * lib/unistdio/u32-printf-parse.c: Likewise.
65702         * lib/unistdio/u32-snprintf.c: Likewise.
65703         * lib/unistdio/u32-sprintf.c: Likewise.
65704         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
65705         * lib/unistdio/u32-u32-asprintf.c: Likewise.
65706         * lib/unistdio/u32-u32-snprintf.c: Likewise.
65707         * lib/unistdio/u32-u32-sprintf.c: Likewise.
65708         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
65709         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
65710         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
65711         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
65712         * lib/unistdio/u32-vasnprintf.c: Likewise.
65713         * lib/unistdio/u32-vasprintf.c: Likewise.
65714         * lib/unistdio/u32-vsnprintf.c: Likewise.
65715         * lib/unistdio/u32-vsprintf.c: Likewise.
65716         * lib/unistdio/u8-asnprintf.c: Likewise.
65717         * lib/unistdio/u8-asprintf.c: Likewise.
65718         * lib/unistdio/u8-printf-parse.c: Likewise.
65719         * lib/unistdio/u8-snprintf.c: Likewise.
65720         * lib/unistdio/u8-sprintf.c: Likewise.
65721         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
65722         * lib/unistdio/u8-u8-asprintf.c: Likewise.
65723         * lib/unistdio/u8-u8-snprintf.c: Likewise.
65724         * lib/unistdio/u8-u8-sprintf.c: Likewise.
65725         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
65726         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
65727         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
65728         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
65729         * lib/unistdio/u8-vasnprintf.c: Likewise.
65730         * lib/unistdio/u8-vasprintf.c: Likewise.
65731         * lib/unistdio/u8-vsnprintf.c: Likewise.
65732         * lib/unistdio/u8-vsprintf.c: Likewise.
65733         * lib/unistdio/ulc-asnprintf.c: Likewise.
65734         * lib/unistdio/ulc-asprintf.c: Likewise.
65735         * lib/unistdio/ulc-printf-parse.c: Likewise.
65736         * lib/unistdio/ulc-snprintf.c: Likewise.
65737         * lib/unistdio/ulc-sprintf.c: Likewise.
65738         * lib/unistdio/ulc-vasnprintf.c: Likewise.
65739         * lib/unistdio/ulc-vasprintf.c: Likewise.
65740         * lib/unistdio/ulc-vsnprintf.c: Likewise.
65741         * lib/unistdio/ulc-vsprintf.c: Likewise.
65742         * lib/unistr.h: Likewise.
65743         * lib/unistr/u-cpy-alloc.h: Likewise.
65744         * lib/unistr/u-cpy.h: Likewise.
65745         * lib/unistr/u-endswith.h: Likewise.
65746         * lib/unistr/u-move.h: Likewise.
65747         * lib/unistr/u-set.h: Likewise.
65748         * lib/unistr/u-startswith.h: Likewise.
65749         * lib/unistr/u-stpcpy.h: Likewise.
65750         * lib/unistr/u-stpncpy.h: Likewise.
65751         * lib/unistr/u-strcat.h: Likewise.
65752         * lib/unistr/u-strcpy.h: Likewise.
65753         * lib/unistr/u-strcspn.h: Likewise.
65754         * lib/unistr/u-strdup.h: Likewise.
65755         * lib/unistr/u-strlen.h: Likewise.
65756         * lib/unistr/u-strncat.h: Likewise.
65757         * lib/unistr/u-strncpy.h: Likewise.
65758         * lib/unistr/u-strnlen.h: Likewise.
65759         * lib/unistr/u-strpbrk.h: Likewise.
65760         * lib/unistr/u-strspn.h: Likewise.
65761         * lib/unistr/u-strstr.h: Likewise.
65762         * lib/unistr/u-strtok.h: Likewise.
65763         * lib/unistr/u16-check.c: Likewise.
65764         * lib/unistr/u16-chr.c: Likewise.
65765         * lib/unistr/u16-cmp.c: Likewise.
65766         * lib/unistr/u16-cpy-alloc.c: Likewise.
65767         * lib/unistr/u16-cpy.c: Likewise.
65768         * lib/unistr/u16-endswith.c: Likewise.
65769         * lib/unistr/u16-mblen.c: Likewise.
65770         * lib/unistr/u16-mbsnlen.c: Likewise.
65771         * lib/unistr/u16-mbtouc-aux.c: Likewise.
65772         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
65773         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
65774         * lib/unistr/u16-mbtouc.c: Likewise.
65775         * lib/unistr/u16-mbtoucr.c: Likewise.
65776         * lib/unistr/u16-move.c: Likewise.
65777         * lib/unistr/u16-next.c: Likewise.
65778         * lib/unistr/u16-prev.c: Likewise.
65779         * lib/unistr/u16-set.c: Likewise.
65780         * lib/unistr/u16-startswith.c: Likewise.
65781         * lib/unistr/u16-stpcpy.c: Likewise.
65782         * lib/unistr/u16-stpncpy.c: Likewise.
65783         * lib/unistr/u16-strcat.c: Likewise.
65784         * lib/unistr/u16-strchr.c: Likewise.
65785         * lib/unistr/u16-strcmp.c: Likewise.
65786         * lib/unistr/u16-strcpy.c: Likewise.
65787         * lib/unistr/u16-strcspn.c: Likewise.
65788         * lib/unistr/u16-strdup.c: Likewise.
65789         * lib/unistr/u16-strlen.c: Likewise.
65790         * lib/unistr/u16-strmblen.c: Likewise.
65791         * lib/unistr/u16-strmbtouc.c: Likewise.
65792         * lib/unistr/u16-strncat.c: Likewise.
65793         * lib/unistr/u16-strncmp.c: Likewise.
65794         * lib/unistr/u16-strncpy.c: Likewise.
65795         * lib/unistr/u16-strnlen.c: Likewise.
65796         * lib/unistr/u16-strpbrk.c: Likewise.
65797         * lib/unistr/u16-strrchr.c: Likewise.
65798         * lib/unistr/u16-strspn.c: Likewise.
65799         * lib/unistr/u16-strstr.c: Likewise.
65800         * lib/unistr/u16-strtok.c: Likewise.
65801         * lib/unistr/u16-to-u32.c: Likewise.
65802         * lib/unistr/u16-to-u8.c: Likewise.
65803         * lib/unistr/u16-uctomb-aux.c: Likewise.
65804         * lib/unistr/u16-uctomb.c: Likewise.
65805         * lib/unistr/u32-check.c: Likewise.
65806         * lib/unistr/u32-chr.c: Likewise.
65807         * lib/unistr/u32-cmp.c: Likewise.
65808         * lib/unistr/u32-cpy-alloc.c: Likewise.
65809         * lib/unistr/u32-cpy.c: Likewise.
65810         * lib/unistr/u32-endswith.c: Likewise.
65811         * lib/unistr/u32-mblen.c: Likewise.
65812         * lib/unistr/u32-mbsnlen.c: Likewise.
65813         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65814         * lib/unistr/u32-mbtouc.c: Likewise.
65815         * lib/unistr/u32-mbtoucr.c: Likewise.
65816         * lib/unistr/u32-move.c: Likewise.
65817         * lib/unistr/u32-next.c: Likewise.
65818         * lib/unistr/u32-prev.c: Likewise.
65819         * lib/unistr/u32-set.c: Likewise.
65820         * lib/unistr/u32-startswith.c: Likewise.
65821         * lib/unistr/u32-stpcpy.c: Likewise.
65822         * lib/unistr/u32-stpncpy.c: Likewise.
65823         * lib/unistr/u32-strcat.c: Likewise.
65824         * lib/unistr/u32-strchr.c: Likewise.
65825         * lib/unistr/u32-strcmp.c: Likewise.
65826         * lib/unistr/u32-strcpy.c: Likewise.
65827         * lib/unistr/u32-strcspn.c: Likewise.
65828         * lib/unistr/u32-strdup.c: Likewise.
65829         * lib/unistr/u32-strlen.c: Likewise.
65830         * lib/unistr/u32-strmblen.c: Likewise.
65831         * lib/unistr/u32-strmbtouc.c: Likewise.
65832         * lib/unistr/u32-strncat.c: Likewise.
65833         * lib/unistr/u32-strncmp.c: Likewise.
65834         * lib/unistr/u32-strncpy.c: Likewise.
65835         * lib/unistr/u32-strnlen.c: Likewise.
65836         * lib/unistr/u32-strpbrk.c: Likewise.
65837         * lib/unistr/u32-strrchr.c: Likewise.
65838         * lib/unistr/u32-strspn.c: Likewise.
65839         * lib/unistr/u32-strstr.c: Likewise.
65840         * lib/unistr/u32-strtok.c: Likewise.
65841         * lib/unistr/u32-to-u16.c: Likewise.
65842         * lib/unistr/u32-to-u8.c: Likewise.
65843         * lib/unistr/u32-uctomb.c: Likewise.
65844         * lib/unistr/u8-check.c: Likewise.
65845         * lib/unistr/u8-chr.c: Likewise.
65846         * lib/unistr/u8-cmp.c: Likewise.
65847         * lib/unistr/u8-cpy-alloc.c: Likewise.
65848         * lib/unistr/u8-cpy.c: Likewise.
65849         * lib/unistr/u8-endswith.c: Likewise.
65850         * lib/unistr/u8-mblen.c: Likewise.
65851         * lib/unistr/u8-mbsnlen.c: Likewise.
65852         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65853         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65854         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65855         * lib/unistr/u8-mbtouc.c: Likewise.
65856         * lib/unistr/u8-mbtoucr.c: Likewise.
65857         * lib/unistr/u8-move.c: Likewise.
65858         * lib/unistr/u8-next.c: Likewise.
65859         * lib/unistr/u8-prev.c: Likewise.
65860         * lib/unistr/u8-set.c: Likewise.
65861         * lib/unistr/u8-startswith.c: Likewise.
65862         * lib/unistr/u8-stpcpy.c: Likewise.
65863         * lib/unistr/u8-stpncpy.c: Likewise.
65864         * lib/unistr/u8-strcat.c: Likewise.
65865         * lib/unistr/u8-strchr.c: Likewise.
65866         * lib/unistr/u8-strcmp.c: Likewise.
65867         * lib/unistr/u8-strcpy.c: Likewise.
65868         * lib/unistr/u8-strcspn.c: Likewise.
65869         * lib/unistr/u8-strdup.c: Likewise.
65870         * lib/unistr/u8-strlen.c: Likewise.
65871         * lib/unistr/u8-strmblen.c: Likewise.
65872         * lib/unistr/u8-strmbtouc.c: Likewise.
65873         * lib/unistr/u8-strncat.c: Likewise.
65874         * lib/unistr/u8-strncmp.c: Likewise.
65875         * lib/unistr/u8-strncpy.c: Likewise.
65876         * lib/unistr/u8-strnlen.c: Likewise.
65877         * lib/unistr/u8-strpbrk.c: Likewise.
65878         * lib/unistr/u8-strrchr.c: Likewise.
65879         * lib/unistr/u8-strspn.c: Likewise.
65880         * lib/unistr/u8-strstr.c: Likewise.
65881         * lib/unistr/u8-strtok.c: Likewise.
65882         * lib/unistr/u8-to-u16.c: Likewise.
65883         * lib/unistr/u8-to-u32.c: Likewise.
65884         * lib/unistr/u8-uctomb-aux.c: Likewise.
65885         * lib/unistr/u8-uctomb.c: Likewise.
65886         * lib/unitypes.h: Likewise.
65887         * lib/uniwidth.h: Likewise.
65888         * lib/uniwidth/cjk.h: Likewise.
65889         * lib/uniwidth/u16-strwidth.c: Likewise.
65890         * lib/uniwidth/u16-width.c: Likewise.
65891         * lib/uniwidth/u32-strwidth.c: Likewise.
65892         * lib/uniwidth/u32-width.c: Likewise.
65893         * lib/uniwidth/u8-strwidth.c: Likewise.
65894         * lib/uniwidth/u8-width.c: Likewise.
65895         * lib/uniwidth/width.c: Likewise.
65896
65897 2007-10-07  Bruno Haible  <bruno@clisp.org>
65898
65899         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65900         The file is still under LGPL (see modules/inttypes).
65901
65902 2007-10-06  Bruno Haible  <bruno@clisp.org>
65903
65904         * modules/trunc (Dependencies): Add 'extensions'.
65905         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65906         Reported by Ben Pfaff <blp@gnu.org>.
65907
65908 2007-10-06  Bruno Haible  <bruno@clisp.org>
65909
65910         * modules/freopen-tests: New file.
65911         * tests/test-freopen.c: New file.
65912
65913         * modules/fopen-tests: New file.
65914         * tests/test-fopen.c: New file.
65915
65916         * modules/fopen: New file.
65917         * lib/fopen.c: New file.
65918         * m4/fopen.m4: New file.
65919         * modules/freopen: New file.
65920         * lib/freopen.c: New file.
65921         * m4/freopen.m4: New file.
65922         * lib/stdio.in.h (fopen, freopen): New declarations.
65923         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65924         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65925         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65926         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65927         * doc/functions/fopen.texi: Mention the 'fopen' module.
65928         * doc/functions/freopen.texi: Mention the 'freopen' module.
65929
65930 2007-10-06  Bruno Haible  <bruno@clisp.org>
65931
65932         * modules/open-tests: New file.
65933         * tests/test-open.c: New file.
65934
65935         * modules/open: New file.
65936         * lib/open.c: New file.
65937         * m4/open.m4: New file.
65938         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65939         lib/open.c does.
65940         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65941         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65942         macros.
65943         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65944         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65945         REPLACE_OPEN.
65946         * doc/functions/open.texi: Mention the 'open' module.
65947
65948 2007-10-04  Bruno Haible  <bruno@clisp.org>
65949
65950         * modules/ceill-tests: New file.
65951         * tests/test-ceill.c: New file.
65952
65953         * modules/ceill: New file.
65954         * lib/ceill.c: Replace entire file.
65955         * m4/ceill.m4: New file.
65956         * lib/math.in.h (ceill): Replace declaration.
65957         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65958         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65959         * doc/functions/ceill.texi: Mention the 'ceill' module.
65960         * modules/mathl (Files): Remove lib/ceill.c.
65961         (Depends-on): Add ceill.
65962
65963 2007-10-04  Bruno Haible  <bruno@clisp.org>
65964
65965         * modules/ceilf-tests: New file.
65966         * tests/test-ceilf.c: New file.
65967
65968         * modules/ceilf: New file.
65969         * lib/ceil.c: New file.
65970         * lib/ceilf.c: New file.
65971         * m4/ceilf.m4: New file.
65972         * lib/math.in.h (ceilf): New declaration.
65973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65974         HAVE_DECL_CEILF.
65975         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65976         HAVE_DECL_CEILF.
65977         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65978
65979 2007-10-04  Bruno Haible  <bruno@clisp.org>
65980
65981         * modules/floorl-tests: New file.
65982         * tests/test-floorl.c: New file.
65983
65984         * modules/floorl: New file.
65985         * lib/floorl.c: Replace entire file.
65986         * m4/floorl.m4: New file.
65987         * lib/math.in.h (floorl): Replace declaration.
65988         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65989         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65990         * doc/functions/floorl.texi: Mention the 'floorl' module.
65991         * modules/mathl (Files): Remove lib/floorl.c.
65992         (Depends-on): Add floorl.
65993
65994 2007-10-04  Bruno Haible  <bruno@clisp.org>
65995
65996         * modules/floorf-tests: New file.
65997         * tests/test-floorf.c: New file.
65998
65999         * modules/floorf: New file.
66000         * lib/floor.c: New file.
66001         * lib/floorf.c: New file.
66002         * m4/floorf.m4: New file.
66003         * lib/math.in.h (floorf): New declaration.
66004         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
66005         HAVE_DECL_FLOORF.
66006         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
66007         HAVE_DECL_FLOORF.
66008         * doc/functions/floorf.texi: Mention the 'floorf' module.
66009
66010 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
66011             Bruno Haible  <bruno@clisp.org>
66012
66013         Advertise for the Git server instead of the CVS server.
66014         * doc/gnulib-intro.texi (Steady Development): Mention the Git
66015         repository instead of the CVS one.
66016         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
66017         about all VCS systems generically.
66018         * doc/gnulib.texi (Introduction): Capitalize `Git'.
66019
66020 2007-10-04  Bruno Haible  <bruno@clisp.org>
66021
66022         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
66023         means.
66024         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
66025
66026 2007-10-04  Bruno Haible  <bruno@clisp.org>
66027
66028         * modules/truncl-tests: New file.
66029         * tests/test-truncl.c: New file.
66030
66031         * modules/truncl: New file.
66032         * lib/truncl.c: New file.
66033         * m4/truncl.m4: New file.
66034         * lib/math.in.h (truncl): New declaration.
66035         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
66036         HAVE_DECL_TRUNCL.
66037         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
66038         HAVE_DECL_TRUNCL.
66039         * doc/functions/truncl.texi: Mention the 'truncl' module.
66040
66041 2007-10-04  Bruno Haible  <bruno@clisp.org>
66042
66043         * modules/truncf-tests: New file.
66044         * tests/test-truncf.c: New file.
66045
66046         * modules/truncf: New file.
66047         * lib/trunc.c: Make paramerizable through USE_* macros.
66048         * lib/truncf.c: New file.
66049         * m4/truncf.m4: New file.
66050         * lib/math.in.h (truncf): New declaration.
66051         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
66052         HAVE_DECL_TRUNCF.
66053         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
66054         HAVE_DECL_TRUNCF.
66055         * doc/functions/truncf.texi: Mention the 'truncf' module.
66056
66057 2007-10-03  Bruno Haible  <bruno@clisp.org>
66058
66059         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
66060         augmentation also for tests modules.
66061         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
66062         * modules/atexit-tests (Makefile.am): Likewise.
66063         * modules/binary-io-tests (Makefile.am): Likewise.
66064         * modules/c-strcase-tests (Makefile.am): Likewise.
66065         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
66066         * modules/canonicalize-tests (Makefile.am): Likewise.
66067         * modules/closein-tests (Makefile.am): Likewise.
66068         * modules/fprintf-posix-tests (Makefile.am): Likewise.
66069         * modules/freadahead-tests (Makefile.am): Likewise.
66070         * modules/fseek-tests (Makefile.am): Likewise.
66071         * modules/fseeko-tests (Makefile.am): Likewise.
66072         * modules/ftell-tests (Makefile.am): Likewise.
66073         * modules/ftello-tests (Makefile.am): Likewise.
66074         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
66075         * modules/isnanl-tests (Makefile.am): Likewise.
66076         * modules/lseek-tests (Makefile.am): Likewise.
66077         * modules/mbscasecmp-tests (Makefile.am): Likewise.
66078         * modules/mbscasestr-tests (Makefile.am): Likewise.
66079         * modules/mbschr-tests (Makefile.am): Likewise.
66080         * modules/mbscspn-tests (Makefile.am): Likewise.
66081         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
66082         * modules/mbspbrk-tests (Makefile.am): Likewise.
66083         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
66084         * modules/mbsrchr-tests (Makefile.am): Likewise.
66085         * modules/mbsspn-tests (Makefile.am): Likewise.
66086         * modules/mbsstr-tests (Makefile.am): Likewise.
66087         * modules/printf-posix-tests (Makefile.am): Likewise.
66088         * modules/snprintf-posix-tests (Makefile.am): Likewise.
66089         * modules/sprintf-posix-tests (Makefile.am): Likewise.
66090         * modules/tsearch-tests (Makefile.am): Likewise.
66091         * modules/uniname/uniname-tests (Makefile.am): Likewise.
66092         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
66093         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
66094         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
66095         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
66096         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
66097         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
66098         * modules/vprintf-posix-tests (Makefile.am): Likewise.
66099         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
66100         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
66101         * modules/xstrtoimax-tests (Makefile.am): Likewise.
66102         * modules/xstrtol-tests (Makefile.am): Likewise.
66103         * modules/xstrtoumax-tests (Makefile.am): Likewise.
66104         * modules/yesno-tests (Makefile.am): Likewise.
66105
66106 2007-10-03  Bruno Haible  <bruno@clisp.org>
66107
66108         * modules/trunc-tests: New file.
66109         * tests/test-trunc.c: New file.
66110
66111         * modules/trunc: New file.
66112         * lib/trunc.c: New file.
66113         * m4/trunc.m4: New file.
66114         * lib/math.in.h (trunc): New declaration.
66115         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
66116         HAVE_DECL_TRUNC.
66117         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
66118         HAVE_DECL_TRUNC.
66119         * doc/functions/trunc.texi: Mention the 'trunc' module.
66120
66121 2007-10-03  Bruno Haible  <bruno@clisp.org>
66122
66123         * tests/test-fpending.c: New file, mostly copied
66124         from coreutils/lib/t-fpending.c.
66125         * modules/fpending-tests: New file.
66126
66127 2007-10-03  Bruno Haible  <bruno@clisp.org>
66128
66129         Port the stdio extensions to QNX (untested).
66130         * lib/fseterr.c (fseterr): Add support for QNX.
66131         * lib/fbufmode.c (fbufmode): Likewise.
66132         * lib/freadable.c (freadable): Likewise.
66133         * lib/fwritable.c (fwritable): Likewise.
66134         * lib/freading.c (freading): Likewise.
66135         * lib/fwriting.c (fwriting): Likewise.
66136         * lib/freadahead.c (freadahed): Likewise.
66137         * lib/fpurge.c (fpurge): Likewise.
66138         * lib/fseeko.c (rpl_fseeko): Likewise.
66139
66140 2007-10-03  Bruno Haible  <bruno@clisp.org>
66141             Jim Meyering  <jim@meyering.net>
66142             Eric Blake  <ebb9@byu.net>
66143
66144         * doc/relocatable.texi: Use @command instead of @program.
66145
66146 2007-10-02  Jim Meyering  <jim@meyering.net>
66147
66148         Perform one more "_.h" -> ".in.h" substitution.
66149         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
66150         instead of unistd_.h here, too.
66151
66152 2007-10-01  Bruno Haible  <bruno@clisp.org>
66153
66154         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
66155         Needed for the alloca-opt module.
66156
66157 2007-09-30  Bruno Haible  <bruno@clisp.org>
66158
66159         * lib/alloca.in.h: Renamed from lib/alloca_.h.
66160         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
66161         alloca_.h.
66162         * lib/argz.in.h: Renamed from lib/argz_.h.
66163         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
66164         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
66165         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
66166         byteswap_.h.
66167         * lib/dirent.in.h: Renamed from lib/dirent_.h.
66168         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
66169         dirent_.h.
66170         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
66171         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
66172         fcntl_.h.
66173         * lib/float.in.h: Renamed from lib/float_.h.
66174         * modules/float (Files, Makefile.am): Use float.in.h instead of
66175         float_.h.
66176         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
66177         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
66178         fnmatch_.h.
66179         * lib/getopt.in.h: Renamed from lib/getopt_.h.
66180         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
66181         getopt_.h.
66182         * lib/glob.in.h: Renamed from lib/glob_.h.
66183         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
66184         * lib/iconv.in.h: Renamed from lib/iconv_.h.
66185         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
66186         iconv_.h.
66187         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
66188         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
66189         inttypes_.h.
66190         * lib/locale.in.h: Renamed from lib/locale_.h.
66191         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
66192         locale_.h.
66193         * lib/math.in.h: Renamed from lib/math_.h.
66194         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
66195         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
66196         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
66197         of netinet_in_.h. Add dependency.
66198         * lib/poll.in.h: Renamed from lib/poll_.h.
66199         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
66200         * lib/search.in.h: Renamed from lib/search_.h.
66201         * modules/search (Files, Makefile.am): Use search.in.h instead of
66202         search_.h.
66203         * lib/signal.in.h: Renamed from lib/signal_.h.
66204         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
66205         _signal.h.
66206         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
66207         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
66208         stdbool_.h.
66209         * lib/stdint.in.h: Renamed from lib/stdint_.h.
66210         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
66211         stdint_.h.
66212         * lib/stdio.in.h: Renamed from lib/stdio_.h.
66213         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
66214         stdio_.h.
66215         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
66216         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
66217         stdlib_.h.
66218         * lib/string.in.h: Renamed from lib/string_.h.
66219         * modules/string (Files, Makefile.am): Use string.in.h instead of
66220         string_.h.
66221         * doc/gnulib-tool.texi (Initial import): Update.
66222         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
66223         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
66224         of sys_select_.h. Add dependency.
66225         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
66226         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
66227         of sys_socket_.h.
66228         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
66229         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
66230         sys_stat_.h.
66231         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
66232         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
66233         sys_time_.h.
66234         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
66235         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
66236         sysexits_.h.
66237         * lib/time.in.h: Renamed from lib/time_.h.
66238         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
66239         * lib/unistd.in.h: Renamed from lib/unistd_.h.
66240         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
66241         unistd_.h.
66242         * lib/wchar.in.h: Renamed from lib/wchar_.h.
66243         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
66244         wchar_.h.
66245         * lib/wctype.in.h: Renamed from lib/wctype_.h.
66246         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
66247         wctype_.h.
66248         * build-aux/bootstrap (slurp): Update.
66249         * lib/.cppi-disable: Update.
66250
66251 2007-09-30  Bruno Haible  <bruno@clisp.org>
66252
66253         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
66254         Needed on BeOS.
66255
66256 2007-09-30  Bruno Haible  <bruno@clisp.org>
66257
66258         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
66259
66260 2007-09-29  Bruno Haible  <bruno@clisp.org>
66261
66262         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
66263
66264 2007-09-29  Bruno Haible  <bruno@clisp.org>
66265
66266         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
66267         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
66268         * build-aux/install-reloc: Compile also areadlink.c.
66269         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
66270
66271 2007-09-29  Bruno Haible  <bruno@clisp.org>
66272
66273         * gnulib-tool (func_emit_initmacro_done): Indentation.
66274
66275 2007-09-29  Bruno Haible  <bruno@clisp.org>
66276
66277         * README: Add CVS checkout update instructions.
66278         Info from Bob Proulx <bob@proulx.com>.
66279
66280 2007-09-28  Eric Blake  <ebb9@byu.net>
66281
66282         Provide move-if-change.
66283         * build-aux/move-if-change: New file, based on best practice
66284         rather than any canonical upstream location.
66285
66286 2007-09-28  Jim Meyering  <jim@meyering.net>
66287
66288         Fix canonicalize loop-detection corner case.
66289         Do not attempt to stat the symlink values stored via seen_triple.
66290         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
66291         on linux-2.6.18, (but not 2.6.22).
66292         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
66293         triple_compare.  The former compares dev,ino,filename, while the latter
66294         would actually stat dirname(filename) when dev and ino were equal.
66295         * lib/hash-triple.c: Install <string.h>.
66296         (STREQ): Define.
66297         (triple_compare_ino_str): New function.
66298         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
66299
66300 2007-09-28  Eric Blake  <ebb9@byu.net>
66301
66302         Enforce that AC_REPLACE_FUNCS files exist.
66303         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
66304         override check for typos.
66305
66306         Fix test-closein on Solaris 10.
66307         * tests/test-closein.c (main): Don't assume stdin can be inherited
66308         closed on all systems.
66309         * tests/test-closein.sh: Likewise.
66310         Reported by Piotr Tarnowski.
66311
66312 2007-09-28  Jim Meyering  <jim@meyering.net>
66313
66314         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
66315
66316 2007-09-27  Jim Meyering  <jim@meyering.net>
66317
66318         canonicalize: Avoid a false-positive cycle failure.
66319         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
66320         Sort.  Remove cycle-check.
66321         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
66322         not cycle-check.h.
66323         (seen_triple): New function.
66324         (canonicalize_filename_mode): Use it instead of cycle-check.
66325         * tests/test-canonicalize.c: Add a test for this bug.
66326         * tests/test-canonicalize.sh: Set up and run the test.
66327
66328         New module, file-set, from coreutils.
66329         * modules/file-set: Define it.
66330         * lib/file-set.c, lib/file-set.h: Implement.
66331
66332         New module, hash-triple, from coreutils.
66333         * modules/hash-triple: Define it.
66334         * lib/hash-triple.c, lib/hash-triple.h: Implement.
66335
66336 2007-09-25  Eric Blake  <ebb9@byu.net>
66337
66338         Fix strerror on Interix.
66339         * lib/string_.h (strerror): Declare replacement.
66340         * doc/functions/strerror.texi (strerror): Document the Interix
66341         shortcoming.
66342         * modules/string (Makefile.am): Support new hooks.
66343         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
66344         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
66345         gl_FUNC_STRERROR_SEPARATE.
66346         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
66347         * lib/strerror.c (rpl_strerror): Provide replacement.
66348         * modules/strerror (Depends-on): Add string.
66349         (configure.ac): Detect use of module.
66350         * tests/test-strerror.c: New file.
66351         * modules/strerror-tests: New test module.
66352         * modules/argp (Depends-on): Add strerror.
66353         * modules/error (Depends-on): Likewise.
66354         Reported by Martin Koeppe.
66355
66356 2007-09-24  Bruno Haible  <bruno@clisp.org>
66357
66358         * README: Update git instructions.
66359
66360 2007-09-24  Eric Blake  <ebb9@byu.net>
66361
66362         Revert fpending breakage from 2007-09-08.
66363         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
66364         __fpending.c.
66365
66366 2007-09-24  Jim Meyering  <jim@meyering.net>
66367
66368         filenamecat.c: Add a test.
66369         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
66370         showing how the function works when DIR is the empty string.
66371
66372 2007-09-21  Simon Josefsson  <simon@josefsson.org>
66373
66374         * tests/test-canonicalize.sh: Turn on executable bit.
66375
66376 2007-09-19  Eric Blake  <ebb9@byu.net>
66377
66378         * README: Update CVS instructions.
66379
66380 2007-09-18  Bruno Haible  <bruno@clisp.org>
66381
66382         * modules/areadlink: New file.
66383         * lib/areadlink.h (areadlink): New declaration.
66384         * lib/areadlink.c: New file, based on lib/xreadlink.c.
66385
66386 2007-09-17  Jim Meyering  <jim@meyering.net>
66387
66388         * lib/savewd.c (ESTALE) [!defined]: Define.
66389         Reported to be required on Interix by Martin Koeppe.
66390
66391 2007-09-17  Bruno Haible  <bruno@clisp.org>
66392
66393         * gnulib-tool (func_version): Use $version.
66394
66395 2007-09-16  Bruno Haible  <bruno@clisp.org>
66396
66397         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
66398         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
66399         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
66400         Reported by Greg Schafer <gschafer@zip.com.au>.
66401
66402 2007-09-15  Bruno Haible  <bruno@clisp.org>
66403
66404         * gnulib-tool (sed): Try a little harder to make bash understand the
66405         alias.
66406         Reported by Bruce Korb <bruce.korb@gmail.com>.
66407
66408 2007-09-13  Eric Blake  <ebb9@byu.net>
66409
66410         * ChangeLog: Remove conflict markers.
66411
66412 2007-09-13  Simon Josefsson  <simon@josefsson.org>
66413
66414         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
66415         Reported by Bruno Haible <bruno@clisp.org>.
66416
66417 2007-09-12  Bruno Haible  <bruno@clisp.org>
66418
66419         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
66420         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
66421         is not defined.
66422
66423 2007-09-12  Eric Blake  <ebb9@byu.net>
66424
66425         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
66426         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
66427         Autoconf definition.
66428         * modules/euidaccess (Depends-on): Add extensions, for
66429         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
66430         * modules/fnmatch (Depends-on): Likewise.
66431         * modules/getaddrinfo (Depends-on): Likewise.
66432         * modules/getdelim (Depends-on): Likewise.
66433         * modules/getline (Depends-on): Likewise.
66434         * modules/getsubopt (Depends-on): Likewise.
66435         * modules/gettext (Depends-on): Likewise.
66436         * modules/group-member (Depends-on): Likewise.
66437         * modules/mbchar (Depends-on): Likewise.
66438         * modules/memmem (Depends-on): Likewise.
66439         * modules/mempcpy (Depends-on): Likewise.
66440         * modules/memrchr (Depends-on): Likewise.
66441         * modules/pagealign_alloc (Depends-on): Likewise.
66442         * modules/readutmp (Depends-on): Likewise.
66443         * modules/stpcpy (Depends-on): Likewise.
66444         * modules/stpncpy (Depends-on): Likewise.
66445         * modules/strchrnul (Depends-on): Likewise.
66446         * modules/strndup (Depends-on): Likewise.
66447         * modules/strsep (Depends-on): Likewise.
66448         * modules/strverscmp (Depends-on): Likewise.
66449         * modules/vasprintf (Depends-on): Likewise.
66450         * modules/wcwidth (Depends-on): Likewise.
66451         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
66452         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
66453         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
66454         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
66455         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
66456         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66457         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
66458         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66459         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
66460         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
66461         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
66462         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66463         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66464         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
66465         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
66466         * m4/readutmp.m4 (gl_READUTMP): Likewise.
66467         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66468         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66469         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66470         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66471         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66472         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66473         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66474         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
66475         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
66476         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66477         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
66478         so that lock.m4 can be used in gettext without extensions module.
66479
66480 2007-09-11  Bruno Haible  <bruno@clisp.org>
66481
66482         * m4/isc-posix.m4: Remove file.
66483         Suggested by Eric Blake.
66484
66485 2007-09-11  Eric Blake  <ebb9@byu.net>
66486
66487         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
66488
66489 2007-09-10  Bruno Haible  <bruno@clisp.org>
66490
66491         * posix-modules: Fix typo in error message.
66492         Reported by Matt <mkraai@beckman.com>.
66493
66494 2007-09-09  Bruno Haible  <bruno@clisp.org>
66495
66496         * doc/functions/getdelim.texi: Update list of platforms lacking the
66497         function.
66498         * doc/functions/getline.texi: Likewise.
66499
66500 2007-09-09  Jim Meyering  <jim@meyering.net>
66501
66502         * lib/hash.c (hash_initialize): Detect calloc failure.
66503         Reported by Bruno Haible.
66504
66505 2007-09-09  Bruno Haible  <bruno@clisp.org>
66506
66507         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
66508         malloc or realloc fails.
66509
66510 2007-09-09  Bruno Haible  <bruno@clisp.org>
66511
66512         * modules/getcwd (Depends-on): Add malloc-posix.
66513         * modules/glob (Depends-on): Likewise.
66514         * modules/putenv (Depends-on): Likewise.
66515         * modules/strdup (Depends-on): Likewise.
66516         * modules/getdelim (Depends-on): Add realloc-posix.
66517         * modules/read-file (Depends-on): Likewise.
66518
66519 2007-09-09  Bruno Haible  <bruno@clisp.org>
66520
66521         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
66522         (gl_FUNC_MALLOC_POSIX): Require it.
66523         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
66524         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
66525         * modules/realloc (Files): Add m4/malloc.m4.
66526         * modules/calloc (Files): Likewise.
66527
66528 2007-09-09  Bruno Haible  <bruno@clisp.org>
66529
66530         * modules/malloc-posix: New file.
66531         * modules/malloc (Depends-on): Add malloc-posix.
66532         * lib/malloc.c: Include errno.h.
66533         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
66534         and a POSIX-compatible malloc into a single function. Set ENOMEM
66535         when returning NULL.
66536         * m4/malloc.m4: New file.
66537         * doc/functions/malloc.texi: Mention the malloc-posix module.
66538         * lib/stdlib_.h (malloc): New declaration.
66539         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66540         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
66541         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
66542         and HAVE_MALLOC_POSIX.
66543
66544 2007-09-09  Bruno Haible  <bruno@clisp.org>
66545
66546         * modules/realloc-posix: New file.
66547         * modules/realloc (Depends-on): Add realloc-posix.
66548         * lib/realloc.c: Include errno.h.
66549         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
66550         and a POSIX-compatible realloc into a single function. Set ENOMEM
66551         when returning NULL.
66552         * m4/realloc.m4: New file.
66553         * doc/functions/realloc.texi: Mention the realloc-posix module.
66554         * lib/stdlib_.h (realloc): New declaration.
66555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66556         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
66557         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
66558         and HAVE_REALLOC_POSIX.
66559
66560 2007-09-09  Bruno Haible  <bruno@clisp.org>
66561
66562         * modules/calloc-posix: New file.
66563         * modules/calloc (Depends-on): Add calloc-posix.
66564         * lib/calloc.c: Include errno.h.
66565         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
66566         and a POSIX-compatible calloc into a single function. Set ENOMEM
66567         when returning NULL.
66568         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
66569         * doc/functions/calloc.texi: Mention the calloc-posix module.
66570         * lib/stdlib_.h (calloc): New declaration.
66571         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
66572         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
66573         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
66574         and HAVE_CALLOC_POSIX.
66575
66576 2007-09-09  Bruno Haible  <bruno@clisp.org>
66577
66578         Allow for modules to show an arbitrary notice.
66579         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
66580         * gnulib-tool: New option --extract-notice.
66581         (func_usage): Document it.
66582         (sed_extract_prog): Update.
66583         (func_get_notice): New function.
66584         (func_modules_notice): New function.
66585         (func_import, func_create_testdir): Invoke it.
66586         Suggested by Jim Meyering.
66587
66588 2007-09-09  Bruno Haible  <bruno@clisp.org>
66589
66590         * gnulib-tool: New options --verbose, --quiet.
66591         (func_usage): Document them.
66592         (verbose): New variable.
66593         (func_execute_command): New function.
66594         (func_import): Don't show the module list and the file list if
66595         $verbose < 0.
66596         (func_create_testdir): Likewise. Use func_execute_command.
66597         (func_create_megatestdir): Use func_execute_command.
66598
66599 2007-09-08  Bruno Haible  <bruno@clisp.org>
66600
66601         * gnulib-tool (func_import): Prefer rsync over wget when available,
66602         for fetching the PO files.
66603
66604 2007-09-08  Bruno Haible  <bruno@clisp.org>
66605
66606         * posix-modules: New file. Portions copied from gnulib-tool.
66607         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
66608
66609 2007-09-08  Jim Meyering  <jim@meyering.net>
66610
66611         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
66612         * lib/fpending.h: Rename from __fpending.h.
66613         * lib/fpending.c: Rename from __fpending.c.
66614         Include "fpending.h", not "__fpending.h".
66615         * lib/__fpending.h, lib/__fpending.c: Remove files.
66616         * modules/fpending (Files): Reflect new file names.
66617         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
66618
66619 2007-09-08  Bruno Haible  <bruno@clisp.org>
66620
66621         * m4/inttypes-h.m4: Remove stub file.
66622
66623 2007-09-07  Simon Josefsson  <simon@josefsson.org>
66624
66625         * doc/headers/stdint.texi: Discuss #include_next issue.
66626
66627 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
66628
66629         * build-aux/bootstrap: Remove obsolete comment about wget --help.
66630
66631 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66632
66633         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
66634         in variable name.
66635
66636 2007-09-03  Jim Meyering  <jim@meyering.net>
66637
66638         New module: git-version-gen.
66639         * modules/git-version-gen: New file.
66640
66641         Import changes from coreutils for bootstrap script.
66642
66643         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
66644
66645         bootstrap: uses rsync to download the .po files
66646         * build-aux/bootstrap (po_download_command_format): New global.
66647         (download_po_files): Use rsync.
66648         (update_po_files): Don't remove .po files after download,
66649         so future rsync runs can take advantage of the copies.
66650
66651         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
66652
66653         Solve the unnecessary-.po-file-regeneration problem once and for all.
66654         * build-aux/bootstrap (download_po_files): New function, renamed from
66655         get_translations.  Now, downloads, but doesn't update LINGUAS.
66656         (update_po_files): New function.
66657
66658         bootstrap: Ignore more.
66659         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
66660         uniwidth to e.g., lib/.gitignore.
66661         (slurp): Handle the sys_stat_.h -> sys mapping, too.
66662
66663         * build-aux/bootstrap: New setting: vc_ignore.
66664         (insert_sorted_if_absent): Create $file if absent.
66665         Adapt to new, possibly empty, list: $vc_ignore.
66666
66667         bootstrap: generate more ignorable names
66668         * build-aux/bootstrap (slurp): When generating ignorable names,
66669         also map .sin to .sed, .gperf to .c, and .y to .c.
66670
66671 2007-09-03  Jim Meyering  <jim@meyering.net>
66672
66673         * build-aux/git-version-gen: New file, from coreutils.  For details, see
66674         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
66675
66676 2007-09-02  Bruno Haible  <bruno@clisp.org>
66677
66678         Fix mis-recognition of 'mcs' on QNX 6.
66679         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
66680         output contains the string "Mono".
66681         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
66682         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
66683
66684 2007-09-01  Bruno Haible  <bruno@clisp.org>
66685
66686         Fix collision between uniwidth/* and linebreak modules.
66687         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
66688         u32_width): Remove declarations.
66689         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
66690         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
66691         streq3, streq2, streq1, streq0): Remove functions.
66692         (STREQ): Remove macro.
66693         (is_cjk_encoding): Remove function.
66694         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
66695         (uc_width, u8_width, u16_width, u32_width): Remove functions.
66696         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
66697         * NEWS: Document the change.
66698
66699 2007-09-01  Bruno Haible  <bruno@clisp.org>
66700
66701         * lib/streq.h: Add double-inclusion guard.
66702
66703 2007-09-01  Karl Berry  <karl@gnu.org>
66704
66705         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
66706
66707 2007-08-28  Jim Meyering  <jim@meyering.net>
66708
66709         Rename mreadlink_with_size to areadlink_with_size.
66710         * NEWS: Document the change.
66711         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
66712         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
66713         * lib/mreadlink.h: Rename this to...
66714         * lib/areadlink.h: ...this.
66715         * modules/mreadlink-with-size: Rename this to...
66716         * modules/areadlink-with-size: ...this.
66717         * lib/canonicalize.c: Reflect the renaming.
66718         * modules/canonicalize: Likewise.
66719
66720 2007-08-26  Bruno Haible  <bruno@clisp.org>
66721
66722         * gnulib-tool (func_import): When deciding which files to remove,
66723         consider also dangling symbolic links.
66724         Reported by Eric Blake.
66725
66726 2007-08-26  Bruno Haible  <bruno@clisp.org>
66727
66728         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
66729
66730 2007-08-23  Simon Josefsson  <simon@josefsson.org>
66731
66732         * lib/readline.c: Don't include getline.h, the prototype is now
66733         found in stdio.h.
66734
66735 2007-08-23  Jim Meyering  <jim@meyering.net>
66736
66737         Getdelim touchup.
66738         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
66739         around the funlockfile call, since funlockfile never sets errno.
66740         Don't set errno upon failed realloc.
66741
66742 2007-08-22  Eric Blake  <ebb9@byu.net>
66743
66744         Getline touchups.
66745         * lib/getdelim.c (getdelim): Revert regression that required *n to
66746         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
66747         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
66748         getdelim, rather than whether implementation is missing.
66749         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
66750         * lib/stdio_.h (getline): Also declare if replacement is
66751         required.
66752         * doc/functions/getdelim.texi: New file.
66753         * doc/functions/getline.texi: Likewise.
66754         * doc/gnulib.texi (Function Substitutes): Add new files.
66755         Reported by Bruno Haible.
66756
66757 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
66758
66759         * users.txt: Add Guile.
66760
66761 2007-08-22  Eric Blake  <ebb9@byu.net>
66762
66763         * tests/test-getdelim.c (main): Use remove, not unlink.
66764         * tests/test-getline.c (main): Likewise.
66765
66766         Move getline and getdelim into stdio.h, per POSIX 200x.
66767         * modules/getline (Files): Remove getline.h.
66768         (Depends-on): Add stdio.
66769         (configure.ac): Add module indicator.
66770         * modules/getdelim (Files): Remove getdelim.h.
66771         (Depends-on): Add stdio.
66772         (configure.ac): Add module indicator.
66773         * modules/stdio (Makefile.am): Work with new indicators.
66774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
66775         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
66776         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
66777         * lib/getdelim.h: Delete.
66778         * lib/getline.h: Delete.
66779         * lib/stdio_.h (getdelim, getline): Declare.
66780         * modules/getdelim-tests: New module.
66781         * modules/getline-tests: Likewise.
66782         * tests/test-getdelim.c: New file.
66783         * tests/test-getline.c: Likewise.
66784         * NEWS: Document the change.
66785         * lib/getline.c: Update choice of header.
66786         * lib/csharpcomp.c: Likewise.
66787         * lib/getpass.c: Likewise.
66788         * lib/javacomp.c: Likewise.
66789         * lib/javaversion.c: Likewise.
66790         * lib/yesno.c: Likewise.
66791         * lib/getdelim.c: Likewise.
66792         (getdelim): Set errno on failure, and avoid memory leak.
66793
66794 2007-08-19  Bruno Haible  <bruno@clisp.org>
66795
66796         * modules/closein (Depends-on): Add freadahead.
66797         * lib/closein.c: Include freadahead.h.
66798         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
66799         is zero.
66800
66801 2007-08-19  Bruno Haible  <bruno@clisp.org>
66802
66803         * modules/freadahead-tests: New file.
66804         * tests/test-freadahead.sh: New file.
66805         * tests/test-freadahead.c: New file.
66806
66807         * modules/freadahead: New file.
66808         * lib/freadahead.h: New file.
66809         * lib/freadahead.c: New file.
66810         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66811         fbufmode, fpurge, freadable, fwritable.
66812
66813 2007-08-19  Eric Blake  <ebb9@byu.net>
66814
66815         Test yesno in combination with closein.
66816         * lib/yesno.c (yesno): Document use of stdin.
66817         * modules/yesno-tests (Files): New module.
66818         * tests/test-yesno.c (main): New file.
66819         * tests/test-yesno.sh: Likewise.
66820
66821 2007-08-19  Bruno Haible  <bruno@clisp.org>
66822
66823         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66824         * lib/fseeko.c (rpl_fseeko): Likewise.
66825         * lib/fseterr.c (fseterr): Likewise.
66826
66827 2007-08-19  Bruno Haible  <bruno@clisp.org>
66828
66829         * tests/test-lseek.c (main): Disable a test for BeOS.
66830         * doc/functions/lseek.texi: Document the BeOS bug.
66831
66832 2007-08-19  Bruno Haible  <bruno@clisp.org>
66833             Eric Blake  <ebb9@byu.net>
66834
66835         * lib/lseek.c: Include <sys/stat.h>.
66836         (rpl_lseek): Add workaround code also for Unix platforms.
66837         Needed for BeOS.
66838         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66839         * doc/functions/lseek.texi: Document BeOS definiency.
66840
66841 2007-08-18  Bruno Haible  <bruno@clisp.org>
66842
66843         * modules/fstrcmp-tests: New file.
66844         * tests/test-fstrcmp.c: New file.
66845
66846 2007-08-18  Bruno Haible  <bruno@clisp.org>
66847
66848         * modules/fstrcmp: New file, from GNU gettext with modifications.
66849         * lib/fstrcmp.h: New file, from GNU gettext.
66850         * lib/fstrcmp.c: New file, from GNU gettext.
66851         * MODULES.html.sh (String handling): Add fstrcmp.
66852
66853 2007-08-18  Bruno Haible  <bruno@clisp.org>
66854
66855         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66856         'bool'.
66857         (diag, compareseq): Remove const from the ctxt argument.
66858         (USE_HEURISTIC): Undefine at the end.
66859
66860 2007-08-18  Jim Meyering  <jim@meyering.net>
66861
66862         New file: lib/idcache.h
66863         * NEWS: Mention the addition.
66864         * modules/idcache (Files): Add lib/idcache.h
66865         * lib/idcache.c: Include "idcache.h".
66866         Don't include <sys/types.h>.
66867         Add a FIXME comment.
66868         Move file-scoped "static" declarations to the top.
66869         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66870
66871 2007-08-17  Bruno Haible  <bruno@clisp.org>
66872         and Paul Eggert  <eggert@cs.ucla.edu>
66873
66874         * MODULES.html.sh: Add diffseq.
66875         * modules/diffseq: New file.
66876         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66877         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66878
66879 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66880
66881         Import changes from coreutils for bootstrap script.
66882
66883         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66884
66885         * build-aux/bootstrap (slurp): Work even in environments where
66886         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66887         current code does not slurp files whose names start with ".", and
66888         this looks like it might be a troublesome area.
66889
66890         2007-07-11  Jim Meyering  <jim@meyering.net>
66891
66892         If there's a GPL vN copyright comment, require that N == 3.
66893
66894         2007-07-08  Jim Meyering  <jim@meyering.net>
66895
66896         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66897         * build-aux/bootstrap (mam_template): Move definition out of loop.
66898
66899         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66900
66901         * build-aux/bootstrap (symlink_to_dir): Rename function from
66902         symlink_to_gnulib.  Add a directory parameter.  Update all
66903         callers.
66904         (cp_mark_as_generated): Also check for -- and link to -- files in
66905         gl/.
66906
66907         2007-07-08  Jim Meyering  <jim@meyering.net>
66908
66909         Adapt to deeper hierarchy in gnulib.
66910         * build-aux/bootstrap (symlink_to_dir): If the destination
66911         directory doesn't exist, create it. This is required at least for
66912         "lib/uniwidth/cjk.h".
66913
66914         2007-05-15  Jim Meyering  <jim@meyering.net>
66915
66916         * build-aux/bootstrap: Now that generated Makefile.am files
66917         are no longer under version control, they must be created at
66918         bootstrap time.
66919
66920 2007-08-14  Ben Pfaff  <blp@gnu.org>
66921
66922         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66923
66924 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66925
66926         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66927         given the changes below.
66928         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66929         even on hosts that have padding bits beyond the supported 64.
66930
66931 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66932
66933         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66934         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66935         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66936         depends on it.
66937         (xstrtol_error): Remove.
66938         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66939         but with a different signature.
66940         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66941         * lib/xstrtol-error.c: Include exitfail.h.
66942         (xstrtol_fatal): New function, with a different signature from the
66943         old xstrtol_error, so that the caller need not worry about passing
66944         in an exit status, or about storage management of the option argument.
66945         (xstrtol_error): Now a static function.  Redo signature to
66946         implement xstrtol_fatal.  Output the correct number of hyphens in
66947         front of the option so that the caller need not worry about
66948         storage management.
66949         (N_): New macro.
66950         (_): Remove; not used now.
66951         * modules/xstrtol: Depend on getopt.
66952         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66953         of old STRTOL_FATAL_ERROR macro.
66954         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66955         of test program.
66956         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66957         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66958
66959 2007-08-08  Eric Blake  <ebb9@byu.net>
66960
66961         * lib/xstrtol-error.c: Add missing include.
66962
66963         Move xstrtol messages into gnulib domain, when --pobase is used.
66964         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66965         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66966         * modules/xstrtol (Files): Distribute new file.
66967         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66968         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66969         * tests/test-xstrtol.c: ...into new file.
66970         * tests/test-xstrtoul.c: Also test xstrtoul.
66971         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66972         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66973         * tests/test-xstrtol.sh: Drive the tests.
66974         * tests/test-xstrtoimax.sh: Likewise.
66975         * tests/test-xstrtoumax.sh: Likewise.
66976         * modules/xstrtol-tests: New module.
66977         * modules/xstrtoimax-tests: Likewise.
66978         * modules/xstrtoumax-tests: Likewise.
66979
66980 2007-08-08  Jim Meyering  <jim@meyering.net>
66981
66982         New function: mfile_name_concat.
66983         * lib/filenamecat.c (mfile_name_concat): New function, just like
66984         file_name_concat, but return NULL upon failure rather than exiting
66985         with a diagnostic.
66986         * lib/filenamecat.h: Declare it.
66987
66988 2007-08-07  Bruno Haible  <bruno@clisp.org>
66989
66990         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66991         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66992         warning from gcc.
66993         Reported by Eric Blake.
66994
66995 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66996
66997         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66998         * modules/crypto/arcfour (License): Likewise.
66999         * modules/crypto/des-tests (License): Likewise.
67000         * modules/crypto/gc-arctwo-tests (License): Likewise.
67001         * modules/crypto/gc-des-tests (License): Likewise.
67002         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
67003         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
67004         * modules/crypto/gc-md2-tests (License): Likewise.
67005         * modules/crypto/gc-md4-tests (License): Likewise.
67006         * modules/crypto/gc-md5-tests (License): Likewise.
67007         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
67008         * modules/crypto/gc-rijndael-tests (License): Likewise.
67009         * modules/crypto/gc-sha1-tests (License): Likewise.
67010         * modules/crypto/gc-tests (License): Likewise.
67011         * modules/crypto/hmac-md5 (License): Likewise.
67012         * modules/crypto/hmac-sha1 (License): Likewise.
67013         * modules/crypto/md2-tests (License): Likewise.
67014         * modules/crypto/md4-tests (License): Likewise.
67015         * modules/crypto/md5 (License): Likewise.
67016         * modules/crypto/rijndael (License): Likewise.
67017         * modules/crypto/sha1 (License): Likewise.
67018         * modules/memxor (License): Likewise.
67019
67020 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
67021         and Bruno Haible  <bruno@clisp.org>
67022
67023         * NEWS: Describe interface changes to human, xstrtol.
67024         * lib/human.h: Include <xstrtol.h>.
67025         (human_options): Return enum strtol_error, not int.  Remove
67026         bool arg; take int * instead.
67027         * lib/human.c: Don't include "gettext.h".
67028         (_): Remove; no longer used.
67029         Don't include <xstrtol.h>, since human.h does it.
67030         (human_options): Adjust to abovementioned interface changes.
67031         Do not report error to stderr; that's now the caller's
67032         responsibility.
67033         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
67034         interface change.
67035         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
67036         Str, Argument_type_string.  All uses changed.  Put " argument"
67037         in diagnostics to make them clearer.  Change wording of suffix
67038         message for clarity.
67039         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
67040         Argument_type_string.
67041         (STRTOL_FATAL_WARN): Remove; no longer used.
67042         * modules/human (Depends-on): Remove gettext-h.
67043
67044 2007-08-06  Simon Josefsson  <simon@josefsson.org>
67045
67046         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
67047
67048 2007-07-31  Bruno Haible  <bruno@clisp.org>
67049
67050         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
67051         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
67052         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
67053
67054 2007-07-31  Bruno Haible  <bruno@clisp.org>
67055
67056         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
67057         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
67058
67059 2007-07-30  Bruno Haible  <bruno@clisp.org>
67060
67061         * modules/base64 (License): Use the synonymous term "LGPLv2+".
67062         * modules/c-ctype (License): Likewise.
67063         * modules/c-strcase (License): Likewise.
67064         * modules/check-version (License): Likewise.
67065         * modules/iconv (License): Likewise.
67066         * modules/iconv_open (License): Likewise.
67067         * modules/read-file (License): Likewise.
67068         * modules/striconv (License): Likewise.
67069         * modules/strverscmp (License): Likewise.
67070         * modules/vasprintf (License): Likewise.
67071         * modules/crypto/des (License): Likewise.
67072         * modules/crypto/gc (License): Likewise.
67073         * modules/crypto/gc-arcfour (License): Likewise.
67074         * modules/crypto/gc-arctwo (License): Likewise.
67075         * modules/crypto/gc-des (License): Likewise.
67076         * modules/crypto/gc-hmac-md5 (License): Likewise.
67077         * modules/crypto/gc-hmac-sha1 (License): Likewise.
67078         * modules/crypto/gc-md2 (License): Likewise.
67079         * modules/crypto/gc-md4 (License): Likewise.
67080         * modules/crypto/gc-md5 (License): Likewise.
67081         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
67082         * modules/crypto/gc-random (License): Likewise.
67083         * modules/crypto/gc-rijndael (License): Likewise.
67084         * modules/crypto/gc-sha1 (License): Likewise.
67085         * modules/crypto/md2 (License): Likewise.
67086         * modules/crypto/md4 (License): Likewise.
67087
67088 2007-07-30  Jim Meyering  <jim@meyering.net>
67089
67090         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
67091         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
67092         it has valid stat data.  This bug would cause du not to count the
67093         sizes of inaccessible directories.
67094         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
67095         in <http://bugzilla.redhat.com/250077>.
67096
67097 2007-07-25  Peter O'Gorman  <peter@pogma.com>
67098             Bruno Haible  <bruno@clisp.org>
67099
67100         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
67101         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
67102         #include_next, gives a diagnostic about it, but reports no error in
67103         the exit code.
67104         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
67105
67106 2007-07-24  Ben Pfaff  <blp@gnu.org>
67107
67108         Improve name: "count-one-bits" is better than "popcount".
67109         * MODULES.html.sh: Update name.
67110         * lib/popcount.h: Renamed lib/count-one-bits.h.
67111         (popcount): Renamed count_one_bits.
67112         (popcountl): Renamed count_one_bits_l.
67113         (popcountll): Renamed count_one_bits_ll.
67114         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
67115         * modules/popcount: Renamed module/count-one-bits.
67116         * modules/popcount-tests: Renamed module/count-one-bits-tests.
67117         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
67118
67119 2007-07-23  Ben Pfaff  <blp@gnu.org>
67120
67121         * lib/popcount.h (popcount32): Reduce size of constants, to allow
67122         better code generation, and add U to large constants to avoid
67123         warnings, in non-GCC case.
67124         Suggested by Bruno Haible.
67125
67126 2007-07-23  Ben Pfaff  <blp@gnu.org>
67127
67128         * lib/popcount.h: Use verify_true instead of if...abort.
67129         * modules/popcount: Depend on verify module.
67130         Suggested by Jim Meyering.
67131
67132 2007-07-23  Bruno Haible  <bruno@clisp.org>
67133
67134         * gnulib-tool (func_import): Create a .cvsignore file also when the
67135         directory is not yet in CVS but the toplevel directory is. When
67136         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
67137         Reported by Karl Berry.
67138
67139 2007-07-22  Ben Pfaff  <blp@gnu.org>
67140
67141         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
67142         case.
67143         Suggested by Eric Blake.
67144
67145 2007-07-22  Ben Pfaff  <blp@gnu.org>
67146
67147         New module: popcount.
67148         * MODULES.html.sh: Add popcount.
67149         * modules/popcount: New file.
67150         * modules/popcount-tests: New file.
67151         * tests/test-popcount.c: New file.
67152         * lib/popcount.h: New file.
67153         * m4/popcount.m4: New file.
67154
67155 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
67156
67157         * build-aux/announce-gen: Update to GPLv3.
67158
67159         * build-aux/config.guess: Update from config.
67160
67161 2007-07-21  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
67164         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
67165
67166 2007-07-20  Jim Meyering  <jim@meyering.net>
67167
67168         * check-module: Diagnose a self-dependency.
67169
67170 2007-07-19  Bruno Haible  <bruno@clisp.org>
67171
67172         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
67173         empty.
67174         Reported by Eric Blake.
67175
67176 2007-07-18  Bruno Haible  <bruno@clisp.org>
67177
67178         * gnulib-tool: New options --po-base, --po-domain.
67179         (func_usage): Document them.
67180         (pobase, po_domain): New variables.
67181         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
67182         DEFAULT_TEXT_DOMAIN.
67183         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
67184         (func_import): Consider pobase and po_domain. Create a po/ directory.
67185         (func_create_testdir): Set pobase and po_domain to empty.
67186         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
67187         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
67188
67189 2007-07-18  Bruno Haible  <bruno@clisp.org>
67190
67191         * gnulib-tool (func_get_automake_snippet): Synthesize also an
67192         EXTRA_DIST augmentation for files in build-aux/.
67193
67194 2007-07-16  Bruno Haible  <bruno@clisp.org>
67195
67196         * modules/lseek (License): Use the synonymous term "LGPLv2+".
67197         * modules/getdelim (License): Likewise.
67198
67199 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67200
67201         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
67202         * modules/d-type (License): Likewise.
67203         * modules/extensions (License): Likewise.
67204         * modules/fnmatch (License): Likewise.
67205         * modules/fseeko (License): Likewise.
67206         * modules/getaddrinfo (License): Likewise.
67207         * modules/getline (License): Likewise.
67208         * modules/getlogin_r (License): Likewise.
67209         * modules/getpass (License): Likewise.
67210         * modules/gettimeofday (License): Likewise.
67211         * modules/glob (License): Likewise.
67212         * modules/inet_ntop (License): Likewise.
67213         * modules/malloc (License): Likewise.
67214         * modules/malloca (License): Likewise.
67215         * modules/memmem (License): Likewise.
67216         * modules/mempcpy (License): Likewise.
67217         * modules/memset (License): Likewise.
67218         * modules/minmax (License): Likewise.
67219         * modules/mktime (License): Likewise.
67220         * modules/netinet_in (License): Likewise.
67221         * modules/pathmax (License): Likewise.
67222         * modules/poll (License): Likewise.
67223         * modules/regex (License): Likewise.
67224         * modules/snprintf (License): Likewise.
67225         * modules/stdbool (License): Likewise.
67226         * modules/stdint (License): Likewise.
67227         * modules/stdio (License): Likewise.
67228         * modules/strcase (License): Likewise.
67229         * modules/strcasestr (License): Likewise.
67230         * modules/strdup (License): Likewise.
67231         * modules/string (License): Likewise.
67232         * modules/strndup (License): Likewise.
67233         * modules/strnlen (License): Likewise.
67234         * modules/strpbrk (License): Likewise.
67235         * modules/strptime (License): Likewise.
67236         * modules/strsep (License): Likewise.
67237         * modules/sys_select (License): Likewise.
67238         * modules/sys_socket (License): Likewise.
67239         * modules/sys_stat (License): Likewise.
67240         * modules/sys_time (License): Likewise.
67241         * modules/time (License): Likewise.
67242         * modules/time_r (License): Likewise.
67243         * modules/timegm (License): Likewise.
67244         * modules/unistd (License): Likewise.
67245         * modules/vsnprintf (License): Likewise.
67246         * modules/wctype (License): Likewise.
67247
67248 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67249
67250         * modules/argz (License): LGPLv2+.
67251
67252 2007-07-15  Karl Berry  <karl@gnu.org>
67253
67254         * doc/gnulib.texi: revise node structure per new fdl.texi.
67255
67256 2007-07-14  Bruno Haible  <bruno@clisp.org>
67257
67258         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
67259         the output file.
67260         * lib/uniname/uninames.h: Regenerated.
67261
67262 2007-07-14  Karl Berry  <karl@gnu.org>
67263
67264         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
67265         omitting sectioning and index commands.
67266
67267 2007-07-13  Bruno Haible  <bruno@clisp.org>
67268
67269         New gnulib-tool option --more-symlinks.
67270         * gnulib-tool (func_usage): Document --more-symlinks.
67271         (do_copyrights): New variable.
67272         Recognize option --more-symlinks.
67273         (func_import): Don't add a copyright notice transform to
67274         sed_transform_lib_file if do_copyrights is empty.
67275
67276 2007-07-13  Bruno Haible  <bruno@clisp.org>
67277
67278         * lib/vasnprintf.c (decimal_point_char): Define also if
67279         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
67280         && !NEED_PRINTF_DIRECTIVE_A.
67281         Reported by Clemens Koller <clemens.koller@anagramm.de> via
67282         Gary V. Vaughan <gary@gnu.org>.
67283
67284 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
67285
67286         * lib/inttypes_.h: Undo previous change, since it was fixed
67287         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
67288
67289 2007-07-13  Bruno Haible  <bruno@clisp.org>
67290
67291         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
67292         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
67293
67294 2007-07-13  Jim Meyering  <jim@meyering.net>
67295
67296         df: Don't fail for Tru64's "file-on-file mount".
67297         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
67298         so we fall through and use statfs instead.  Details here:
67299         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
67300         Reported by Albert Chin.
67301
67302 2007-07-13  Bruno Haible  <bruno@clisp.org>
67303
67304         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
67305         * modules/configmake (License): Likewise.
67306         * modules/gettext (License): Likewise.
67307         * modules/gettext-h (License): Likewise.
67308         * modules/include_next (License): Likewise.
67309         * modules/link-warning (License): Likewise.
67310         * modules/localcharset (License): Likewise.
67311         * modules/localename (License): Likewise.
67312         * modules/lock (License): Likewise.
67313         * modules/relocatable-lib-lgpl (License): Likewise.
67314         * modules/size_max (License): Likewise.
67315         * modules/vasnprintf (License): Likewise.
67316         * modules/wchar (License): Likewise.
67317         * modules/xsize (License): Likewise.
67318
67319 2007-07-13  Bruno Haible  <bruno@clisp.org>
67320
67321         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
67322         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
67323
67324 2007-07-12  Bruno Haible  <bruno@clisp.org>
67325
67326         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
67327         in the modules files.
67328
67329 2007-07-11  Karl Berry  <karl@gnu.org>
67330
67331         * MODULES.html.sh (func_module): use
67332          sed -e '\|^'"${includefile}"'$|d'
67333          instead of /.../d, to avoid errors on $includefile's containing /.
67334
67335 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
67336
67337         * gnulib-tool (func_import): Avoid duplication of --avoid
67338         statements
67339         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
67340         names to `_' in variable names.
67341
67342 2007-07-10  Eric Blake  <ebb9@byu.net>
67343
67344         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
67345         * NEWS: Document this change.
67346
67347 2007-07-08  Bruno Haible  <bruno@clisp.org>
67348
67349         Update to Unicode 5.0.
67350         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
67351         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
67352         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
67353         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
67354         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
67355         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
67356         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
67357         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
67358         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
67359         U+10A3F, U+1D242..U+1D244.
67360         (nonspacing_table_ind): Update.
67361         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
67362         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
67363
67364 2007-07-08  Bruno Haible  <bruno@clisp.org>
67365
67366         Update to Unicode 5.0.
67367         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
67368         code transform. Extend the name index field of unicode_name_to_code and
67369         unicode_code_to_name from 16 to 24 bits.
67370         * lib/uniname/uniname.c (unicode_character_name,
67371         unicode_name_character): Add the range 0x12xxx to the code transform.
67372         * lib/uniname/uninames.h: Regenerated.
67373         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
67374
67375 2007-07-07  Bruno Haible  <bruno@clisp.org>
67376
67377         * modules/wcwidth-tests: New file.
67378         * tests/test-wcwidth.c: New file.
67379
67380         Work around MacOS X wcwidth() bug.
67381         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
67382         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
67383         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
67384         original wcwidth in non-UTF-8 locales.
67385         * modules/wcwidth (Depends-on): Add localcharset, streq,
67386         uniwidth/width.
67387         * doc/functions/wcwidth.texi: Update.
67388
67389 2007-07-07  Bruno Haible  <bruno@clisp.org>
67390
67391         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
67392         (wcwidth): New declaration.
67393         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
67394         macros.
67395         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
67396         here. Prepare for creating <wchar.h> unconditionally.
67397         * modules/wchar (Depends-on): Add link-warning.
67398         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
67399         REPLACE_WCWIDTH, and GL_LINK_WARNING.
67400         * lib/wcwidth.h: Remove file.
67401         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
67402         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
67403         * modules/wcwidth (Files): Remove lib/wcwidth.h.
67404         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
67405         (Include): Replace wcwidth.h with <wchar.h>.
67406         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
67407         * lib/mbchar.h: Don't include wcwidth.h.
67408         * lib/mbswidth.c: Likewise.
67409         * NEWS: Mention the change.
67410
67411 2007-07-07  Bruno Haible  <bruno@clisp.org>
67412
67413         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
67414         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
67415         definition with an external declaration.
67416         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
67417         defined as a function. Remove AC_C_INLINE requirement.
67418         * modules/wcwidth (Files): Add lib/wcwidth.c.
67419         (Makefile.am): Remove redundant statement.
67420
67421 2007-07-07  Bruno Haible  <bruno@clisp.org>
67422
67423         * MODULES.html.sh (Unicode string functions): Add the new modules.
67424
67425         * tests/uniwidth/test-u32-strwidth.c: New file.
67426         * modules/uniwidth/u32-strwidth-tests: New file.
67427
67428         * lib/uniwidth/u32-strwidth.c: New file.
67429         * modules/uniwidth/u32-strwidth: New file.
67430
67431         * tests/uniwidth/test-u16-strwidth.c: New file.
67432         * modules/uniwidth/u16-strwidth-tests: New file.
67433
67434         * lib/uniwidth/u16-strwidth.c: New file.
67435         * modules/uniwidth/u16-strwidth: New file.
67436
67437         * tests/uniwidth/test-u8-strwidth.c: New file.
67438         * modules/uniwidth/u8-strwidth-tests: New file.
67439
67440         * lib/uniwidth/u8-strwidth.c: New file.
67441         * modules/uniwidth/u8-strwidth: New file.
67442
67443         * tests/uniwidth/test-u32-width.c: New file.
67444         * modules/uniwidth/u32-width-tests: New file.
67445
67446         * lib/uniwidth/u32-width.c: New file.
67447         * modules/uniwidth/u32-width: New file.
67448
67449         * tests/uniwidth/test-u16-width.c: New file.
67450         * modules/uniwidth/u16-width-tests: New file.
67451
67452         * lib/uniwidth/u16-width.c: New file.
67453         * modules/uniwidth/u16-width: New file.
67454
67455         * tests/uniwidth/test-u8-width.c: New file.
67456         * modules/uniwidth/u8-width-tests: New file.
67457
67458         * lib/uniwidth/u8-width.c: New file.
67459         * modules/uniwidth/u8-width: New file.
67460
67461         * tests/uniwidth/test-uc_width.c: New file.
67462         * modules/uniwidth/width-tests: New file.
67463
67464         * lib/uniwidth/width.c: New file, from GNU libiconv.
67465         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
67466         * modules/uniwidth/width: New file.
67467
67468         * lib/uniwidth.h: New file, from GNU libiconv.
67469         * modules/uniwidth/base: New file.
67470
67471 2007-07-07  Bruno Haible  <bruno@clisp.org>
67472
67473         * lib/uniname.h: New file, from GNU gettext.
67474         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
67475         * lib/uniname/uninames.h: New file, from GNU gettext.
67476         * lib/uniname/uniname.c: New file, from GNU gettext.
67477         * tests/uniname/test-uninames.sh: New file.
67478         * tests/uniname/test-uninames.c: New file, from GNU gettext.
67479         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
67480         * modules/uniname/base: New file.
67481         * modules/uniname/uniname: New file.
67482         * modules/uniname/uniname-tests: New file.
67483         * MODULES.html.sh (Unicode string functions): Add the new modules.
67484
67485 2007-07-06  Bruno Haible  <bruno@clisp.org>
67486
67487         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
67488
67489 2007-07-06  Bruno Haible  <bruno@clisp.org>
67490
67491         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
67492         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
67493         includes <cygwin/sys_time.h> which includes <sys/select.h> which
67494         include <sys/time.h>.
67495         Reported by Eric Blake.
67496
67497 2007-07-06  Eric Blake  <ebb9@byu.net>
67498
67499         Fix testing canonicalize on cygwin.
67500         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67501         Revert patch from 2007-06-19.
67502         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
67503         canonicalize module is also in use.
67504         * tests/test-canonicalize.c: New file.
67505         * tests/test-canonicalize.sh: Likewise.
67506         * modules/canonicalize-tests: Likewise.
67507
67508 2007-07-06  Jim Meyering  <jim@meyering.net>
67509
67510         * lib/getugroups.c (getugroups): Detect getgrent failure.
67511         Adjust comment to reflect reality: this function may return -1.
67512
67513 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
67514
67515         * build-aux/bootstrap (TP_URL,get_translations): Update to use
67516         the new TP address.
67517         (usage): Fix typo
67518         (gnulib_mk): New variable.
67519
67520 2007-07-05  Jim Meyering  <jim@meyering.net>
67521
67522         Don't let endgrent clobber errno, no matter how improbable.
67523         * lib/getugroups.c (getugroups): Save and restore errno around
67524         endgrent call.
67525
67526         Close the group DB even when failing with 2^31 or more members.
67527         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
67528
67529 2007-07-04  Jim Meyering  <jim@meyering.net>
67530
67531         * lib/getugroups.h: New file.
67532         * lib/getugroups.c: Include "getugroups.h".
67533         Remove uses of "register" keyword.
67534         Move local variable, "cp", down into scope where used.
67535         Give "username" parameter the "const" attribute.
67536         * modules/getugroups (Files): Add lib/getugroups.h
67537
67538 2007-07-04  Karl Berry  <karl@gnu.org>
67539
67540         * MODULES.html.sh (func_all_modules): Complete rename of
67541         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
67542
67543 2007-07-02  Bruno Haible  <bruno@clisp.org>
67544
67545         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
67546         mode, when inttypes.h comes from gnulib.
67547         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
67548
67549 2007-07-02  Simon Josefsson  <simon@josefsson.org>
67550
67551         * NEWS: Mention lgpl module name change.
67552
67553         * modules/lgpl-2.1: Renamed from lgpl.
67554
67555         * NEWS: Mention gpl module name change.
67556
67557         * modules/gpl-3.0: New file, based on gpl-2.0.
67558
67559         * modules/gpl-2.0: Renamed from gpl.
67560
67561         * modules/gpl: Fix filename, doc/gpl.texi is now found at
67562         doc/gpl-2.0.texi.
67563
67564 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67565
67566         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
67567         #define __STDC_LIMIT_MACROS temporarily while including
67568         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
67569         Problem reported by Joel E. Denny in
67570         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
67571
67572 2007-07-01  Bruno Haible  <bruno@clisp.org>
67573
67574         * lib/unistdio.h: New file.
67575         * lib/unistdio/u-asnprintf.h: New file.
67576         * lib/unistdio/u-asprintf.h: New file.
67577         * lib/unistdio/u-printf-args.c: New file.
67578         * lib/unistdio/u-printf-args.h: New file.
67579         * lib/unistdio/u-printf-parse.h: New file.
67580         * lib/unistdio/u-snprintf.h: New file.
67581         * lib/unistdio/u-sprintf.h: New file.
67582         * lib/unistdio/u-vasprintf.h: New file.
67583         * lib/unistdio/u-vsnprintf.h: New file.
67584         * lib/unistdio/u-vsprintf.h: New file.
67585         * lib/unistdio/ulc-asnprintf.c: New file.
67586         * lib/unistdio/ulc-asprintf.c: New file.
67587         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
67588         * lib/unistdio/ulc-printf-parse.c: New file.
67589         * lib/unistdio/ulc-snprintf.c: New file.
67590         * lib/unistdio/ulc-sprintf.c: New file.
67591         * lib/unistdio/ulc-vasnprintf.c: New file.
67592         * lib/unistdio/ulc-vasprintf.c: New file.
67593         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
67594         * lib/unistdio/ulc-vsnprintf.c: New file.
67595         * lib/unistdio/ulc-vsprintf.c: New file.
67596         * lib/unistdio/u8-asnprintf.c: New file.
67597         * lib/unistdio/u8-asprintf.c: New file.
67598         * lib/unistdio/u8-printf-parse.c: New file.
67599         * lib/unistdio/u8-snprintf.c: New file.
67600         * lib/unistdio/u8-sprintf.c: New file.
67601         * lib/unistdio/u8-vasnprintf.c: New file.
67602         * lib/unistdio/u8-vasprintf.c: New file.
67603         * lib/unistdio/u8-vsnprintf.c: New file.
67604         * lib/unistdio/u8-vsprintf.c: New file.
67605         * lib/unistdio/u8-u8-asnprintf.c: New file.
67606         * lib/unistdio/u8-u8-asprintf.c: New file.
67607         * lib/unistdio/u8-u8-snprintf.c: New file.
67608         * lib/unistdio/u8-u8-sprintf.c: New file.
67609         * lib/unistdio/u8-u8-vasnprintf.c: New file.
67610         * lib/unistdio/u8-u8-vasprintf.c: New file.
67611         * lib/unistdio/u8-u8-vsnprintf.c: New file.
67612         * lib/unistdio/u8-u8-vsprintf.c: New file.
67613         * lib/unistdio/u16-asnprintf.c: New file.
67614         * lib/unistdio/u16-asprintf.c: New file.
67615         * lib/unistdio/u16-printf-parse.c: New file.
67616         * lib/unistdio/u16-snprintf.c: New file.
67617         * lib/unistdio/u16-sprintf.c: New file.
67618         * lib/unistdio/u16-vasnprintf.c: New file.
67619         * lib/unistdio/u16-vasprintf.c: New file.
67620         * lib/unistdio/u16-vsnprintf.c: New file.
67621         * lib/unistdio/u16-vsprintf.c: New file.
67622         * lib/unistdio/u16-u16-asnprintf.c: New file.
67623         * lib/unistdio/u16-u16-asprintf.c: New file.
67624         * lib/unistdio/u16-u16-snprintf.c: New file.
67625         * lib/unistdio/u16-u16-sprintf.c: New file.
67626         * lib/unistdio/u16-u16-vasnprintf.c: New file.
67627         * lib/unistdio/u16-u16-vasprintf.c: New file.
67628         * lib/unistdio/u16-u16-vsnprintf.c: New file.
67629         * lib/unistdio/u16-u16-vsprintf.c: New file.
67630         * lib/unistdio/u32-asnprintf.c: New file.
67631         * lib/unistdio/u32-asprintf.c: New file.
67632         * lib/unistdio/u32-printf-parse.c: New file.
67633         * lib/unistdio/u32-snprintf.c: New file.
67634         * lib/unistdio/u32-sprintf.c: New file.
67635         * lib/unistdio/u32-vasnprintf.c: New file.
67636         * lib/unistdio/u32-vasprintf.c: New file.
67637         * lib/unistdio/u32-vsnprintf.c: New file.
67638         * lib/unistdio/u32-vsprintf.c: New file.
67639         * lib/unistdio/u32-u32-asnprintf.c: New file.
67640         * lib/unistdio/u32-u32-asprintf.c: New file.
67641         * lib/unistdio/u32-u32-snprintf.c: New file.
67642         * lib/unistdio/u32-u32-sprintf.c: New file.
67643         * lib/unistdio/u32-u32-vasnprintf.c: New file.
67644         * lib/unistdio/u32-u32-vasprintf.c: New file.
67645         * lib/unistdio/u32-u32-vsnprintf.c: New file.
67646         * lib/unistdio/u32-u32-vsprintf.c: New file.
67647         * tests/unistdio/test-ulc-asnprintf1.c: New file.
67648         * tests/unistdio/test-ulc-asnprintf1.h: New file.
67649         * tests/unistdio/test-ulc-printf1.h: New file.
67650         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
67651         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
67652         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
67653         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
67654         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
67655         * tests/unistdio/test-ulc-vasprintf1.c: New file.
67656         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
67657         * tests/unistdio/test-ulc-vsprintf1.c: New file.
67658         * tests/unistdio/test-u8-asnprintf1.c: New file.
67659         * tests/unistdio/test-u8-asnprintf1.h: New file.
67660         * tests/unistdio/test-u8-printf1.h: New file.
67661         * tests/unistdio/test-u8-vasnprintf1.c: New file.
67662         * tests/unistdio/test-u8-vasnprintf2.c: New file.
67663         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
67664         * tests/unistdio/test-u8-vasnprintf3.c: New file.
67665         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
67666         * tests/unistdio/test-u8-vasprintf1.c: New file.
67667         * tests/unistdio/test-u8-vsnprintf1.c: New file.
67668         * tests/unistdio/test-u8-vsprintf1.c: New file.
67669         * tests/unistdio/test-u16-asnprintf1.c: New file.
67670         * tests/unistdio/test-u16-asnprintf1.h: New file.
67671         * tests/unistdio/test-u16-printf1.h: New file.
67672         * tests/unistdio/test-u16-vasnprintf1.c: New file.
67673         * tests/unistdio/test-u16-vasnprintf2.c: New file.
67674         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
67675         * tests/unistdio/test-u16-vasnprintf3.c: New file.
67676         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
67677         * tests/unistdio/test-u16-vasprintf1.c: New file.
67678         * tests/unistdio/test-u16-vsnprintf1.c: New file.
67679         * tests/unistdio/test-u16-vsprintf1.c: New file.
67680         * tests/unistdio/test-u32-asnprintf1.c: New file.
67681         * tests/unistdio/test-u32-asnprintf1.h: New file.
67682         * tests/unistdio/test-u32-printf1.h: New file.
67683         * tests/unistdio/test-u32-vasnprintf1.c: New file.
67684         * tests/unistdio/test-u32-vasnprintf2.c: New file.
67685         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
67686         * tests/unistdio/test-u32-vasnprintf3.c: New file.
67687         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
67688         * tests/unistdio/test-u32-vasprintf1.c: New file.
67689         * tests/unistdio/test-u32-vsnprintf1.c: New file.
67690         * tests/unistdio/test-u32-vsprintf1.c: New file.
67691         * modules/unistdio/base: New file.
67692         * modules/unistdio/u-printf-args: New file.
67693         * modules/unistdio/ulc-asnprintf: New file.
67694         * modules/unistdio/ulc-asprintf: New file.
67695         * modules/unistdio/ulc-fprintf: New file.
67696         * modules/unistdio/ulc-printf-parse: New file.
67697         * modules/unistdio/ulc-snprintf: New file.
67698         * modules/unistdio/ulc-sprintf: New file.
67699         * modules/unistdio/ulc-vasnprintf: New file.
67700         * modules/unistdio/ulc-vasprintf: New file.
67701         * modules/unistdio/ulc-vfprintf: New file.
67702         * modules/unistdio/ulc-vsnprintf: New file.
67703         * modules/unistdio/ulc-vsprintf: New file.
67704         * modules/unistdio/u8-asnprintf: New file.
67705         * modules/unistdio/u8-asprintf: New file.
67706         * modules/unistdio/u8-printf-parse: New file.
67707         * modules/unistdio/u8-snprintf: New file.
67708         * modules/unistdio/u8-sprintf: New file.
67709         * modules/unistdio/u8-vasnprintf: New file.
67710         * modules/unistdio/u8-vasprintf: New file.
67711         * modules/unistdio/u8-vsnprintf: New file.
67712         * modules/unistdio/u8-vsprintf: New file.
67713         * modules/unistdio/u8-u8-asnprintf: New file.
67714         * modules/unistdio/u8-u8-asprintf: New file.
67715         * modules/unistdio/u8-u8-snprintf: New file.
67716         * modules/unistdio/u8-u8-sprintf: New file.
67717         * modules/unistdio/u8-u8-vasnprintf: New file.
67718         * modules/unistdio/u8-u8-vasprintf: New file.
67719         * modules/unistdio/u8-u8-vsnprintf: New file.
67720         * modules/unistdio/u8-u8-vsprintf: New file.
67721         * modules/unistdio/u16-asnprintf: New file.
67722         * modules/unistdio/u16-asprintf: New file.
67723         * modules/unistdio/u16-printf-parse: New file.
67724         * modules/unistdio/u16-snprintf: New file.
67725         * modules/unistdio/u16-sprintf: New file.
67726         * modules/unistdio/u16-vasnprintf: New file.
67727         * modules/unistdio/u16-vasprintf: New file.
67728         * modules/unistdio/u16-vsnprintf: New file.
67729         * modules/unistdio/u16-vsprintf: New file.
67730         * modules/unistdio/u16-u16-asnprintf: New file.
67731         * modules/unistdio/u16-u16-asprintf: New file.
67732         * modules/unistdio/u16-u16-snprintf: New file.
67733         * modules/unistdio/u16-u16-sprintf: New file.
67734         * modules/unistdio/u16-u16-vasnprintf: New file.
67735         * modules/unistdio/u16-u16-vasprintf: New file.
67736         * modules/unistdio/u16-u16-vsnprintf: New file.
67737         * modules/unistdio/u16-u16-vsprintf: New file.
67738         * modules/unistdio/u32-asnprintf: New file.
67739         * modules/unistdio/u32-asprintf: New file.
67740         * modules/unistdio/u32-printf-parse: New file.
67741         * modules/unistdio/u32-snprintf: New file.
67742         * modules/unistdio/u32-sprintf: New file.
67743         * modules/unistdio/u32-vasnprintf: New file.
67744         * modules/unistdio/u32-vasprintf: New file.
67745         * modules/unistdio/u32-vsnprintf: New file.
67746         * modules/unistdio/u32-vsprintf: New file.
67747         * modules/unistdio/u32-u32-asnprintf: New file.
67748         * modules/unistdio/u32-u32-asprintf: New file.
67749         * modules/unistdio/u32-u32-snprintf: New file.
67750         * modules/unistdio/u32-u32-sprintf: New file.
67751         * modules/unistdio/u32-u32-vasnprintf: New file.
67752         * modules/unistdio/u32-u32-vasprintf: New file.
67753         * modules/unistdio/u32-u32-vsnprintf: New file.
67754         * modules/unistdio/u32-u32-vsprintf: New file.
67755         * modules/unistdio/ulc-asnprintf-tests: New file.
67756         * modules/unistdio/ulc-vasnprintf-tests: New file.
67757         * modules/unistdio/ulc-vasprintf-tests: New file.
67758         * modules/unistdio/ulc-vsnprintf-tests: New file.
67759         * modules/unistdio/ulc-vsprintf-tests: New file.
67760         * modules/unistdio/u8-asnprintf-tests: New file.
67761         * modules/unistdio/u8-vasnprintf-tests: New file.
67762         * modules/unistdio/u8-vasprintf-tests: New file.
67763         * modules/unistdio/u8-vsnprintf-tests: New file.
67764         * modules/unistdio/u8-vsprintf-tests: New file.
67765         * modules/unistdio/u16-asnprintf-tests: New file.
67766         * modules/unistdio/u16-vasnprintf-tests: New file.
67767         * modules/unistdio/u16-vasprintf-tests: New file.
67768         * modules/unistdio/u16-vsnprintf-tests: New file.
67769         * modules/unistdio/u16-vsprintf-tests: New file.
67770         * modules/unistdio/u32-asnprintf-tests: New file.
67771         * modules/unistdio/u32-vasnprintf-tests: New file.
67772         * modules/unistdio/u32-vasprintf-tests: New file.
67773         * modules/unistdio/u32-vsnprintf-tests: New file.
67774         * modules/unistdio/u32-vsprintf-tests: New file.
67775         * MODULES.html.sh (Unicode string functions): Add the new modules.
67776
67777 2007-07-01  Bruno Haible  <bruno@clisp.org>
67778
67779         * lib/sprintf.c (sprintf): Limit the available length estimation,
67780         to avoid address wraparound.
67781         * lib/vsprintf.c (vsprintf): Likewise.
67782         * modules/sprintf-posix (Dependencies): Add stdint.
67783         * modules/vsprintf-posix (Dependencies): Likewise.
67784
67785 2007-07-01  Bruno Haible  <bruno@clisp.org>
67786
67787         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
67788         Windows PATH as well. Conservative double-quoting. Comments.
67789
67790 2007-07-01  Bruno Haible  <bruno@clisp.org>
67791             Eric Blake  <ebb9@byu.net>
67792             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67793
67794         * gnulib-tool (self_abspathname): Fix algorithm to cope with
67795         empty components in $PATH, denoting '.'.
67796
67797 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67798
67799         * gnulib-tool: Fix indentation.
67800         (func_create_megatestdir): Likewise.
67801         Report by Bruno Haible.
67802
67803 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67804
67805         Sync from Automake.
67806         * build-aux/gnupload: Fix shell portability issues with for loops.
67807         Report by Karl Berry.
67808
67809 2007-06-29  Simon Josefsson  <simon@josefsson.org>
67810
67811         * build-aux/maint.mk (POURL): Use translationproject.org.
67812
67813 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67814             Bruno Haible  <bruno@clisp.org>
67815
67816         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67817         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67818         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67819         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67820         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67821
67822 2007-06-27  Bruno Haible  <bruno@clisp.org>
67823
67824         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67825         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67826
67827 2007-06-26  Karl Berry  <karl@gnu.org>
67828
67829         * MODULES.html.sh: remove xreadlink-with-size.
67830
67831 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67832
67833         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67834         method that I hope also handles the double-include problem noted
67835         by Bruno Haible in
67836         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67837
67838 2007-06-23  Bruno Haible  <bruno@clisp.org>
67839
67840         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67841         Don't let the 'mostlyclean' target fail if the last subdirectory could
67842         not be removed.
67843         Reported by Karl Berry.
67844
67845 2007-06-23  Bruno Haible  <bruno@clisp.org>
67846
67847         * gnulib-tool (echo): Add a speedier workaround for ksh.
67848         * tests/test-echo.sh: Likewise.
67849
67850 2007-06-23  Bruno Haible  <bruno@clisp.org>
67851
67852         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67853         * tests/test-echo.sh: Likewise.
67854
67855 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67856
67857         * gnulib-tool (IFS): Initialize early, so we don't set it to
67858         empty later.
67859         (self_abspathname): Rewrite algorithm to set it, reindent.
67860         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67861         (func_create_megatestdir): Merge some sed scripts.
67862
67863 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67864
67865         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67866         exposed by Sun Studio 11 cc on Solaris 8.
67867
67868 2007-06-22  Bruno Haible  <bruno@clisp.org>
67869
67870         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67871         backslashes.
67872         * tests/test-echo.sh: New file.
67873
67874 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67875
67876         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67877         simplify `sed_replace_build_aux' scripts, they are portable but
67878         echoing them with `echo' is not.
67879         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67880
67881 2007-06-21  Karl Berry  <karl@gnu.org>
67882
67883         * config/srclist.txt: guess we can't handle the licenses via
67884         srclist at the moment.
67885
67886 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67887
67888         * MODULES.html.sh: Add include_next.
67889         * modules/include_next: New file.
67890
67891 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67892
67893         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67894         INCLUDE_NEXT.
67895         (gl_CHECK_NEXT_HEADERS): New macro.
67896         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67897         the obsolescent gl_ABSOLUTE_HEADER.
67898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67899         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67900         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67901         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67902         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67903         * m4/math_h.m4 (gl_MATH_H): Likewise.
67904         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67905         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67906         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67907         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67908         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67909         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67910         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67911         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67912         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67913         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67914         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67915         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67916         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67917         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67918         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67919         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67920         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67921         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67922         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67923         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67924         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67925         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67926         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67927         * lib/float_.h: Likewise.
67928         * lib/inttypes_.h: Likewise.
67929         * lib/math_.h: Likewise.
67930         * lib/search_.h: Likewise.
67931         * lib/signal_.h: Likewise.
67932         * lib/stdint_.h: Likewise.
67933         * lib/stdio_.h: Likewise.
67934         * lib/stdlib_.h: Likewise.
67935         * lib/string_.h: Likewise.
67936         * lib/sys_stat_.h: Likewise.
67937         * lib/sys_time_.h: Likewise.
67938         * lib/time_.h: Likewise.
67939         * lib/unistd_.h: Likewise.
67940         * lib/wchar_.h: Likewise.
67941         * lib/wctype_.h: Likewise.
67942         * lib/dirent_.h: Likewise.
67943         * lib/iconv_.h: Likewise.
67944         * lib/locale_.h: Likewise.
67945         * lib/netinet_in_.h: Likewise.
67946         * lib/sys_select_.h: Likewise.
67947         * lib/sys_socket_.h: Likewise.
67948         * lib/sysexits_.h: Likewise.
67949         * modules/fcntl (Depends-on): Depend on include_next, not
67950         absolute_header.
67951         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67952         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67953         * modules/fchdir: Likewise.
67954         * modules/float: Likewise.
67955         * modules/iconv_open: Likewise.
67956         * modules/inttypes: Likewise.
67957         * modules/locale: Likewise.
67958         * modules/math: Likewise.
67959         * modules/netinet_in: Likewise.
67960         * modules/search: Likewise.
67961         * modules/signal: Likewise.
67962         * modules/stdint: Likewise.
67963         * modules/stdio: Likewise.
67964         * modules/stdlib: Likewise.
67965         * modules/string: Likewise.
67966         * modules/sys_select: Likewise.
67967         * modules/sys_socket: Likewise.
67968         * modules/sys_stat: Likewise.
67969         * modules/sys_time: Likewise.
67970         * modules/sysexits: Likewise.
67971         * modules/time: Likewise.
67972         * modules/unistd: Likewise.
67973         * modules/wchar: Likewise.
67974         * modules/wctype: Likewise.
67975         * modules/sys_stat: Change maintainer to "all".
67976         * modules/unistd: Likewise.
67977
67978 2007-06-20  Karl Berry  <karl@gnu.org>
67979
67980         * config/srclist.txt: track www changes in license files.
67981
67982 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67983
67984         * build-aux/bootstrap: Remove stray dot.
67985         Make sure build_aux settings are honored when linking
67986         gnulib_extra_files.
67987
67988 2007-06-19  Eric Blake  <ebb9@byu.net>
67989
67990         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67991         Allow compilation on cygwin.
67992
67993 2007-06-19  Jim Meyering  <jim@meyering.net>
67994
67995         xreadlink-with-size: Remove module.  No longer used.
67996         Ex-callers now use xreadlink or mreadlink-with-size.
67997         * modules/xreadlink-with-size: Remove module.
67998         * lib/xreadlink-with-size.c: Remove file.
67999         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
68000         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
68001         just before the function definition *is* accurate.
68002
68003         Eliminate one way canonicalize_filename_mode could exit.
68004         * lib/canonicalize.c (canonicalize_filename_mode):
68005         Use mreadlink_with_size, not xreadlink_with_size.
68006
68007 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
68008
68009         Detect porting problems to FreeBSD/arm, which has time_t wider than
68010         long int.  Original problem reported for GNU diff by Xin Li in
68011         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
68012         * modules/getdate (Depends-on): Add intprops, verify.
68013         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
68014         is an integer type no wider than long int.
68015
68016 2007-06-18  Jim Meyering  <jim@meyering.net>
68017
68018         New module: mreadlink-with-size.
68019         * MODULES.html.sh: Add mreadlink-with-size.
68020         * modules/mreadlink-with-size: New module
68021         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
68022         not xreadlink-with-size.
68023         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
68024
68025 2007-06-16  Bruno Haible  <bruno@clisp.org>
68026
68027         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
68028         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
68029         Reported by Gary V. Vaughan <gary@gnu.org>.
68030
68031 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
68032
68033         Revamp lchown so that it lives in unistd.h where it belongs.
68034         * lib/lchown.h: Remove.
68035         * lib/dirchownmod.c: Don't include lib/lchown.h.
68036         * lib/fchownat.c: Likewise.
68037         * lib/openat.c: Likewise.
68038         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
68039         does not follow symlinks.
68040         (EOPNOTSUPP): Define if not defined.
68041         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
68042         is defined to 0.
68043         (lchown): New decl.
68044         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
68045         Do not check for lchown decl.
68046         Set REPLACE_LCHOWN.
68047         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
68048         REPLACE_LCHOWN.
68049         * modules/chown: Make it clear it follows symlinks.
68050         * modules/lchown: Make it clear it doesn't follow symlinks.
68051         (Files): Remove lib/lchown.h
68052         (Depends-on): Add unistd.
68053         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
68054         (Include): Include <unistd.h>, not "lchown.h".
68055         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
68056         REPLACE_LCHOWN.
68057
68058 2007-06-15  Jim Meyering  <jim@meyering.net>
68059
68060         Change license (GPL to LGPL) of fsusage and dependents.
68061         * modules/fsusage (License): Change to LGPL.
68062         * modules/full-read (License): Likewise.
68063         * modules/full-write (License): Likewise.
68064         * modules/safe-read (License): Likewise.
68065         * modules/safe-write (License): Likewise.
68066
68067 2007-06-14  Ben Pfaff  <blp@gnu.org>
68068
68069         Missing part of allocsa -> malloca transition.
68070         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
68071         gl_MALLOCA.
68072
68073 2007-06-12  Bruno Haible  <bruno@clisp.org>
68074
68075         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
68076         to ia64, x86_64, i386.
68077         Reported by Eric Blake.
68078
68079 2007-06-12  Bruno Haible  <bruno@clisp.org>
68080
68081         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
68082         cross-compiling to x86_64.
68083
68084 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
68085
68086         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
68087         glitch reported by Ralf Wildenhues in
68088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
68089
68090         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
68091         Vin Shelton.
68092
68093 2007-06-11  Bruno Haible  <bruno@clisp.org>
68094
68095         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
68096         replacement string.
68097         Reported by Eric Blake.
68098
68099 2007-06-10  Bruno Haible  <bruno@clisp.org>
68100
68101         Prepare vasnprintf code for use with Unicode strings.
68102         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
68103         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
68104         TYPE_U32_STRING.
68105         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
68106         a_u32_string variants.
68107         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68108         * lib/printf-args.c: Don't include config.h and the specification
68109         header if PRINTF_FETCHARGS is already defined.
68110         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
68111         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
68112         TYPE_U16_STRING, TYPE_U32_STRING.
68113         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
68114         u16_directive, u16_directives, u32_directive, u32_directives): New
68115         types.
68116         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
68117         New declarations.
68118         * lib/printf-parse.c: Don't include config.h and the specification
68119         header if PRINTF_PARSE is already defined. Eliminate the set of
68120         parameters for WIDE_CHAR_VERSION; the user of this file must provide
68121         them now. Include c-ctype.h.
68122         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
68123         directive and CHAR_T_ONLY_ASCII.
68124         * lib/vasnprintf.c: Don't include config.h and the specification header
68125         if VASNPRINTF is already defined.
68126         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
68127         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
68128         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
68129         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
68130         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
68131         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
68132         code accordingly.
68133         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
68134         pad_ourselves also in this case, with the 'c' and 's' directives, and
68135         with a different notion of "width".
68136         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
68137
68138 2007-06-10  Bruno Haible  <bruno@clisp.org>
68139
68140         * modules/unistr/u32-mbsnlen: New file.
68141         * lib/unistr/u32-mbsnlen.c: New file.
68142
68143         * modules/unistr/u16-mbsnlen: New file.
68144         * lib/unistr/u16-mbsnlen.c: New file.
68145
68146         * modules/unistr/u8-mbsnlen: New file.
68147         * lib/unistr/u8-mbsnlen.c: New file.
68148
68149         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
68150         declarations.
68151
68152 2007-06-10  Bruno Haible  <bruno@clisp.org>
68153
68154         * lib/string_.h (mbsnlen): New declaration.
68155         * lib/mbsnlen.c: New file.
68156         * m4/mbsnlen.m4: New file.
68157         * modules/mbsnlen: New file.
68158         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
68159         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
68160         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
68161
68162 2007-06-10  Bruno Haible  <bruno@clisp.org>
68163
68164         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
68165
68166 2007-06-10  Bruno Haible  <bruno@clisp.org>
68167
68168         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
68169         * lib/mbuiter.h: Likewise.
68170
68171 2007-06-10  Bruno Haible  <bruno@clisp.org>
68172
68173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
68174         declaration.
68175
68176 2007-06-10  Karl Berry  <karl@gnu.org>
68177
68178         * config/srclist.txt: remove gettext entries, Bruno prefers
68179         to update individually.
68180
68181 2007-06-10  Bruno Haible  <bruno@clisp.org>
68182
68183         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
68184         'maxlen'. Ensure only length + width bytes are allocated, not
68185         length + 1 + width.
68186
68187 2007-06-09  Bruno Haible  <bruno@clisp.org>
68188
68189         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
68190         (CHAR_T): Remove macro.
68191         (VASNPRINTF): Update.
68192
68193 2007-06-09  Bruno Haible  <bruno@clisp.org>
68194
68195         * MODULES.html.sh (Unicode string functions): Add the new modules.
68196
68197         * modules/uniconv/u32-conv-to-enc: New file.
68198         * lib/uniconv/u32-conv-to-enc.c: New file.
68199         * modules/uniconv/u32-conv-to-enc-tests: New file.
68200         * tests/uniconv/test-u32-conv-to-enc.c: New file.
68201
68202         * modules/uniconv/u16-conv-to-enc: New file.
68203         * lib/uniconv/u16-conv-to-enc.c: New file.
68204         * lib/uniconv/u-conv-to-enc.h: New file.
68205         * modules/uniconv/u16-conv-to-enc-tests: New file.
68206         * tests/uniconv/test-u16-conv-to-enc.c: New file.
68207
68208         * modules/uniconv/u8-conv-to-enc: New file.
68209         * lib/uniconv/u8-conv-to-enc.c: New file.
68210         * modules/uniconv/u8-conv-to-enc-tests: New file.
68211         * tests/uniconv/test-u8-conv-to-enc.c: New file.
68212
68213         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
68214         u32_conv_to_encoding): New declarations.
68215
68216 2007-06-09  Bruno Haible  <bruno@clisp.org>
68217
68218         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
68219
68220 2007-06-09  Bruno Haible  <bruno@clisp.org>
68221
68222         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
68223         * modules/malloca: Renamed from modules/allocsa, updated.
68224         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
68225         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
68226         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
68227         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
68228         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
68229         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
68230         * modules/xmalloca: Renamed from modules/xallocsa, updated.
68231         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
68232         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
68233         * modules/c-strcasestr (Depends-on): Update.
68234         * lib/c-strcasestr.c: Update.
68235         * modules/c-strstr (Depends-on): Update.
68236         * lib/c-strstr.c: Update.
68237         * modules/canonicalize-lgpl (Depends-on): Update.
68238         * lib/canonicalize-lgpl.c: Update.
68239         * modules/clean-temp (Depends-on): Update.
68240         * lib/clean-temp.c: Update.
68241         * modules/csharpcomp (Depends-on): Update.
68242         * lib/csharpcomp.c: Update.
68243         * modules/csharpexec (Depends-on): Update.
68244         * lib/csharpexec.c: Update.
68245         * modules/javacomp (Depends-on): Update.
68246         * lib/javacomp.c: Update.
68247         * modules/javaexec (Depends-on): Update.
68248         * lib/javaexec.c: Update.
68249         * modules/mbscasestr (Depends-on): Update.
68250         * lib/mbscasestr.c: Update.
68251         * modules/mbsstr (Depends-on): Update.
68252         * lib/mbsstr.c: Update.
68253         * modules/setenv (Depends-on): Update.
68254         * lib/setenv.c: Update.
68255         * modules/strcasestr (Depends-on): Update.
68256         * lib/strcasestr.c: Update.
68257         * modules/striconveha (Depends-on): Update.
68258         * lib/striconveha.c: Update.
68259         * modules/relocatable-prog-wrapper (Files): Update.
68260         * lib/relocwrapper.c: Update.
68261         * build-aux/install-reloc: Update.
68262         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
68263
68264 2007-06-08  Bruno Haible  <bruno@clisp.org>
68265
68266         Port to uClibc.
68267         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
68268         * lib/fpurge.c (fpurge): Likewise.
68269         * lib/freading.c (freading): Likewise.
68270         * lib/fseeko.c (rpl_fseeko): Likewise.
68271         * lib/fseterr.c (fseterr): Likewise.
68272         * lib/fwriting.c (fwriting): Likewise.
68273         * tests/test-fflush.c (main): Avoid a failure on uClibc.
68274
68275 2007-06-08  Bruno Haible  <bruno@clisp.org>
68276
68277         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
68278         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
68279         * modules/gettext (Files): Add m4/intlmacosx.m4.
68280
68281 2007-06-07  Bruno Haible  <bruno@clisp.org>
68282
68283         * modules/localename-tests: New file.
68284         * tests/test-localename.c: New file.
68285
68286         New module 'localename'.
68287         * lib/localename.h: New file.
68288         * lib/localename.c: New file, from GNU gettext.
68289         * m4/localename.m4: New file.
68290         * modules/localename: New file.
68291
68292 2007-06-07  Bruno Haible  <bruno@clisp.org>
68293
68294         Work around the lack of <wchar.h> on some builds of uClibc.
68295         * doc/headers/wchar.texi: Update.
68296         * lib/wchar_.h: Include <wchar.h> only if it exists.
68297         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
68298         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
68299         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
68300         doesn't exist.
68301         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
68302         * modules/mbfile (Depends-on): Add wchar.
68303         * modules/mbiter (Depends-on): Likewise.
68304         * modules/mbuiter (Depends-on): Likewise.
68305         Reported by Simon Josefsson.
68306
68307 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
68308
68309         Work around problem reported by Steven M. Schweda in
68310         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
68311         Tru64 5.1B with the Compaq compiler environment installed declares
68312         an 'isblank' function but does not define it in the C library.
68313         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
68314         * lib/regex_internal.h (isblank): Likewise.
68315         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
68316         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
68317
68318 2007-06-05  Bruno Haible  <bruno@clisp.org>
68319
68320         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
68321         ia64.
68322         * modules/printf-safe: New file.
68323         * modules/fprintf-posix (Depends-on): Add printf-safe.
68324         * modules/printf-posix (Depends-on): Likewise.
68325         * modules/snprintf-posix (Depends-on): Likewise.
68326         * modules/sprintf-posix (Depends-on): Likewise.
68327         * modules/vasnprintf-posix (Depends-on): Likewise.
68328         * modules/vasprintf-posix (Depends-on): Likewise.
68329         * modules/vfprintf-posix (Depends-on): Likewise.
68330         * modules/vprintf-posix (Depends-on): Likewise.
68331         * modules/vsnprintf-posix (Depends-on): Likewise.
68332         * modules/vsprintf-posix (Depends-on): Likewise.
68333         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
68334         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
68335         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
68336         "no" on i386, x86_64, ia64.
68337         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
68338         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68339         on i386, x86_64, ia64.
68340         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
68341         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68342         on i386, x86_64, ia64.
68343         * tests/test-vasnprintf-posix.c: Include float.h.
68344         (LDBL80_WORDS): New macro.
68345         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68346         on i386, x86_64, ia64.
68347         * tests/test-vasprintf-posix.c: Include float.h.
68348         (LDBL80_WORDS): New macro.
68349         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
68350         on i386, x86_64, ia64.
68351         * tests/test-snprintf-posix.c: Include float.h.
68352         * tests/test-sprintf-posix.c: Likewise.
68353         * tests/test-vsnprintf-posix.c: Likewise.
68354         * tests/test-vsprintf-posix.c: Likewise.
68355
68356 2007-06-05  Bruno Haible  <bruno@clisp.org>
68357
68358         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
68359         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
68360         non-IEEE numbers on i386, x86_64, ia64.
68361         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
68362         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
68363         * tests/test-isnanl.h: Include float.h.
68364         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
68365
68366 2007-06-05  Bruno Haible  <bruno@clisp.org>
68367
68368         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
68369         also the %a / %A. Handle the %a / %A code before this extra handling.
68370
68371 2007-06-05  Bruno Haible  <bruno@clisp.org>
68372
68373         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
68374         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
68375
68376 2007-06-05  Bruno Haible  <bruno@clisp.org>
68377
68378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
68379         typo in variable name.
68380
68381 2007-06-05  Eric Blake  <ebb9@byu.net>
68382
68383         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
68384         Reported by Simon Josefsson.
68385
68386 2007-06-04  Bruno Haible  <bruno@clisp.org>
68387
68388         Avoid test failures on some PowerPC platforms.
68389         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
68390         Define differently for PowerPC.
68391         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
68392         Reported by Gary V. Vaughan <gary@gnu.org>.
68393
68394 2007-06-02  Bruno Haible  <bruno@clisp.org>
68395
68396         Fix test-stdint failure on FreeBSD/ia64.
68397         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
68398         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
68399         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
68400         * doc/headers/stdint.texi: Update.
68401
68402 2007-06-01  Bruno Haible  <bruno@clisp.org>
68403
68404         * tests/test-binary-io.c (main): Pass a third argument to open().
68405         Reported by Gary V. Vaughan <gary@gnu.org>.
68406
68407 2007-06-01  Bruno Haible  <bruno@clisp.org>
68408
68409         * doc/functions/frexpl.texi: Update for mingw.
68410
68411 2007-06-01  Bruno Haible  <bruno@clisp.org>
68412
68413         * tests/test-lseek.c (main): Disable test of errno for invalid third
68414         argument.
68415         * doc/functions/lseek.texi: Update.
68416         Reported by Gary V. Vaughan <gary@gnu.org>.
68417
68418 2007-05-28  Bruno Haible  <bruno@clisp.org>
68419
68420         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
68421
68422 2007-05-31  Eric Blake  <ebb9@byu.net>
68423
68424         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
68425         cross compiling.
68426
68427 2007-05-30  Eric Blake  <ebb9@byu.net>
68428         and Bruno Haible  <bruno@clisp.org>
68429
68430         Work around mingw test failures exposed by m4-1.4.9b.
68431         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
68432         * tests/test-unistd.c: Disable uid_t and git_t tests for the
68433         moment.
68434
68435 2007-05-30  Bruno Haible  <bruno@clisp.org>
68436
68437         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
68438         assuming that they are closed. Needed on HP-UX 11.
68439
68440 2007-05-29  Bruno Haible  <bruno@clisp.org>
68441
68442         Fix a problem with #include_next.
68443         * lib/dirent_.h: Split the double-inclusion guard.
68444         * lib/fcntl_.h: Likewise.
68445         * lib/float_.h: Likewise.
68446         * lib/iconv_.h: Likewise.
68447         * lib/inttypes_.h: Likewise.
68448         * lib/locale_.h: Likewise.
68449         * lib/math_.h: Likewise.
68450         * lib/netinet_in_.h: Likewise.
68451         * lib/search_.h: Likewise.
68452         * lib/signal_.h: Likewise.
68453         * lib/stdint_.h: Likewise.
68454         * lib/stdio_.h: Likewise.
68455         * lib/stdlib_.h: Likewise.
68456         * lib/string_.h: Likewise.
68457         * lib/sys_select_.h: Likewise.
68458         * lib/sys_socket_.h: Likewise.
68459         * lib/sys_stat_.h: Likewise.
68460         * lib/sys_time_.h: Likewise.
68461         * lib/sysexits_.h: Likewise.
68462         * lib/time_.h: Likewise.
68463         * lib/unistd_.h: Likewise.
68464         * lib/wchar_.h: Likewise.
68465         * lib/wctype_.h: Likewise.
68466
68467 2007-05-29  Bruno Haible  <bruno@clisp.org>
68468
68469         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
68470         for the moment.
68471
68472 2007-05-29  Bruno Haible  <bruno@clisp.org>
68473
68474         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
68475         invocation.
68476         Reported by Eric Blake.
68477
68478 2007-05-29  Bruno Haible  <bruno@clisp.org>
68479
68480         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
68481         compiling case.
68482
68483 2007-05-29  Eric Blake  <ebb9@byu.net>
68484             Bruno Haible  <bruno@clisp.org>
68485
68486         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
68487         cross compiles.
68488
68489 2007-05-28  Eric Blake  <ebb9@byu.net>
68490
68491         * modules/closein-tests (test_closein_LDADD): Support test on
68492         cygwin with libtool.
68493
68494 2007-05-28  Bruno Haible  <bruno@clisp.org>
68495
68496         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
68497         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
68498         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
68499         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
68500         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
68501         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
68502         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
68503         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
68504         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
68505
68506 2007-05-28  Eric Blake  <ebb9@byu.net>
68507
68508         Unconditionally include <config.h> in unit tests.
68509         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
68510         * tests/test-allocsa.c, tests/test-arcfour.c,
68511         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
68512         tests/test-array_list.c, tests/test-array_oset.c,
68513         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
68514         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
68515         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
68516         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
68517         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
68518         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
68519         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
68520         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
68521         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
68522         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
68523         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
68524         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
68525         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
68526         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
68527         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
68528         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
68529         test-md5.c, test-memmem.c, test-printf-posix.c,
68530         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
68531         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
68532         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
68533         test-strcasestr.c, test-striconv.c, test-striconveh.c,
68534         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
68535         test-vasnprintf-posix2.c, test-vasnprintf.c,
68536         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
68537         test-vfprintf-posix.c, test-vprintf-posix.c,
68538         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
68539         test-xvasprintf.c: Likewise.
68540
68541 2007-05-28  Bruno Haible  <bruno@clisp.org>
68542
68543         * gnulib-tool (func_import): Remember the --with-tests command-line
68544         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
68545         Reported by Eric Blake.
68546
68547 2007-05-28  Bruno Haible  <bruno@clisp.org>
68548
68549         * modules/ftell-tests: New file.
68550         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
68551         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
68552
68553         * lib/ftell.c: New file.
68554         * modules/ftell: New file.
68555         * m4/ftell.m4: New file.
68556         * doc/functions/ftell.texi: Update.
68557         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
68558         REPLACE_FTELL.
68559         * lib/stdio_.h (rpl_ftell): New declaration.
68560         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
68561         REPLACE_FTELL.
68562
68563 2007-05-28  Eric Blake  <ebb9@byu.net>
68564
68565         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
68566
68567 2007-05-28  Bruno Haible  <bruno@clisp.org>
68568
68569         * modules/fseek-tests: New file.
68570         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
68571         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
68572
68573         * lib/fseek.c: New file.
68574         * modules/fseek: New file.
68575         * m4/fseek.m4: New file.
68576         * doc/functions/fseek.texi: Update.
68577         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
68578         REPLACE_FSEEK.
68579         * lib/stdio_.h (rpl_fseek): New declaration.
68580         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
68581         REPLACE_FSEEK.
68582
68583 2007-05-28  Bruno Haible  <bruno@clisp.org>
68584
68585         * lib/stdio_.h (fflush): More comments.
68586
68587 2007-05-28  Bruno Haible  <bruno@clisp.org>
68588
68589         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
68590         runtime test.
68591
68592 2007-05-28  Eric Blake  <ebb9@byu.net>
68593
68594         Improve lseek module.
68595         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
68596         * lib/unistd_.h (lseek): Scale back link warning message.
68597         * tests/test-lseek.c: Beef up test.
68598         * tests/test-lseek.sh: Exercise more facets of lseek.
68599         Reported by Bruno Haible.
68600
68601 2007-05-28  Bruno Haible  <bruno@clisp.org>
68602
68603         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
68604         to define.
68605
68606 2007-05-27  Bruno Haible  <bruno@clisp.org>
68607
68608         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
68609
68610 2007-05-27  Bruno Haible  <bruno@clisp.org>
68611
68612         * modules/openmp: New file.
68613         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
68614         Noah Misch.
68615
68616 2007-05-26  Bruno Haible  <bruno@clisp.org>
68617
68618         * modules/chdir-long (Depends-on): Add fchdir.
68619         * modules/chdir-safer (Depends-on): Likewise.
68620         * modules/fts (Depends-on): Likewise.
68621         * modules/fts-lgpl (Depends-on): Likewise.
68622         * modules/openat (Depends-on): Likewise.
68623         * modules/savewd (Depends-on): Likewise.
68624
68625 2007-05-24  Eric Blake  <ebb9@byu.net>
68626
68627         Fix lseek on mingw.
68628         * modules/lseek: New module.
68629         * m4/lseek.m4: New file.
68630         * lib/lseek.c: New file.
68631         * modules/lseek-tests: New file.
68632         * tests/test-lseek.c: New file.
68633         * tests/test-lseek.sh: New file.
68634         * MODULES.html.sh: Document lseek module.
68635         * modules/fflush (Depends-on): Add lseek, fseeko.
68636         * modules/fseeko (Depends-on): Likewise.
68637         * modules/ftello (Depends-on): Likewise.
68638         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
68639         broken.
68640         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
68641         broken.
68642         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
68643         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
68644         * lib/ftello.c (rpl_ftello): Likewise.
68645         * tests/test-fseeko.c (main): Test this.
68646         * tests/test-fseeko.sh: Likewise.
68647         * tests/test-ftello.c (main): Likewise.
68648         * tests/test-ftello.sh: Likewise.
68649         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
68650         implies replacing fseek.
68651         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
68652         HAVE_FTELLO.
68653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
68654         * modules/unistd (Makefile.am): Likewise.
68655         * lib/unistd_.h (lseek): Declare a replacement.
68656         * doc/functions/lseek.texi (lseek): Document this fix.
68657         * doc/functions/fseek.texi (fseek): Likewise.
68658         * doc/functions/ftell.texi (ftell): Likewise.
68659
68660 2007-05-24  Bruno Haible  <bruno@clisp.org>
68661
68662         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
68663         in the printed representation of a NaN.
68664         * tests/test-vasprintf-posix.c (test_function): Likewise.
68665         * tests/test-snprintf-posix.h (test_function): Likewise.
68666         * tests/test-sprintf-posix.h (test_function): Likewise.
68667         Reported by Eric Blake.
68668
68669 2007-05-23  Eric Blake  <ebb9@byu.net>
68670
68671         Fix fseeko/ftello on cygwin 1.5.24.
68672         * doc/functions/fseeko.texi (fseeko): Document the fix.
68673         * doc/functions/ftello.texi (ftello): Document the fix.
68674         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
68675         * doc/functions/stdout.text (stdout): New file.
68676         * doc/functions/stderr.text (stderr): New file.
68677         * doc/gnulib.texi (Function Substitutes): Use new files.
68678         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
68679         prior to 1.7.0.
68680         * tests/test-ftello.c (main): Likewise for ftello.
68681         * tests/test-fseeko.sh: New file.
68682         * tests/test-ftello.sh: New file.
68683         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
68684         with seekable stdin.
68685         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
68686         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
68687         (gl_REPLACE_FSEEKO): New macro.
68688         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
68689         * modules/fseeko (Files): Distribute fseeko.c.
68690         * modules/ftello (Files): Distribute ftello.c.
68691         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
68692         mode.
68693         * lib/ftello.c (rpl_ftello): New file.
68694         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
68695         fseeko, ftello.
68696         (gl_STDIN_LARGE_OFFSET): New macro.
68697         * modules/stdio (Makefile.am): Perform the replacement.
68698         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
68699
68700 2007-05-23  Bruno Haible  <bruno@clisp.org>
68701
68702         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
68703         GNULIB_POSIXCHECK is defined.
68704
68705 2007-05-21  Bruno Haible  <bruno@clisp.org>
68706
68707         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
68708         Check also the output for NaN arguments. When cross-compiling, guess
68709         no on IRIX.
68710         * lib/vasnprintf.c: Update comments.
68711         * tests/test-vasnprintf-posix.c (strisnan): New function.
68712         (test_function): Use it.
68713         * tests/test-vasprintf-posix.c (strisnan): New function.
68714         (test_function): Use it.
68715         * tests/test-snprintf-posix.h (strisnan): New function.
68716         (test_function): Use it.
68717         * tests/test-sprintf-posix.h (strisnan): New function.
68718         (test_function): Use it.
68719         Reported by Eric Blake.
68720
68721 2007-05-20  Bruno Haible  <bruno@clisp.org>
68722
68723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
68724         numbers that fails on BeOS.
68725         * doc/functions/frexpl.texi: Update.
68726
68727 2007-05-20  Jim Meyering  <jim@meyering.net>
68728
68729         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
68730         forced upon us by glibc-2.6.
68731
68732 2007-05-20  Bruno Haible  <bruno@clisp.org>
68733
68734         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
68735         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
68736         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
68737         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
68738         NEED_PRINTF_INFINITE.
68739         (is_infinitel): New function.
68740         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
68741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
68742         gl_PREREQ_VASNPRINTF_INFINITE.
68743         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
68744         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68745         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
68746         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
68747         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
68748         gl_PREREQ_VASNPRINTF_INFINITE.
68749         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68750         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68751         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68752         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68753         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68754         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68755         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68756         * doc/functions/fprintf.texi: Update.
68757         * doc/functions/printf.texi: Update.
68758         * doc/functions/snprintf.texi: Update.
68759         * doc/functions/sprintf.texi: Update.
68760         * doc/functions/vfprintf.texi: Update.
68761         * doc/functions/vprintf.texi: Update.
68762         * doc/functions/vsnprintf.texi: Update.
68763         * doc/functions/vsprintf.texi: Update.
68764
68765 2007-05-20  Bruno Haible  <bruno@clisp.org>
68766
68767         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
68768         was not found in libc.
68769         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
68770
68771 2007-05-20  Bruno Haible  <bruno@clisp.org>
68772
68773         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68774         printed as "-nan" instead of "nan".
68775         * tests/test-vasprintf-posix.c (test_function): Likewise.
68776         * tests/test-snprintf-posix.h (test_function): Likewise.
68777         * tests/test-sprintf-posix.h (test_function): Likewise.
68778         Needed for HP-UX 11.
68779
68780 2007-05-20  Jim Meyering  <jim@meyering.net>
68781
68782         Fix buggy test for the fchownat-deref bug.
68783         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
68784         symlink required for the run-test.  Without it, this test would
68785         always declare that fchownat doesn't work, and client code would
68786         unnecessarily use the replacement function with fixed libc.
68787         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
68788         Reported by Greg Schafer.
68789
68790 2007-05-19  Bruno Haible  <bruno@clisp.org>
68791
68792         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
68793         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
68794         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
68795         Needed for IRIX 6.5 and Solaris 2.5.1.
68796
68797 2007-05-19  Bruno Haible  <bruno@clisp.org>
68798
68799         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
68800         (test_function): Skip tests involving -0.0 on platforms where
68801         -0.0 = 0.0.
68802         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
68803         (test_function): Skip tests involving -0.0 on platforms where
68804         -0.0 = 0.0.
68805         * tests/test-snprintf-posix.h (have_minus_zero): New function.
68806         (test_function): Skip tests involving -0.0 on platforms where
68807         -0.0 = 0.0.
68808         * tests/test-sprintf-posix.h (have_minus_zero): New function.
68809         (test_function): Skip tests involving -0.0 on platforms where
68810         -0.0 = 0.0.
68811         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68812         tests.
68813         * tests/test-printf-posix.h (test_function): Likewise.
68814         * tests/test-printf-posix.output: Remove all -0.0 related results.
68815         Needed for IRIX 6.5.
68816
68817 2007-05-19  Bruno Haible  <bruno@clisp.org>
68818
68819         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68820         printed as "nan0x7fffffff" instead of "nan".
68821         * tests/test-vasprintf-posix.c (test_function): Likewise.
68822         * tests/test-snprintf-posix.h (test_function): Likewise.
68823         * tests/test-sprintf-posix.h (test_function): Likewise.
68824         * tests/test-fprintf-posix.h (NaN): Remove macro.
68825         (test_function): Remove all NaN related tests.
68826         * tests/test-printf-posix.h (NaN): Remove macro.
68827         (test_function): Remove all NaN related tests.
68828         * tests/test-printf-posix.output: Remove all NaN related results.
68829         Needed for IRIX 6.5.
68830
68831 2007-05-19  Bruno Haible  <bruno@clisp.org>
68832
68833         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68834         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68835
68836 2007-05-19  Bruno Haible  <bruno@clisp.org>
68837
68838         * lib/float_.h: New file.
68839         * m4/float_h.m4: New file.
68840         * modules/float: New file.
68841         * modules/isnanl (Dependencies): Add float.
68842         * modules/isnanl-nolibm (Dependencies): Likewise.
68843         * modules/mathl (Dependencies): Likewise.
68844         * modules/printf-frexpl (Dependencies): Likewise.
68845         * modules/signbit (Dependencies): Likewise.
68846         * modules/vasnprintf (Dependencies): Likewise.
68847         * doc/headers/float.texi: Update.
68848
68849 2007-05-19  Jim Meyering  <jim@meyering.net>
68850
68851         * lib/utimens.c (gl_futimens): Rename from futimens,
68852         now that glibc-2.6 declares futimens.
68853         * lib/utimens.h: Likewise.
68854
68855 2007-05-19  Bruno Haible  <bruno@clisp.org>
68856
68857         Avoid test failures on mingw.
68858         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68859         * tests/test-printf-posix.sh: Likewise.
68860         * tests/test-vfprintf-posix.sh: Likewise.
68861         * tests/test-vprintf-posix.sh: Likewise.
68862
68863 2007-05-19  Bruno Haible  <bruno@clisp.org>
68864
68865         Fix *printf result for NaN, Inf, -0.0 on mingw.
68866         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68867         * lib/vasnprintf.c: Include math.h and isnan.h.
68868         (is_infinite_or_zero): New function.
68869         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68870         values in the %f, %F, %e, %E, %g, %G directives.
68871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68872         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68873         gl_PRINTF_INFINITE and test its result. Invoke
68874         gl_PREREQ_VASNPRINTF_INFINITE.
68875         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68876         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68877         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68878         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68879         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68880         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68881         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68882         * doc/functions/fprintf.texi: Update.
68883         * doc/functions/printf.texi: Update.
68884         * doc/functions/snprintf.texi: Update.
68885         * doc/functions/sprintf.texi: Update.
68886         * doc/functions/vfprintf.texi: Update.
68887         * doc/functions/vprintf.texi: Update.
68888         * doc/functions/vsnprintf.texi: Update.
68889         * doc/functions/vsprintf.texi: Update.
68890
68891 2007-05-19  Bruno Haible  <bruno@clisp.org>
68892
68893         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68894         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68895         Instead of multiplying with 10^k, set extra_zeroes to k.
68896         (scale10_round_long_double): Remove function.
68897
68898 2007-05-18  Bruno Haible  <bruno@clisp.org>
68899
68900         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68901         introduced on 2007-05-06.
68902
68903 2007-05-18  Bruno Haible  <bruno@clisp.org>
68904
68905         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68906         %g directives.
68907         * tests/test-vasprintf-posix.c (test_function): Likewise.
68908         * tests/test-snprintf-posix.h (test_function): Likewise.
68909         * tests/test-sprintf-posix.h (test_function): Likewise.
68910
68911 2007-05-18  Bruno Haible  <bruno@clisp.org>
68912
68913         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68914         (strmatch): New function.
68915         (test_function): Test the %f directive on numbers of various exponents.
68916         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68917         (strmatch): New function.
68918         (test_function): Test the %f directive on numbers of various exponents.
68919         * tests/test-snprintf-posix.h (strmatch): New function.
68920         (test_function): Test the %f directive on numbers of various exponents.
68921         * tests/test-sprintf-posix.h (strmatch): New function.
68922         (test_function): Test the %f directive on numbers of various exponents.
68923         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68924         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68925         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68926         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68927
68928 2007-05-18  Bruno Haible  <bruno@clisp.org>
68929
68930         Add support for 'long double' number output.
68931         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68932         * lib/vasnprintf.c: Include math.h and float+.h.
68933         (mp_limb_t): New type.
68934         (GMP_LIMB_BITS): New macro.
68935         (mp_twolimb_t): New type.
68936         (GMP_TWOLIMB_BITS): New macro.
68937         (mpn_t): New type.
68938         (multiply, divide, convert_to_decimal, decode_long_double,
68939         scale10_round_long_double, scale10_round_decimal_long_double,
68940         floorlog10l): New functions.
68941         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68942         for the %f, %F, %e, %E, %g, %G directives.
68943         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68944         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68945         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68946         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68947         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68948         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68949         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68950         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68951         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68952         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68953         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68954         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68955         * modules/snprintf-posix (Depends-on): Likewise.
68956         * modules/sprintf-posix (Depends-on): Likewise.
68957         * modules/vasnprintf-posix (Depends-on): Likewise.
68958         * modules/vasprintf-posix (Depends-on): Likewise.
68959         * modules/vfprintf-posix (Depends-on): Likewise.
68960         * modules/vsnprintf-posix (Depends-on): Likewise.
68961         * modules/vsprintf-posix (Depends-on): Likewise.
68962         * modules/vasnprintf (Files): Add lib/float+.h.
68963         * doc/functions/fprintf.texi: Update.
68964         * doc/functions/printf.texi: Update.
68965         * doc/functions/snprintf.texi: Update.
68966         * doc/functions/sprintf.texi: Update.
68967         * doc/functions/vfprintf.texi: Update.
68968         * doc/functions/vprintf.texi: Update.
68969         * doc/functions/vsnprintf.texi: Update.
68970         * doc/functions/vsprintf.texi: Update.
68971
68972 2007-05-18  Bruno Haible  <bruno@clisp.org>
68973
68974         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68975
68976 2007-05-18  Bruno Haible  <bruno@clisp.org>
68977
68978         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68979         for printing 64-bit integers. Needed for mingw.
68980
68981 2007-05-18  Bruno Haible  <bruno@clisp.org>
68982
68983         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68984         gl_FUNC_FREXPL_WORKS.
68985         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68986
68987 2007-05-18  Bruno Haible  <bruno@clisp.org>
68988
68989         * modules/frexpl-nolibm-tests: New file.
68990
68991         * modules/frexpl-nolibm: New file.
68992         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68993
68994 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68995
68996         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68997         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68998         GCC 4.2, which otherwise issues a lot of warnings.
68999         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
69000         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
69001         Likewise.
69002         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
69003         * modules/iconv_open (iconv.h): Likewise.
69004         * modules/locale (locale.h): Likewise.
69005         * modules/netinet_in (netinet/in.h): Likewise.
69006         * modules/sys_select (sys_select.h): Likewise.
69007         * modules/sys_socket (sys/socket.h): Likewise.
69008         * modules/sys_stat (sys/stat.h): Likewise.
69009         * modules/sysexits (sysexits.h): Likewise.
69010         * modules/unistd (unistd.h): Likewise.
69011
69012 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69013
69014         * modules/closein-tests (Makefile.am): Distribute
69015         `test-closein.sh'.
69016
69017 2007-05-17  Bruno Haible  <bruno@clisp.org>
69018
69019         * tests/test-printf-posix.output: Renamed from
69020         tests/test-fprintf-posix.out.
69021         * modules/fprintf-posix-tests: Update.
69022         * modules/printf-posix-tests: Update.
69023         * modules/vfprintf-posix-tests: Update.
69024         * modules/vprintf-posix-tests: Update.
69025         * tests/test-fprintf-posix.sh: Update.
69026         * tests/test-printf-posix.sh: Update.
69027         * tests/test-vfprintf-posix.sh: Update.
69028         * tests/test-vprintf-posix.sh: Update.
69029         Reported by Ralf Wildenhues.
69030
69031 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
69032
69033         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
69034         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
69035         GCC 4.2, which otherwise issues a lot of warnings.
69036         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
69037         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
69038         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
69039         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
69040         it should no longer be needed.
69041         * lib/string_.h: Likewise.
69042         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
69043         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
69044         * modules/inttypes (inttypes.h): Likewise.
69045         * modules/math (math.h): Likewise.
69046         * modules/search (search.h): Likewise.
69047         * modules/signal (signal.h): Likewise.
69048         * modules/stdint (stdint.h): Likewise.
69049         * modules/stdio (stdio.h): Likewise.
69050         * modules/stdlib (stdlib.h): Likewise.
69051         * modules/string (string.h): Likewise.
69052         * modules/sys_time (sys/time.h): Likewise.
69053         * modules/time (time.h): Likewise.
69054         * modules/wchar (wchar.h): Likewise.
69055         * modules/wctype (wtype.h): Likewise.
69056
69057 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
69058
69059         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
69060
69061 2007-05-13  Bruno Haible  <bruno@clisp.org>
69062
69063         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
69064         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69065         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
69066         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69067         (gl_PREREQ_STRTOK_R): Don't require it here.
69068
69069 2007-05-13  Bruno Haible  <bruno@clisp.org>
69070
69071         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
69072         when used in C++ mode.
69073
69074 2007-05-12  Bruno Haible  <bruno@clisp.org>
69075
69076         * lib/linebuffer.h: Tweak doc.
69077         * lib/linebuffer.c: Likewise.
69078
69079 2007-05-12  James Youngman  <jay@gnu.org>
69080
69081         * lib/linebuffer.c (readlinebuffer_delim): New function,
69082         like readlinebuffer, but use a caller-specified delimiter.
69083         (readlinebuffer): Just call readlinebuffer_delim with '\n'
69084         as the delimiter.
69085         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
69086
69087 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
69088
69089         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
69090         * modules/openat (Files): Remove openat-die.c.
69091         (Depends-on): Add openat-die.
69092         * modules/openat-die: New module.
69093
69094 2007-05-06  Bruno Haible  <bruno@clisp.org>
69095
69096         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
69097         Update with info about Cygwin.
69098         * doc/functions/fprintf.texi: Update.
69099         * doc/functions/printf.texi: Update.
69100         * doc/functions/snprintf.texi: Update.
69101         * doc/functions/sprintf.texi: Update.
69102         * doc/functions/vfprintf.texi: Update.
69103         * doc/functions/vprintf.texi: Update.
69104         * doc/functions/vsnprintf.texi: Update.
69105         * doc/functions/vsprintf.texi: Update.
69106         Reported by Eric Blake.
69107
69108 2007-05-06  Bruno Haible  <bruno@clisp.org>
69109
69110         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
69111         padding ourselves for the floating-point directives.
69112         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
69113         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
69114         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69115         gl_PRINTF_FLAG_ZERO and test its result. Invoke
69116         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
69117         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69118         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69119         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69120         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69121         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69122         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69123         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69124         * tests/test-snprintf-posix.h (test_function): Also check the width
69125         and some flags in the %f directive.
69126         * tests/test-sprintf-posix.h (test_function): Likewise.
69127         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69128         * tests/test-vasprintf-posix.c (test_function): Likewise.
69129         * doc/functions/fprintf.texi: Update.
69130         * doc/functions/printf.texi: Update.
69131         * doc/functions/snprintf.texi: Update.
69132         * doc/functions/sprintf.texi: Update.
69133         * doc/functions/vfprintf.texi: Update.
69134         * doc/functions/vprintf.texi: Update.
69135         * doc/functions/vsnprintf.texi: Update.
69136         * doc/functions/vsprintf.texi: Update.
69137
69138 2007-05-06  Bruno Haible  <bruno@clisp.org>
69139
69140         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
69141         pass the ' flag character to sprintf or snprintf.
69142         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
69143         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
69144         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69145         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
69146         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
69147         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69148         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
69149         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69150         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69151         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69152         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69153         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69154         * tests/test-snprintf-posix.h (test_function): Also check the grouping
69155         flag.
69156         * tests/test-sprintf-posix.h (test_function): Likewise.
69157         * tests/test-vasnprintf-posix.c (test_function): Likewise.
69158         * tests/test-vasprintf-posix.c (test_function): Likewise.
69159         * doc/functions/fprintf.texi: Update.
69160         * doc/functions/printf.texi: Update.
69161         * doc/functions/snprintf.texi: Update.
69162         * doc/functions/sprintf.texi: Update.
69163         * doc/functions/vfprintf.texi: Update.
69164         * doc/functions/vprintf.texi: Update.
69165         * doc/functions/vsnprintf.texi: Update.
69166         * doc/functions/vsprintf.texi: Update.
69167
69168 2007-05-01  Bruno Haible  <bruno@clisp.org>
69169
69170         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
69171
69172 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
69173
69174         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
69175         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
69176
69177 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
69178
69179         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
69180         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
69181         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
69182
69183 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
69184
69185         * lib/argp-help.c (struct hol_entry): New member `ord'.
69186         (HOL_ENTRY_PTRCMP): Use ord for comparison
69187         (hol_sort): Initialize ord.
69188
69189 2007-05-01  Bruno Haible  <bruno@clisp.org>
69190
69191         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
69192         Reported by Eric Blake.
69193         * doc/gnulib.texi (Function Substitutes): Update.
69194
69195 2007-05-01  Bruno Haible  <bruno@clisp.org>
69196
69197         * doc/functions.texi: Remove file, now redundant through
69198         doc/functions/*.texi.
69199
69200 2007-05-01  Bruno Haible  <bruno@clisp.org>
69201
69202         * modules/argp (Depends-on): Add sleep.
69203
69204 2007-05-01  Bruno Haible  <bruno@clisp.org>
69205
69206         * modules/sleep-tests: New file.
69207         * tests/test-sleep.c: New file.
69208
69209         * modules/sleep: New file.
69210         * lib/sleep.c: New file.
69211         * m4/sleep.m4: New file.
69212         * lib/unistd_.h (sleep): New declaration.
69213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
69214         HAVE_SLEEP.
69215         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
69216         * doc/functions/sleep.texi: Document the sleep module.
69217
69218 2007-05-01  Bruno Haible  <bruno@clisp.org>
69219
69220         * lib/sigprocmask.h: Remove file.
69221         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
69222         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
69223         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
69224         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
69225         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
69226         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
69227         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
69228         HAVE_SIGSET_T as a shell variable.
69229         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
69230         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
69231         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
69232         (Depends-on): Add signal. Remove verify.
69233         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
69234         (Include): Mention <signal.h> instead of sigprocmask.h.
69235         * NEWS: Mention the change.
69236         * lib/fatal-signal.c: Don't include sigprocmask.h.
69237
69238 2007-05-01  Bruno Haible  <bruno@clisp.org>
69239
69240         * modules/signal: New file.
69241         * lib/signal_.h: New file.
69242         * m4/signal_h.m4: New file.
69243
69244 2007-05-01  Bruno Haible  <bruno@clisp.org>
69245
69246         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
69247         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
69248         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
69249         HAVE_WCTYPE_CTMP_BUG into wctype.h.
69250
69251 2007-05-01  Bruno Haible  <bruno@clisp.org>
69252
69253         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
69254         configure time.
69255         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
69256         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
69257         * modules/sys_stat (Makefile.am): Substitute their values into
69258         sys/stat.h.
69259
69260 2007-05-01  Bruno Haible  <bruno@clisp.org>
69261
69262         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
69263         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
69264         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
69265
69266 2007-05-01  Bruno Haible  <bruno@clisp.org>
69267
69268         * doc/header/assert.texi: Undo last change: don't mention the gnulib
69269         'assert' module here.
69270
69271 2007-05-01  Bruno Haible  <bruno@clisp.org>
69272
69273         * doc/functions/*.texi: New files.
69274         * doc/functions/google-ranking.txt: New file.
69275         * doc/gnulib.texi (Function Substitutes): New chapter.
69276         (ctime, inet_ntoa): Remove sections.
69277         * doc/ctime.texi: Remove file.
69278         * doc/inet_ntoa.texi: Remove file.
69279         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
69280         dependencies.
69281         (%.info): New rule, specifying a --reference-limit.
69282
69283 2007-05-01  Bruno Haible  <bruno@clisp.org>
69284
69285         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
69286
69287 2007-05-01  Bruno Haible  <bruno@clisp.org>
69288
69289         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
69290         the portability of 'mkdir' to mingw systems.
69291
69292 2007-05-01  Bruno Haible  <bruno@clisp.org>
69293
69294         * doc/headers/google-ranking.txt: New file.
69295
69296 2007-04-30  Eric Blake  <ebb9@byu.net>
69297
69298         Prefer fseeko to fseek.
69299         * modules/getpass (Depends-on): Add fseeko.
69300         * lib/getpass.c (getpass): Use fseeko, not fseek.
69301
69302 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
69303
69304         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
69305         assumes the sorting is stable, while most qsort implementations
69306         are not.  Use argument addresses to ensure they never compare as
69307         equal.
69308
69309         * tests/test-argp-2.sh (usage-indent test): Fix output
69310         (func_compare): Restore diff options
69311         * tests/test-argp.c: Restore #include "progname.h"
69312
69313 2007-04-29  Bruno Haible  <bruno@clisp.org>
69314
69315         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
69316         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69317         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
69318         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69319         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
69320         (configure.ac): Define CHECK_SNPRINTF_POSIX.
69321         (TESTS, check_PROGRAMS): Add test-snprintf.
69322         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
69323         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
69324         (TESTS, check_PROGRAMS): Add test-vsnprintf.
69325         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
69326         assertions that fail on HP-UX, OSF/1, or IRIX.
69327         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
69328
69329 2007-04-29  Bruno Haible  <bruno@clisp.org>
69330
69331         * MODULES.html.sh (posix_functions): Remove 'contents'.
69332
69333 2007-04-29  Karl Berry  <karl@gnu.org>
69334
69335         * config/srclist.txt (gendocs_template_min): new entry.
69336
69337 2007-04-29  Bruno Haible  <bruno@clisp.org>
69338
69339         Work around fpurge bug on BSD systems.
69340         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
69341         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
69342         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
69343         fpurge to rpl_fpurge if the system already has this function.
69344         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
69345         the case where the system already has this function. Correct invariants
69346         on BSD systems.
69347         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
69348         BSD systems.
69349
69350 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
69351
69352         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
69353         proposed by Sven Verdoolaege.
69354
69355         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
69356         options.
69357         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
69358         (usage and help tests): Update
69359
69360 2007-04-29  Bruno Haible  <bruno@clisp.org>
69361
69362         * tests/test-fflush.c (main): Use a file of size 17, not 10.
69363         Print more information in case of failure. Disable a test on BeOS.
69364
69365 2007-04-29  Bruno Haible  <bruno@clisp.org>
69366
69367         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
69368         This helps debugging on systems on which no gdb is available.
69369
69370 2007-04-29  Bruno Haible  <bruno@clisp.org>
69371
69372         * lib/freading.h: Improve comments.
69373         * lib/fwriting.h: Likewise.
69374         * tests/test-freading.c (main): Don't check freading immediately after
69375         repositioning. Needed for glibc.
69376
69377 2007-04-29  Bruno Haible  <bruno@clisp.org>
69378
69379         * lib/freading.c (freading): Trivial simplification.
69380
69381 2007-04-28  Bruno Haible  <bruno@clisp.org>
69382
69383         * tests/test-fwriting.c (main): Also test the interaction between
69384         fflush and fwriting.
69385         * modules/fwriting-tests (Depends-on): Add fflush.
69386
69387         * tests/test-freading.c (main): Also test the interaction between
69388         fflush and freading.
69389         * modules/freading-tests (Depends-on): Add fflush.
69390
69391 2007-04-28  Bruno Haible  <bruno@clisp.org>
69392
69393         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
69394         fseeko and ftello.
69395         Suggested by Eric Blake.
69396
69397 2007-04-28  Jim Meyering  <jim@meyering.net>
69398
69399         Avoid false-negative in gl_STDINT_H's C99 conformance test.
69400         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
69401         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
69402
69403 2007-04-27  Eric Blake  <ebb9@byu.net>
69404
69405         * doc/headers/assert.texi (assert.h): Document assert module use.
69406
69407 2007-04-27  Bruno Haible  <bruno@clisp.org>
69408
69409         * doc/headers/*.texi: New files.
69410         * doc/gnulib.texi (Header File Substitutes): New chapter.
69411         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
69412         dependencies.
69413         (standards.info ,standards.html, standards.dvi): Update dependencies.
69414         (mostlyclean, clean): New targets.
69415
69416 2007-04-27  Bruno Haible  <bruno@clisp.org>
69417
69418         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
69419         * modules/sysexits (Files, Makefile.am): Update.
69420
69421         * lib/sys_socket_.h: Renamed from lib/socket_.h.
69422         * modules/sys_socket (Files, Makefile.am): Update.
69423
69424         * lib/sys_stat_.h: Renamed from lib/stat_.h.
69425         * modules/sys_stat (Files, Makefile.am): Update.
69426
69427 2007-04-27  Eric Blake  <ebb9@byu.net>
69428
69429         * lib/freading.h: Improve comments.
69430         * lib/fwriting.h: Likewise.
69431         * lib/fflush.c: Likewise.
69432
69433         Fix closein for mingw.
69434         * modules/closein-tests: Add tests for closein.
69435         * tests/test-closein.c: New file.
69436         * tests/test-closein.sh: Likewise.
69437         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
69438         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
69439
69440 2007-04-27  Bruno Haible  <bruno@clisp.org>
69441
69442         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
69443         version is < 6.
69444         * lib/math_.h [__DECC]: Likewise.
69445         * lib/stdio_.h [__DECC]: Likewise.
69446         * lib/stdlib_.h [__DECC]: Likewise.
69447         * lib/string_.h [__DECC]: Likewise.
69448         * lib/time_.h [__DECC]: Likewise.
69449         * lib/wchar_.h [__DECC]: Likewise.
69450         * lib/wctype_.h [__DECC]: Likewise.
69451
69452 2007-04-27  Bruno Haible  <bruno@clisp.org>
69453
69454         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
69455
69456 2007-04-27  Bruno Haible  <bruno@clisp.org>
69457
69458         * lib/fflush.c: Add comments.
69459         * modules/fpurge-tests (Depends-on): Add fflush.
69460         * modules/freadable-tests (Depends-on): Likewise.
69461         * modules/fwritable-tests (Depends-on): Likewise.
69462
69463 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
69464
69465         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
69466         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
69467         Report by Bruno Haible <bruno@clisp.org>.
69468
69469 2007-04-26  Eric Blake  <ebb9@byu.net>
69470
69471         Fix fflush on mingw.
69472         * modules/fflush (Depends-on): Add freading.
69473         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
69474         but unread data.
69475
69476 2007-04-26  Eric Blake  <ebb9@byu.net>
69477         and Bruno Haible  <bruno@clisp.org>
69478
69479         Implement freading and fwriting.
69480         * lib/freading.c: New file.
69481         * lib/freading.h: Likewise.
69482         * m4/freading.m4: Likewise.
69483         * modules/freading: Likewise.
69484         * modules/freading-tests: Likewise.
69485         * tests/test-freading.c: Likewise.
69486         * lib/fwriting.c: New file.
69487         * lib/fwriting.h: Likewise.
69488         * m4/fwriting.m4: Likewise.
69489         * modules/fwriting: Likewise.
69490         * modules/fwriting-tests: Likewise.
69491         * tests/test-fwriting.c: Likewise.
69492         * MODULES.html.sh (File stream based Input/Output): Mention them.
69493
69494 2007-04-26  Bruno Haible  <bruno@clisp.org>
69495
69496         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
69497         'long' when we assume it.
69498         Suggested by Eric Blake.
69499
69500 2007-04-26  Bruno Haible  <bruno@clisp.org>
69501
69502         Ensure fseeko, ftello are declared on glibc systems.
69503         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
69504         * modules/fseeko (configure.ac-early): Likewise.
69505         * modules/ftello (configure.ac-early): Likewise.
69506         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
69507         AC_FUNC_FSEEKO for this.
69508         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
69509         (gl_CHECK_FSEEKO): Remove macro.
69510
69511 2007-04-26  Bruno Haible  <bruno@clisp.org>
69512
69513         * tests/test-fflush.c (main): Also check the ftell result after
69514         fflush and fseek/fseeko.
69515         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
69516         file descriptor position cache in the stream.
69517         * lib/fseeko.c (rpl_fseeko): Likewise.
69518
69519 2007-04-26  Bruno Haible  <bruno@clisp.org>
69520
69521         * modules/fflush-tests (Depends-on): Add fseeko.
69522
69523 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
69524             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69525
69526         * lib/argz_.h: ensure error_t definition is obtained in same
69527         mechanism system argz.h would have.
69528         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
69529         argz facilities are known bad.  Err on the side of caution if
69530         cross-compiling.
69531
69532 2007-04-25  Eric Blake  <ebb9@byu.net>
69533
69534         * lib/fpurge.c (includes): Use stdlib.h for free.
69535         * tests/test-fflush.c (main): Also test fflush-fseeko.
69536
69537 2007-04-25  Bruno Haible  <bruno@clisp.org>
69538
69539         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
69540         * lib/fseeko.c: New file.
69541         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
69542         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
69543         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
69544         gl_FUNC_FSEEKO.
69545         (gl_FUNC_FSEEKO): Invoke it.
69546         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
69547         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
69548         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
69549
69550 2007-04-25  Bruno Haible  <bruno@clisp.org>
69551
69552         * modules/fflush (Depends-on): Add ftello.
69553
69554 2007-04-25  Bruno Haible  <bruno@clisp.org>
69555
69556         * modules/ftello-tests: New file.
69557         * tests/test-ftello.c: New file.
69558
69559         * modules/ftello: New file.
69560         * m4/ftello.m4: New file.
69561         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
69562         HAVE_FTELLO.
69563         * lib/stdio_.h (ftello): New declaration.
69564         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
69565         HAVE_FTELLO.
69566
69567 2007-04-25  Bruno Haible  <bruno@clisp.org>
69568
69569         * modules/fseeko-tests: New file.
69570         * tests/test-fseeko.c: New file.
69571
69572         * modules/fseeko: New file.
69573         * m4/fseeko.m4: New file.
69574         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
69575         HAVE_FSEEKO.
69576         * lib/stdio_.h (fseeko): New declaration.
69577         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
69578         HAVE_FSEEKO.
69579
69580 2007-04-25  Bruno Haible  <bruno@clisp.org>
69581
69582         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
69583
69584 2007-04-25  Bruno Haible  <bruno@clisp.org>
69585
69586         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
69587         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
69588         * tests/test-unistd.c: Likewise.
69589         * tests/test-fcntl.c: Likewise.
69590
69591 2007-04-23  Eric Blake  <ebb9@byu.net>
69592
69593         * lib/fflush.c: Fix missing include.
69594         Reported by Bruno Haible.
69595
69596 2007-04-23  Bruno Haible  <bruno@clisp.org>
69597
69598         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
69599         Reported by Eric Blake.
69600
69601 2007-04-23  Bruno Haible  <bruno@clisp.org>
69602
69603         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
69604
69605 2007-04-23  Bruno Haible  <bruno@clisp.org>
69606
69607         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
69608
69609 2007-04-23  Bruno Haible  <bruno@clisp.org>
69610
69611         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
69612         Needed on HP-UX 11.
69613
69614 2007-04-16  Eric Blake  <ebb9@byu.net>
69615
69616         Make fflush rely on fpurge.
69617         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
69618         open coding all variants.
69619         * modules/fflush (Depends-on): Add fpurge and unistd.
69620         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
69621         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
69622
69623         Fix --with-tests compilation on cygwin.
69624         * modules/argmatch-tests (Makefile.am): List gnulib library first
69625         in LDADD.
69626         * modules/argp-tests (Makefile.am): Likewise.
69627         * modules/array-list-tests (Makefile.am): Likewise.
69628         * modules/array-oset-tests (Makefile.am): Likewise.
69629         * modules/avltree-list-tests (Makefile.am): Likewise.
69630         * modules/avltree-oset-tests (Makefile.am): Likewise.
69631         * modules/avltreehash-list-tests (Makefile.am): Likewise.
69632         * modules/carray-list-tests (Makefile.am): Likewise.
69633         * modules/dirname-tests (Makefile.am): Likewise.
69634         * modules/frexp-tests (Makefile.am): Likewise.
69635         * modules/isnanl-tests (Makefile.am): Likewise.
69636         * modules/linked-list-tests (Makefile.am): Likewise.
69637         * modules/linkedhash-list-tests (Makefile.am): Likewise.
69638         * modules/lock-tests (Makefile.am): Likewise.
69639         * modules/rbtree-list-tests (Makefile.am): Likewise.
69640         * modules/rbtree-oset-tests (Makefile.am): Likewise.
69641         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
69642         * modules/tls-tests (Makefile.am): Likewise.
69643         * modules/tsearch-tests (Makefile.am): Likewise.
69644         * modules/xvasprintf-tests (Makefile.am): Likewise.
69645
69646         Fix fpurge for cygwin.
69647         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
69648         value.
69649         * modules/fpurge-tests (Depends-on): Clean up trash.
69650
69651 2007-04-16  Simon Josefsson  <simon@josefsson.org>
69652
69653         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
69654
69655         * m4/autobuild.m4: Re-indent.
69656
69657 2007-04-13  Bruno Haible  <bruno@clisp.org>
69658
69659         * modules/fpurge-tests: New file.
69660         * tests/test-fpurge.c: New file.
69661
69662         * modules/fpurge: New file.
69663         * lib/fpurge.h: New file.
69664         * lib/fpurge.c: New file.
69665         * m4/fpurge.m4: New file.
69666
69667 2007-04-13  Bruno Haible  <bruno@clisp.org>
69668
69669         * modules/fbufmode-tests: New file.
69670         * tests/test-fbufmode.c: New file.
69671
69672         * modules/fbufmode: New file.
69673         * lib/fbufmode.h: New file.
69674         * lib/fbufmode.c: New file.
69675         * m4/fbufmode.m4: New file.
69676
69677 2007-04-13  Bruno Haible  <bruno@clisp.org>
69678
69679         * modules/fwritable-tests: New file.
69680         * tests/test-fwritable.c: New file.
69681
69682         * modules/fwritable: New file.
69683         * lib/fwritable.h: New file.
69684         * lib/fwritable.c: New file.
69685         * m4/fwritable.m4: New file.
69686
69687 2007-04-13  Bruno Haible  <bruno@clisp.org>
69688
69689         * modules/freadable-tests: New file.
69690         * tests/test-freadable.c: New file.
69691
69692         * modules/freadable: New file.
69693         * lib/freadable.h: New file.
69694         * lib/freadable.c: New file.
69695         * m4/freadable.m4: New file.
69696
69697 2007-04-13  Bruno Haible  <bruno@clisp.org>
69698
69699         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
69700         MOSTLYCLEANFILES.
69701
69702 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
69703
69704         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
69705         gzip bootstrap.conf to avoid dragging in i18n machinery.
69706         (gnulib_tool_option): Use it.
69707
69708 2007-04-13  Bruno Haible  <bruno@clisp.org>
69709
69710         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
69711         %F directives.
69712         * tests/test-vasprintf-posix.c (test_function): Likewise.
69713         * tests/test-snprintf-posix.h (test_function): Likewise.
69714         * tests/test-sprintf-posix.h (test_function): Likewise.
69715         * tests/test-fprintf-posix.h (test_function): Likewise.
69716         * tests/test-printf-posix.h (test_function): Likewise.
69717         * tests/test-fprintf-posix.out: Likewise.
69718
69719 2007-04-13  Bruno Haible  <bruno@clisp.org>
69720
69721         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
69722         * modules/tls-tests (configure.ac): Likewise.
69723         Reported by Arto C. Nirkko <anirkko@insel.ch>.
69724
69725 2007-04-13  Bruno Haible  <bruno@clisp.org>
69726
69727         * lib/tls.c (glthread_tls_get): Fix return type.
69728         Patch by Arto C. Nirkko <anirkko@insel.ch>.
69729
69730 2007-04-12  Eric Blake  <ebb9@byu.net>
69731
69732         * modules/gettime (Depends-on): Remove gettime.
69733         Reported by Dmitry V. Levin.
69734
69735 2007-04-12  Bruno Haible  <bruno@clisp.org>
69736
69737         * modules/fflush (Include): Mention <stdio.h>.
69738         * modules/strtoimax (Include): Mention <inttypes.h>.
69739         * modules/strtoumax (Include): Likewise.
69740
69741 2007-04-12  Eric Blake  <ebb9@byu.net>
69742
69743         * .cvsignore: New file.
69744         * .gitignore: Likewise.
69745
69746 2007-04-12  Bruno Haible  <bruno@clisp.org>
69747
69748         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
69749         not before, since $(LDADD) often contains libgnu.a.
69750         * modules/striconv-tests (test_striconv_LDADD): Likewise.
69751         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
69752         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
69753         Needed on Cygwin.
69754
69755 2007-04-12  Eric Blake  <ebb9@byu.net>
69756
69757         Work around glibc's failure to flush stdin on fclose.
69758         * lib/closein.c (close_stdin): Flush stdin before closing.
69759
69760         Work around glibc's failure to reset seekable stdin on exit.
69761         * modules/closein: New module.
69762         * lib/closein.c: New file.
69763         * lib/closein.h: Likewise.
69764         * m4/closein.m4: Likewise.
69765         * MODULES.html.sh (File stream based Input/Output): Document it.
69766
69767 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69768
69769         * gnulib-tool: Rename generated 'autobuild' script to
69770         'do-autobuild' in --create-megatestdir output.
69771
69772         * doc/gnulib.texi (Build robot for gnulib): Fix.
69773
69774 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69775
69776         * modules/sysexits (Depends-on): Add absolute-header.
69777
69778 2007-04-12  Eric Blake  <ebb9@byu.net>
69779
69780         No need to preserve errno on success.
69781         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
69782         Reported by Bruno Haible.
69783
69784 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69785
69786         * MODULES.html.sh (Support for maintaining and releasing
69787         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
69788
69789 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69790
69791         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
69792
69793 2007-04-12  Simon Josefsson  <simon@josefsson.org>
69794
69795         * modules/autobuild: New module.
69796
69797         * m4/autobuild.m4: New file.
69798
69799 2007-04-11  Bruno Haible  <bruno@clisp.org>
69800
69801         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
69802         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
69803         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
69804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
69805         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
69806         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69807         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69808         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
69809         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69810         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69811         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69812         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69813         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69814         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69815         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69816         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69817         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69818         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69819         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69820         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69821         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69822         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69823         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69824         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69825         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69826         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69827         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69828         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69829         Reported by Eric Blake.
69830
69831 2007-04-11  Bruno Haible  <bruno@clisp.org>
69832
69833         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69834
69835 2007-04-10  Bruno Haible  <bruno@clisp.org>
69836
69837         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69838         for NaN and Infinity. Needed on FreeBSD 6.1.
69839         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69840         regarding results for "%010a" of Infinity and NaN.
69841         * tests/test-vasprintf-posix.c (test_function): Likewise.
69842         * tests/test-snprintf-posix.h (test_function): Likewise.
69843         * tests/test-sprintf-posix.h (test_function): Likewise.
69844         * tests/test-fprintf-posix.h (test_function): Likewise.
69845         * tests/test-printf-posix.h (test_function): Likewise.
69846         * tests/test-fprintf-posix.out: Likewise.
69847
69848 2007-04-10  Bruno Haible  <bruno@clisp.org>
69849
69850         * modules/locale-tests: New file.
69851         * tests/test-locale.c: New file.
69852
69853         * modules/locale: New file.
69854         * lib/locale_.h: New file.
69855         * m4/locale_h.m4: New file.
69856
69857 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69858             Bruno Haible  <bruno@clisp.org>
69859
69860         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69861         be determined, test for availability of the copysignf, copysign,
69862         copysignl functions.
69863         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69864         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69865         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69866
69867 2007-04-09  Eric Blake  <ebb9@byu.net>
69868
69869         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69870         * modules/stdio (Makefile.am): Support fflush.
69871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69872         * modules/fflush: New file.
69873         * lib/fflush.c: Likewise.
69874         * m4/fflush.m4: Likewise.
69875         * modules/fflush-tests: New test.
69876         * tests/test-fflush.c: Likewise.
69877         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69878
69879 2007-04-06  Bruno Haible  <bruno@clisp.org>
69880
69881         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69882         (VASNPRINTF): Use signbit for faster determination whether to print a
69883         minus sign.
69884         * modules/vasnprintf (Files): Remove lib/float+.h.
69885         * modules/fprintf-posix (Depends-on): Add signbit.
69886         * modules/snprintf-posix (Depends-on): Likewise.
69887         * modules/sprintf-posix (Depends-on): Likewise.
69888         * modules/vasnprintf-posix (Depends-on): Likewise.
69889         * modules/vasprintf-posix (Depends-on): Likewise.
69890         * modules/vfprintf-posix (Depends-on): Likewise.
69891         * modules/vsnprintf-posix (Depends-on): Likewise.
69892         * modules/vsprintf-posix (Depends-on): Likewise.
69893
69894 2007-04-06  Bruno Haible  <bruno@clisp.org>
69895
69896         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69897         * tests/test-frexpl.c (main): Likewise.
69898         * tests/test-ldexpl.c (main): Likewise.
69899         * modules/frexp-tests (Depends-on): Add signbit.
69900         * modules/frexpl-tests (Depdends-on): Likewise.
69901         * modules/ldexpl-tests (Depdends-on): Likewise.
69902
69903 2007-04-06  Bruno Haible  <bruno@clisp.org>
69904
69905         * modules/signbit-tests: New file.
69906         * tests/test-signbit.c: New file.
69907
69908         * modules/signbit: New file.
69909         * lib/signbitf.c: New file.
69910         * lib/signbitd.c: New file.
69911         * lib/signbitl.c: New file.
69912         * m4/signbit.m4: New file.
69913         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69914         (signbit): New macro.
69915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69916         REPLACE_SIGNBIT.
69917         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69918         REPLACE_FREXPL into math.h.
69919
69920 2007-04-06  Bruno Haible  <bruno@clisp.org>
69921
69922         * modules/isnanf-nolibm-tests: New file.
69923         * tests/test-isnanf.c: New file.
69924
69925         * modules/isnanf-nolibm: New file.
69926         * lib/isnanf.h: New file.
69927         * lib/isnanf.c: New file.
69928         * lib/isnan.c: Consider the USE_FLOAT macro.
69929         * m4/isnanf.m4: New file.
69930
69931 2007-04-06  Bruno Haible  <bruno@clisp.org>
69932
69933         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69934         (Link): New section.
69935
69936         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69937
69938 2007-04-06  Bruno Haible  <bruno@clisp.org>
69939
69940         Assume the 'long double' type.
69941         * m4/longdouble.m4: Remove file.
69942         * config/srclist.txt: Don't mention longdouble.m4.
69943         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69944         * lib/float+.h: Likewise.
69945         * lib/frexp.c: Likewise.
69946         * lib/printf-args.h: Likewise.
69947         * lib/printf-args.c: Likewise.
69948         * lib/printf-frexp.c: Likewise.
69949         * lib/printf-parse.c: Likewise.
69950         * lib/vasnprintf.c: Likewise.
69951         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69952         * m4/intl.m4: Likewise.
69953         * m4/isnanl.m4: Likewise.
69954         * m4/printf.m4: Likewise.
69955         * m4/printf-frexpl.m4: Likewise.
69956         * m4/vasnprintf.m4: Likewise.
69957         * modules/allocsa (Files): Remove m4/longdouble.m4.
69958         * modules/gettext (Files): Likewise.
69959         * modules/relocatable-prog-wrapper (Files): Likewise.
69960         * modules/vasnprintf (Files): Likewise.
69961         * modules/isnanl (Files): Likewise.
69962         (Include): Simplify.
69963         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69964         (Include): Simplify.
69965         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69966         (Include): Simplify.
69967         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69968         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69969         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69970         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69971         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69972         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69973         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69974         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69975         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69976         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69977         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69978         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69979         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69980         * tests/test-isnanl.c: Likewise.
69981         * tests/test-snprintf-posix.h: Likewise.
69982         * tests/test-sprintf-posix.h: Likewise.
69983         * tests/test-vasnprintf-posix.c: Likewise.
69984         * tests/test-vasnprintf-posix2.c: Likewise.
69985         * tests/test-vasprintf-posix.c: Likewise.
69986
69987 2007-04-06  Bruno Haible  <bruno@clisp.org>
69988
69989         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69990         * lib/math_.h [__DECC]: Include the overridden include file through
69991         #include_next, outside the double-inclusion guard.
69992         * lib/stdio_.h [__DECC]: Likewise.
69993         * lib/stdlib_.h [__DECC]: Likewise.
69994         * lib/string_.h [__DECC]: Likewise.
69995         * lib/time_.h [__DECC]: Likewise.
69996         * lib/wchar_.h [__DECC]: Likewise.
69997         * lib/wctype_.h [__DECC]: Likewise.
69998         * lib/inttypes_.h [__DECC]: Likewise.
69999         Reported by Albert Chin <china@thewrittenword.com> in
70000         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
70001
70002 2007-04-04  Eric Blake  <ebb9@byu.net>
70003
70004         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
70005         1.5.x.
70006
70007 2007-04-04  Bruno Haible  <bruno@clisp.org>
70008
70009         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
70010         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
70011
70012 2007-04-04  Bruno Haible  <bruno@clisp.org>
70013
70014         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
70015         results for "%010a" of Infinity and NaN.
70016         * tests/test-vasprintf-posix.c (test_function): Likewise.
70017         * tests/test-snprintf-posix.h (test_function): Likewise.
70018         * tests/test-sprintf-posix.h (test_function): Likewise.
70019         * tests/test-fprintf-posix.h (test_function): Remove these tests.
70020         * tests/test-printf-posix.h (test_function): Likewise.
70021         * tests/test-fprintf-posix.out: Update.
70022         Needed for FreeBSD 6.1.
70023
70024 2007-04-04  Bruno Haible  <bruno@clisp.org>
70025
70026         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
70027         directly used by the gnulib modules nor by gnulib-tool.
70028
70029 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
70030
70031         * DEPENDENCIES: Give overall description of version dependency
70032         desirability.  Use more-typical names for apps.
70033         Add shell, coreutils, diffutils, grep, tar, gzip.
70034
70035 2007-04-04  Simon Josefsson  <simon@josefsson.org>
70036
70037         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
70038
70039 2007-04-04  Karl Berry  <karl@gnu.org>
70040
70041         * MODULES.html.sh (func_module): missing '.
70042
70043 2007-04-03  Bruno Haible  <bruno@clisp.org>
70044
70045         * modules/argmatch-tests (Makefile.am): New variable
70046         test_argmatch_LDADD.
70047         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
70048         * modules/array-list-tests (Makefile.am): New variable
70049         test_array_list_LDADD.
70050         * modules/array-oset-tests (Makefile.am): New variable
70051         test_array_oset_LDADD.
70052         * modules/avltree-list-tests (Makefile.am): New variable
70053         test_avltree_list_LDADD.
70054         * modules/avltree-oset-tests (Makefile.am): New variable
70055         test_avltree_oset_LDADD.
70056         * modules/avltreehash-list-tests (Makefile.am): New variable
70057         test_avltreehash_list_LDADD.
70058         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
70059         test_canonicalize_lgpl_LDADD.
70060         * modules/carray-list-tests (Makefile.am): New variable
70061         test_carray_list_LDADD.
70062         * modules/dirname-tests (Makefile.am): New variable
70063         test_dirname_LDADD.
70064         * modules/linked-list-tests (Makefile.am): New variable
70065         test_linked_list_LDADD.
70066         * modules/linkedhash-list-tests (Makefile.am): New variable
70067         test_linkedhash_list_LDADD.
70068         * modules/rbtree-list-tests (Makefile.am): New variable
70069         test_rbtree_list_LDADD.
70070         * modules/rbtree-oset-tests (Makefile.am): New variable
70071         test_rbtree_oset_LDADD.
70072         * modules/rbtreehash-list-tests (Makefile.am): New variable
70073         test_rbtreehash_list_LDADD.
70074         * modules/xvasprintf-tests (Makefile.am): New variable
70075         test_xvasprintf_LDADD.
70076         Reported by Eric Blake.
70077
70078 2007-04-03  Eric Blake  <ebb9@byu.net>
70079
70080         * DEPENDENCIES: Weaken m4 requirements.
70081
70082 2007-04-03  Bruno Haible  <bruno@clisp.org>
70083
70084         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
70085         * modules/isnanl-tests (configure.ac): Likewise.
70086
70087 2007-04-03  Ben Pfaff  <blp@gnu.org>
70088
70089         * modules/iconv_open: Add $(srcdir)/ to source directory
70090         references in Makefile fragments that call gperf, to fix VPATH
70091         builds.
70092
70093 2007-04-03  Bruno Haible  <bruno@clisp.org>
70094
70095         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
70096         * lib/ldexpl.c: Undo last change.
70097
70098 2007-04-03  Bruno Haible  <bruno@clisp.org>
70099
70100         * modules/printf-frexpl (Depends-on): Undo last change.
70101         (Files): Add m4/ldexpl.m4.
70102
70103 2007-04-03  Bruno Haible  <bruno@clisp.org>
70104
70105         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
70106         * modules/isnanl (Link): New section.
70107
70108         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
70109         * modules/frexp (Link): New section.
70110
70111         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
70112         * modules/frexpl (Link): New section.
70113
70114         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
70115         * modules/ldexpl (Link): New section.
70116
70117 2007-04-03  Bruno Haible  <bruno@clisp.org>
70118
70119         * modules/TEMPLATE-EXTENDED: New file.
70120         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
70121
70122 2007-04-03  Bruno Haible  <bruno@clisp.org>
70123
70124         * DEPENDENCIES: New file.
70125         Suggested by Simon Josefsson.
70126
70127 2007-04-03  Bruno Haible  <bruno@clisp.org>
70128
70129         * doc/gnulib.texi: Escape @.
70130
70131 2007-04-03  James Youngman  <jay@gnu.org>
70132         and Paul Eggert  <eggert@cs.ucla.edu>
70133
70134         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
70135         birthtime on all systems that have birthtime, not just those which
70136         use st_birthtimensec rather than st_birthtim.  Putting zero in
70137         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
70138         that the birth time is not available for files on an NFS mount.
70139
70140 2007-04-03  Simon Josefsson  <simon@josefsson.org>
70141
70142         * modules/memxor: Move back from crypto/, suggested by Bruno.
70143         * modules/crypto/hmac-sha1: Fix memxor dependency.
70144
70145         * modules/crypto/gc: Moved from ../.
70146
70147 2007-04-02  Eric Blake  <ebb9@byu.net>
70148
70149         * lib/ldexpl.c (includes): Avoid libm.
70150
70151         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
70152
70153 2007-04-02  Bruno Haible  <bruno@clisp.org>
70154
70155         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
70156         on IRIX.
70157
70158 2007-04-02  Bruno Haible  <bruno@clisp.org>
70159
70160         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
70161         x86 or x86_64 platforms running MacOS X.
70162         Reported by Ryan Schmidt <@ryandesign.com>.
70163
70164 2007-04-02  Bruno Haible  <bruno@clisp.org>
70165
70166         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
70167         i386.
70168
70169 2007-04-01  Simon Josefsson  <simon@josefsson.org>
70170
70171         * modules/crypto/arcfour: Moved from ../.
70172         * modules/crypto/arcfour-tests: Moved from ../.
70173         * modules/crypto/arctwo: Moved from ../.
70174         * modules/crypto/arctwo-tests: Moved from ../.
70175         * modules/crypto/des: Moved from ../.
70176         * modules/crypto/des-tests: Moved from ../.
70177         * modules/crypto/gc-arcfour: Moved from ../.
70178         * modules/crypto/gc-arcfour-tests: Moved from ../.
70179         * modules/crypto/gc-arctwo: Moved from ../.
70180         * modules/crypto/gc-arctwo-tests: Moved from ../.
70181         * modules/crypto/gc-des: Moved from ../.
70182         * modules/crypto/gc-des-tests: Moved from ../.
70183         * modules/crypto/gc-hmac-md5: Moved from ../.
70184         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
70185         * modules/crypto/gc-hmac-sha1: Moved from ../.
70186         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
70187         * modules/crypto/gc-md2: Moved from ../.
70188         * modules/crypto/gc-md2-tests: Moved from ../.
70189         * modules/crypto/gc-md4: Moved from ../.
70190         * modules/crypto/gc-md4-tests: Moved from ../.
70191         * modules/crypto/gc-md5: Moved from ../.
70192         * modules/crypto/gc-md5-tests: Moved from ../.
70193         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
70194         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
70195         * modules/crypto/gc-random: Moved from ../.
70196         * modules/crypto/gc-rijndael: Moved from ../.
70197         * modules/crypto/gc-rijndael-tests: Moved from ../.
70198         * modules/crypto/gc-sha1: Moved from ../.
70199         * modules/crypto/gc-sha1-tests: Moved from ../.
70200         * modules/crypto/gc-tests: Moved from ../.
70201         * modules/crypto/hmac-md5: Moved from ../.
70202         * modules/crypto/hmac-md5-tests: Moved from ../.
70203         * modules/crypto/hmac-sha1: Moved from ../.
70204         * modules/crypto/hmac-sha1-tests: Moved from ../.
70205         * modules/crypto/md2: Moved from ../.
70206         * modules/crypto/md2-tests: Moved from ../.
70207         * modules/crypto/md4: Moved from ../.
70208         * modules/crypto/md4-tests: Moved from ../.
70209         * modules/crypto/md5: Moved from ../.
70210         * modules/crypto/md5-tests: Moved from ../.
70211         * modules/crypto/memxor: Moved from ../.
70212         * modules/crypto/rijndael: Moved from ../.
70213         * modules/crypto/rijndael-tests: Moved from ../.
70214         * modules/crypto/sha1: Moved from ../.
70215
70216 2007-03-30  James Youngman  <jay@gnu.org>
70217
70218         * tests/test-stat-time.c (prepare_test): use chmod() rather than
70219         rename() to change the ctime of a file (because ctime is unaffected
70220         by rename on jfs2 on AIX 5.1).
70221         (main): Start by doing cleanup, in case a previous run failed leaving
70222         test files behind.
70223
70224 2007-03-31  Bruno Haible  <bruno@clisp.org>
70225
70226         Support old proprietary implementations of iconv.
70227         * modules/iconv_open: New file.
70228         * lib/iconv_.h: New file.
70229         * m4/iconv_h.m4: New file.
70230         * lib/iconv_open.c: New file.
70231         * lib/iconv_open-aix.gperf: New file.
70232         * lib/iconv_open-hpux.gperf: New file.
70233         * lib/iconv_open-irix.gperf: New file.
70234         * lib/iconv_open-osf.gperf: New file.
70235         * m4/iconv_open.m4: New file.
70236         * modules/linebreak (Depends-on): Add iconv_open.
70237         * modules/striconv (Depends-on): Likewise.
70238         * modules/striconveh (Depends-on): Likewise.
70239         * modules/unicodeio (Depends-on): Likewise.
70240         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
70241         (iconv_t)(-1).
70242         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
70243         conversion if cd is (iconv_t)(-1).
70244         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
70245         is not possible.
70246
70247 2007-03-31  Bruno Haible  <bruno@clisp.org>
70248
70249         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70250         work on Solaris either. Protect also second use of "autodetect_jp".
70251
70252 2007-03-31  Bruno Haible  <bruno@clisp.org>
70253
70254         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
70255         the function is not present.
70256
70257 2007-03-31  Bruno Haible  <bruno@clisp.org>
70258
70259         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
70260         the function is not present.
70261
70262 2007-03-31  Bruno Haible  <bruno@clisp.org>
70263
70264         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
70265         a bug in HP-UX iconv_open().
70266
70267 2007-03-31  Bruno Haible  <bruno@clisp.org>
70268
70269         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
70270         (Mathematics <math.h>): New section, add fpieee.
70271         (Input/output <stdio.h>): Add fseterr.
70272         (Mathematics <math.h>): New section, add printf-frexp.
70273         (Container data structures): Add sublist.
70274         (Core language properties): Add fpucw, inline.
70275         (Functions for greatest-width integer types <inttypes.h>): Add
70276         imaxabs, imaxdiv, inttypes.
70277         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
70278         isnanl-nolibm, ldexp.
70279         (Mathematics <math.h>): New section, add printf-frexpl.
70280         (Support for systems lacking POSIX:2001): Add fprintf-posix,
70281         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
70282         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
70283         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
70284         (Unicode string functions): Add unistr/u*-mbtoucr.
70285         (Java): Add javacomp-script, javaexec-script.
70286         (C#): Add csharpcomp-script, csharpexec-script.
70287         (Support for building libraries and executables): Add havelib,
70288         relocatable-*.
70289         (Support for maintaining and releasing projects): Renamed from
70290         'Support for maintaining and release projects'. Add announce-gen.
70291
70292 2007-03-31  Bruno Haible  <bruno@clisp.org>
70293
70294         * README: Talk primarily about git.
70295         (git and CVS): Renamed from CVS.
70296         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
70297         gnulib is available through git.
70298         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
70299
70300 2007-03-30  Bruno Haible  <bruno@clisp.org>
70301
70302         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
70303         * lib/poll_.h: Likewise.
70304         * lib/stat_.h: Likewise.
70305         * lib/sys_time_.h: Likewise.
70306         * lib/sysexit_.h: Likewise.
70307         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
70308         * lib/stdbool_.h: Likewise.
70309         * lib/byteswap_.h: Add double-inclusion guard.
70310
70311 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
70312
70313         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
70314
70315 2007-03-30  Karl Berry  <karl@gnu.org>
70316
70317         * config/srclist-update: double space after USA in the license
70318         substitution, since that's how it's usually (?) written.
70319
70320 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
70321
70322         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
70323         reported by Bruno Haible.
70324
70325 2007-03-29  Bruno Haible  <bruno@clisp.org>
70326
70327         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
70328         a bug in AIX iconv().
70329
70330 2007-03-29  Bruno Haible  <bruno@clisp.org>
70331
70332         * modules/ldexpl-tests: New file.
70333         * tests/test-ldexpl.c: New file.
70334
70335 2007-03-29  Bruno Haible  <bruno@clisp.org>
70336
70337         * lib/ldexpl.c: Include fpucw.h.
70338         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
70339         multiplication.
70340         * modules/ldexpl (Depends-on): Add fpucw.
70341
70342 2007-03-29  Bruno Haible  <bruno@clisp.org>
70343
70344         * modules/ldexpl: New file.
70345         * m4/ldexpl.m4: New file.
70346         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
70347         set.
70348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
70349         REPLACE_LDEXPL.
70350         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
70351         REPLACE_LDEXPL.
70352         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
70353         gl_FUNC_LDEXPL_WORKS.
70354         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
70355         * modules/mathl (Files): Remove lib/ldexpl.c.
70356         (Depends-on): Add ldexpl.
70357
70358 2007-03-29  Bruno Haible  <bruno@clisp.org>
70359
70360         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
70361
70362 2007-03-29  Bruno Haible  <bruno@clisp.org>
70363
70364         * tests/test-striconveh.c (main): Don't assume that a direct conversion
70365         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
70366         and possibly also HP-UX.
70367         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
70368         work on AIX, IRIX, HP-UX, OSF/1.
70369         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
70370         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
70371         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
70372         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
70373         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
70374         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
70375
70376 2007-03-29  Bruno Haible  <bruno@clisp.org>
70377
70378         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
70379
70380 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70381
70382         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
70383         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
70384
70385 2007-03-29  Eric Blake  <ebb9@byu.net>
70386
70387         * lib/acl-internal.h: Remove redundant include.
70388         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
70389         Cygwin when a file is locked.
70390
70391 2007-03-29  Bruno Haible  <bruno@clisp.org>
70392
70393         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
70394         file.
70395         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
70396
70397 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
70398
70399         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
70400         try to remove a parent directory if the child couldn't be removed
70401         (except for the first rmdir, which could fail because the child
70402         doesn't exist).  Problem reported by Jeff Blaine in
70403         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
70404
70405 2007-03-28  Bruno Haible  <bruno@clisp.org>
70406
70407         * lib/striconveh.c (utf8conv_carefully): New function.
70408         (mem_cd_iconveh_internal): Invoke it.
70409
70410 2007-03-28  Bruno Haible  <bruno@clisp.org>
70411
70412         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
70413         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
70414         input.
70415         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
70416         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
70417         unistr/u8-uctomb.
70418
70419 2007-03-28  Bruno Haible  <bruno@clisp.org>
70420
70421         * modules/unistr/u8-mbtoucr: New file.
70422         * lib/unistr/u8-mbtoucr.c: New file.
70423         * modules/unistr/u16-mbtoucr: New file.
70424         * lib/unistr/u16-mbtoucr.c: New file.
70425         * modules/unistr/u16-mbtoucr: New file.
70426         * lib/unistr/u16-mbtoucr.c: New file.
70427         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
70428
70429 2007-03-27  Simon Josefsson  <simon@josefsson.org>
70430             Bruno Haible  <bruno@clisp.org>
70431
70432         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
70433         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
70434         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
70435
70436         * m4/stdio_h.m4: Add stubs for vasprintf too.
70437
70438         * modules/stdio: Support vasprintf in sed command.
70439
70440         * modules/vasprintf: Depend on stdio for prototypes.  Remove
70441         vasprintf.h.  Add stdio module indicator.
70442
70443         * lib/stdio_.h: Declare asprintf and vasprintf, based on
70444         vasprintf.h.
70445
70446         * lib/vasprintf.h: File removed.
70447
70448         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
70449         * lib/vasprintf.c: Ditto.
70450         * lib/xvasprintf.c: Ditto.
70451         * tests/test-vasprintf-posix.c: Ditto.
70452         * tests/test-vasprintf.c: Ditto.
70453
70454 2007-03-27  Bruno Haible  <bruno@clisp.org>
70455
70456         Make vasnprintf multithread-safe.
70457         * lib/vasnprintf.c (decimal_point_char): New function.
70458         (VASNPRINTF): Use it.
70459         Suggested by Simon Josefsson.
70460
70461 2007-03-27  Eric Blake  <ebb9@byu.net>
70462
70463         Support sub-second birthtime on cygwin.
70464         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
70465         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
70466         (get_stat_birthtime): Also work with st_birthtim.
70467
70468 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
70469
70470         * lib/stat-time.h (USE_BIRTHTIME): Remove.
70471         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
70472         (get_stat_birthtime_ns): Do not try to use "spare" fields.
70473         (get_stat_birthtime_ns): Simplify compile-time tests.
70474         (get_stat_birthtime): Change the API to look like
70475         get_stat_mtime etc., except return a negative tv_nsec on error.
70476         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
70477         Don't check for "spare" fields.
70478         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
70479         or for struct stat.st_birthtime, as these tests aren't used.
70480         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
70481
70482 2007-03-27  Bruno Haible  <bruno@clisp.org>
70483
70484         * lib/stat-time.h: Include <sys/stat.h>.
70485
70486 2007-03-27  James Youngman  <jay@gnu.org>
70487
70488         * lib/stat-time.h (get_stat_birthtime): New function for
70489           retrieving st_birthtime as provided by UFS2 (hence *BSD).
70490         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
70491           and its variants.
70492         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
70493         * modules/stat-time-test: New file.
70494         * tests/test-stat-time.c: New test, devised by Bruno Haible.
70495
70496 2007-03-26  Bruno Haible  <bruno@clisp.org>
70497
70498         Better support of signalling NaNs.
70499         * lib/atanl.c: Include isnanl.h.
70500         (atanl): Perform test for NaN at the beginning of the function and
70501         through a call to isnanl.
70502         * lib/cosl.c: Include isnanl.h.
70503         (cosl): Perform test for NaN at the beginning of the function and
70504         through a call to isnanl.
70505         * lib/ldexpl.c: Include isnanl.h.
70506         (ldexpl): Perform test for NaN through a call to isnanl.
70507         * lib/logl.c: Include isnanl.h.
70508         (logl): Perform test for NaN at the beginning of the function and
70509         through a call to isnanl.
70510         * lib/sinl.c: Include isnanl.h.
70511         (sinl): Perform test for NaN at the beginning of the function and
70512         through a call to isnanl.
70513         * lib/sqrtl.c: Include isnanl.h.
70514         (sqrtl): Perform test for NaN at the beginning of the function and
70515         through a call to isnanl.
70516         * lib/tanl.c: Include isnanl.h.
70517         (tanl): Perform test for NaN at the beginning of the function and
70518         through a call to isnanl.
70519         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
70520         * modules/mathl (Depends-on): Add isnanl.
70521
70522 2007-03-26  Eric Blake  <ebb9@byu.net>
70523
70524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
70525         regression in logic sense of previous patch.
70526
70527 2007-03-26  Bruno Haible  <bruno@clisp.org>
70528
70529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
70530         unportable shell command "if ! ...".
70531         Reported by Ralf Wildenhues.
70532
70533 2007-03-25  Bruno Haible  <bruno@clisp.org>
70534
70535         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
70536         <sysexits.h> file, and only add EX_CONFIG.
70537         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
70538         absolute file name and whether it is sufficient. Substitute also
70539         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
70540         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
70541         ABSOLUTE_SYSEXITS_H into sysexits.h.
70542
70543 2007-03-25  Bruno Haible  <bruno@clisp.org>
70544
70545         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
70546         hints is NULL.
70547
70548 2007-03-25  Bruno Haible  <bruno@clisp.org>
70549
70550         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
70551         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
70552
70553 2007-03-25  Bruno Haible  <bruno@clisp.org>
70554
70555         * lib/vasnprintf.c: Include langinfo.h.
70556         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
70557         multithread-safe.
70558         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
70559         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
70560         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
70561         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70562         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70563         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70564         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
70565         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
70566         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70567         Reported by Simon Josefsson.
70568
70569 2007-03-25  Bruno Haible  <bruno@clisp.org>
70570
70571         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
70572         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
70573         * modules/vasnprintf (Depends-on): Add stdint.
70574
70575 2007-03-25  Bruno Haible  <bruno@clisp.org>
70576
70577         * modules/fpieee: New file.
70578         * m4/fpieee.m4: New file.
70579         * modules/isnan-nolibm (Depends-on): Add fpieee.
70580         * modules/isnanl-nolibm (Depends-on): Add fpieee.
70581         * modules/isnanl (Depends-on): Add fpieee.
70582
70583 2007-03-25  Bruno Haible  <bruno@clisp.org>
70584
70585         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
70586
70587 2007-03-25  Bruno Haible  <bruno@clisp.org>
70588
70589         Avoid test failures on IRIX 6.5.
70590         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
70591         (main): Use it.
70592         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
70593         macros.
70594         (main): Use them.
70595
70596 2007-03-25  Bruno Haible  <bruno@clisp.org>
70597
70598         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
70599         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
70600         exists but doesn't work.
70601         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
70602         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
70603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
70604         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
70605         math.h.
70606
70607 2007-03-25  Bruno Haible  <bruno@clisp.org>
70608
70609         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
70610         returns inf. Needed on IRIX 6.5.
70611
70612 2007-03-25  Bruno Haible  <bruno@clisp.org>
70613
70614         * tests/test-frexpl.c: Include isnanl-nolibm.h.
70615         (main): Use isnanl instead of x != x idiom.
70616         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
70617
70618         * tests/test-frexp.c: Include isnan.h.
70619         (main): Use isnan instead of x != x idiom.
70620         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
70621
70622 2007-03-25  Bruno Haible  <bruno@clisp.org>
70623
70624         * tests/test-frexp.c (NaN): New function/macro.
70625         (main): Use it instead of 0.0 / 0.0.
70626         * tests/test-isnan.c (NaN): New function/macro.
70627         (main): Use it instead of 0.0 / 0.0.
70628         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
70629         (test_function): Use it instead of 0.0 / 0.0.
70630         * tests/test-vasprintf-posix.c (NaN): New function/macro.
70631         (test_function): Use it instead of 0.0 / 0.0.
70632         * tests/test-snprintf-posix.h (NaN): New function/macro.
70633         (test_function): Use it instead of 0.0 / 0.0.
70634         * tests/test-sprintf-posix.h (NaN): New function/macro.
70635         (test_function): Use it instead of 0.0 / 0.0.
70636         * tests/test-fprintf-posix.h (NaN): New function/macro.
70637         (test_function): Use it instead of 0.0 / 0.0.
70638         * tests/test-printf-posix.h (NaN): New function/macro.
70639         (test_function): Use it instead of 0.0 / 0.0.
70640
70641         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
70642
70643 2007-03-25  Bruno Haible  <bruno@clisp.org>
70644
70645         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
70646
70647 2007-03-25  Bruno Haible  <bruno@clisp.org>
70648
70649         * lib/regexec.c (merge_state_with_log): Make static.
70650
70651 2007-03-25  Bruno Haible  <bruno@clisp.org>
70652
70653         * lib/trigl.c (kernel_rem_pio2): Make static.
70654
70655 2007-03-25  Bruno Haible  <bruno@clisp.org>
70656
70657         * lib/sincosl.c (sincosl_table): Make static.
70658
70659 2007-03-25  Bruno Haible  <bruno@clisp.org>
70660
70661         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
70662         if the compiler does not support C99.
70663
70664 2007-03-25  Bruno Haible  <bruno@clisp.org>
70665
70666         * modules/time (Makefile.am): Ensure all rule action lines start with a
70667         tab.
70668
70669 2007-03-24  Bruno Haible  <bruno@clisp.org>
70670
70671         * modules/tsearch-tests: New file.
70672         * tests/test-tsearch.sh: New file.
70673         * tests/test-tsearch.c: New file, mostly copied from glibc.
70674
70675         * modules/search-tests: New file.
70676         * tests/test-search.c: New file.
70677
70678         * modules/search: New file.
70679         * lib/search_.h: New file, incorporating lib/tsearch.h.
70680         * m4/search_h.m4: New file.
70681         * lib/tsearch.h: Remove file.
70682         * lib/tsearch.c: Include search.h instead of tsearch.h.
70683         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
70684         HAVE_TSEARCH.
70685         * modules/tsearch (Files): Remove lib/tsearch.h.
70686         (Depends-on): Add search.
70687         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
70688         (Include): Change tsearch.h into search.h.
70689
70690 2007-03-24  Bruno Haible  <bruno@clisp.org>
70691
70692         * modules/fpucw: New file.
70693         * lib/fpucw.h: New file.
70694         * lib/frexp.c: Include fpucw.h.
70695         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70696         (FUNC): Use them.
70697         * lib/printf-frexp.c: Include fpucw.h.
70698         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
70699         (FUNC): Use them.
70700         * lib/vasnprintf.c: Include fpucw.h.
70701         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
70702         'long double' calculations.
70703         * tests/test-frexpl.c: Include fpucw.h.
70704         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70705         * tests/test-printf-frexpl.c: Include fpucw.h.
70706         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
70707         * modules/frexpl (Depends-on): Add fpucw.
70708         * modules/printf-frexpl (Depends-on): Likewise.
70709         * modules/fprintf-posix (Depends-on): Likewise.
70710         * modules/snprintf-posix (Depends-on): Likewise.
70711         * modules/sprintf-posix (Depends-on): Likewise.
70712         * modules/vasnprintf-posix (Depends-on): Likewise.
70713         * modules/vasprintf-posix (Depends-on): Likewise.
70714         * modules/vfprintf-posix (Depends-on): Likewise.
70715         * modules/vsnprintf-posix (Depends-on): Likewise.
70716         * modules/vsprintf-posix (Depends-on): Likewise.
70717         * modules/frexpl-tests (Depends-on): Likewise.
70718         * modules/printf-frexpl-tests (Depends-on): Likewise.
70719
70720 2007-03-24  Bruno Haible  <bruno@clisp.org>
70721
70722         * lib/float+.h: New file.
70723         * lib/isnan.c: Include float+.h.
70724         (SIZE): New macro.
70725         (FUNC): Compare only SIZE bytes of the value.
70726         * lib/vasnprintf.c: Include float+.h.
70727         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
70728         SIZEOF_LDBL or SIZEOF_DBL bytes.
70729         * modules/isnan-nolibm (Files): Add lib/float+.h.
70730         * modules/isnanl-nolibm (Files): Add lib/float+.h.
70731         * modules/isnanl (Files): Add lib/float+.h.
70732         * modules/vasnprintf (Files): Add lib/float+.h.
70733
70734 2007-03-24  Bruno Haible  <bruno@clisp.org>
70735
70736         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
70737         include isnanl-nolibm.h.
70738
70739 2007-03-24  Bruno Haible  <bruno@clisp.org>
70740
70741         * tests/test-read-file.c (main): Don't produce spurious output for
70742         expected situations. Make the test fail if it encountered unexpected
70743         results.
70744
70745 2007-03-24  Bruno Haible  <bruno@clisp.org>
70746
70747         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
70748         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
70749
70750 2007-03-24  Bruno Haible  <bruno@clisp.org>
70751
70752         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
70753
70754 2007-03-24  Bruno Haible  <bruno@clisp.org>
70755
70756         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
70757         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
70758
70759         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
70760         * modules/utf8-ucs4: Turn into a symbolic link to module
70761         unistr/u8-mbtouc.
70762
70763         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
70764         utf8-ucs4-unsafe.
70765         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
70766         unistr/u8-mbtouc-unsafe.
70767
70768         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
70769         * modules/utf16-ucs4: Turn into a symbolic link to module
70770         unistr/u16-mbtouc.
70771
70772         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
70773         utf16-ucs4-unsafe.
70774         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
70775         unistr/u16-mbtouc-unsafe.
70776
70777         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
70778         * modules/ucs4-utf8: Turn into a symbolic link to module
70779         unistr/u8-ubtomb.
70780
70781         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
70782         * modules/ucs4-utf16: Turn into a symbolic link to module
70783         unistr/u16-ubtomb.
70784
70785 2007-03-24  Bruno Haible  <bruno@clisp.org>
70786
70787         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
70788         Enable the function only if HAVE_INLINE.
70789         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
70790         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70791         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
70792         Enable the function only if HAVE_INLINE.
70793         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
70794         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
70795         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
70796         Enable the function only if HAVE_INLINE.
70797         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
70798         Enable the function only if HAVE_INLINE.
70799         * modules/utf8-ucs4: Update.
70800         * modules/utf8-ucs4-unsafe: Update.
70801         * modules/utf16-ucs4: Update.
70802         * modules/utf16-ucs4-unsafe: Update.
70803         * modules/ucs4-utf8: Update.
70804         * modules/ucs4-utf16: Update.
70805
70806 2007-03-24  Bruno Haible  <bruno@clisp.org>
70807
70808         * lib/utf8-ucs4.h: Remove file.
70809         * lib/utf8-ucs4-unsafe.h: Remove file.
70810         * lib/utf16-ucs4.h: Remove file.
70811         * lib/utf16-ucs4-unsafe.h: Remove file.
70812         * lib/ucs4-utf8.h: Remove file.
70813         * lib/ucs4-utf16.h: Remove file.
70814         * lib/unistr.h: Include their previous contents.
70815         * m4/utf-ucs4.m4: Remove file.
70816         * m4/ucs4-utf.m4: Remove file.
70817         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70818         (Depends-on): Add unistr/base.
70819         (configure.ac): Remove gl_UTF_UCS4.
70820         (Makefile.am): Update.
70821         (Include): Change to unistr.h.
70822         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70823         (Depends-on): Add unistr/base.
70824         (configure.ac): Remove gl_UTF_UCS4.
70825         (Makefile.am): Update.
70826         (Include): Change to unistr.h.
70827         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70828         (Depends-on): Add unistr/base.
70829         (configure.ac): Remove gl_UTF_UCS4.
70830         (Makefile.am): Update.
70831         (Include): Change to unistr.h.
70832         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70833         (Depends-on): Add unistr/base.
70834         (configure.ac): Remove gl_UTF_UCS4.
70835         (Makefile.am): Update.
70836         (Include): Change to unistr.h.
70837         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70838         (Depends-on): Add unistr/base.
70839         (configure.ac): Remove gl_UCS4_UTF.
70840         (Makefile.am): Update.
70841         (Include): Change to unistr.h.
70842         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70843         (Depends-on): Add unistr/base.
70844         (configure.ac): Remove gl_UCS4_UTF.
70845         (Makefile.am): Update.
70846         (Include): Change to unistr.h.
70847         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70848         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70849         utf8-ucs4-unsafe.h.
70850         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70851         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70852         utf16-ucs4-unsafe.h.
70853         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70854         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70855         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70856         * lib/unistr/u8-strchr.c: Likewise.
70857         * lib/unistr/u8-strrchr.c: Likewise.
70858         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70859         * lib/unistr/u16-strchr.c: Likewise.
70860         * lib/unistr/u16-strrchr.c: Likewise.
70861         * lib/striconveh.c: Update.
70862         * lib/linebreak.c: Update.
70863
70864 2007-03-24  Bruno Haible  <bruno@clisp.org>
70865
70866         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70867         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70868
70869 2007-03-22  Bruno Haible  <bruno@clisp.org>
70870
70871         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70872
70873 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70874
70875         * MODULES.html.sh (File system functions): New module write-any-file.
70876         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70877         * m4/write-any-file.m4: New files.
70878
70879 2007-03-23  Eric Blake  <ebb9@byu.net>
70880
70881         * gnulib-tool: Rearrange space-tab sequences, since some editors
70882         like to eat them.
70883
70884 2007-03-23  Eric Blake  <ebb9@byu.net>
70885
70886         * lib/version-etc.c (version_etc_va): Update license wording to
70887         be more concise.  Recommended by Richard Stallman.
70888
70889 2007-03-22  Bruno Haible  <bruno@clisp.org>
70890
70891         * lib/poll.c (MSG_PEEK): New fallback definition.
70892
70893 2007-03-22  Bruno Haible  <bruno@clisp.org>
70894
70895         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70896         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70897         (main): Update.
70898         Fixes a compilation error on BeOS.
70899
70900 2007-03-22  Bruno Haible  <bruno@clisp.org>
70901
70902         * modules/frexpl-tests: New file.
70903         * tests/test-frexpl.c: New file.
70904
70905         * modules/frexpl: New file.
70906         * m4/frexpl.m4: New file.
70907         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70908         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70910         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70911         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70912         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70913
70914 2007-03-22  Bruno Haible  <bruno@clisp.org>
70915
70916         * lib/frexpl.c: Share code with lib/frexp.c.
70917         * modules/mathl (Files): Add lib/frexp.c.
70918         (Depends-on): Add isnanl-nolibm.
70919
70920 2007-03-22  Bruno Haible  <bruno@clisp.org>
70921
70922         * modules/printf-frexp (Files): Add m4/frexp.m4.
70923         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70924         only if the found frexp function actually works.
70925
70926 2007-03-22  Bruno Haible  <bruno@clisp.org>
70927
70928         * lib/frexp.c: Remove older implementation that uses divisions.
70929
70930 2007-03-21  Bruno Haible  <bruno@clisp.org>
70931
70932         * modules/frexp-tests: New file.
70933         * tests/test-frexp.c: New file.
70934
70935         * modules/frexp: New file.
70936         * lib/frexp.c: New file.
70937         * m4/frexp.m4: New file.
70938         * lib/math_.h (frexp): New declaration.
70939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70940         REPLACE_FREXP.
70941         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70942
70943 2007-03-21  Bruno Haible  <bruno@clisp.org>
70944
70945         * modules/isnanl-tests: New file.
70946         * tests/test-isnanl.c: New file.
70947
70948         * modules/isnanl: New file.
70949         * lib/isnanl.h: New file.
70950         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70951         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70952         gl_FUNC_ISNANL_WORKS.
70953         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70954         New macros.
70955
70956 2007-03-21  Bruno Haible  <bruno@clisp.org>
70957
70958         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70959         lib/isnanl.h.
70960         (Include): Update.
70961         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70962         * lib/vasnprintf.c: Update.
70963         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70964         tests/test-isnanl.h, remove tests/test-isnanl.c.
70965         (Makefile.am): Update.
70966         * tests/test-isnanl-nolibm.c: New file.
70967         * tests/test-isnanl.h: New file.
70968         * tests/test-isnanl.c: Remove file.
70969
70970 2007-03-21  Jim Meyering  <jim@meyering.net>
70971
70972         When trying to open ".", treat ESTALE like EACCES.
70973         * lib/savewd.c (savewd_save): Resort to forking not just upon
70974         failure with EACCES, but also when errno is ESTALE.
70975
70976 2007-03-20  Bruno Haible  <bruno@clisp.org>
70977
70978         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70979         Needed on AIX 5.1. Reported by Matthew Woehlke.
70980
70981 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70982
70983         Suggestions by Bruno Haible:
70984         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70985         our own.
70986         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70987         * modules/acl (Depends-on): Add gettext.
70988
70989 2007-03-19  Bruno Haible  <bruno@clisp.org>
70990
70991         * modules/iconvme: Remove file.
70992         * lib/iconvme.h: Remove file.
70993         * lib/iconvme.c: Remove file.
70994         * m4/iconvme.m4: Remove file.
70995
70996 2007-03-19  Bruno Haible  <bruno@clisp.org>
70997
70998         * doc/relocatable-maint.texi: Break long shell script line.
70999         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71000
71001 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71002
71003         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
71004         handle file_has_acl.
71005         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
71006         * lib/acl.c: Move header inclusions and related macro defns into
71007         lib/acl-internal.h.
71008         (S_ISLNK): Remove defn, since that's now done for us.
71009         (file_has_acl): Move to lib/file-has-acl.c.
71010         Call acl_trivial if available.  This is the crucial part of the fix.
71011         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
71012         shared within the library.  Rewrite a bit, partly to make it compatible
71013         with the GNU coding style.
71014         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
71015         Remove unnecessary double-quotes.
71016         Don't test for acl_to_text; the build will catch that.
71017         Replace acl_entries if it doesn't exist and it is needed.
71018         Check for -lsec and acl_trivial (as used on Solaris 10).
71019         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
71020         lib/file-has-acl.c.
71021         (Depends-on): Add sys_stat, for S_ISLNK.
71022
71023 2007-03-19  Ben Pfaff  <blp@gnu.org>
71024
71025         * doc/gnulib.texi: Fix typos.
71026         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
71027
71028 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
71029
71030         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
71031         If size is zero here, buf must be zero.
71032
71033 2007-03-19  Simon Josefsson  <simon@josefsson.org>
71034
71035         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
71036         <bruno@clisp.org>.
71037
71038 2007-03-18  Bruno Haible  <bruno@clisp.org>
71039
71040         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
71041         Suggested by Eric Blake.
71042
71043 2007-03-18  Ben Pfaff  <blp@gnu.org>
71044
71045         * doc/relocatable.texi: Recommend using as prefix a directory
71046         that does not exist and will never be created.  Based on
71047         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
71048         and others.
71049
71050 2007-03-17  Bruno Haible  <bruno@clisp.org>
71051
71052         * lib/fchownat.c: Include lchown.h.
71053
71054 2007-03-17  Bruno Haible  <bruno@clisp.org>
71055
71056         Fix endless loop when the given allocated size was > INT_MAX.
71057         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
71058         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
71059         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
71060         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
71061         * lib/sprintf.c (sprintf): Likewise.
71062
71063 2007-03-17  Bruno Haible  <bruno@clisp.org>
71064
71065         * tests/test-argp-2.sh (func_compare): Output a context diff.
71066
71067 2007-03-17  Bruno Haible  <bruno@clisp.org>
71068
71069         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
71070         locale's decimal-point character.
71071
71072 2007-03-17  Bruno Haible  <bruno@clisp.org>
71073
71074         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
71075         before comparing it. Needed because on some platforms (e.g. x86) a
71076         'long double' occupies less bytes than sizeof (long double).
71077
71078 2007-03-17  Bruno Haible  <bruno@clisp.org>
71079
71080         * tests/test-crc.c (main): Make printf statements 64-bit clean.
71081         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
71082         * tests/test-getaddrinfo.c (simple): Likewise.
71083         * tests/test-read-file.c (main): Likewise.
71084
71085 2007-03-17  Bruno Haible  <bruno@clisp.org>
71086
71087         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
71088
71089 2007-03-17  Bruno Haible  <bruno@clisp.org>
71090
71091         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
71092         unused variable.
71093
71094 2007-03-17  Bruno Haible  <bruno@clisp.org>
71095
71096         * tests/test-c-strcasecmp.c: Include c-strcase.h.
71097         * tests/test-c-strncasecmp.c: Likewise.
71098
71099 2007-03-17  Bruno Haible  <bruno@clisp.org>
71100
71101         * modules/stdlib (Depends-on): Add unistd.
71102         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
71103         Needed for MacOS X 10.3.
71104
71105 2007-03-17  Bruno Haible  <bruno@clisp.org>
71106
71107         * lib/unistr/u-strdup.h: Include <stdlib.h>.
71108
71109 2007-03-17  Bruno Haible  <bruno@clisp.org>
71110
71111         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
71112
71113 2007-03-17  Bruno Haible  <bruno@clisp.org>
71114
71115         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
71116         to reflect files copied from gnulib (with or without modifications).
71117         Suggested by Jim Meyering.
71118
71119 2007-03-17  Eric Blake  <ebb9@byu.net>
71120
71121         * NEWS: Document stdlib change from 2007-02-18.
71122
71123 2007-03-17  Jim Meyering  <jim@meyering.net>
71124
71125         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
71126         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
71127         someone uses a name containing shell meta-characters.
71128         Reported by Alfred M. Szmidt.
71129
71130         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
71131
71132 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71133
71134         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
71135         and copy gettext configuration files only if configure.ac contains
71136         a use of AM_GNU_GETTEXT_VERSION.
71137
71138 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
71139
71140         * build-aux/bootstrap (gnulib_name): New variable.
71141         (gnulib_tool_options): Use it.
71142
71143 2007-03-13  Simon Josefsson  <simon@josefsson.org>
71144
71145         * tests/test-des.c: Use new namespace.
71146
71147 2007-03-15  Bruno Haible  <bruno@clisp.org>
71148
71149         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
71150         Reported by James Youngman <jay@gnu.org>.
71151
71152 2007-03-15  Bruno Haible  <bruno@clisp.org>
71153
71154         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
71155         declared prototype. Needed with cc on OSF/1 5.1.
71156
71157 2007-03-15  Bruno Haible  <bruno@clisp.org>
71158
71159         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
71160         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
71161         (struct gl_list_implementation): Add dispose_fn argument to the
71162         'create_empty', 'create' methods.
71163         (struct gl_list_impl_base): Add field 'dispose_fn'.
71164         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
71165         argument.
71166         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
71167         dispose_fn argument.
71168         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
71169         dispose_fn on the dropped values.
71170         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
71171         dispose_fn argument.
71172         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
71173         dropped values.
71174         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
71175         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71176         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
71177         (gl_tree_remove_node): Call dispose_fn on the dropped value.
71178         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
71179         argument.
71180         (gl_tree_list_free): Call dispose_fn on the dropped values.
71181         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
71182         the dropped values.
71183         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71184         Add dispose_fn argument.
71185         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
71186         Call dispose_fn on the dropped values.
71187         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
71188         Add dispose_fn argument.
71189         (gl_sublist_create): Initialize the 'dispose_fn' field.
71190         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
71191         * tests/test-array_list.c (main): Update.
71192         * tests/test-carray_list.c (main): Update.
71193         * tests/test-avltree_list.c (main): Update.
71194         * tests/test-rbtree_list.c (main): Update.
71195         * tests/test-avltreehash_list.c (main): Update.
71196         * tests/test-rbtreehash_list.c (main): Update.
71197         * tests/test-linked_list.c (main): Update.
71198         * tests/test-linkedhash_list.c (main): Update.
71199         * tests/test-array_oset.c (main): Update.
71200
71201 2007-03-15  Bruno Haible  <bruno@clisp.org>
71202
71203         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
71204         (gl_oset_create_empty): Add dispose_fn argument.
71205         (struct gl_oset_implementation): Add dispose_fn argument to
71206         'create_empty' method.
71207         (struct gl_oset_impl_base): Add dispose_fn field.
71208         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
71209         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
71210         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
71211         values.
71212         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
71213         (gl_tree_oset_free): Call dispose_fn on the dropped values.
71214         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71215         dropped value.
71216         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
71217         dropped value.
71218         * tests/test-array_oset.c (main): Update.
71219         * tests/test-avltree_oset.c (main): Update.
71220         * tests/test-rbtree_oset.c (main): Update.
71221         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
71222
71223 2007-03-13  Bruno Haible  <bruno@clisp.org>
71224
71225         * tests/test-stdbool.c (i): Update after last patch.
71226
71227 2007-03-12  Bruno Haible  <bruno@clisp.org>
71228
71229         * lib/quotearg.c: Include <wctype.h> early, before the definition of
71230         the iswprint macro. Needed on Solaris 2.5.1.
71231
71232 2007-03-12  Bruno Haible  <bruno@clisp.org>
71233
71234         * tests/test-printf-frexp.c (main): Declare x as volatile.
71235
71236 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71237
71238         * doc/gnulib.texi (Build robot for gnulib): New section.
71239
71240 2007-03-12  Jim Meyering  <jim@meyering.net>
71241
71242         * build-aux/bootstrap: New file.
71243         * build-aux/bootstrap.conf: New file, from coreutils.
71244
71245 2007-03-11  Bruno Haible  <bruno@clisp.org>
71246
71247         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
71248
71249 2007-03-12  Simon Josefsson  <simon@josefsson.org>
71250
71251         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
71252         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
71253         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
71254
71255 2007-03-11  Bruno Haible  <bruno@clisp.org>
71256
71257         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
71258         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
71259
71260 2007-03-11  Bruno Haible  <bruno@clisp.org>
71261
71262         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
71263         formula. Needed for SunPRO C 5.0.
71264
71265 2007-03-11  Bruno Haible  <bruno@clisp.org>
71266
71267         * modules/long-options (Depends-on): Add getopt.
71268
71269 2007-03-11  Bruno Haible  <bruno@clisp.org>
71270
71271         * modules/modechange (Depends-on): Add stdbool.
71272
71273 2007-03-11  Bruno Haible  <bruno@clisp.org>
71274
71275         * modules/i-ring (Depends-on): Add stdbool.
71276
71277 2007-03-11  Bruno Haible  <bruno@clisp.org>
71278
71279         * modules/gc-des (Depends-on): Add stdbool.
71280
71281 2007-03-11  Bruno Haible  <bruno@clisp.org>
71282
71283         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
71284
71285 2007-03-11  Bruno Haible  <bruno@clisp.org>
71286
71287         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
71288
71289 2007-03-11  Bruno Haible  <bruno@clisp.org>
71290
71291         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
71292
71293 2007-03-11  Bruno Haible  <bruno@clisp.org>
71294
71295         * lib/vasnprintf.c (sprintf): Undefine.
71296
71297 2007-03-11  Bruno Haible  <bruno@clisp.org>
71298
71299         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
71300         initializers in SunPRO C and Compaq C compilers.
71301
71302 2007-03-11  Bruno Haible  <bruno@clisp.org>
71303
71304         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
71305         decrementing code ANSI C compliant.
71306
71307 2007-03-11  Bruno Haible  <bruno@clisp.org>
71308
71309         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
71310         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
71311
71312 2007-03-11  Bruno Haible  <bruno@clisp.org>
71313
71314         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
71315         <stdbool.h> substitute doesn't pass.
71316
71317 2007-03-11  Bruno Haible  <bruno@clisp.org>
71318
71319         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
71320
71321 2007-03-11  Bruno Haible  <bruno@clisp.org>
71322
71323         * gnulib-tool (func_create_megatestdir): Create also an autobuild
71324         script, for submission to autobuild.josefsson.org.
71325
71326 2007-03-10  Bruno Haible  <bruno@clisp.org>
71327
71328         * modules/canonicalize-lgpl-tests: New file.
71329         * tests/test-canonicalize-lgpl.sh: New file.
71330         * tests/test-canonicalize-lgpl.c: New file.
71331
71332         * modules/c-strcase-tests: New file.
71333         * tests/test-c-strcase.sh: New file.
71334         * tests/test-c-strcasecmp.c: New file.
71335         * tests/test-c-strncasecmp.c: New file.
71336
71337         * modules/atexit-tests: New file.
71338         * tests/test-atexit.sh: New file.
71339         * tests/test-atexit.c: New file.
71340
71341 2007-03-10  Bruno Haible  <bruno@clisp.org>
71342
71343         * tests/test-binary-io.sh: Use temporary filenames that are not so
71344         likely to clash with those of other tests (in a parallel make).
71345         * tests/test-binary-io.c: Likewise.
71346
71347 2007-03-10  Bruno Haible  <bruno@clisp.org>
71348
71349         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
71350         fallback; use #error instead.
71351         Suggested by Simon Josefsson.
71352
71353 2007-03-10  Bruno Haible  <bruno@clisp.org>
71354
71355         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
71356         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
71357         first and the last.
71358
71359 2007-03-10  Bruno Haible  <bruno@clisp.org>
71360
71361         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
71362
71363 2007-03-10  Bruno Haible  <bruno@clisp.org>
71364
71365         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
71366         "make distcheck".
71367         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
71368         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
71369         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
71370
71371 2007-03-10  Bruno Haible  <bruno@clisp.org>
71372
71373         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
71374         variable.
71375         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
71376         variable.
71377
71378 2007-03-09  Eric Blake  <ebb9@byu.net>
71379         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
71380
71381         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
71382         types are not being provided by gnulib.
71383         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
71384         types are supported.
71385
71386 2007-03-10  Bruno Haible  <bruno@clisp.org>
71387
71388         * lib/stdio_.h (__attribute__): New macro.
71389         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
71390         vsprintf): Specify __attribute__ __format__ for GCC.
71391         Suggested by Eric Blake.
71392
71393 2007-03-09  Bruno Haible  <bruno@clisp.org>
71394
71395         * modules/printf-posix-tests: New file.
71396         * tests/test-printf-posix.sh: New file.
71397         * tests/test-printf-posix.c: New file.
71398
71399         * modules/printf-posix: New file.
71400         * lib/printf.c: New file.
71401         * m4/printf-posix-rpl.m4: New file.
71402         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
71403         REPLACE_PRINTF.
71404         * lib/stdio_.h (printf): New declaration.
71405         (format, __format__, ____printf____, ____scanf____, ____strftime____,
71406         ____strfmon____): New macros.
71407         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
71408         REPLACE_PRINTF.
71409
71410 2007-03-09  Bruno Haible  <bruno@clisp.org>
71411
71412         * tests/test-vasnprintf-posix2.sh: New file.
71413         * tests/test-vasnprintf-posix2.c: New file.
71414         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
71415         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
71416         (Makefile.am): Activate test-vasnprintf-posix2.sh.
71417
71418         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
71419         a locale dependent decimal point, rather than always '.'.
71420
71421 2007-03-09  Eric Blake  <ebb9@byu.net>
71422
71423         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
71424         spite of platforms like Tandem/NSK that define it to -1.
71425
71426 2007-03-08  Bruno Haible  <bruno@clisp.org>
71427
71428         * modules/vprintf-posix-tests: New file.
71429         * tests/test-vprintf-posix.sh: New file.
71430         * tests/test-vprintf-posix.c: New file.
71431         * tests/test-printf-posix.h: New file.
71432
71433         * modules/vprintf-posix: New file.
71434         * lib/vprintf.c: New file.
71435         * m4/vprintf-posix.m4: New file.
71436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
71437         REPLACE_VPRINTF.
71438         * lib/stdio_.h (vprintf): New declaration.
71439         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
71440         REPLACE_VPRINTF.
71441
71442 2007-03-08  Bruno Haible  <bruno@clisp.org>
71443
71444         * modules/fprintf-posix-tests: New file.
71445         * tests/test-fprintf-posix.sh: New file.
71446         * tests/test-fprintf-posix.c: New file.
71447
71448         * modules/fprintf-posix: New file.
71449         * lib/fprintf.c: New file.
71450         * m4/fprintf-posix.m4: New file.
71451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
71452         REPLACE_FPRINTF.
71453         * lib/stdio_.h (fprintf): New declaration.
71454         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
71455         REPLACE_FPRINTF.
71456
71457 2007-03-08  Bruno Haible  <bruno@clisp.org>
71458
71459         * modules/vfprintf-posix-tests: New file.
71460         * tests/test-vfprintf-posix.sh: New file.
71461         * tests/test-vfprintf-posix.c: New file.
71462         * tests/test-fprintf-posix.h: New file.
71463         * tests/test-fprintf-posix.out: New file.
71464
71465         * modules/vfprintf-posix: New file.
71466         * lib/vfprintf.c: New file.
71467         * m4/vfprintf-posix.m4: New file.
71468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
71469         REPLACE_VFPRINTF.
71470         * lib/stdio_.h (vfprintf): New declaration.
71471         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
71472         REPLACE_VFPRINTF.
71473
71474 2007-03-08  Bruno Haible  <bruno@clisp.org>
71475
71476         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
71477
71478 2007-03-08  Bruno Haible  <bruno@clisp.org>
71479
71480         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
71481         instead of 'expr' invocations.
71482         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
71483         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
71484         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
71485         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
71486         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
71487         Suggested by Paul Eggert.
71488
71489 2007-03-08  Bruno Haible  <bruno@clisp.org>
71490
71491         * modules/fseterr-tests: New file.
71492         * tests/test-fseterr.c: New file.
71493
71494         * modules/fseterr: New file.
71495         * lib/fseterr.h: New file.
71496         * lib/fseterr.c: New file.
71497
71498 2007-03-08  Bruno Haible  <bruno@clisp.org>
71499
71500         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
71501         * lib/getopt_.h: Likewise.
71502         * lib/mbswidth.h: Likewise.
71503         * lib/setenv.h: Likewise.
71504         * lib/vasnprintf.h: Likewise.
71505         * lib/vasprintf.h: Likewise.
71506         * lib/verror.h: Likewise.
71507         * lib/xsetenv.h: Likewise.
71508         * lib/xvasprintf.h: Likewise.
71509
71510 2007-03-08  Jim Meyering  <jim@meyering.net>
71511
71512         * users.txt: Add parted.
71513
71514         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
71515
71516 2007-03-07  Bruno Haible  <bruno@clisp.org>
71517
71518         * m4/printf.m4: Make the shell script snippets copy&pastable.
71519
71520 2007-03-02  Bruno Haible  <bruno@clisp.org>
71521
71522         * lib/netinet_in_.h: New file.
71523         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
71524         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
71525         * modules/netinet_in (Files): Add lib/netinet_in_.h.
71526         (Depends-on): Add absolute-header.
71527         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
71528         into netinet/in.h.
71529
71530 2007-03-03  Bruno Haible  <bruno@clisp.org>
71531
71532         * lib/sys_select_.h: New file.
71533         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
71534         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
71535         * modules/sys_select (Files): Add lib/sys_select_.h.
71536         (Depends-on): Add absolute-header.
71537         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
71538         into sys/select.h.
71539
71540 2007-03-02  Bruno Haible  <bruno@clisp.org>
71541
71542         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
71543         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
71544         values.
71545         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
71546         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
71547         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
71548         * modules/sys_socket (Depends-on): Add absolute-header.
71549         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
71550         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
71551         (Include): Remove requirement of inclusion of <sys/types.h>.
71552
71553 2007-03-02  Bruno Haible  <bruno@clisp.org>
71554
71555         * lib/byteswap_.h (bswap_32): Fix formula.
71556
71557 2007-03-06  Bruno Haible  <bruno@clisp.org>
71558
71559         * modules/sprintf-posix-tests: New file.
71560         * tests/test-sprintf-posix.c: New file.
71561
71562         * modules/sprintf-posix: New file.
71563         * lib/sprintf.c: New file.
71564         * m4/sprintf-posix.m4: New file.
71565         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
71566         REPLACE_SPRINTF.
71567         * lib/stdio_.h (sprintf): New declaration.
71568         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
71569         REPLACE_SPRINTF.
71570
71571 2007-03-06  Bruno Haible  <bruno@clisp.org>
71572
71573         * modules/vsprintf-posix-tests: New file.
71574         * tests/test-vsprintf-posix.c: New file.
71575         * tests/test-sprintf-posix.h: New file.
71576
71577         * modules/vsprintf-posix: New file.
71578         * lib/vsprintf.c: New file.
71579         * m4/vsprintf-posix.m4: New file.
71580         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
71581         REPLACE_VSPRINTF.
71582         * lib/stdio_.h (vsprintf): New declaration.
71583         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
71584         REPLACE_VSPRINTF.
71585
71586 2007-03-06  Bruno Haible  <bruno@clisp.org>
71587
71588         * modules/vsnprintf (Depend-on): Remove minmax.
71589
71590 2007-03-06  Bruno Haible  <bruno@clisp.org>
71591
71592         * modules/snprintf-posix-tests: New file.
71593         * tests/test-snprintf-posix.c: New file.
71594
71595         * modules/snprintf-posix: New file.
71596         * m4/snprintf-posix.m4: New file.
71597         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
71598         gl_FUNC_SNPRINTF.
71599         (gl_FUNC_SNPRINTF): Invoke it.
71600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
71601         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
71602         is set.
71603         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
71604
71605 2007-03-06  Bruno Haible  <bruno@clisp.org>
71606
71607         * modules/vsnprintf-posix-tests: New file.
71608         * tests/test-vsnprintf-posix.c: New file.
71609         * tests/test-snprintf-posix.h: New file.
71610
71611         * modules/vsnprintf-posix: New file.
71612         * m4/vsnprintf-posix.m4: New file.
71613         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
71614         gl_FUNC_VSNPRINTF.
71615         (gl_FUNC_VSNPRINTF): Invoke it.
71616         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
71617         * lib/stdio_.h (vsnprintf): Define as a replacement if
71618         REPLACE_VSNPRINTF is set.
71619         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
71620
71621 2007-03-06  Bruno Haible  <bruno@clisp.org>
71622
71623         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
71624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
71625
71626 2007-03-06  Bruno Haible  <bruno@clisp.org>
71627
71628         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
71629         (asinl): Declare also if HAVE_DECL_ASINL is set.
71630         (atanl): Declare also if HAVE_DECL_ATANL is set.
71631         (ceill): Declare also if HAVE_DECL_CEILL is set.
71632         (cosl): Declare also if HAVE_DECL_COSL is set.
71633         (expl): Declare also if HAVE_DECL_EXPL is set.
71634         (floorl): Declare also if HAVE_DECL_FLOORL is set.
71635         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
71636         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
71637         (logl): Declare also if HAVE_DECL_LOGL is set.
71638         (sinl): Declare also if HAVE_DECL_SINL is set.
71639         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
71640         (tanl): Declare also if HAVE_DECL_TANL is set.
71641         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
71642         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
71643         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
71644         declaration of frexpl, ldexpl.
71645         * modules/printf-frexpl (Depends-on): Add math.
71646         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
71647
71648 2007-03-05  Bruno Haible  <bruno@clisp.org>
71649
71650         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
71651         frexpl and ldexpl are declared.
71652         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
71653
71654 2007-03-05  Bruno Haible  <bruno@clisp.org>
71655
71656         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
71657         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
71658
71659 2007-03-05  Bruno Haible  <bruno@clisp.org>
71660
71661         * lib/stdio_.h: Include <stddef.h>.
71662
71663 2007-03-05  Bruno Haible  <bruno@clisp.org>
71664
71665         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
71666
71667 2007-03-05  Bruno Haible  <bruno@clisp.org>
71668
71669         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
71670         NetBSD 4, from Ralf Wildenhues.
71671
71672 2007-03-04  Bruno Haible  <bruno@clisp.org>
71673
71674         * lib/vasprintf.h: Update #if logic for the case when the functions
71675         exist but are overridden.
71676
71677 2007-03-04  Bruno Haible  <bruno@clisp.org>
71678
71679         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
71680         implementations: glibc-2.4 and MacOS X 10.3.
71681         * tests/test-vasnprintf-posix.c (test_function): Test also the case
71682         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
71683         * tests/test-vasprintf-posix.c (test_function): Likewise.
71684
71685 2007-03-04  Bruno Haible  <bruno@clisp.org>
71686
71687         * modules/vasprintf-posix-tests: New file.
71688         * tests/test-vasprintf-posix.c: New file.
71689
71690         * modules/vasprintf-posix: New file.
71691         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
71692         defined.
71693         * m4/vasprintf-posix.m4: New file.
71694         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
71695         gl_FUNC_VASPRINTF.
71696         (gl_FUNC_VASPRINTF): Invoke it.
71697         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
71698         here.
71699         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
71700
71701 2007-03-04  Bruno Haible  <bruno@clisp.org>
71702
71703         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
71704         REPLACE_GETTIMEOFDAY.
71705         * modules/sys_time (Makefile.am): Likewise.
71706         * m4/sys_time_h.m4: Likewise.
71707         * m4/gettimeofday.m4: Likewise.
71708
71709 2007-03-04  Bruno Haible  <bruno@clisp.org>
71710
71711         * modules/vasnprintf-posix-tests: New file.
71712         * tests/test-vasnprintf-posix.c: New file.
71713
71714         * modules/vasnprintf-posix: New file.
71715         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
71716         printf-frexpl.h.
71717         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
71718         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
71719         REPLACE_VASNPRINTF is defined.
71720         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
71721         gl_FUNC_VASNPRINTF.
71722         (gl_FUNC_VASNPRINTF): Invoke it.
71723         * m4/vasnprintf-posix.m4: New file.
71724         * m4/printf.m4: New file.
71725
71726 2007-03-04  Bruno Haible  <bruno@clisp.org>
71727
71728         Compile progreloc.c only if --enable-relocatable is specified.
71729         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
71730         if --enable-relocatable was specified.
71731         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
71732         lib_SOURCES.
71733
71734 2007-03-04  Jim Meyering  <jim@meyering.net>
71735
71736         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
71737         Use it consistently, rather than enumerating errno constants.
71738
71739 2007-03-04  Bruno Haible  <bruno@clisp.org>
71740
71741         * modules/xvasprintf-tests: New file.
71742         * tests/test-xvasprintf.c: New file.
71743
71744         * modules/vasprintf-tests: New file.
71745         * tests/test-vasprintf.c: New file.
71746
71747         * modules/vasnprintf-tests: New file.
71748         * tests/test-vasnprintf.c: New file.
71749
71750         * modules/vsnprintf-tests: New file.
71751         * tests/test-vsnprintf.c: New file.
71752
71753         * modules/snprintf-tests: New file.
71754         * tests/test-snprintf.c: New file.
71755
71756 2007-03-04  Bruno Haible  <bruno@clisp.org>
71757
71758         Compile relocatable.c only if --enable-relocatable is specified.
71759         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
71760         gl_RELOCATABLE_LIBRARY.
71761         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
71762         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
71763         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
71764         gl_RELOCATABLE_LIBRARY.
71765         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
71766         (Makefile.am): Remove lib_SOURCES.
71767         * modules/relocatable-lib-lgpl (configure.ac): Invoke
71768         gl_RELOCATABLE_LIBRARY.
71769         (Makefile.am): Remove lib_SOURCES.
71770         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
71771         always.
71772         * modules/relocatable-prog-wrapper (configure.ac): Invoke
71773         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
71774
71775 2007-03-04  Bruno Haible  <bruno@clisp.org>
71776
71777         * modules/argmatch-tests: New file.
71778         * tests/test-argmatch.c: New file.
71779
71780         * tests/test-allocsa.c (main): Halve the number of loop runs.
71781
71782         * modules/alloca-opt-tests: New file.
71783         * tests/test-alloca-opt.c: New file.
71784
71785 2007-03-04  Jim Meyering  <jim@meyering.net>
71786
71787         Work around difference between Linux ACLs and Solaris 10 ZFS.
71788         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
71789         for EINVAL.
71790
71791 2007-03-03  Bruno Haible  <bruno@clisp.org>
71792
71793         * modules/relocatable-prog (Depends-on): Add back progreloc's
71794         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
71795
71796 2007-03-03  Bruno Haible  <bruno@clisp.org>
71797
71798         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
71799         * modules/relocatable-lib: New file.
71800
71801 2007-03-03  Bruno Haible  <bruno@clisp.org>
71802
71803         * modules/relocatable-prog: Renamed from modules/relocatable.
71804         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
71805
71806 2007-03-03  Bruno Haible  <bruno@clisp.org>
71807
71808         * modules/relocatable-script (Files): Add doc/relocatable.texi,
71809         m4/relocatable-lib.m4.
71810         (Depends-on): Remove 'relocatable'.
71811         (configure.ac): Add gl_RELOCATABLE_NOP.
71812
71813 2007-03-03  Bruno Haible  <bruno@clisp.org>
71814
71815         * modules/relocatable-prog-wrapper: New file.
71816         * modules/relocatable (Depends-on): Add it. Remove all other
71817         dependencies except progname.
71818         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71819
71820         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71821         (gl_FUNC_STRERROR): Nop.
71822         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71823
71824         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71825         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71826
71827         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71828         (gl_FUNC_READLINK): Update.
71829
71830         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71831
71832 2007-03-03  Bruno Haible  <bruno@clisp.org>
71833
71834         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71835         * modules/xreadlink (Depends-on): Add unistd.
71836         * modules/xreadlink-with-size (Depends-on): Likewise.
71837
71838 2007-03-03  Bruno Haible  <bruno@clisp.org>
71839
71840         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71841         extracted from gt_FUNC_SETENV.
71842         (gt_FUNC_SETENV): Remove macro.
71843         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71844         remove gt_FUNC_SETENV.
71845
71846 2007-03-03  Bruno Haible  <bruno@clisp.org>
71847
71848         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71849         ENABLE_RELOCATABLE here.
71850         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71851
71852 2007-03-03  Bruno Haible  <bruno@clisp.org>
71853
71854         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71855         * tests/test-rbtreehash_list.c: Include progname.h.
71856         (main): Call set_program_name.
71857
71858         * modules/rbtree-oset-tests (Depends-on): Add progname.
71859         * tests/test-rbtree_oset.c: Include progname.h.
71860         (main): Call set_program_name.
71861
71862         * modules/rbtree-list-tests (Depends-on): Add progname.
71863         * tests/test-rbtree_list.c: Include progname.h.
71864         (main): Call set_program_name.
71865
71866         * modules/linked-list-tests (Depends-on): Add progname.
71867         * tests/test-linked_list.c: Include progname.h.
71868         (main): Call set_program_name.
71869
71870 2007-03-03  Bruno Haible  <bruno@clisp.org>
71871
71872         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71873         All uses of __restrict changed to _Restrict_.
71874         * lib/glob_.h (__restrict): Remove macro.
71875
71876 2007-03-02  Bruno Haible  <bruno@clisp.org>
71877
71878         * modules/gettext (configure.ac): Require gettext infrastructure
71879         from version 0.16.1.
71880
71881 2007-03-02  Bruno Haible  <bruno@clisp.org>
71882
71883         * modules/linkedhash-list-tests (Depends-on): Add progname.
71884         * tests/test-linkedhash_list.c: Include progname.h.
71885         (main): Call set_program_name.
71886
71887         * modules/carray-list-tests (Depends-on): Add progname.
71888         * tests/test-carray_list.c: Include progname.h.
71889         (main): Call set_program_name.
71890
71891         * modules/avltreehash-list-tests (Depends-on): Add progname.
71892         * tests/test-avltreehash_list.c: Include progname.h.
71893         (main): Call set_program_name.
71894
71895         * modules/avltree-oset-tests (Depends-on): Add progname.
71896         * tests/test-avltree_oset.c: Include progname.h.
71897         (main): Call set_program_name.
71898
71899         * modules/avltree-list-tests (Depends-on): Add progname.
71900         * tests/test-avltree_list.c: Include progname.h.
71901         (main): Call set_program_name.
71902
71903         * modules/array-oset-tests (Depends-on): Add progname.
71904         * tests/test-array_oset.c: Include progname.h.
71905         (main): Call set_program_name.
71906
71907         * modules/array-list-tests (Depends-on): Add progname.
71908         * tests/test-array_list.c: Include progname.h.
71909         (main): Call set_program_name.
71910
71911         * modules/argp-tests (Depends-on): Add progname.
71912         * tests/test-argp.c: Include argp.h first. Include progname.h.
71913         (main): Call set_program_name.
71914
71915 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71916
71917         * doc/gnulib-tool.texi (Initial import): Reword description of
71918         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71919         limited effect even if defined after the first system include.
71920
71921 2007-03-01  Bruno Haible  <bruno@clisp.org>
71922
71923         * build-aux/config.libpath: Update to libtool-1.5.22.
71924         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71925
71926 2007-03-01  Bruno Haible  <bruno@clisp.org>
71927
71928         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71929         foo_CFLAGS.
71930         Reported by Ralf Wildenhues.
71931
71932 2007-03-01  Bruno Haible  <bruno@clisp.org>
71933
71934         * build-aux/install-reloc: Remove object files left over by some
71935         compilers.
71936         Reported by Ralf Wildenhues.
71937
71938 2007-03-01  Bruno Haible  <bruno@clisp.org>
71939
71940         * build-aux/install-reloc: Break long lines.
71941
71942 2007-03-01  Bruno Haible  <bruno@clisp.org>
71943
71944         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71945         Reported by Ralf Wildenhues.
71946
71947 2007-03-01  Bruno Haible  <bruno@clisp.org>
71948
71949         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71950         include ordering constraints.
71951
71952 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71955         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71956         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71957         as another example.
71958         * lib/time_.h: Fix misspelling.
71959         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71960         Require gl_HEADER_TIME_H_DEFAULTS.
71961         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71962         * m4/time_r.m4 (gl_TIME_R): Likewise.
71963         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71964
71965 2007-03-01  Bruno Haible  <bruno@clisp.org>
71966
71967         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71968         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71969
71970 2007-03-01  Jim Meyering  <jim@meyering.net>
71971
71972         * modules/xreadlink (Maintainer): Add my name.
71973         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71974
71975 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71976             Bruno Haible  <bruno@clisp.org>
71977
71978         * build-aux/install-reloc: Compile also c-ctype.c.
71979         * build-aux/relocatable.sh.in: New file.
71980         * doc/relocatable.texi: New file.
71981         * doc/relocatable-maint.texi: New file.
71982         * doc/gnulib.texi: Include relocatable-maint.texi.
71983         * lib/progreloc.c: Include unistd.h unconditionally.
71984         * lib/relocwrapper.c: Include unistd.h unconditionally.
71985         Include c-ctype.h.
71986         (add_dotbin): Use c_tolower.
71987         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71988         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71989         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71990         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71991         to m4/relocatable-lib.m4.
71992         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71993         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71994         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71995         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71996         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71997         * modules/relocatable: New file.
71998         * modules/relocatable-lib: New file.
71999         * modules/relocatable-script: New file.
72000
72001 2007-02-28  Bruno Haible  <bruno@clisp.org>
72002
72003         Import --enable-relocatable infrastructure.
72004         * build-aux/config.libpath: New file, from GNU gettext.
72005         * build-aux/install-reloc: New file, from GNU gettext.
72006         * build-aux/reloc-ldflags: New file, from GNU gettext.
72007         * lib/relocatable.h: New file, from GNU gettext.
72008         * lib/relocatable.c: New file, from GNU gettext.
72009         * lib/relocwrapper.c: New file, from GNU gettext.
72010         * m4/relocatable.m4: New file, from GNU gettext.
72011
72012 2007-02-28  Bruno Haible  <bruno@clisp.org>
72013
72014         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
72015
72016         * modules/xreadlink: New file, from GNU gettext with modifications.
72017         * lib/xreadlink.c: New file, from GNU gettext.
72018         * lib/xreadlink.h: Add comments.
72019         (xreadlink): New declaration.
72020
72021         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
72022         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
72023         lib/xreadlink-with-size.c.
72024         (configure.ac): Remove gl_XREADLINK invocation.
72025         (Makefile.am): Augment lib_SOURCES.
72026         * m4/xreadlink.m4: Remove file.
72027         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
72028         (xreadlink_with_size): Renamed from xreadink.
72029         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
72030         * modules/canonicalize (Depends-on): Replace xreadlink with
72031         xreadlink-with-size.
72032         * lib/canonicalize.c (canonicalize_filename_mode): Update.
72033
72034 2007-02-25  Jim Meyering  <jim@meyering.net>
72035
72036         * build-aux/announce-gen: When complaining about excess arguments,
72037         list them.
72038
72039 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
72040
72041         * README: Document signed integer overflow situation more
72042         accurately.
72043
72044 2007-02-25  Bruno Haible  <bruno@clisp.org>
72045
72046         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
72047         'a' or 'A' conversion.
72048
72049 2007-02-25  Bruno Haible  <bruno@clisp.org>
72050
72051         * modules/filename: Renamed from modules/pathname.
72052         (Files): Replace lib/pathname.h with lib/filename.h. Replace
72053         lib/concatpath.c with lib/concat-filename.c.
72054         (Makefile.am): Update.
72055         (Include): Replace pathname.h with filename.h.
72056         * lib/filename.h: Renamed from lib/pathname.h.
72057         (concatenated_filename): Renamed from concatenated_pathname.
72058         * lib/concat-filename.c: Renamed from lib/concatpath.c.
72059         (concatenated_filename): Renamed from concatenated_pathname.
72060         * lib/findprog.c: Include filename.h instead of pathname.h.
72061         (find_in_path): Update.
72062         * lib/javacomp.c: Include filename.h instead of pathname.h.
72063         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
72064         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
72065         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
72066         is_oldgcj_14_13_usable, is_javac_usable): Update.
72067         * lib/javaexec.c: Include filename.h instead of pathname.h.
72068         (execute_java_class): Update.
72069         * modules/findprog: Update.
72070         * modules/javacomp: Update.
72071         * modules/javaexec: Update.
72072         * MODULES.html.sh (File system functions): Add 'filename', remove
72073         'pathname'.
72074
72075 2007-02-25  Bruno Haible  <bruno@clisp.org>
72076
72077         * modules/printf-frexpl-tests: New file.
72078         * tests/test-printf-frexpl.c: New file.
72079
72080         * modules/printf-frexpl: New file.
72081         * lib/printf-frexpl.h: New file.
72082         * lib/printf-frexpl.c: New file.
72083         * m4/printf-frexpl.m4: New file.
72084
72085 2007-02-25  Bruno Haible  <bruno@clisp.org>
72086
72087         * modules/printf-frexp-tests: New file.
72088         * tests/test-printf-frexp.c: New file.
72089
72090         * modules/printf-frexp: New file.
72091         * lib/printf-frexp.h: New file.
72092         * lib/printf-frexp.c: New file.
72093         * m4/printf-frexp.m4: New file.
72094
72095 2007-02-25  Bruno Haible  <bruno@clisp.org>
72096
72097         Assume automake >= 1.10 for the tests.
72098         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
72099         * modules/arctwo-tests: Likewise.
72100         * modules/argp-tests: Likewise.
72101         * modules/avltree-list-tests: Likewise.
72102         * modules/avltree-oset-tests: Likewise.
72103         * modules/avltreehash-list-tests: Likewise.
72104         * modules/carray-list-tests: Likewise.
72105         * modules/crc-tests: Likewise.
72106         * modules/des-tests: Likewise.
72107         * modules/gc-arcfour-tests: Likewise.
72108         * modules/gc-arctwo-tests: Likewise.
72109         * modules/gc-des-tests: Likewise.
72110         * modules/gc-hmac-md5-tests: Likewise.
72111         * modules/gc-hmac-sha1-tests: Likewise.
72112         * modules/gc-md2-tests: Likewise.
72113         * modules/gc-md4-tests: Likewise.
72114         * modules/gc-md5-tests: Likewise.
72115         * modules/gc-pbkdf2-sha1-tests: Likewise.
72116         * modules/gc-rijndael-tests: Likewise.
72117         * modules/gc-sha1-tests: Likewise.
72118         * modules/gc-tests: Likewise.
72119         * modules/getaddrinfo-tests: Likewise.
72120         * modules/hmac-md5-tests: Likewise.
72121         * modules/hmac-sha1-tests: Likewise.
72122         * modules/linked-list-tests: Likewise.
72123         * modules/linkedhash-list-tests: Likewise.
72124         * modules/lock-tests: Likewise.
72125         * modules/md2-tests: Likewise.
72126         * modules/md4-tests: Likewise.
72127         * modules/md5-tests: Likewise.
72128         * modules/rbtree-list-tests: Likewise.
72129         * modules/rbtree-oset-tests: Likewise.
72130         * modules/rbtreehash-list-tests: Likewise.
72131         * modules/read-file-tests: Likewise.
72132         * modules/rijndael-tests: Likewise.
72133         * modules/stdint-tests: Likewise.
72134         * modules/tls-tests: Likewise.
72135
72136 2007-02-24  Bruno Haible  <bruno@clisp.org>
72137
72138         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
72139         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
72140         function; instead check whether isnan with a double argument links.
72141         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
72142         function; instead check whether isnan with a 'long double' argument
72143         links.
72144         Reported by Eric Blake <ebb9@byu.net>.
72145
72146 2007-02-24  Bruno Haible  <bruno@clisp.org>
72147
72148         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
72149         defined.
72150         * lib/isnanl.c: Remove all code. Just include isnan.c.
72151         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
72152
72153 2007-02-25  Jim Meyering  <jim@meyering.net>
72154
72155         Avoid conflicting types for 'unsetenv' on FreeBSD.
72156         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
72157         conflicting with FreeBSD's (5.0 and 6.1) function declaration
72158         in stdlib.h.
72159
72160 2007-02-24  Bruno Haible  <bruno@clisp.org>
72161
72162         * modules/isnanl-nolibm-tests: New file.
72163         * tests/test-isnanl.c: New file.
72164
72165         * modules/isnanl-nolibm: New file.
72166         * lib/isnanl.h: New file.
72167         * lib/isnanl.c: New file.
72168         * m4/isnanl.m4: New file.
72169
72170 2007-02-24  Bruno Haible  <bruno@clisp.org>
72171
72172         * modules/isnan-nolibm-tests: New file.
72173         * tests/test-isnan.c: New file.
72174
72175         * modules/isnan-nolibm: New file.
72176         * lib/isnan.h: New file.
72177         * lib/isnan.c: New file.
72178         * m4/isnan.m4: New file.
72179
72180 2007-02-24  Bruno Haible  <bruno@clisp.org>
72181
72182         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
72183         assume that an exponent fits in 20 bits.
72184
72185 2007-02-24  Jim Meyering  <jim@meyering.net>
72186
72187         * m4/regex.m4: Update the description of the configure-time option,
72188         --without-included-regex, to state accurately what the defaults are,
72189         and perhaps to give people an idea why using this option is risky.
72190
72191 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
72192
72193         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
72194         loops on small arguments.  This attempts to avoid the problem
72195         Bruno Haible reported for AIX 4.3.2 in
72196         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
72197
72198 2007-02-23  Bruno Haible  <bruno@clisp.org>
72199
72200         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
72201         Needed for help2man.
72202
72203 2007-02-23  Karl Berry  <karl@gnu.org>
72204
72205         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
72206         exists, foo.h should be cvs-ignored, not committed.
72207
72208 2007-02-23  Eric Blake  <ebb9@byu.net>
72209
72210         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
72211         * lib/stat-time.h (includes): Likewise.
72212         * lib/utimecmp.c (includes): Likewise.
72213         * lib/utimens.h (includes): Likewise.
72214         * lib/getdate.y (includes): Also include "timespec.h" for use
72215         internal to the module.
72216         * modules/utimens (Depends-on): Revert yesterday's patch.
72217         * modules/nanosleep (Depends-on): Add missing dependency.
72218
72219 2007-02-22  Bruno Haible  <bruno@clisp.org>
72220
72221         * lib/glob.c: Don't include getlogin_r.h.
72222
72223 2007-02-22  Jim Meyering  <jim@meyering.net>
72224
72225         * modules/utimens (Depends-on): Add timespec, required for
72226         utimens.h's inclusion of timespec.h.
72227
72228 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
72229
72230         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
72231         long unreadable paths in GNU/Linux.  Problem reported by Andreas
72232         Schwab in
72233         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
72234         I'll try to think of a better way to fix the Solaris problem.
72235
72236         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
72237         like glibc; on Solaris 10, it fails with errno == EINVAL.
72238         POSIX says the behavior is unspecified if the first argument is NULL,
72239         so play it safe and never pass NULL to the system getcwd.
72240
72241 2007-02-21  Jim Meyering  <jim@meyering.net>
72242
72243         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
72244         of gettimeofday.  It would conflict with the one now always
72245         provided via sys_time_.h.  Reported by Matthew Woehlke, as
72246         an IRIX 6.5 build failure.
72247
72248 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
72249
72250         Minor fixups to port to Solaris 10 with Sun C 5.8.
72251         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
72252         * modules/getcwd (Depends-on): Add dirfd.
72253         * lib/putenv.c (putenv): #undef it.
72254         (rpl_putenv): New decl.
72255         (malloc, free): Include <stdlib.h> rather than prototyping separately.
72256
72257 2007-02-20  Bruno Haible  <bruno@clisp.org>
72258
72259         * modules/stdio-tests: New file.
72260         * tests/test-stdio.c: New file.
72261
72262         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
72263         (Depends-on): Add stdio.
72264         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72265         (Include): Use <stdio.h> instead of vsnprintf.h.
72266         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72267         HAVE_DECL_VSNPRINTF.
72268         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
72269
72270         * modules/snprintf (Files): Remove lib/snprintf.h.
72271         (Depends-on): Add stdio.
72272         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
72273         (Include): Use <stdio.h> instead of snprintf.h.
72274         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
72275         HAVE_DECL_SNPRINTF.
72276         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
72277         * lib/getaddrinfo.c: Likewise.
72278
72279         * modules/stdio: New file.
72280         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
72281         * lib/snprintf.h: Remove file.
72282         * lib/vsnprintf.h: Remove file.
72283         * lib/.cppi-disable: Remove snprintf.h.
72284         * m4/stdio_h.m4: New file.
72285         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
72286
72287 2007-02-20  Jim Meyering  <jim@meyering.net>
72288
72289         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
72290         used by e.g., mingw.  From Bruno Haible.
72291
72292 2007-02-19  Bruno Haible  <bruno@clisp.org>
72293
72294         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
72295         warnings.
72296         Reported by Ben Pfaff <blp@cs.stanford.edu>.
72297
72298 2007-02-19  Bruno Haible  <bruno@clisp.org>
72299
72300         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
72301         from mingw users.
72302
72303 2007-02-19  Bruno Haible  <bruno@clisp.org>
72304
72305         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
72306         warnings.
72307         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
72308
72309 2007-02-19  Jim Meyering  <jim@meyering.net>
72310
72311         Don't use FD after a successful "fdopendir (fd)".
72312         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
72313         Reset it by calling dirfd on the just-obtained DIR*.
72314
72315         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
72316         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
72317
72318 2007-02-18  Bruno Haible  <bruno@clisp.org>
72319
72320         * lib/readlink.c: Include <unistd.h>.
72321         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
72322         HAVE_READLINK.
72323         * modules/readlink (Depends-on): Add unistd.
72324         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72325         (Include): Add <unistd.h>.
72326
72327         * lib/getlogin_r.h: Remove file.
72328         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
72329         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
72330         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
72331         HAVE_DECL_GETLOGIN_R.
72332         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
72333         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72334         (Include): Use <unistd.h> instead of getlogin_r.h.
72335
72336         * lib/getcwd.h: Remove file.
72337         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
72338         * lib/xgetcwd.c: Likewise.
72339         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
72340         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
72341         * modules/getcwd (Files): Remove lib/getcwd.h.
72342         (Depends-on): Add unistd.
72343         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72344         (Include): Use <unistd.h> instad of getcwd.h.
72345
72346         * lib/ftruncate.c: Include <unistd.h> first.
72347         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
72348         Set HAVE_FTRUNCATE.
72349         * modules/ftruncate (Depends-on): Add unistd.
72350         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72351
72352         * lib/fchdir.c: Include <unistd.h> first.
72353         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
72354         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
72355         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
72356         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72357         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
72358
72359         * lib/dup2.c: Include <unistd.h> first.
72360         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
72361         HAVE_DUP2.
72362         * modules/dup2 (Depends-on): Add unistd.
72363         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72364
72365         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
72366         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
72367         REPLACE_CHOWN. Don't define chown as a macro here.
72368         * modules/chown (Depends-on): Add unistd.
72369         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
72370
72371         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
72372         Add definition for GL_LINK_WARNING.
72373         (chown, dup2): New declarations.
72374         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
72375         link warning.
72376         (ftruncate): New declaration.
72377         (getcwd): New declaration, taken from old getcwd.h.
72378         (getlogin_r): New declaration, taken from old getlogin_r.h.
72379         (readlink): New declaration.
72380         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
72381         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
72382         (gl_PREREQ_UNISTD): Remove macro.
72383         (gl_UNISTD_MODULE_INDICATOR): New macro.
72384         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
72385         many new variables. Don't set UNISTD_H.
72386         * modules/unistd (Description): Change.
72387         (Depends-on): Add link-warning.
72388         (configure.ac): Update.
72389         (Makefile.am): Create unistd.h always. Substitute many new variables
72390         into it.
72391
72392 2007-02-18  Bruno Haible  <bruno@clisp.org>
72393
72394         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
72395         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
72396         HAVE_GETSUBOPT.
72397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
72398         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
72399         * lib/getsubopt.h: Remove file.
72400         * modules/getsubopt (Files): Remove lib/getsubopt.h.
72401         (Depends-on): Add stdlib.
72402         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72403         (Includes): Use <stdlib.h> instead of getsubopt.h.
72404         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
72405         Set HAVE_GETSUBOPT.
72406         * lib/getsubopt.c: Don't include getsubopt.h.
72407
72408 2007-02-18  Bruno Haible  <bruno@clisp.org>
72409
72410         * modules/fchdir (Depends-on): Add dup2.
72411
72412 2007-02-18  Bruno Haible  <bruno@clisp.org>
72413
72414         * lib/stdlib_.h: Handle glibc's special invocation convention
72415         specially.
72416
72417 2007-02-18  Bruno Haible  <bruno@clisp.org>
72418
72419         * modules/stdlib-tests: New file.
72420         * tests/test-stdlib.c: New file.
72421
72422         * modules/mkstemp (Files): Remove lib/mkstemp.h.
72423         (Depends-on): Add stdlib.
72424         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72425         (Includes): Use <stdlib.h> instead of mkstemp.h.
72426         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72427         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
72428         * lib/mkstemp.c: Don't include mkstemp.h.
72429         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
72430         * lib/stdlib--.h: Don't include mkstemp.h.
72431
72432         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
72433         (Depends-on): Add stdlib.
72434         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
72435         (Includes): Use <stdlib.h> instead of mkdtemp.h.
72436         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
72437         HAVE_MKDTEMP.
72438         * lib/mkdtemp.c: Don't include mkdtemp.h.
72439         * lib/clean-temp.c: Don't include mkdtemp.h.
72440
72441         * modules/exit (Files): Remove lib/exit.h.
72442         (Depends-on): Add stdlib.
72443         (Makefile.am): Remove lib_SOURCES.
72444         (Include): Use <stdlib.h> instead of exit.h.
72445         * lib/argmatch.c: Don't include exit.h.
72446         * lib/execute.c: Likewise.
72447         * lib/pagealign_alloc.c: Likewise.
72448         * lib/pipe.c: Likewise.
72449         * lib/wait-process.c: Likewise.
72450         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
72451         * lib/exitfail.c: Likewise.
72452         * lib/savewd.c: Likewise.
72453         * lib/xsetenv.c: Likewise.
72454
72455         * modules/stdlib: New file.
72456         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
72457         and extra comments about mkstemp().
72458         * lib/exit.h: Remove file.
72459         * lib/mkdtemp.h: Remove file.
72460         * lib/mkstemp.h: Remove file.
72461         * m4/stdlib_h.m4: New file.
72462         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
72463
72464 2007-02-18  Bruno Haible  <bruno@clisp.org>
72465
72466         * modules/math-tests: New file.
72467         * tests/test-math.c: New file.
72468
72469         * modules/math: New file.
72470         * modules/mathl (Files): Remove lib/mathl.h.
72471         (Depends-on): Add math.
72472         (Makefile.am): Don't mention mathl.h.
72473         (Include): Use <math.h> instead of mathl.h.
72474         * lib/math_.h: New file.
72475         * lib/mathl.h: Remove file.
72476         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
72477         mathl.h.
72478         * lib/asinl.c: Likewise.
72479         * lib/atanl.c: Likewise.
72480         * lib/ceill.c: Likewise.
72481         * lib/cosl.c: Likewise.
72482         * lib/expl.c: Likewise.
72483         * lib/floorl.c: Likewise.
72484         * lib/frexpl.c: Likewise.
72485         * lib/ldexpl.c: Likewise.
72486         * lib/logl.c: Likewise.
72487         * lib/sincosl.c: Likewise.
72488         * lib/sinl.c: Likewise.
72489         * lib/sqrtl.c: Likewise.
72490         * lib/tanl.c: Likewise.
72491         * lib/trigl.c: Likewise.
72492         * m4/math_h.m4: New file.
72493         * MODULES.html.sh (Mathematics): Add math.
72494
72495 2007-02-17  Bruno Haible  <bruno@clisp.org>
72496
72497         * modules/wctype-tests: New file.
72498         * tests/test-wctype.c: New file.
72499
72500         * modules/wchar-tests: New file.
72501         * tests/test-wchar.c: New file.
72502
72503         * modules/unistd-tests: New file.
72504         * tests/test-unistd.c: New file.
72505
72506         * modules/time-tests: New file.
72507         * tests/test-time.c: New file.
72508
72509         * modules/sysexits-tests: New file.
72510         * tests/test-sysexits.c: New file.
72511
72512         * modules/sys_time-tests: New file.
72513         * tests/test-sys_time.c: New file.
72514
72515         * modules/sys_stat-tests: New file.
72516         * tests/test-sys_stat.c: New file.
72517
72518         * modules/sys_socket-tests: New file.
72519         * tests/test-sys_socket.c: New file.
72520
72521         * modules/sys_select-tests: New file.
72522         * tests/test-sys_select.c: New file.
72523
72524         * modules/string-tests: New file.
72525         * tests/test-string.c: New file.
72526
72527         * modules/stdbool-tests: New file.
72528         * tests/test-stdbool.c: New file.
72529
72530         * modules/netinet_in-tests: New file.
72531         * tests/test-netinet_in.c: New file.
72532
72533         * modules/inttypes-tests: New file.
72534         * tests/test-inttypes.c: New file.
72535
72536         * modules/fcntl-tests: New file.
72537         * tests/test-fcntl.c: New file.
72538
72539         * modules/byteswap-tests: New file.
72540         * tests/test-byteswap.c: New file.
72541
72542         * modules/arpa_inet-tests: New file.
72543         * tests/test-arpa_inet.c: New file.
72544
72545 2007-02-17  Bruno Haible  <bruno@clisp.org>
72546
72547         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
72548         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
72549         if the corresponding module is not enabled. Emit link warnings if
72550         the function is used nevertheless.
72551         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
72552         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
72553         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
72554         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
72555         * modules/inttypes (Depends-on): Add link-warning.
72556         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72557         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
72558         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
72559         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
72560         * modules/imaxdiv (configure.ac): Likewise.
72561         * modules/strtoimax (configure.ac): Likewise.
72562         * modules/strtoumax (configure.ac): Likewise.
72563
72564 2007-02-17  Bruno Haible  <bruno@clisp.org>
72565
72566         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
72567         gl_STRING_MODULE_INDICATOR_DEFAULTS.
72568         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
72569         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
72570
72571 2007-02-17  Bruno Haible  <bruno@clisp.org>
72572
72573         * modules/link-warning: New file.
72574         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
72575         * lib/string_.h (GL_LINK_WARNING): Remove definition.
72576         * modules/string (Depends-on): Add link-warning.
72577         (Makefile.am): Copy the contents of build-aux/link-warning.h into
72578         string.h.
72579         * MODULES.html.sh (Support for building libraries and executables): Add
72580         link-warning.
72581
72582 2007-02-17  Bruno Haible  <bruno@clisp.org>
72583
72584         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
72585         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
72586         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
72587         long lines.
72588
72589 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
72590             Bruno Haible  <bruno@clisp.org>
72591
72592         * modules/tmpfile: New file.
72593         * lib/tmpfile.c: New file.
72594         * m4/tmpfile.m4: New file.
72595         * MODULES.html.sh (func_all_modules): New section "Input/output".
72596
72597 2007-02-15  Bruno Haible  <bruno@clisp.org>
72598
72599         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
72600         (supports_delete_on_close): New function.
72601         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
72602
72603 2007-02-14  Bruno Haible  <bruno@clisp.org>
72604
72605         * modules/mbspcasecmp-tests: New file.
72606         * tests/test-mbspcasecmp.sh: New file.
72607         * tests/test-mbspcasecmp.c: New file.
72608
72609         New module mbspcasecmp.
72610         * modules/mbspcasecmp: New file.
72611         * lib/mbspcasecmp.c: New file.
72612         * lib/string_.h (strncasecmp): Change warning message.
72613         (mbspcasecmp): New declaration.
72614         * m4/mbspcasecmp.m4: New file.
72615         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72616         GNULIB_MBSPCASECMP.
72617         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
72618         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
72619
72620 2007-02-14  Bruno Haible  <bruno@clisp.org>
72621
72622         * modules/mbsncasecmp-tests: New file.
72623         * tests/test-mbsncasecmp.sh: New file.
72624         * tests/test-mbsncasecmp.c: New file.
72625
72626         New module mbsncasecmp.
72627         * modules/mbsncasecmp: New file.
72628         * lib/mbsncasecmp.c: New file.
72629         * lib/string_.h (mbsncasecmp): New declaration.
72630         * m4/mbsncasecmp.m4: New file.
72631         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72632         GNULIB_MBSNCASECMP.
72633         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
72634         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
72635
72636 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
72637
72638         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
72639         Verify that it doesn't overlap with our flags.
72640         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
72641         do not have the desired effect in multibyte locales; instead, use
72642         mbscasecmp.
72643         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
72644         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
72645         we don't require GNU fnmatch ourselves (if our users require it, they
72646         should do so explicitly).
72647
72648         Fix regex code so it doesn't rely on strcasecmp.
72649         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
72650         Otherwise, include gnulib's langinfo.h.
72651         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
72652         undesirable behavior in non-C locales.  Instead, rely on localecharset.
72653         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
72654         * modules/regex (FILES): Remove m4/codeset.m4.
72655         (Depends-on): Add localcharset.  Remove strcase.
72656
72657 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72658
72659         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
72660         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
72661
72662 2007-02-13  Bruno Haible  <bruno@clisp.org>
72663
72664         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
72665         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72666
72667 2007-02-12  Bruno Haible  <bruno@clisp.org>
72668
72669         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72670         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
72671         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
72672         time warning rather than a link error.
72673
72674 2007-02-12  Bruno Haible  <bruno@clisp.org>
72675
72676         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
72677         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
72678         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
72679
72680 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72681
72682         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
72683         args, not 2.
72684
72685 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         New module 'time', so that apps can include <time.h> as per
72688         POSIX and GNU instead of separate include files like time_r.h
72689         and timegm.h.  This implementation tries out a simpler approach
72690         for replacing decls in standard include files (as compared to
72691         the string module), somewhat as an experiment.
72692
72693         * config/srclist.txt: Comment out mktime.c for now.
72694         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
72695         since it doesn't apply any more.  Use generic wording instead.
72696         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
72697         'time'.
72698         * lib/time_.h, m4/time_h.m4, modules/time: New files.
72699         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
72700         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
72701         Don't include <sys/types.h>; no longer needed since we assume C89.
72702         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
72703         * lib/strftime.c: Likewise.
72704         * lib/time_r.c: Likewise.
72705         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
72706         * lib/nanosleep.c: Include <time.h> first, to check interface.
72707         * lib/strptime.c: Likewise.
72708         * lib/time_r.c: Likewise.
72709         * lib/timegm.c: Likewise.
72710         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
72711         needed.
72712         * lib/timegm.c: Don't include timegm.h; no longer needed.
72713         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
72714         time.h now handles any problems in that area.
72715         (struct timespec, nanosleep): Remove; time.h now arranges for these.
72716         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
72717         that time.h defines struct timespec.
72718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
72719         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
72720         handles that.
72721         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
72722         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
72723         needed.  Set REPLACE_LOCALTIME.
72724         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
72725         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
72726         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
72727         nanosleep; time_h.m4 now does that.  Don't require
72728         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
72729         module handles this now.
72730         * modules/getdate (Depends-on): Remove timespec.  Add time.
72731         * modules/nanosleep (Depends-on): Likewise.
72732         * modules/stat-time (Depends-on): Likewise.
72733         * modules/nanosleep (Include): Include time.h, not timespec.h.
72734         * modules/strptime (Files): Remove lib/strptime.h.
72735         (Depends-on): Add extensions, time.
72736         (Include): Include time.h, not strptime.h.
72737         * modules/time_r (Files): Remove lib/time_r.h.
72738         (Depends-on): Add time.
72739         (Include): Include time.h, not time_r.h.
72740         * modules/timegm: Likewise.
72741         * modules/timespec (Description): Now does timespec-related decls
72742         of our own, instead of struct timespec itself.
72743         (Depends-on): Add time; remove extensions.
72744         (Maintainer): Add self.
72745         * modules/utimecmp (Depends-on): Add time; remove timespec.
72746         * modules/utimens (Depends-on): Likewise.
72747         * modules/xnanosleep (Depends-on): Likewise.
72748
72749 2007-02-11  Bruno Haible  <bruno@clisp.org>
72750
72751         * lib/c-strstr.c: Include allocsa.h.
72752         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72753         * lib/c-strcasestr.c: Include allocsa.h.
72754         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72755         * lib/strcasestr.c: Include allocsa.h.
72756         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
72757         * lib/mbsstr.c: Include allocsa.h.
72758         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72759         allocsa/freesa instead of malloc/free.
72760         * lib/mbscasestr.c: Include allocsa.h.
72761         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
72762         allocsa/freesa instead of malloc/free.
72763         * modules/c-strstr (Depends-on): Add allocsa.
72764         * modules/c-strcasestr (Depends-on): Likewise.
72765         * modules/strcasestr (Depends-on): Likewise.
72766         * modules/mbsstr (Depends-on): Likewise.
72767         * modules/mbscasestr (Depends-on): Likewise.
72768
72769 2007-02-11  Bruno Haible  <bruno@clisp.org>
72770
72771         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
72772
72773         * modules/mbsspn-tests: New file.
72774         * tests/test-mbsspn.sh: New file.
72775         * tests/test-mbsspn.c: New file.
72776
72777 2007-02-11  Bruno Haible  <bruno@clisp.org>
72778
72779         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
72780
72781         * modules/mbspbrk-tests: New file.
72782         * tests/test-mbspbrk.sh: New file.
72783         * tests/test-mbspbrk.c: New file.
72784
72785 2007-02-11  Bruno Haible  <bruno@clisp.org>
72786
72787         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
72788         unneeded cast.
72789
72790         * modules/mbscspn-tests: New file.
72791         * tests/test-mbscspn.sh: New file.
72792         * tests/test-mbscspn.c: New file.
72793
72794 2007-02-11  Bruno Haible  <bruno@clisp.org>
72795
72796         * modules/mbscasecmp-tests: New file.
72797         * tests/test-mbscasecmp.sh: New file.
72798         * tests/test-mbscasecmp.c: New file.
72799
72800 2007-02-11  Bruno Haible  <bruno@clisp.org>
72801
72802         Ensure O(n) worst-case complexity of mbscasestr.
72803         * lib/mbscasestr.c: Include stdbool.h.
72804         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72805         functions.
72806         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
72807         the bookkeeping indicates that it's worth it.
72808         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
72809
72810         * modules/mbscasestr-tests: New file.
72811         * tests/test-mbscasestr1.c: New file.
72812         * tests/test-mbscasestr2.sh: New file.
72813         * tests/test-mbscasestr2.c: New file.
72814         * tests/test-mbscasestr3.sh: New file.
72815         * tests/test-mbscasestr3.c: New file.
72816         * tests/test-mbscasestr4.sh: New file.
72817         * tests/test-mbscasestr4.c: New file.
72818         * m4/locale-tr.m4: New file.
72819
72820 2007-02-11  Bruno Haible  <bruno@clisp.org>
72821
72822         Ensure O(n) worst-case complexity of mbsstr.
72823         * lib/mbsstr.c: Include stdbool.h.
72824         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72825         functions.
72826         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72827         bookkeeping indicates that it's worth it.
72828         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72829
72830         * modules/mbsstr-tests: New file.
72831         * tests/test-mbsstr1.c: New file.
72832         * tests/test-mbsstr2.sh: New file.
72833         * tests/test-mbsstr2.c: New file.
72834         * tests/test-mbsstr3.sh: New file.
72835         * tests/test-mbsstr3.c: New file.
72836         * m4/locale-fr.m4: New file.
72837
72838 2007-02-11  Bruno Haible  <bruno@clisp.org>
72839
72840         * lib/mbsrchr.c (mbsrchr): Fix bug.
72841
72842         * modules/mbsrchr-tests: New file.
72843         * tests/test-mbsrchr.sh: New file.
72844         * tests/test-mbsrchr.c: New file.
72845
72846 2007-02-11  Bruno Haible  <bruno@clisp.org>
72847
72848         * lib/mbschr.c (mbschr): Fix bug.
72849
72850         * modules/mbschr-tests: New file.
72851         * tests/test-mbschr.sh: New file.
72852         * tests/test-mbschr.c: New file.
72853         * m4/locale-zh.m4: New file.
72854
72855 2007-02-11  Bruno Haible  <bruno@clisp.org>
72856
72857         Support for copying multibyte string iterators.
72858         * lib/mbiter.h: Include <string.h>.
72859         (mbiter_multi_copy): New function.
72860         (mbi_copy): New macro.
72861         * lib/mbuiter.h: Include <string.h>.
72862         (mbuiter_multi_copy): New function.
72863         (mbui_copy): New macro.
72864
72865 2007-02-11  Bruno Haible  <bruno@clisp.org>
72866
72867         New module mbslen.
72868         * modules/mbslen: New file.
72869         * lib/mbslen.c: New file.
72870         * lib/string_.h (mbslen): New declaration.
72871         * m4/mbslen.m4: New file.
72872         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72873         GNULIB_MBSLEN.
72874         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72875         * MODULES.html.sh (Internationalization functions): Add mbslen.
72876
72877 2007-02-11  Bruno Haible  <bruno@clisp.org>
72878
72879         Ensure O(n) worst-case complexity of strcasestr substitute.
72880         * lib/strcasestr.c: Include stdbool.h.
72881         (knuth_morris_pratt): New function.
72882         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72883         bookkeeping indicates that it's worth it.
72884         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72885
72886         * modules/strcasestr-tests: New file.
72887         * tests/test-strcasestr.c: New file.
72888
72889 2007-02-11  Bruno Haible  <bruno@clisp.org>
72890
72891         Ensure O(n) worst-case complexity of c_strcasestr.
72892         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72893         (knuth_morris_pratt): New function.
72894         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72895         the bookkeeping indicates that it's worth it.
72896         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72897
72898         * modules/c-strcasestr-tests: New file.
72899         * tests/test-c-strcasestr.c: New file.
72900
72901 2007-02-11  Bruno Haible  <bruno@clisp.org>
72902
72903         Ensure O(n) worst-case complexity of c_strstr.
72904         * lib/c-strstr.c: Include stdbool.h, string.h.
72905         (knuth_morris_pratt): New function.
72906         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72907         bookkeeping indicates that it's worth it.
72908         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72909
72910         * lib/c-strstr.c: Complete rewrite for maintainability.
72911
72912         * modules/c-strstr-tests: New file.
72913         * tests/test-c-strstr.c: New file.
72914
72915 2007-02-11  Bruno Haible  <bruno@clisp.org>
72916
72917         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72918         5.2.1 and earlier, whereby \055 was treated just like the range
72919         delimiter '-'.
72920         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72921
72922 2007-02-08  Bruno Haible  <bruno@clisp.org>
72923
72924         * modules/regex (Depends-on): Add stdbool.
72925         Reported by Dalibor Topic <robilad@kaffe.org>.
72926
72927 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72928
72929         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72930         Prefer returning from main to exiting from it.
72931         Remove unnecessary parens after sizeof.
72932
72933 2007-02-05  Bruno Haible  <bruno@clisp.org>
72934
72935         New module mbssep.
72936         * modules/mbssep: New file.
72937         * lib/mbssep.c: New file.
72938         * lib/string_.h (strsep): Add a conditional link warning.
72939         (mbssep): New declaration.
72940         * m4/mbssep.m4: New file.
72941         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72942         GNULIB_MBSSEP.
72943         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72944         * MODULES.html.sh (Internationalization functions): Add mbssep.
72945
72946 2007-02-05  Bruno Haible  <bruno@clisp.org>
72947
72948         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72949         Optimize search in case of 1 delimiter.
72950
72951 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72952
72953         * lib/acl.h: Include sys/types.h before sys/acl.h.
72954
72955 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72956
72957         Merge upstream fix for glibc bugzilla #3957:
72958
72959         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72960
72961         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72962         bit for RE_HAT_LISTS_NOT_NEWLINE.
72963         (build_charclass_op): Remove bogus comment.
72964
72965 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72966
72967         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72968
72969 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72970
72971         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72972         * lib/memmem.c [!defined _LIBC]: Include config.h.
72973
72974 2007-02-04  Bruno Haible  <bruno@clisp.org>
72975
72976         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72977         warning message.
72978
72979 2007-02-04  Bruno Haible  <bruno@clisp.org>
72980
72981         New module mbstok_r.
72982         * modules/mbstok_r: New file.
72983         * lib/mbstok_r.c: New file.
72984         * lib/string_.h (strtok_r): Change argument names to match the
72985         comments. Add a conditional link warning.
72986         (mbstok_r): New declaration.
72987         * m4/mbstok_r.m4: New file.
72988         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72989         GNULIB_MBSTOK_R.
72990         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72991         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72992
72993 2007-02-04  Bruno Haible  <bruno@clisp.org>
72994
72995         New module mbsspn.
72996         * modules/mbsspn: New file.
72997         * lib/mbsspn.c: New file.
72998         * lib/string_.h (strspn): Add a conditional link warning.
72999         (mbsspn): New declaration.
73000         * m4/mbsspn.m4: New file.
73001         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73002         GNULIB_MBSSPN.
73003         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
73004         * MODULES.html.sh (Internationalization functions): Add mbsspn.
73005
73006 2007-02-04  Bruno Haible  <bruno@clisp.org>
73007
73008         New module mbspbrk.
73009         * modules/mbspbrk: New file.
73010         * lib/mbspbrk.c: New file.
73011         * lib/string_.h (strpbrk): Add a conditional link warning.
73012         (mbspbrk): New declaration.
73013         * m4/mbspbrk.m4: New file.
73014         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73015         GNULIB_MBSPBRK.
73016         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
73017         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
73018
73019 2007-02-04  Bruno Haible  <bruno@clisp.org>
73020
73021         New module mbscspn.
73022         * modules/mbscspn: New file.
73023         * lib/mbscspn.c: New file.
73024         * lib/string_.h (strcspn): Add a conditional link warning.
73025         (mbscspn): New declaration.
73026         * m4/mbscspn.m4: New file.
73027         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73028         GNULIB_MBSCSPN.
73029         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
73030         * MODULES.html.sh (Internationalization functions): Add mbscspn.
73031
73032 2007-02-04  Bruno Haible  <bruno@clisp.org>
73033
73034         New module mbscasestr, reduced goal of strcasestr.
73035         * modules/mbscasestr: New file.
73036         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
73037         (mbscasestr): Renamed from strcasestr.
73038         * lib/strcasestr.c: Don't include mbuiter.h.
73039         (strcasestr): Remove support for multibyte locales.
73040         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
73041         Change the conditional link warning.
73042         (mbscasestr): New declaration.
73043         * m4/mbscasestr.m4: New file.
73044         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
73045         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
73046         REPLACE_STRCASESTR.
73047         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
73048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73049         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73050         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
73051         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
73052         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
73053         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
73054         (Depends-on): Remove mbuiter.
73055         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
73056
73057 2007-02-04  Bruno Haible  <bruno@clisp.org>
73058
73059         Simplify handling of strncasecmp.
73060         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
73061         the conditional link warning.
73062         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
73063         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
73064         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
73065         * modules/strcase (configure.ac): Don't invoke
73066         gl_STRING_MODULE_INDICATOR.
73067         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
73068
73069 2007-02-04  Bruno Haible  <bruno@clisp.org>
73070
73071         New module mbscasecmp, reduced goal of strcasecmp.
73072         * modules/mbscasecmp: New file.
73073         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
73074         (mbscasecmp): Renamed from strcasecmp.
73075         * lib/strcasecmp.c: Don't include mbuiter.h.
73076         (strcasecmp): Remove support for multibyte locales.
73077         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
73078         Change the conditional link warning.
73079         (mbscasecmp): New declaration.
73080         * m4/mbscasecmp.m4: New file.
73081         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
73082         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
73083         REPLACE_STRCASECMP.
73084         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
73085         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73086         GNULIB_MBSCASECMP.
73087         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
73088         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
73089         * modules/strcase (Files): Remove m4/mbrtowc.m4.
73090         (Depends-on): Remove mbuiter.
73091         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
73092
73093 2007-02-04  Bruno Haible  <bruno@clisp.org>
73094
73095         New module mbsstr. Remove module strstr.
73096         * modules/mbsstr: New file.
73097         * modules/strstr: Remove file.
73098         * lib/mbsstr.c: Renamed from lib/strstr.c.
73099         (mbsstr): Renamed from strstr.
73100         * lib/string_.h (strstr): Remove declaration. Change the conditional
73101         link warning.
73102         (mbsstr): New declaration.
73103         * m4/mbsstr.m4: New file.
73104         * m4/strstr.m4: Remove file.
73105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
73106         REPLACE_STRSTR.
73107         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
73108         Don't initialize GNULIB_STRSTR.
73109         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
73110         substitute GNULIB_STRSTR and REPLACE_STRSTR.
73111         * MODULES.html.sh (Internationalization functions): Add mbsstr.
73112         (Support for systems lacking ANSI C 89): Remove strstr.
73113
73114 2007-02-04  Bruno Haible  <bruno@clisp.org>
73115
73116         New module mbsrchr.
73117         * modules/mbsrchr: New file.
73118         * lib/mbsrchr.c: New file.
73119         * lib/string_.h (strrchr): Add a conditional link warning.
73120         (mbsrchr): New declaration.
73121         * m4/mbsrchr.m4: New file.
73122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73123         GNULIB_MBSRCHR.
73124         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
73125         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
73126
73127 2007-02-04  Bruno Haible  <bruno@clisp.org>
73128
73129         New module mbschr.
73130         * modules/mbschr: New file.
73131         * lib/mbschr.c: New file.
73132         * lib/string_.h (strchr): Add a conditional link warning.
73133         (mbschr): New declaration.
73134         * m4/mbschr.m4: New file.
73135         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
73136         GNULIB_MBSCHR.
73137         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
73138         * MODULES.html.sh (Internationalization functions): Add mbschr.
73139
73140 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
73141
73142         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
73143
73144         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
73145
73146 2007-02-04  Bruno Haible  <bruno@clisp.org>
73147
73148         New module description section 'configure.ac-early'.
73149         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
73150         (func_get_autoconf_early_snippet): New function.
73151         (func_import, func_create_testdir): Use it. Remove special cases for
73152         modules 'extensions' and 'lock'.
73153         * modules/extensions (configure.ac-early): Require
73154         gl_USE_SYSTEM_EXTENSIONS.
73155         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
73156
73157 2007-02-04  Bruno Haible  <bruno@clisp.org>
73158
73159         Make use of gcj-4.3's -fsource and -ftarget option.
73160         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
73161         and if so try the options -fsource and -ftarget.
73162         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
73163         source_version, ftarget_option, target_version arguments.
73164         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
73165         (is_envjavac_oldgcj_14_14_usable): Renamed from
73166         is_envjavac_gcj_14_14_usable.
73167         (is_envjavac_oldgcj_14_13_usable): Renamed from
73168         is_envjavac_gcj_14_13_usable.
73169         (is_gcj_present): Update.
73170         (is_gcj_43, is_gcj43_usable): New functions.
73171         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
73172         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
73173         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
73174         try the options -fsource and -ftarget.
73175
73176 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73177
73178         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
73179         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
73180         larger value.
73181
73182 2007-02-03  Jim Meyering  <jim@meyering.net>
73183
73184         Give tools a better chance to allocate space for very large buffers.
73185         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
73186
73187         Make pwd and readlink work also when run with an unreadable parent dir
73188         on systems with openat support.
73189         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
73190         provided getcwd function, even when we have openat support.
73191         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
73192
73193 2007-02-02  Bruno Haible  <bruno@clisp.org>
73194
73195         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
73196         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
73197         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
73198         portability problems if one of these functions is only used on specific
73199         platforms.
73200         Reported by Paul Eggert.
73201
73202 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
73205         is causing more trouble than it's curing.
73206         * lib/regex_internal.h (__mempcpy): Remove.
73207         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
73208         (and make the code a tad smaller to boot).
73209         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
73210
73211 2007-02-02  Jim Meyering  <jim@meyering.net>
73212
73213         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
73214         section, not in the Makefile.am: one.
73215
73216 2007-02-02  Eric Blake  <ebb9@byu.net>
73217
73218         * lib/strchrnul.c: Always include config.h first.
73219
73220         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
73221         gnulib strstr is not necessary here.
73222
73223 2007-02-02  Simon Josefsson  <simon@josefsson.org>
73224
73225         * m4/socklen.m4: Fix typo.
73226
73227 2007-02-02  Eric Blake  <ebb9@byu.net>
73228
73229         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
73230         * modules/netinet_in (Makefile.am): Likewise.
73231
73232 2007-02-01  Bruno Haible  <bruno@clisp.org>
73233
73234         * lib/string_.h (GL_LINK_WARNING): New macro.
73235         (strcasecmp, strstr, strcasestr): If provided by the system,
73236         conditionally define as a macro that leads to a warning instead of to
73237         an error.
73238         (strncasecmp): Conditionally define as a macro that leads to a warning.
73239
73240 2007-02-01  Karl Berry  <karl@gnu.org>
73241
73242         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
73243
73244 2007-02-01  Bruno Haible  <bruno@clisp.org>
73245
73246         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
73247         renamings.
73248
73249 2007-02-01  Eric Blake  <ebb9@byu.net>
73250
73251         * modules/regex (Depends-on): Revert dependence on mempcpy.
73252         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
73253         module's definition of mempcpy.
73254         Reported by Paul Eggert.
73255
73256 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73257
73258         * lib/string_.h: If the gnulib module XYZ is not present, undefine
73259         the symbol XYZ before redefining it.  This fixes a problem with
73260         programs that don't use XYZ, when compiled on systems that define
73261         XYZ to something else.
73262
73263 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
73264
73265         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
73266         occurs when "mkdir -m foo" creates a setgid directory that is (1)
73267         writeable to group or other and (2) is intended to have a special
73268         mode bit that is set or cleared.  In such a case, the directory
73269         should be neither group- nor other-writeable until the special
73270         mode bits are right.
73271
73272 2007-01-31  Eric Blake  <ebb9@byu.net>
73273
73274         * modules/mountlist (Depends-on): Add strstr.
73275
73276         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
73277         bug.
73278         * modules/string (Makefile.am): Remove redundant replacement.
73279         * modules/regex (Depends-on): Add mempcpy.
73280
73281 2007-01-31  Bruno Haible  <bruno@clisp.org>
73282
73283         New module description field 'Link'.
73284         * gnulib-tool (func_usage): Document --extract-link-directive.
73285         (sed_extract_prog): Recognize 'Link' directive.
73286         (func_get_link_directive): New function.
73287         (func_import): Show summary of link directives.
73288         Handle --extract-link-directive option.
73289         * modules/acl (Link): New section.
73290         * modules/clock-time (Link): New section.
73291         * modules/euidaccess (Link): New section.
73292         * modules/gettext (Link): New section.
73293         * modules/iconv (Link): New section.
73294         * modules/lock (Link): New section.
73295         * modules/nanosleep (Link): New section.
73296         * modules/readline (Link): New section.
73297
73298 2007-01-27  Bruno Haible  <bruno@clisp.org>
73299
73300         Enforce the use of gnulib modules for unportable <string.h> functions.
73301         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
73302         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
73303         (gl_HEADER_STRING_H_BODY): Require it.
73304         * lib/string_.h: If the gnulib module XYZ is not present, redefine
73305         the symbol XYZ to one that gives a link error.
73306         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
73307         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
73308         * modules/mempcpy (configure.ac): Likewise.
73309         * modules/memrchr (configure.ac): Likewise.
73310         * modules/stpcpy (configure.ac): Likewise.
73311         * modules/stpncpy (configure.ac): Likewise.
73312         * modules/strcase (configure.ac): Likewise.
73313         * modules/strcasestr (configure.ac): Likewise.
73314         * modules/strchrnul (configure.ac): Likewise.
73315         * modules/strdup (configure.ac): Likewise.
73316         * modules/strndup (configure.ac): Likewise.
73317         * modules/strnlen (configure.ac): Likewise.
73318         * modules/strpbrk (configure.ac): Likewise.
73319         * modules/strsep (configure.ac): Likewise.
73320         * modules/strstr (configure.ac): Likewise.
73321         * modules/strtok_r (configure.ac): Likewise.
73322
73323 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
73324
73325         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
73326
73327 2007-01-30  Jim Meyering  <jim@meyering.net>
73328
73329         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
73330
73331 2007-01-29  Bruno Haible  <bruno@clisp.org>
73332
73333         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
73334         * lib/execute.c: Likewise.
73335         * lib/pipe.c: Likewise.
73336         * lib/printf-args.h: Likewise.
73337         * lib/printf-args.c: Likewise.
73338         * lib/printf-parse.c: Likewise.
73339         * lib/vasnprintf.c: Likewise.
73340
73341 2007-01-29  Eric Blake  <ebb9@byu.net>
73342
73343         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
73344         declaration.
73345
73346 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
73347
73348         * lib/strptime.h (strptime): Use 'restrict' for args where
73349         POSIX requires this.
73350         * lib/strptime.c (strptime): Likewise.
73351         Change license notice from LGPL to GPL, since gnulib-tool will
73352         change this as needed.
73353         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
73354         defined.
73355         Include "strptime.h" first, to check interface.
73356         Do not #undef _LIBC and _NL_CURRENT.
73357         Do not include <stdlib.h>; no longer needed.
73358         Include "time_r.h" and declare ptime_locale_status
73359         only if _LIBC is not defined.
73360         (__P): Remove unused macro.
73361         (match_string): Bring back glibc version, but use it only if _LIBC
73362         is defined.
73363         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
73364         Remove unnecessary assertion and abort() call.
73365         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
73366         * m4/strptime.m4: Fix serial number comment.
73367         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
73368         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
73369         (Depends-on): Add time_r.
73370
73371 2007-01-29  Bruno Haible  <bruno@clisp.org>
73372
73373         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73374         strptime.
73375         * modules/strptime (Depends-on): Add stdbool.
73376         * lib/strptime.h: Include <time.h> always. Add comments.
73377
73378 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
73379
73380         * modules/strptime: New file.
73381         * lib/strptime.h: New file.
73382         * lib/strptime.c: New file.
73383         * m4/strptime.m4: New file.
73384
73385 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
73386
73387         * MODULES.html.sh: New module mpsort.
73388         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
73389
73390         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
73391         a circularity problem with HP-UX ia64 reported by Bob Proulx in
73392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
73393         All uses changed.
73394         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
73395         All uses changed.
73396         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
73397         to _Restrict_.
73398         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
73399         the parameter matches the prototype.
73400
73401 2007-01-28  Jim Meyering  <jim@meyering.net>
73402
73403         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
73404         sys/time.h here, reverting that part of the previous patch:
73405         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
73406
73407 2007-01-28  Bruno Haible  <bruno@clisp.org>
73408
73409         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
73410         value of $(SYS_TIME_H).
73411         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
73412         remove it conditionally, too. [added by Jim Meyering]
73413         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
73414         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73415         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
73416         GETTIMEOFDAY_REPLACEMENT to 1.
73417
73418 2007-01-28  Bruno Haible  <bruno@clisp.org>
73419
73420         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
73421         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
73422         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
73423         Set UNISTD_H instead of UNISTD_H2.
73424         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
73425
73426 2007-01-28  Bruno Haible  <bruno@clisp.org>
73427
73428         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
73429         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
73430
73431 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73432
73433         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
73434         (func_create_testdir): Ensure C locale for `grep' and `tr'
73435         character ranges.
73436         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
73437         ACLOCAL_AMFLAGS parsing state machine.
73438
73439 2007-01-27  Bruno Haible  <bruno@clisp.org>
73440
73441         * modules/unistr/base: Update.
73442
73443 2007-01-27  Bruno Haible  <bruno@clisp.org>
73444
73445         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
73446         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
73447         * modules/unistr/u32-mbtouc-unsafe: Renamed from
73448         modules/unistr/u32-mbtouc.
73449         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
73450         * lib/unistr.h: Update.
73451         * lib/linebreak.c: Update.
73452         * modules/unistr/u32-mbtouc: Renamed from
73453         modules/unistr/u32-mbtouc-safe.
73454         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
73455         * lib/unistr.h: Update.
73456         * lib/unistr/u32-to-u8.c: Update.
73457         * lib/unistr/u32-to-u16.c: Update.
73458
73459 2007-01-27  Bruno Haible  <bruno@clisp.org>
73460
73461         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
73462         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
73463         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
73464         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
73465         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
73466         * modules/unistr/u16-mbtouc-unsafe: Renamed from
73467         modules/unistr/u16-mbtouc.
73468         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
73469         * lib/unistr.h: Update.
73470         * lib/linebreak.c: Update.
73471         * modules/linebreak: Update.
73472         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
73473         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
73474         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
73475         * modules/unistr/u16-mbtouc: Renamed from
73476         modules/unistr/u16-mbtouc-safe.
73477         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
73478         * lib/unistr.h: Update.
73479         * lib/unistr/u16-to-u8.c: Update.
73480         * modules/unistr/u16-to-u8: Update.
73481         * lib/unistr/u16-to-u32.c: Update.
73482         * modules/unistr/u16-to-u32: Update.
73483
73484 2007-01-27  Bruno Haible  <bruno@clisp.org>
73485
73486         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
73487         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
73488         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
73489         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
73490         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
73491         * modules/unistr/u8-mbtouc-unsafe: Renamed from
73492         modules/unistr/u8-mbtouc.
73493         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
73494         * lib/unistr.h: Update.
73495         * lib/striconveh.c: Update.
73496         * modules/striconveh: Update.
73497         * lib/linebreak.c: Update.
73498         * modules/linebreak: Update.
73499         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
73500         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
73501         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
73502         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
73503         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
73504         * lib/unistr.h: Update.
73505         * lib/striconveh.c: Update.
73506         * modules/striconveh: Update.
73507         * lib/unistr/u8-to-u16.c: Update.
73508         * modules/unistr/u8-to-u16: Update.
73509         * lib/unistr/u8-to-u32.c: Update.
73510         * modules/unistr/u8-to-u32: Update.
73511
73512 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73513
73514         Sync from Libtool.
73515         * lib/argz.c: Do not include strings.h nor memory.h, include
73516         string.h unconditionally.  Patch by Simon Josefsson.
73517
73518 2007-01-27  Bruno Haible  <bruno@clisp.org>
73519
73520         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
73521         from gl_HEADER_STRING_H_BODY.
73522         (gl_HEADER_STRING_H_BODY): Require it.
73523         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
73524         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
73525         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
73526         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
73527         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
73528         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
73529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
73530         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
73531         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
73532         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
73533         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
73534         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
73535         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
73536         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
73537         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
73538
73539 2007-01-27  Bruno Haible  <bruno@clisp.org>
73540
73541         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
73542         check_PROGRAMS into noinst_PROGRAMS.
73543         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
73544         check_PROGRAMS in this case.
73545         (func_import): Set for_test to false.
73546         (func_create_testdir): Set for_test to true.
73547
73548 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73549             Bruno Haible  <bruno@clisp.org>
73550
73551         * modules/strcasestr (Files): Remove lib/strcasestr.h.
73552         (Depends-on): Add string.
73553         (Includes): Use <string.h> instead of strcasestr.h.
73554         * modules/string (Makefile.am): Also substitute the value of
73555         REPLACE_STRCASESTR.
73556         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
73557         assume strcasestr is declared in <string.h> not <strings.h>. Also
73558         set REPLACE_STRCASESTR.
73559         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
73560         REPLACE_STRCASESTR.
73561         * lib/strcasestr.h: Remove file.
73562         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
73563         * lib/string_.h (strcasestr): New declaration.
73564
73565 2007-01-27  Bruno Haible  <bruno@clisp.org>
73566
73567         * lib/string_.h: Use 'extern'.
73568
73569 2007-01-27  Jim Meyering  <jim@meyering.net>
73570
73571         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
73572         of set-but-not-used local, "q".
73573
73574         * lib/mempcpy.c: Include <config.h> before <string.h>.
73575         This fixes a compilation error on HP-UX, due to the system's
73576         "restrict"-using mempcpy prototype.
73577
73578 2007-01-26  Bruno Haible  <bruno@clisp.org>
73579
73580         Small optimization.
73581         * lib/javacomp.c: Include c-strstr.h.
73582          (is_envjavac_gcj): Use c_strstr instead of strstr.
73583         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
73584
73585 2007-01-26  Bruno Haible  <bruno@clisp.org>
73586
73587         * MODULES.html.sh (Unicode string functions): Add the new modules.
73588
73589         * modules/uniconv/u32-strconv-to-locale: New file.
73590         * lib/uniconv/u32-strconv-to-locale.c: New file.
73591
73592         * modules/uniconv/u16-strconv-to-locale: New file.
73593         * lib/uniconv/u16-strconv-to-locale.c: New file.
73594
73595         * modules/uniconv/u8-strconv-to-locale: New file.
73596         * lib/uniconv/u8-strconv-to-locale.c: New file.
73597
73598         * modules/uniconv/u32-strconv-from-locale: New file.
73599         * lib/uniconv/u32-strconv-from-locale.c: New file.
73600
73601         * modules/uniconv/u16-strconv-from-locale: New file.
73602         * lib/uniconv/u16-strconv-from-locale.c: New file.
73603
73604         * modules/uniconv/u8-strconv-from-locale: New file.
73605         * lib/uniconv/u8-strconv-from-locale.c: New file.
73606
73607         * modules/uniconv/u32-strconv-to-enc: New file.
73608         * lib/uniconv/u32-strconv-to-enc.c: New file.
73609         * modules/uniconv/u32-strconv-to-enc-tests: New file.
73610         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
73611
73612         * modules/uniconv/u16-strconv-to-enc: New file.
73613         * lib/uniconv/u16-strconv-to-enc.c: New file.
73614         * lib/uniconv/u-strconv-to-enc.h: New file.
73615         * modules/uniconv/u16-strconv-to-enc-tests: New file.
73616         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
73617
73618         * modules/uniconv/u8-strconv-to-enc: New file.
73619         * lib/uniconv/u8-strconv-to-enc.c: New file.
73620         * modules/uniconv/u8-strconv-to-enc-tests: New file.
73621         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
73622
73623         * modules/uniconv/u32-strconv-from-enc: New file.
73624         * lib/uniconv/u32-strconv-from-enc.c: New file.
73625         * modules/uniconv/u32-strconv-from-enc-tests: New file.
73626         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
73627
73628         * modules/uniconv/u16-strconv-from-enc: New file.
73629         * lib/uniconv/u16-strconv-from-enc.c: New file.
73630         * modules/uniconv/u16-strconv-from-enc-tests: New file.
73631         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
73632
73633         * modules/uniconv/u8-strconv-from-enc: New file.
73634         * lib/uniconv/u8-strconv-from-enc.c: New file.
73635         * lib/uniconv/u-strconv-from-enc.h: New file.
73636         * modules/uniconv/u8-strconv-from-enc-tests: New file.
73637         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
73638
73639         * modules/uniconv/u32-conv-from-enc: New file.
73640         * lib/uniconv/u32-conv-from-enc.c: New file.
73641         * modules/uniconv/u32-conv-from-enc-tests: New file.
73642         * tests/uniconv/test-u32-conv-from-enc.c: New file.
73643
73644         * modules/uniconv/u16-conv-from-enc: New file.
73645         * lib/uniconv/u16-conv-from-enc.c: New file.
73646         * lib/uniconv/u-conv-from-enc.h: New file.
73647         * modules/uniconv/u16-conv-from-enc-tests: New file.
73648         * tests/uniconv/test-u16-conv-from-enc.c: New file.
73649
73650         * modules/uniconv/u8-conv-from-enc: New file.
73651         * lib/uniconv/u8-conv-from-enc.c: New file.
73652         * modules/uniconv/u8-conv-from-enc-tests: New file.
73653         * tests/uniconv/test-u8-conv-from-enc.c: New file.
73654
73655         * modules/uniconv/base: New file.
73656         * lib/uniconv.h: New file.
73657
73658 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
73659
73660         * doc/gnulib-tool.texi (Initial import): Update to match current
73661         behavior with strdup module.
73662         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
73663         * lib/memmem.h: Remove; all uses removed.  This is now done
73664         by <string.h>.
73665         * lib/mempcpy.h: Likewise.
73666         * lib/memrchr.h: Likewise.
73667         * lib/stpcpy.h: Likewise.
73668         * lib/stpncpy.h: Likewise.
73669         * lib/strcase.h: Likewise.
73670         * lib/strchrnul.h: Likewise.
73671         * lib/strdup.h: Likewise.
73672         * lib/strndup.h: Likewise.
73673         * lib/strnlen.h: Likewise.
73674         * lib/strpbrk.h: Likewise.
73675         * lib/strsep.h: Likewise.
73676         * lib/strstr.h: Likewise.
73677         * lib/strtok_r.h: Likewise.
73678         * lib/string_.h: New file.
73679         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
73680         Rely on <string.h> instead.
73681         * lib/canon-host.c: Likewise.
73682         * lib/chdir-long.c: Likewise.
73683         * lib/concatpath.c: Likewise.
73684         * lib/exclude.c: Likewise.
73685         * lib/fchdir.c: Likewise.
73686         * lib/getaddrinfo.c: Likewise.
73687         * lib/getcwd.c: Likewise.
73688         * lib/getsubopt.c: Likewise.
73689         * lib/glob.c: Likewise.
73690         * lib/hard-locale.c: Likewise.
73691         * lib/iconvme.c: Likewise.
73692         * lib/javacomp.c: Likewise.
73693         * lib/mempcpy.c: Likewise.
73694         * lib/memrchr.c: Likewise.
73695         * lib/regex_internal.h: Likewise.
73696         * lib/stpncpy.c: Likewise.
73697         * lib/strcasecmp.c: Likewise.
73698         * lib/strchrnul.c: Likewise.
73699         * lib/strdup.c: Likewise.
73700         * lib/striconv.c: Likewise.
73701         * lib/striconveh.c: Likewise.
73702         * lib/striconveha.c: Likewise.
73703         * lib/strncasecmp.c: Likewise.
73704         * lib/strndup.c: Likewise.
73705         * lib/strnlen.c: Likewise.
73706         * lib/strsep.c: Likewise.
73707         * lib/strstr.c: Likewise.
73708         * lib/strtok_r.c: Likewise.
73709         * lib/userspec.c: Likewise.
73710         * lib/w32spawn.h: Likewise.
73711         * lib/xstrndup.c: Likewise.
73712         * lib/mountlist.c (strstr): Remove decl.
73713         * m4/string_h.m4: New file.
73714         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
73715         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
73716         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
73717         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
73718         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
73719         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
73720         Set REPLACE_STRCASECMP if necessary.
73721         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
73722         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
73723         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
73724         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
73725         HAVE_DECL_STRDUP if necessary.
73726         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
73727         since gl_FUNC_STRNDUP does that now.
73728         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
73729         Check for decl here...
73730         (gl_PREREQ_STRNLEN): ... not here.
73731         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
73732         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
73733         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
73734         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
73735         necessary.
73736         * modules/string: New file.
73737         * modules/memmem (Files): Remove special-purpose include file.
73738         (Depends-on): Add string.
73739         (Include): Include <string.h>, not the removed file.
73740         * modules/mempcpy: Likewise.
73741         * modules/memrchr: Likewise.
73742         * modules/stpcpy: Likewise.
73743         * modules/stpncpy: Likewise.
73744         * modules/strcase: Likewise.
73745         * modules/strchrnul: Likewise.
73746         * modules/strdup: Likewise.
73747         * modules/strndup: Likewise.
73748         * modules/strnlen: Likewise.
73749         * modules/strpbrk: Likewise.
73750         * modules/strsep: Likewise.
73751         * modules/strstr: Likewise.
73752         * modules/strtok_r: Likewise.
73753         * tests/test-dirname.c: Don't include "strdup.h", since
73754         <string.h> now suffices.
73755         * tests/test-memmem.c: Don't include "memmem.h", since
73756         <string.h> now suffices.
73757
73758 2007-01-25  Bruno Haible  <bruno@clisp.org>
73759
73760         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
73761         *resultp is 0.
73762
73763         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
73764         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
73765         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
73766         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
73767
73768         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
73769         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
73770         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
73771         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
73772         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
73773         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
73774
73775 2007-01-24  Bruno Haible  <bruno@clisp.org>
73776
73777         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
73778         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
73779         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
73780         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
73781         gl_FUNC_FTS_CORE.
73782         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
73783         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
73784         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73785         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
73786         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
73787         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
73788         gl_FUNC_FCHOWNAT.
73789         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
73790         gl_FUNC_STRFTIME.
73791         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
73792         Reported by Ralf Wildenhues.
73793
73794 2007-01-24  Bruno Haible  <bruno@clisp.org>
73795
73796         Drop AC_REQUIRE calls that are redundant with the module dependencies.
73797         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
73798         gl_GETADDRINFO.
73799         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
73800         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
73801         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
73802
73803 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
73804
73805         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
73806         Don't use 'exit'; just return from 'main'.
73807         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
73808
73809         * lib/fnmatch_.h: Readjust white space and comments to match
73810         glibc, to avoid spurious diffs.
73811
73812 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73813
73814         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73815         2004-12-01 change by Jakub Jelinek, since this code won't compile
73816         if !LIBC.  Problem reported by Bob Proulx.
73817
73818 2007-01-23  Bruno Haible  <bruno@clisp.org>
73819
73820         * lib/striconveh.c: Include c-strcaseeq.h.
73821         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73822         * modules/striconveh (Depends-on): Add c-strcaseeq.
73823
73824 2007-01-23  Bruno Haible  <bruno@clisp.org>
73825
73826         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73827
73828         * modules/c-strcaseeq: New file.
73829         * lib/c-strcaseeq.h: New file.
73830
73831         * modules/streq: New file.
73832         * lib/streq.h: New file.
73833
73834 2007-01-23  Bruno Haible  <bruno@clisp.org>
73835
73836         * modules/striconveha-tests: New file.
73837         * tests/test-striconveha.c: New file.
73838
73839         * lib/striconveha.h: Include <stdbool.h>.
73840         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73841         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73842         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73843         (mem_iconveha): New function.
73844         (str_iconveha_notranslit): Renamed from str_iconveha.
73845         (str_iconveha): New function.
73846         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73847         c-strcase.
73848
73849 2007-01-23  Bruno Haible  <bruno@clisp.org>
73850
73851         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73852         encodings without forgiving before trying any encoding with handler.
73853         (str_iconveha): Try all encodings without forgiving before trying any
73854         encoding with handler.
73855
73856 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73857
73858         Import the following changes from libc.
73859
73860         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73861
73862         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73863
73864         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73865
73866         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73867         normal_bracket label.
73868
73869         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73870
73871         [BZ #361]
73872         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73873         to normal_bracket after fetching the next character.
73874
73875 2007-01-22  Bruno Haible  <bruno@clisp.org>
73876
73877         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73878         argument.
73879         * lib/striconveh.c (iconv_carefully_1): New function.
73880         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73881         argument.
73882         (str_cd_iconveh): Update.
73883         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73884         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73885         * tests/test-striconveh.c (MAGIC): New macro.
73886         (new_offsets): New function.
73887         (main): Test call with and without offsets.
73888
73889 2007-01-22  Bruno Haible  <bruno@clisp.org>
73890
73891         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73892         * modules/sys_select (Makefile.am): Likewise.
73893         * modules/sys_socket (Makefile.am): Likewise.
73894         * modules/sys_time (Makefile.am): Likewise.
73895
73896 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73897
73898         * modules/gettimeofday (License): Change from GPL to LGPL, since
73899         gettimeofday is a library function.
73900
73901 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73902
73903         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73904
73905 2007-01-21  Bruno Haible  <bruno@clisp.org>
73906
73907         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73908
73909 2007-01-21  Bruno Haible  <bruno@clisp.org>
73910
73911         * modules/striconveha: New file.
73912         * lib/striconveha.h: New file.
73913         * lib/striconveha.c: New file.
73914         * MODULES.html.sh (Internationalization functions): Add striconveha.
73915         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73916         string.
73917         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73918
73919 2007-01-21  Bruno Haible  <bruno@clisp.org>
73920
73921         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73922         * lib/striconveh.c (str_iconveh): Likewise.
73923
73924 2007-01-21  Bruno Haible  <bruno@clisp.org>
73925
73926         * lib/striconveh.h (mem_iconveh): New declaration.
73927         * lib/striconveh.c (mem_iconveh): New function.
73928         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73929
73930 2007-01-21  Bruno Haible  <bruno@clisp.org>
73931
73932         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73933
73934         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73935         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73936         original result buffer.
73937         (str_cd_iconveh): Update.
73938         * tests/test-striconveh.c (main): Update.
73939
73940         * lib/striconv.h (mem_cd_iconv): Change specification.
73941         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73942         result buffer.
73943         (str_cd_iconv): Update.
73944         * tests/test-striconv.c (main): Update.
73945
73946 2007-01-21  Bruno Haible  <bruno@clisp.org>
73947
73948         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73949
73950 2007-01-20  Jim Meyering  <jim@meyering.net>
73951
73952         * lib/userspec.c (parse_with_separator): If a user or group string
73953         starts with "+", skip the corresponding name-to-ID look-up, since
73954         such a look-up must fail: user and group names may not include "+".
73955
73956 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73957
73958         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73959         since we now assume the sys_time module.
73960         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73961         check for sys/time.h; no longer needed.
73962         * modules/poll (Depends-on): Depend on sys_time.
73963
73964 2007-01-18  Bruno Haible  <bruno@clisp.org>
73965
73966         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73967         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73968
73969         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73970         gettimeofday.
73971
73972         * tests/test-gettimeofday.c: Include <time.h>.
73973         (dummy): Remove variable.
73974
73975         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73976         gl_HEADER_SYS_TIME_H.
73977         (gl_HEADER_SYS_TIME_H): New macro.
73978
73979         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73980         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73981         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73982         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73983         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73984         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73985         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73986         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73987         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73988         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73989         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73990
73991         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73992         last change; it caused a compilation error when cross-compiling to
73993         Cygwin.
73994
73995 2007-01-18  Jim Meyering  <jim@meyering.net>
73996
73997         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73998         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73999         than the race-prone "test -d sys || mkdir sys".
74000         (configure.ac): Use AC_PROG_MKDIR_P.
74001         * modules/sys_select: Likewise.
74002         * modules/sys_socket: Likewise.
74003         * modules/sys_time: Likewise.
74004
74005 2007-01-18  Eric Blake  <ebb9@byu.net>
74006
74007         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
74008         replace gettimeofday.
74009         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
74010         name, to avoid infinite recursion.
74011
74012 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
74013
74014         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
74015         module sys_time.
74016         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
74017         assume timespec.h defines struct timeval.
74018         * lib/settime.c: Likewise.
74019         * lib/utimens.c: Likewise.
74020         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
74021         since we now assume the gettimeofday module.
74022         * lib/tempname.c (__gen_tempname): Likewise.
74023         * lib/gettimeofday.h: Remove.
74024         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
74025         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
74026         Include <time.h>, for 'time()'.
74027         (localtime_buffer_addr): Also use this workaround if
74028         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
74029         to simplify the uses.  All uses changed.
74030         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
74031         that #undef is inside {}, and 'const' follows type name consistently.
74032         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
74033         (gettimeofday): Do not use the maximum possible value for
74034         tv->tv_usec, since that might break usages other than ls.c.
74035         Instead, we'll leave ls.c alone.  This undoes today's patch
74036         by Bruno.  Add a compile-time warning for 1s-clock resolution;
74037         we've never observed the problem but might as well keep the
74038         canary.
74039         * lib/nanosleep.c: Include timespec.h first, for interface check.
74040         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
74041         now assume the sys_time module.
74042         * lib/tempname.c: Likewise.
74043         * lib/timespec.h: Likewise.
74044         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
74045         needed.
74046         * lib/strftime.c: Likewise.
74047         * lib/timespec.h: Likewise.
74048         * lib/posixtm.c: Include posixtm.h first, for interface check.
74049         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
74050         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
74051         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
74052         * lib/sys_time_.h: New file.
74053         * lib/timespec.h (struct timespec): Use long int, not long.
74054         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
74055         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
74056         Remove obsolescent call to AC_HEADER_TIME.
74057         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
74058         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74059         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
74060         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
74061         Likewise.
74062         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
74063         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
74064         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
74065         into the sys_time module.  Check for gettimeofday just once.
74066         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
74067         for gettimeofday signature to just check the signature.  Merely
74068         compile it, since linking doesn't test signature.  Improve test for
74069         whether gettimeofday.o is actually needed.
74070         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
74071         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
74072         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
74073         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74074         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
74075         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
74076         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
74077         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
74078         than worrying about sys/time.h.
74079         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74080         Don't bother worrying about TIME_WITH_SYS_TIME.
74081         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
74082         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
74083         * m4/sys_time_h.m4: New file.
74084         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
74085         Don't include sys/time.h.  Return from main rather than exiting.
74086         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
74087         all uses changed.
74088         * modules/gethrxtime (Depends-on): Add sys_time.
74089         * modules/gettime (Depends-on): Likewise.
74090         * modules/gettimeofday (Depends-on): Likewise.
74091         * modules/nanosleep (Depends-on): Likewise.
74092         * modules/settime (Depends-on): Likewise.
74093         * modules/tempname (Depends-on): Likewise.
74094         * modules/utimens (Depends-on): Likewise.
74095         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
74096         (Include): Change back to <sys/time.h>.
74097         (Maintainer): Add self.
74098         * modules/sys_time: New file.
74099         * modules/tempname (Depends-on): Add gettimeofday.
74100         * tests/test-gettimeofday.c: Include <sys/time.h>
74101         rather than gettimeofday.h.
74102
74103 2007-01-17  Bruno Haible  <bruno@clisp.org>
74104
74105         * gnulib-tool (func_get_license): Revert last patch. Instead, let
74106         the license default to GPL.
74107         (func_create_testdir): Don't complain if a module is LGPL and its
74108         tests module depends on GPLed modules.
74109
74110 2007-01-17  Bruno Haible  <bruno@clisp.org>
74111
74112         * lib/gettimeofday.c (gettimeofday): Add code for the case
74113         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
74114         maximum possible value for tv->tv_usec, rather than the minimum one.
74115
74116 2005-10-08  Martin Lambers  <marlam@marlam.de>
74117 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74118 2007-01-16  Bruno Haible  <bruno@clisp.org>
74119
74120         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
74121         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
74122         gl_FUNC_GETTIMEOFDAY.
74123         (Include): Add gettimeofday.h.
74124         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
74125         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
74126         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
74127         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
74128         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
74129         * lib/gettimeofday.h: New file.
74130         * lib/gettimeofday.c: Include <sys/timeb.h>.
74131         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
74132         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
74133         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
74134         fall back on time().
74135
74136         * tests/test-gettimeofday.c: New file.
74137         * modules/gettimeofday-tests: New file.
74138
74139 2007-01-16  Eric Blake  <ebb9@byu.net>
74140
74141         * modules/fnmatch (Depends-on): Depend on wchar.
74142         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
74143         * m4/fnmatch.m4: Likewise.
74144         * modules/mbchar (Makefile.am): Assume <wchar.h>.
74145         * m4/mbchar.m4: Likewise.
74146         * modules/mbswidth (Depends-on): Depend on wchar.
74147         * lib/mbswidth.c: Assume <wchar.h>.
74148         * m4/mbswidth.m4: Likewise.
74149         * modules/quotearg (Depends-on): Depend on wchar.
74150         * lib/quotearg.c: Assume <wchar.h>.
74151         * m4/quotearg.m4: Likewise.
74152         * modules/regex (Depends-on): Depend on wchar.
74153         * lib/regex_internal.h: Assume <wchar.h>.
74154         * m4/regex.m4: Likewise.
74155         * modules/stdint (Depends-on): Depend on wchar.
74156         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
74157         * m4/stdint.m4: Likewise.
74158         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
74159         * modules/strftime (Depends-on): Depend on wchar.
74160         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
74161         * modules/strtol (Depends-on): Depend on wchar.
74162         * lib/strtol.c: Assume <wchar.h>.
74163         * modules/wcwidth (Depends-on): Depend on wchar.
74164         * lib/wcwidth.h: Assume <wchar.h>.
74165         * m4/wcwidth.m4: Likewise.
74166
74167 2007-01-16  Bruno Haible  <bruno@clisp.org>
74168
74169         * modules/csharpexec-script: New, created from...
74170         * modules/csharpexec: ... this.
74171
74172 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
74173
74174         * modules/javaexec-script: New, created from...
74175         * modules/javaexec: ... this.
74176
74177 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74178
74179         * modules/poll (Dependencies): Add sys_select.
74180
74181 2007-01-15  Jim Meyering  <jim@meyering.net>
74182
74183         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
74184         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
74185         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
74186         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
74187
74188 2007-01-15  Bruno Haible  <bruno@clisp.org>
74189
74190         * modules/striconveh: New file.
74191         * lib/striconveh.h: New file.
74192         * lib/striconveh.c: New file.
74193         * MODULES.html.sh (Internationalization functions): Add striconveh.
74194
74195         * modules/striconveh-tests: New file.
74196         * tests/test-striconveh.c: New file.
74197
74198 2007-01-15  Bruno Haible  <bruno@clisp.org>
74199
74200         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
74201         not from GNU libiconv or GNU libc.
74202
74203 2007-01-15  Bruno Haible  <bruno@clisp.org>
74204
74205         * doc/gnulib-intro.texi (Copyright): Explain the different license
74206         terms for module descriptions, autoconf macros, tests, documentation.
74207
74208 2007-01-14  Bruno Haible  <bruno@clisp.org>
74209
74210         * modules/striconv-tests: New file.
74211         * tests/test-striconv.c: New file.
74212
74213 2007-01-14  Bruno Haible  <bruno@clisp.org>
74214
74215         * modules/iconv-tests: New file.
74216         * tests/test-iconv.c: New file.
74217
74218 2007-01-14  Bruno Haible  <bruno@clisp.org>
74219
74220         * gnulib-tool (func_get_license): For test modules, use the license of
74221         the main module.
74222
74223 2007-01-14  Bruno Haible  <bruno@clisp.org>
74224
74225         * modules/iconv (Include): Clarify that <iconv.h> can only be included
74226         if iconv is found to exist.
74227
74228 2007-01-14  Bruno Haible  <bruno@clisp.org>
74229
74230         * modules/c-ctype-tests: New file.
74231         * tests/test-c-ctype.c: New file.
74232
74233 2007-01-14  Bruno Haible  <bruno@clisp.org>
74234
74235         * modules/binary-io-tests: New file.
74236         * tests/test-binary-io.sh: New file.
74237         * tests/test-binary-io.c: New file.
74238
74239 2007-01-14  Bruno Haible  <bruno@clisp.org>
74240
74241         * modules/array-oset-tests: New file.
74242         * tests/test-array_oset.c: New file.
74243
74244 2007-01-14  Bruno Haible  <bruno@clisp.org>
74245
74246         * modules/array-list-tests: New file.
74247         * tests/test-array_list.c: New file.
74248
74249 2007-01-14  Bruno Haible  <bruno@clisp.org>
74250
74251         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
74252         and make.
74253         Reported by Simon Josefsson in
74254         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
74255
74256 2007-01-14  Bruno Haible  <bruno@clisp.org>
74257
74258         * modules/allocsa-tests: New file.
74259         * tests/test-allocsa.c: New file.
74260
74261 2007-01-14  Bruno Haible  <bruno@clisp.org>
74262
74263         * modules/fchdir (Depends-on): Add absolute-header.
74264         * modules/unistd (Depends-on): Likewise.
74265
74266 2006-12-30  Bruno Haible  <bruno@clisp.org>
74267
74268         * modules/fchdir: New file.
74269         * modules/unistd (Files): Add lib/unistd_.h.
74270         (Makefile.am): Generate unistd.h from unistd_.h.
74271         * lib/fchdir.c: New file.
74272         * lib/dirent_.h: New file.
74273         * lib/unistd_.h: New file.
74274         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
74275         * m4/fchdir.m4: New file.
74276         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
74277         (gl_HEADER_UNISTD): Invoke it.
74278         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
74279         function.
74280         * lib/backupfile.c (opendir, closedir): Undefine.
74281         * lib/chown.c (open, close): Undefine.
74282         * lib/clean-temp.c (open, close): Undefine.
74283         * lib/copy-file.c (open, close): Undefine.
74284         * lib/execute.c (open, close): Undefine.
74285         * lib/fsusage.c (open, close): Undefine.
74286         * lib/gc-gnulib.c (open, close): Undefine.
74287         * lib/getcwd.c (opendir, closedir): Undefine.
74288         * lib/glob.c (opendir, closedir): Undefine.
74289         * lib/javacomp.c (open, close): Undefine.
74290         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
74291         * lib/openat-proc.c (open, close): Undefine.
74292         * lib/pagealign_alloc.c (open, close): Undefine.
74293         * lib/pipe.c (open, close): Undefine.
74294         * lib/progreloc.c (open, close): Undefine.
74295         * lib/savedir.c (opendir, closedir): Undefine.
74296         * lib/utime.c (open, close): Undefine.
74297         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
74298
74299 2007-01-10  Bruno Haible  <bruno@clisp.org>
74300
74301         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
74302
74303 2007-01-12  Eric Blake  <ebb9@byu.net>
74304
74305         Provide a robust <wchar.h>.  Further simplifications are now
74306         possible in other modules, but not included here.
74307         * modules/wchar: New module.
74308         * m4/wchar.m4: New file.
74309         * lib/wchar_.h: Likewise.
74310         * modules/mbchar (Depends-on): Depend on wchar, as the first use
74311         of the new module.
74312         * MODULES.html.sh (Extended multibyte and wide character utilities):
74313         New section.
74314
74315 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
74316
74317         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
74318         to a reasonable default for memory allocation.
74319         (xreadlink): Don't allocate a huge buffer, to work around a buggy
74320         file system that reports garbage st_size values for symlinks.
74321         Problem reported by Liyang Hu.
74322
74323 2007-01-11  Simon Josefsson  <simon@josefsson.org>
74324
74325         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
74326         Emacs .#* auto-save files).
74327
74328 2007-01-11  Bruno Haible  <bruno@clisp.org>
74329
74330         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
74331         directory.
74332
74333 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
74334
74335         Use @...@ consistently in lib/wctype_.h.
74336         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
74337         on it being set to 1 or 0.
74338         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
74339         go back to AC_SUBSTing it.
74340         * modules/wctype (Makefile.am): Undo previous change.
74341
74342 2007-01-10  Eric Blake  <ebb9@byu.net>
74343
74344         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
74345         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
74346         * modules/wctype (Makefile.am): Likewise.
74347         Reported by Chris McGuire.
74348
74349 2007-01-10  Jim Meyering  <jim@meyering.net>
74350
74351         fts.c: a small readability/maintainability improvement
74352         * lib/fts.c (fts_read): Make this code slightly more readable and
74353         maintainable by hoisting the "sp->fts_cur = p" assignments to
74354         immediately follow the statements that set P.  Derived from
74355         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
74356
74357 2007-01-10  Eric Blake  <ebb9@byu.net>
74358
74359         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
74360         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
74361         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74362         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
74363         Reported by Chris McGuire.
74364
74365 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74366
74367         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
74368         in sed script.
74369
74370 2007-01-09  Bruno Haible  <bruno@clisp.org>
74371
74372         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
74373         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
74374         variables.
74375         (func_module): Use them.
74376
74377 2007-01-09  Bruno Haible  <bruno@clisp.org>
74378
74379         * modules/unistr/base: New file.
74380         * lib/unistr.h: New file.
74381
74382         * modules/unistr/u8-to-u16: New file.
74383         * lib/unistr/u8-to-u16.c: New file.
74384
74385         * modules/unistr/u8-to-u32: New file.
74386         * lib/unistr/u8-to-u32.c: New file.
74387
74388         * modules/unistr/u16-to-u8: New file.
74389         * lib/unistr/u16-to-u8.c: New file.
74390
74391         * modules/unistr/u16-to-u32: New file.
74392         * lib/unistr/u16-to-u32.c: New file.
74393
74394         * modules/unistr/u32-to-u8: New file.
74395         * lib/unistr/u32-to-u8.c: New file.
74396
74397         * modules/unistr/u32-to-u16: New file.
74398         * lib/unistr/u32-to-u16.c: New file.
74399
74400         * modules/unistr/u8-check: New file.
74401         * modules/unistr/u16-check: New file.
74402         * modules/unistr/u32-check: New file.
74403         * lib/unistr/u8-check.c: New file.
74404         * lib/unistr/u16-check.c: New file.
74405         * lib/unistr/u32-check.c: New file.
74406
74407         * modules/unistr/u8-chr: New file.
74408         * modules/unistr/u16-chr: New file.
74409         * modules/unistr/u32-chr: New file.
74410         * lib/unistr/u8-chr.c: New file.
74411         * lib/unistr/u16-chr.c: New file.
74412         * lib/unistr/u32-chr.c: New file.
74413
74414         * modules/unistr/u8-cmp: New file.
74415         * modules/unistr/u16-cmp: New file.
74416         * modules/unistr/u32-cmp: New file.
74417         * lib/unistr/u8-cmp.c: New file.
74418         * lib/unistr/u16-cmp.c: New file.
74419         * lib/unistr/u32-cmp.c: New file.
74420
74421         * modules/unistr/u8-cpy: New file.
74422         * modules/unistr/u16-cpy: New file.
74423         * modules/unistr/u32-cpy: New file.
74424         * lib/unistr/u8-cpy.c: New file.
74425         * lib/unistr/u16-cpy.c: New file.
74426         * lib/unistr/u32-cpy.c: New file.
74427         * lib/unistr/u-cpy.h: New file.
74428
74429         * modules/unistr/u8-cpy-alloc: New file.
74430         * modules/unistr/u16-cpy-alloc: New file.
74431         * modules/unistr/u32-cpy-alloc: New file.
74432         * lib/unistr/u8-cpy-alloc.c: New file.
74433         * lib/unistr/u16-cpy-alloc.c: New file.
74434         * lib/unistr/u32-cpy-alloc.c: New file.
74435         * lib/unistr/u-cpy-alloc.h: New file.
74436
74437         * modules/unistr/u8-endswith: New file.
74438         * modules/unistr/u16-endswith: New file.
74439         * modules/unistr/u32-endswith: New file.
74440         * lib/unistr/u8-endswith.c: New file.
74441         * lib/unistr/u16-endswith.c: New file.
74442         * lib/unistr/u32-endswith.c: New file.
74443         * lib/unistr/u-endswith.h: New file.
74444
74445         * modules/unistr/u8-mblen: New file.
74446         * modules/unistr/u16-mblen: New file.
74447         * modules/unistr/u32-mblen: New file.
74448         * lib/unistr/u8-mblen.c: New file.
74449         * lib/unistr/u16-mblen.c: New file.
74450         * lib/unistr/u32-mblen.c: New file.
74451
74452         * modules/unistr/u8-mbtouc: New file.
74453         * modules/unistr/u16-mbtouc: New file.
74454         * modules/unistr/u32-mbtouc: New file.
74455         * lib/unistr/u8-mbtouc.c: New file.
74456         * lib/unistr/u16-mbtouc.c: New file.
74457         * lib/unistr/u32-mbtouc.c: New file.
74458
74459         * modules/unistr/u8-mbtouc-safe: New file.
74460         * modules/unistr/u16-mbtouc-safe: New file.
74461         * modules/unistr/u32-mbtouc-safe: New file.
74462         * lib/unistr/u8-mbtouc-safe.c: New file.
74463         * lib/unistr/u16-mbtouc-safe.c: New file.
74464         * lib/unistr/u32-mbtouc-safe.c: New file.
74465
74466         * modules/unistr/u8-move: New file.
74467         * modules/unistr/u16-move: New file.
74468         * modules/unistr/u32-move: New file.
74469         * lib/unistr/u8-move.c: New file.
74470         * lib/unistr/u16-move.c: New file.
74471         * lib/unistr/u32-move.c: New file.
74472         * lib/unistr/u-move.h: New file.
74473
74474         * modules/unistr/u8-next: New file.
74475         * modules/unistr/u16-next: New file.
74476         * modules/unistr/u32-next: New file.
74477         * lib/unistr/u8-next.c: New file.
74478         * lib/unistr/u16-next.c: New file.
74479         * lib/unistr/u32-next.c: New file.
74480
74481         * modules/unistr/u8-prev: New file.
74482         * modules/unistr/u16-prev: New file.
74483         * modules/unistr/u32-prev: New file.
74484         * lib/unistr/u8-prev.c: New file.
74485         * lib/unistr/u16-prev.c: New file.
74486         * lib/unistr/u32-prev.c: New file.
74487
74488         * modules/unistr/u8-set: New file.
74489         * modules/unistr/u16-set: New file.
74490         * modules/unistr/u32-set: New file.
74491         * lib/unistr/u8-set.c: New file.
74492         * lib/unistr/u16-set.c: New file.
74493         * lib/unistr/u32-set.c: New file.
74494         * lib/unistr/u-set.h: New file.
74495
74496         * modules/unistr/u8-startswith: New file.
74497         * modules/unistr/u16-startswith: New file.
74498         * modules/unistr/u32-startswith: New file.
74499         * lib/unistr/u8-startswith.c: New file.
74500         * lib/unistr/u16-startswith.c: New file.
74501         * lib/unistr/u32-startswith.c: New file.
74502         * lib/unistr/u-startswith.h: New file.
74503
74504         * modules/unistr/u8-stpcpy: New file.
74505         * modules/unistr/u16-stpcpy: New file.
74506         * modules/unistr/u32-stpcpy: New file.
74507         * lib/unistr/u8-stpcpy.c: New file.
74508         * lib/unistr/u16-stpcpy.c: New file.
74509         * lib/unistr/u32-stpcpy.c: New file.
74510         * lib/unistr/u-stpcpy.h: New file.
74511
74512         * modules/unistr/u8-stpncpy: New file.
74513         * modules/unistr/u16-stpncpy: New file.
74514         * modules/unistr/u32-stpncpy: New file.
74515         * lib/unistr/u8-stpncpy.c: New file.
74516         * lib/unistr/u16-stpncpy.c: New file.
74517         * lib/unistr/u32-stpncpy.c: New file.
74518         * lib/unistr/u-stpncpy.h: New file.
74519
74520         * modules/unistr/u8-strcat: New file.
74521         * modules/unistr/u16-strcat: New file.
74522         * modules/unistr/u32-strcat: New file.
74523         * lib/unistr/u8-strcat.c: New file.
74524         * lib/unistr/u16-strcat.c: New file.
74525         * lib/unistr/u32-strcat.c: New file.
74526         * lib/unistr/u-strcat.h: New file.
74527
74528         * modules/unistr/u8-strchr: New file.
74529         * modules/unistr/u16-strchr: New file.
74530         * modules/unistr/u32-strchr: New file.
74531         * lib/unistr/u8-strchr.c: New file.
74532         * lib/unistr/u16-strchr.c: New file.
74533         * lib/unistr/u32-strchr.c: New file.
74534
74535         * modules/unistr/u8-strcmp: New file.
74536         * modules/unistr/u16-strcmp: New file.
74537         * modules/unistr/u32-strcmp: New file.
74538         * lib/unistr/u8-strcmp.c: New file.
74539         * lib/unistr/u16-strcmp.c: New file.
74540         * lib/unistr/u32-strcmp.c: New file.
74541
74542         * modules/unistr/u8-strcpy: New file.
74543         * modules/unistr/u16-strcpy: New file.
74544         * modules/unistr/u32-strcpy: New file.
74545         * lib/unistr/u8-strcpy.c: New file.
74546         * lib/unistr/u16-strcpy.c: New file.
74547         * lib/unistr/u32-strcpy.c: New file.
74548         * lib/unistr/u-strcpy.h: New file.
74549
74550         * modules/unistr/u8-strcspn: New file.
74551         * modules/unistr/u16-strcspn: New file.
74552         * modules/unistr/u32-strcspn: New file.
74553         * lib/unistr/u8-strcspn.c: New file.
74554         * lib/unistr/u16-strcspn.c: New file.
74555         * lib/unistr/u32-strcspn.c: New file.
74556         * lib/unistr/u-strcspn.h: New file.
74557
74558         * modules/unistr/u8-strdup: New file.
74559         * modules/unistr/u16-strdup: New file.
74560         * modules/unistr/u32-strdup: New file.
74561         * lib/unistr/u8-strdup.c: New file.
74562         * lib/unistr/u16-strdup.c: New file.
74563         * lib/unistr/u32-strdup.c: New file.
74564         * lib/unistr/u-strdup.h: New file.
74565
74566         * modules/unistr/u8-strlen: New file.
74567         * modules/unistr/u16-strlen: New file.
74568         * modules/unistr/u32-strlen: New file.
74569         * lib/unistr/u8-strlen.c: New file.
74570         * lib/unistr/u16-strlen.c: New file.
74571         * lib/unistr/u32-strlen.c: New file.
74572         * lib/unistr/u-strlen.h: New file.
74573
74574         * modules/unistr/u8-strmblen: New file.
74575         * modules/unistr/u16-strmblen: New file.
74576         * modules/unistr/u32-strmblen: New file.
74577         * lib/unistr/u8-strmblen.c: New file.
74578         * lib/unistr/u16-strmblen.c: New file.
74579         * lib/unistr/u32-strmblen.c: New file.
74580
74581         * modules/unistr/u8-strmbtouc: New file.
74582         * modules/unistr/u16-strmbtouc: New file.
74583         * modules/unistr/u32-strmbtouc: New file.
74584         * lib/unistr/u8-strmbtouc.c: New file.
74585         * lib/unistr/u16-strmbtouc.c: New file.
74586         * lib/unistr/u32-strmbtouc.c: New file.
74587
74588         * modules/unistr/u8-strncat: New file.
74589         * modules/unistr/u16-strncat: New file.
74590         * modules/unistr/u32-strncat: New file.
74591         * lib/unistr/u8-strncat.c: New file.
74592         * lib/unistr/u16-strncat.c: New file.
74593         * lib/unistr/u32-strncat.c: New file.
74594         * lib/unistr/u-strncat.h: New file.
74595
74596         * modules/unistr/u8-strncmp: New file.
74597         * modules/unistr/u16-strncmp: New file.
74598         * modules/unistr/u32-strncmp: New file.
74599         * lib/unistr/u8-strncmp.c: New file.
74600         * lib/unistr/u16-strncmp.c: New file.
74601         * lib/unistr/u32-strncmp.c: New file.
74602
74603         * modules/unistr/u8-strncpy: New file.
74604         * modules/unistr/u16-strncpy: New file.
74605         * modules/unistr/u32-strncpy: New file.
74606         * lib/unistr/u8-strncpy.c: New file.
74607         * lib/unistr/u16-strncpy.c: New file.
74608         * lib/unistr/u32-strncpy.c: New file.
74609         * lib/unistr/u-strncpy.h: New file.
74610
74611         * modules/unistr/u8-strnlen: New file.
74612         * modules/unistr/u16-strnlen: New file.
74613         * modules/unistr/u32-strnlen: New file.
74614         * lib/unistr/u8-strnlen.c: New file.
74615         * lib/unistr/u16-strnlen.c: New file.
74616         * lib/unistr/u32-strnlen.c: New file.
74617         * lib/unistr/u-strnlen.h: New file.
74618
74619         * modules/unistr/u8-strpbrk: New file.
74620         * modules/unistr/u16-strpbrk: New file.
74621         * modules/unistr/u32-strpbrk: New file.
74622         * lib/unistr/u8-strpbrk.c: New file.
74623         * lib/unistr/u16-strpbrk.c: New file.
74624         * lib/unistr/u32-strpbrk.c: New file.
74625         * lib/unistr/u-strpbrk.h: New file.
74626
74627         * modules/unistr/u8-strrchr: New file.
74628         * modules/unistr/u16-strrchr: New file.
74629         * modules/unistr/u32-strrchr: New file.
74630         * lib/unistr/u8-strrchr.c: New file.
74631         * lib/unistr/u16-strrchr.c: New file.
74632         * lib/unistr/u32-strrchr.c: New file.
74633
74634         * modules/unistr/u8-strspn: New file.
74635         * modules/unistr/u16-strspn: New file.
74636         * modules/unistr/u32-strspn: New file.
74637         * lib/unistr/u8-strspn.c: New file.
74638         * lib/unistr/u16-strspn.c: New file.
74639         * lib/unistr/u32-strspn.c: New file.
74640         * lib/unistr/u-strspn.h: New file.
74641
74642         * modules/unistr/u8-strstr: New file.
74643         * modules/unistr/u16-strstr: New file.
74644         * modules/unistr/u32-strstr: New file.
74645         * lib/unistr/u8-strstr.c: New file.
74646         * lib/unistr/u16-strstr.c: New file.
74647         * lib/unistr/u32-strstr.c: New file.
74648         * lib/unistr/u-strstr.h: New file.
74649
74650         * modules/unistr/u8-strtok: New file.
74651         * modules/unistr/u16-strtok: New file.
74652         * modules/unistr/u32-strtok: New file.
74653         * lib/unistr/u8-strtok.c: New file.
74654         * lib/unistr/u16-strtok.c: New file.
74655         * lib/unistr/u32-strtok.c: New file.
74656         * lib/unistr/u-strtok.h: New file.
74657
74658         * modules/unistr/u8-uctomb: New file.
74659         * modules/unistr/u16-uctomb: New file.
74660         * modules/unistr/u32-uctomb: New file.
74661         * lib/unistr/u8-uctomb.c: New file.
74662         * lib/unistr/u16-uctomb.c: New file.
74663         * lib/unistr/u32-uctomb.c: New file.
74664
74665         * MODULES.html.sh (Unicode string functions): Add the new modules.
74666
74667 2007-01-08  Bruno Haible  <bruno@clisp.org>
74668
74669         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
74670         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
74671         subdirectories.
74672
74673 2007-01-08  Karl Berry  <karl@gnu.org>
74674
74675         * doc/error.texi: mention that main() fns must set program_name
74676         when progname is used.
74677
74678 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
74679
74680         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
74681         WCTYPE_H is empty, for the benefit of builds from non-distclean
74682         directories.  Problem reported by Eric Blake in
74683         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
74684
74685 2007-01-08  Bruno Haible  <bruno@clisp.org>
74686
74687         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
74688         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
74689         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
74690         PROVIDE_CANONICALIZE_FILENAME_MODE.
74691         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
74692
74693 2007-01-08  Bruno Haible  <bruno@clisp.org>
74694
74695         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
74696         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
74697         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
74698         * lib/fts.c: Likewise.
74699         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
74700
74701 2006-12-25  Bruno Haible  <bruno@clisp.org>
74702
74703         * modules/utf8-ucs4-safe: New file.
74704         * lib/utf8-ucs4-safe.h: New file.
74705         * lib/unistr/utf8-ucs4-safe.c: New file.
74706
74707         * modules/utf16-ucs4-safe: New file.
74708         * lib/utf16-ucs4-safe.h: New file.
74709         * lib/unistr/utf16-ucs4-safe.c: New file.
74710
74711         * MODULES.html.sh (Unicode string functions): Add the new modules.
74712
74713 2007-01-08  Bruno Haible  <bruno@clisp.org>
74714
74715         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
74716         (Depends-on): Add unitypes.
74717         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74718         (u8_mbtouc_aux): Move out to separate file.
74719         (u8_mbtouc): Use ucs4_t, uint8_t types.
74720         * lib/unistr/utf8-ucs4.c: New file.
74721
74722         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
74723         (Depends-on): Add unitypes.
74724         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
74725         (u16_mbtouc_aux): Move out to separate file.
74726         (u16_mbtouc): Use ucs4_t, uint16_t types.
74727         * lib/unistr/utf16-ucs4.c: New file.
74728
74729         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
74730         (Depends-on): Add unitypes.
74731         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
74732         (u8_uctomb_aux): Move out to separate file.
74733         (u8_uctomb): Use ucs4_t, uint8_t types.
74734         * lib/unistr/ucs4-utf8.c: New file.
74735
74736         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
74737         (Depends-on): Add unitypes.
74738         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
74739         (u16_uctomb_aux): Move out to separate file.
74740         (u16_uctomb): Use ucs4_t, uint16_t types.
74741         * lib/unistr/ucs4-utf16.c: New file.
74742
74743 2006-12-25  Bruno Haible  <bruno@clisp.org>
74744
74745         * modules/unitypes: New file.
74746         * lib/unitypes.h: New file.
74747         * MODULES.html.sh (func_all_modules): New section "Unicode string
74748         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
74749         this section. Add unitypes.
74750
74751 2007-01-08  Bruno Haible  <bruno@clisp.org>
74752
74753         Avoid variable names that conflict with those from libtool.
74754         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
74755         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
74756         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
74757         library_names_spec to acl_library_names_spec, hardcode_* to
74758         acl_hardcode_*.
74759         Reported by Ralf Wildenhues.
74760
74761 2007-01-08  Bruno Haible  <bruno@clisp.org>
74762
74763         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
74764         definition.
74765         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
74766         definition.
74767         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
74768         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
74769         definition.
74770         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
74771         definition.
74772         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
74773         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
74774         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
74775         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
74776         definition.
74777         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
74778         definition.
74779         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
74780         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
74781         GC_USE_<algorithm>.
74782         * lib/gc-libgcrypt.c: Likewise.
74783         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
74784         * modules/gc-arctwo (configure.ac): Likewise.
74785         * modules/gc-des (configure.ac): Likewise.
74786         * modules/gc-hmac-md5 (configure.ac): Likewise.
74787         * modules/gc-hmac-sha1 (configure.ac): Likewise.
74788         * modules/gc-md2 (configure.ac): Likewise.
74789         * modules/gc-md4 (configure.ac): Likewise.
74790         * modules/gc-md5 (configure.ac): Likewise.
74791         * modules/gc-random (configure.ac): Likewise.
74792         * modules/gc-rijndael (configure.ac): Likewise.
74793         * modules/gc-sha1 (configure.ac): Likewise.
74794
74795 2007-01-08  Bruno Haible  <bruno@clisp.org>
74796
74797         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
74798         macro definition.
74799         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
74800         definition.
74801         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
74802         definition.
74803         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
74804         * modules/fcntl-safer (configure.ac): Likewise.
74805         * modules/fopen-safer (configure.ac): Likewise.
74806         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
74807         GNULIB_FWRITEERROR macro definition.
74808
74809 2007-01-08  Bruno Haible  <bruno@clisp.org>
74810
74811         * m4/gnulib-common.m4: New file.
74812         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74813         (func_get_filelist): Add m4/gnulib-common.m4.
74814
74815 2007-01-08  Bruno Haible  <bruno@clisp.org>
74816
74817         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74818         command.
74819
74820 2007-01-08  Jim Meyering  <jim@meyering.net>
74821
74822         Use a more robust test for a "can't happen" condition.
74823         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74824         narrowed the st_size value.  Presuming the "can't happen" condition
74825         is true, that narrowing could conceivably convert an invalid st_size
74826         value into a valid one.  Instead, use a change based on Matthew
74827         Woehlke's original patch.
74828
74829         Slight readability improvement: use an assert-like macro
74830         in place of literal "abort ()" uses.
74831         * lib/fts.c (fts_assert): Define.
74832         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74833         Use this macro instead of a bare 'abort'.
74834
74835 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74836
74837         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74838         simply work around them.
74839         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74840         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74841         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74842         declaring.
74843         Don't bother to define as macros, since the standard doesn't require it.
74844         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74845         longer worry about IRIX 5.3.
74846         (HAVE_WCTYPE_CTMP_BUG): Remove.
74847
74848 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74849
74850         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74851         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74852         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74853         Problems reported by Georg Schwarz for IRIX 5.3.
74854
74855         * gnulib-tool (autoconf_minversion): Take the maximum version number
74856         found, not the minimum.  Problem reported by James Youngman.
74857
74858 2007-01-03  Karl Berry  <karl@gnu.org>
74859
74860         * doc/error.texi: new file, explaining interaction with progname.
74861         * doc/gnulib.texi: include it.  Update copyright.
74862
74863 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74864
74865         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74866         AC_CANONICAL_HOST, to improve autobuild outputs.
74867
74868 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74869             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74870
74871         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74872         sockets, server sockets, and other file descriptors.  Count errors
74873         to compute the return value.  Reorder the code a bit to be easier
74874         to follow.  Don't set event bits that were not requested (except
74875         POLLERR and POLLHUP).
74876
74877 2007-01-01  Bruno Haible  <bruno@clisp.org>
74878
74879         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74880
74881 2007-01-03  Jim Meyering  <jim@meyering.net>
74882
74883         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74884
74885 2007-01-02  Bruno Haible  <bruno@clisp.org>
74886
74887         * modules/settime (Include): Require timespec.h.
74888         * modules/nanosleep (Include): Likewise.
74889
74890 2007-01-01  Bruno Haible  <bruno@clisp.org>
74891
74892         * gnulib-tool (func_emit_copyright_notice): Bump year.
74893         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74894
74895 2007-01-01  Bruno Haible  <bruno@clisp.org>
74896
74897         Improve support for OpenBSD.
74898         * build-aux/config.rpath (libname_spec): Export.
74899         (library_names_spec): New variable. Export.
74900         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74901         library_names_spec from the config.rpath output. Locate shared library
74902         through the name pattern in library_names_spec.
74903
74904 2007-01-01  Eric Blake  <ebb9@byu.net>
74905
74906         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74907
74908 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74909
74910         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74911         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74912         assume the C locale, and avoid an "eval" that could cause trouble.
74913         Problem with SORT reported by Bob Proulx.
74914
74915         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74916         Define.  Trivial patch from Henning Nielsen Lund, originally
74917         sent to bug-grep@gnu.org today.
74918
74919 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74920
74921         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74922         struct stat.  Problem reported by Henning Nielsen Lund.
74923         * lib/acl.c: Include acl.h first, to check interface.  Don't
74924         bother to include sys/types.h and sys/stat.h again.
74925
74926 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74927
74928         Import the following change from libc; problem reported by
74929         Sven Verdoolaege.
74930
74931         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74932
74933         [BZ #1373]
74934         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74935
74936 2006-12-28  Jim Meyering  <jim@meyering.net>
74937
74938         * build-aux/announce-gen: Do not assume that the package
74939         builds any of tar.gz, tar.bz2, and .xdelta files.
74940         Suggestion from Simon Josefsson.
74941
74942 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74943
74944         * modules/announce-gen: New file.
74945
74946 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74947
74948         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74949         handles its gotchas now.
74950         * lib/mbswidth.c: Likewise.
74951         * lib/wcwidth.h: Likewise.
74952         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74953         and iswcntrl; the wctype module does this stuff now.
74954         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74955         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74956         * modules/mbchar (Depends-on): Add wctype.
74957         * modules/mbswidth (Depends-on): Likewise.
74958         * modules/wcwidth (Depends-on): Likewise.
74959
74960 2006-12-27  Eric Blake  <ebb9@byu.net>
74961
74962         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74963         module uses more than what <wctype.h> is required to provide.
74964
74965 2006-12-26  Eric Blake  <ebb9@byu.net>
74966
74967         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74968
74969 2006-12-26  Eric Blake  <ebb9@byu.net>
74970
74971         * modules/absolute-header: New module.
74972         * modules/fcntl (Depends-on): Depend on it.
74973         * modules/inttypes (Depends-on): Likewise.
74974         * modules/stdint (Depends-on): Likewise.
74975         * modules/sys_stat (Depends-on): Likewise.
74976         * modules/wctype (Depends-on): Likewise.
74977         * MODULES.html.sh (Support for building libraries and
74978         executables): Document it.
74979
74980 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74981
74982         * gnulib-tool (SED): Remove, undoing previous change.
74983         The problem was that it broke coreutils on Solaris, because
74984         "sed --posix" leaked into a makefile.
74985         (sed): New alias, if 'alias' and GNU sed.
74986
74987 2006-12-24  Jim Meyering  <jim@meyering.net>
74988
74989         Work around an fchownat bug in glibc-2.4:
74990         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74991         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74992         in spite of the -P option.
74993         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74994         New macros.
74995         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74996         * modules/openat (Files): Add lib/fchownat.c.
74997         * lib/openat.c (fchownat): Don't define here.  Move to...
74998         * lib/fchownat.c: ...this new file.
74999
75000 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75001
75002         Fix bug reported by Bruno Haible in
75003         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
75004         where quotearg.c didn't compile on Mac OS X 10.2 because it
75005         lacks <wchar.h> and wint_t.
75006         * lib/wctype_.h (__wctype_wint_t): New type.
75007         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
75008         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
75009         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
75010         Arg is now of type __wctype_wint_t, not wint_t.
75011         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
75012         substitute HAVE_WINT_T.
75013         * modules/wctype (Files): Add m4/wint_t.m4.
75014         (wctype.h): Substitute HAVE_WINT_T.
75015
75016 2006-12-23  Bruno Haible  <bruno@clisp.org>
75017
75018         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
75019
75020 2006-12-23  Bruno Haible  <bruno@clisp.org>
75021
75022         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
75023         S_ISLNK.
75024         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
75025         mingw.
75026
75027 2006-12-22  Bruno Haible  <bruno@clisp.org>
75028
75029         * lib/copy-file.c: Include acl.h.
75030         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
75031         Close the file descriptors only after being done with copy_acl.
75032         * modules/copy-file (Depends-on): Add acl.
75033
75034 2006-12-22  Bruno Haible  <bruno@clisp.org>
75035
75036         * gnulib-tool (SED): New variable.
75037         Use $SED instead of sed everywhere.
75038
75039 2006-12-22  Bruno Haible  <bruno@clisp.org>
75040
75041         * modules/no-c++: New file.
75042         * m4/no-c++.m4: New file.
75043         * MODULES.html.sh (Support for building libraries and executables):
75044         Add no-c++.
75045
75046 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
75047
75048         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75049         Include <limits.h>, and use its INT_MAX to rewrite the
75050         j loop so that it does not overflow 'int'.  Problem reported by
75051         Ralf Wildenhues in
75052         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
75053         Play it safe by shifting left by 1 rather than multiplying by 2,
75054         as GCC is less likely to optimize this away when the value
75055         is signed (when it assumes overflow leads to undefined behavior).
75056         Also, don't assume time_t uses two's complement.
75057
75058 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
75059
75060         * MODULES.html.sh: New module wctype.
75061         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
75062         * lib/fnmatch.c: Don't bother to include <wchar.h> before
75063         <wctype.h>, since the new wctype module should fix this.
75064         * lib/quotearg.c: Include <wctype.h> unconditionally, since
75065         the wctype module should arrange for it.
75066         * lib/regex_internal.h: Likewise.
75067         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
75068         since the wctype module should handle this now.
75069         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
75070         * modules/fnmatch (Depends-on): Add wctype.
75071         * modules/quotearg (Depends-on): Likewise.
75072         * modules/regex (Depends-on): Likewise.
75073
75074 2006-12-19  Bruno Haible  <bruno@clisp.org>
75075
75076         * lib/strdup.h [C++]: Wrap definitions in extern "C".
75077         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
75078
75079 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75080
75081         * modules/savewd (Depends-on): Fix dependency on fcntl.
75082
75083 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75084
75085         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
75086         conforms to C99, rather than relying on the user's environment
75087         setting of STDINT_H.
75088
75089 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
75090         and Eric Blake  <ebb9@byu.net>
75091
75092         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
75093         This is more consistent with the other defines here.
75094         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
75095         Port to z/OS.  Problem reported by Paul Gilmartin.
75096         Change local vars to use gl_ prefix rather than ac_.
75097         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
75098         with other defines.
75099         * modules/double-slash-root: New module.
75100         * modules/dirname (Files): Remove m4/double-slash-root.m4.
75101         (Depends-on): Add double-slash-root.
75102         * MODULES.html.sh (File system functions): Mention new module.
75103
75104 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
75105
75106         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
75107         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
75108         This is for the benefit of gzip, which doesn't do i18n.
75109
75110 2006-12-12  Jim Meyering  <jim@meyering.net>
75111
75112         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
75113         Reported by Andreas Schwab <schwab@suse.de>.
75114
75115 2006-12-12  Bruno Haible  <bruno@clisp.org>
75116
75117         Merge these changes.
75118         2006-09-05  Bruno Haible  <bruno@clisp.org>
75119         * lib/iconvme.c (iconv_string): No need to save and restore errno when
75120         iconv_alloc succeeded.
75121         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
75122         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
75123         test for " && dest " at the end - dest is always != NULL there. Call
75124         iconv with 4xNULL arguments initially, to reset the state. Call iconv
75125         with 2xNULL arguments, also to flush the state storage. Handle the
75126         IRIX iconv behaviour. Realloc the final result, to throw away unused
75127         memory.
75128
75129 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
75130
75131         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
75132         and fchmodat unconditionally, since glibc 2.4 has them.
75133         Problem reported by Arkadiusz Miskiewicz.
75134
75135 2006-12-10  Bruno Haible  <bruno@clisp.org>
75136
75137         * gnulib-tool (func_import): Show the include files only for those
75138         modules that are copied and specified.
75139         Reported by Karl Berry.
75140
75141 2006-12-08  Jim Meyering  <jim@meyering.net>
75142
75143         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
75144         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
75145
75146         * build-aux/announce-gen: Add two new options, both optional:
75147         --bootstrap-tools=TOOL_LIST
75148               a comma-separated list of tools, e.g.,
75149               autoconf,automake,bison,gnulib
75150         --gnulib-snapshot-date=DATE
75151               if gnulib is in the bootstrap tool list,
75152               then report this as the snapshot date.
75153               If not specified, use the current date/time.
75154               If you specify a date here, be sure it's UTC.
75155
75156 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75157
75158         * tests/test-argp-2.sh: Fix test to match actual output.
75159         (func_compare): Fix sed script to be portable.
75160
75161 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
75162
75163         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
75164         workaround for this case.  It is not autoconfigured now; offhand
75165         it's hard to see how to autoconfigure it.
75166
75167 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
75168
75169         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
75170         a directory that is about to be chowned.  Such a directory's
75171         initial file permissions should permit the owner only and this
75172         should not be changed until after the chown, since the group and
75173         other bits would be incorrect if they granted permission before
75174         the chown.
75175
75176         Fix porting problem for iswctype reported by Georg Schwarz in:
75177         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
75178         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
75179         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
75180         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
75181         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
75182
75183 2006-12-03  Jim Meyering  <jim@meyering.net>
75184
75185         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
75186         p->fts_statp may not yet be defined.
75187         (fts_read): Instead, set it in the caller, once p->fts_statp is
75188         sure to be defined, and corresponds to a top-level directory.
75189         This bug made du -x fail.  Here's the coreutils test case:
75190         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
75191         Reported by Mike Frysinger.
75192
75193 2006-12-01  Jim Meyering  <jim@meyering.net>
75194
75195         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
75196         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
75197         Reported by Simon Josefsson.
75198
75199 2006-11-30  Jim Meyering  <jim@meyering.net>
75200
75201         * m4/warning.m4: Use the all-permissive copyright notice
75202         recommended by RMS (rather than LGPL).
75203         * m4/vararrays.m4: Likewise.
75204         * m4/flexmember.m4: Likewise.
75205
75206 2006-11-29  Bruno Haible  <bruno@clisp.org>
75207
75208         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75209         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
75210         using +=.
75211         Reported by Simon Josefsson <simon@josefsson.org>.
75212
75213 2006-11-28  James Youngman <jay@gnu.org>
75214
75215         * README: Advise users that they might find the bug-gnulib@gnu.org
75216         and autotools-announce@gnu.org mailing lists useful.
75217
75218 2006-11-28  Bruno Haible  <bruno@clisp.org>
75219
75220         * m4/ptrdiff_max.m4: Remove file.
75221
75222 2006-11-21  Bruno Haible  <bruno@clisp.org>
75223
75224         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
75225         _AC_COMPUTE_INT.
75226         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75227         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
75228         _AC_COMPUTE_INT.
75229         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75230         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
75231         _AC_COMPUTE_INT.
75232         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75233
75234 2006-11-28  Jim Meyering  <jim@meyering.net>
75235
75236         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
75237         warning from "gcc -Wshadow" about shadowing the builtin.
75238
75239 2006-11-27  Bruno Haible  <bruno@clisp.org>
75240
75241         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
75242         _AC_COMPUTE_INT.
75243         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
75244
75245 2006-11-27  Bruno Haible  <bruno@clisp.org>
75246             Paul Eggert  <eggert@cs.ucla.edu>
75247
75248         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
75249
75250 2006-11-26  Bruno Haible  <bruno@clisp.org>
75251
75252         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75253         noinst_LTLIBRARIES.
75254
75255 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75256             Bruno Haible  <bruno@clisp.org>
75257
75258         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
75259         if compiling with "gcc -ansi".
75260
75261 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75262
75263         Fix some incompatibilities with gcc -ansi -pedantic.
75264         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
75265         if compiling pedantically with GCC, unless it's C99 or later.
75266         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
75267         it mishandles gcc -ansi -pedantic as well.
75268         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
75269         if gcc -pedantic.
75270         * lib/regexec.c (check_node_accept_bytes): Don't use auto
75271         initializers for struct if -pedantic, unless it's C99 or later.
75272
75273 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
75274
75275         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
75276         Don't close an fd more than once. Identical atimes indicate
75277         success, not failure.
75278
75279 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
75280
75281         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
75282
75283 2006-11-23  Jim Meyering  <jim@meyering.net>
75284
75285         * build-aux/announce-gen: New file.  From coreutils.
75286
75287 2006-11-22  Jim Meyering  <jim@meyering.net>
75288
75289         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
75290         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
75291         (fts_read): Use a temporary to narrow the overused st_size member
75292         before using it in a switch statement.  Reported by Matthew Woehlke.
75293
75294         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
75295         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
75296
75297 2006-11-20  Bruno Haible  <bruno@clisp.org>
75298
75299         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
75300         changequote instead of pairs of brackets.
75301         Reported by Andreas Schwab <schwab@suse.de>.
75302
75303 2006-11-21  Jim Meyering  <jim@meyering.net>
75304
75305         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
75306         so as to remain compatible with older compilers.
75307         Patch from Michael Deutschmann.
75308
75309 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75310
75311         * MODULES.html.sh (File system functions): Add openat.
75312
75313         * lib/openat.h (rpl_fstatat): New macro, if
75314         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
75315         (fstatat): Define to rpl_fstatat under the same conditions,
75316         unless COMPILING_FSTATAT.
75317         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
75318         seems to have the bug.
75319         * lib/fstatat.c: New file.
75320         * modules/openat (Files): Add it.
75321
75322 2006-11-20  Bruno Haible  <bruno@clisp.org>
75323
75324         * Makefile: New file.
75325
75326 2006-11-20  Jim Meyering  <jim@meyering.net>
75327
75328         The beginnings of syntax-related checks for gnulib.
75329         * lib/Makefile: New file.
75330         * lib/t-idcache: New script.  Ensure that the two halves of
75331         idcache.c stay in sync.
75332
75333         * lib/idcache.c: Adjust comments in user- and group- portions to
75334         be more accurate, and to be consistent with one another.
75335
75336 2006-11-20  Jim Meyering  <jim@meyering.net>
75337
75338         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
75339         continue using the flexible array member (thus, this module performs
75340         half as many malloc calls), with the addition that...
75341         (getgroup, getuser): Consistently record a non-match via an empty
75342         "name" string, and map an empty string match to a NULL return value.
75343         * modules/idcache (Depends-on): Re-add flexmember.
75344
75345         * lib/idcache.c (getuser): Remove all uses of the register keyword.
75346         (getuidbyname, getgroup, getgidbyname): Likewise.
75347
75348         Use cleaner syntax: NULL rather than 0.
75349         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
75350
75351 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75352
75353         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
75354         It mishandled the case where the group was missing.
75355         Problem reported by Greg Schafer.
75356         * modules/idcache: Likewise.
75357
75358 2006-11-18  Jim Meyering  <jim@meyering.net>
75359
75360         * check-module (%exempt_header): Add exception for some
75361         conditionally-included headers.
75362
75363         * modules/i-ring (Depends-on): Add verify.
75364         (License): Change to LGPL.
75365
75366 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75367
75368         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
75369         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
75370         and inttostr.h.  Use snprintf rather than uinttostr, so that
75371         LGPLed code doesn't depend on GPLed.
75372
75373 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75374
75375         * modules/inline (License): Change from GPL to LGPL.
75376
75377 2006-11-17  Jim Meyering  <jim@meyering.net>
75378
75379         * modules/d-type (License): Switch to LGPL.
75380
75381 2006-11-15  Bruno Haible  <bruno@clisp.org>
75382
75383         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
75384
75385 2006-11-15  Eric Blake  <ebb9@byu.net>
75386
75387         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
75388         the module dependency.
75389
75390 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75391             Bruno Haible  <bruno@clisp.org>
75392
75393         * gnulib-tool (func_create_testdir): Add license consistency check.
75394
75395 2006-11-15  Eric Blake  <ebb9@byu.net>
75396
75397         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
75398         random "(cached)" in configure output.
75399
75400 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75401
75402         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
75403         test for conforming inttypes.h is both announced and cached.
75404
75405         * MODULES.html.sh (seen_modules, seen_files): New variables.
75406         (func_module): Rewrite to use a few less gnulib-tool and sed
75407         invocations.  Avoid a couple of quadratic algorithms for ...
75408         (missed_modules, missed_files): ... these, with ...
75409         (func_append, func_tmpdir): ... these new functions, from
75410         gnulib-tool.  Analogously, install traps for cleanup.
75411
75412         * tests/test-gc.c (main): Remove unused variables.
75413         * tests/test-read-file.c: Include stdlib.h, for 'free'.
75414
75415 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
75416
75417         * modules/inttostr (License): Change to LGPL.
75418
75419 2006-11-14  Eric Blake  <ebb9@byu.net>
75420
75421         * modules/tempname (License): Change to LGPL.
75422
75423 2006-11-14  Eric Blake  <ebb9@byu.net>
75424
75425         * doc/functions.texi (Function Portability): *printf functions on
75426         Cygwin now understand all POSIX size specifiers.
75427
75428 2006-11-14  Bruno Haible  <bruno@clisp.org>
75429
75430         * modules/c-ctype (License): Change to LGPL.
75431
75432 2006-11-12  Bruno Haible  <bruno@clisp.org>
75433
75434         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
75435         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
75436         for GNOME libraries, for which the include files are installed in
75437         subdirectories of $prefix/include.
75438
75439 2006-11-12  Bruno Haible  <bruno@clisp.org>
75440
75441         * m4/lib-link.m4: Require at least autoconf-2.54.
75442         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
75443         name to underscores for the --with option.
75444
75445 2006-11-13  Bruno Haible  <bruno@clisp.org>
75446
75447         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
75448         the tests directory.
75449         Reported by Ralf Wildenhues.
75450
75451 2006-11-13  Bruno Haible  <bruno@clisp.org>
75452
75453         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
75454         (func_emit_initmacro_end): Undo the override here.
75455         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
75456         Works around the famous automake error in coreutils.
75457
75458 2006-11-13  Eric Blake  <ebb9@byu.net>
75459
75460         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
75461         element, not its node.
75462
75463 2006-11-12  Bruno Haible  <bruno@clisp.org>
75464
75465         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
75466         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
75467
75468 2006-11-12  Bruno Haible  <bruno@clisp.org>
75469
75470         * gnulib-tool: New option --local-symlink.
75471         (func_usage): Document it.
75472         (lsymbolic): New variable.
75473         (func_import, func_create_testdir): If --symlink was not specified,
75474         test whether --local-symlink was specified and the file comes from
75475         the local_gnulib_dir.
75476
75477 2006-11-12  Bruno Haible  <bruno@clisp.org>
75478
75479         * gnulib-tool (func_ln): New function.
75480         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
75481
75482 2006-11-12  Bruno Haible  <bruno@clisp.org>
75483
75484         Finish support for source files in subdirectories.
75485         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
75486         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
75487         AUTOMAKE_OPTIONS.
75488         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
75489
75490 2006-11-12  Bruno Haible  <bruno@clisp.org>
75491
75492         * gnulib-tool (func_get_automake_snippet): Synthesize also an
75493         EXTRA_lib_SOURCES augmentation.
75494         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
75495
75496 2006-11-12  Jim Meyering  <jim@meyering.net>
75497
75498         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
75499         file descriptors.  This also averts a failure on systems with
75500         native openat support when a traversed directory lacks "x" access.
75501         * lib/fts_.h: Include "i-ring.h"
75502         (struct FTS) [fts_fd_ring]: New member.
75503         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
75504         (FCHDIR): Add parentheses.
75505         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
75506         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
75507         When descending, rather than simply closing the previous
75508         fts_cwd_fd value, push that file descriptor onto the ring.
75509         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
75510         (fts_open): Initialize the new fd_ring member.
75511         (fts_close): Clear the ring.
75512         (fts_safe_changedir): When possible, use our new fd_ring to skip
75513         the diropen and fstat and dev/ino comparison that would normally
75514         accompany a virtual `chdir ("..")'.
75515
75516         * modules/fts (Depends-on): Add i-ring.
75517         * modules/i-ring: New module.
75518         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
75519         * m4/i-ring.m4: New file.
75520
75521 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75522
75523         * gnulib-tool (func_create_testdir): Fix replacement of
75524         `build-aux' in configure.ac.  Run autotools in gltests
75525         subdirectory.
75526         (func_create_testdir, func_create_megatestdir, test): There is
75527         no need for '--force' in most autotool invocations in a new
75528         tree.  Actually fail the whole test if any of the tools, or the
75529         configure or make stages fail.
75530
75531         Sync from Automake.
75532         * build-aux/gnupload: Revert last change.  Add pointer to upload
75533         instructions of the GNU Maintenance Instructions.
75534         Suggestion by Karl Berry.
75535
75536 2006-11-10  Jim Meyering  <jim@meyering.net>
75537
75538         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
75539
75540 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75541
75542         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
75543         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
75544         (bind_textdomain_codeset) [! ENABLE_NLS]:
75545         Evaluate all the arguments.  That way, callers get compatible behavior
75546         if the arguments have side effects.  Also, it avoids some GCC
75547         diagnostics in some cases; Joel E. Denny reported problems when Bison
75548         was configured with --enable-gcc-warnigs.
75549
75550 2006-11-10  Jim Meyering  <jim@meyering.net>
75551
75552         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
75553         relevant options in CFLAGS (like -O, -fno-inline) are taken into
75554         account.
75555
75556 2006-11-10  Jim Meyering  <jim@meyering.net>
75557
75558         * modules/inline: New file/module.
75559         * modules/xalloc (Files): Remove m4/inline.m4.
75560         (Depends-on): Add inline, instead.
75561         * modules/oset: Likewise.
75562         * modules/list: Likewise.
75563
75564 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75565
75566         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
75567         Problem reported by Matthew Woehlke.
75568
75569 2006-11-09  Bruno Haible  <bruno@clisp.org>
75570
75571         * lib/tempname.c (gen_tempname): Remove variant that invokes
75572         __gen_tempname.
75573         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
75574         __gen_tempname.
75575
75576 2006-11-08  Bruno Haible  <bruno@clisp.org>
75577
75578         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
75579         to 'yes' instead of 'cross-compiling'.
75580
75581 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
75582
75583         * lib/quotearg.h (quotearg_free): New decl.
75584         * lib/quotearg.c (quotearg_free): New function.
75585         (slot0, nslots, slotvec0, slotvec):
75586         Now file-scope so that quotearg_free can get at them.
75587
75588 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75589
75590         Sync from Automake.
75591         * build-aux/gnupload: Add missing 'gnu' to example URL.
75592         Report by Karl Berry.
75593
75594 2006-11-08  Bruno Haible  <bruno@clisp.org>
75595
75596         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
75597         Suggested by Paul Eggert.
75598
75599 2006-11-08  Jim Meyering  <jim@meyering.net>
75600
75601         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
75602         It's already included if !_LIBC.
75603         (fts_safe_changedir): Add a comment.
75604
75605 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
75608         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
75609         Matthew Woehlke.
75610
75611         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
75612         definitions up, to avoid colliding with change below.
75613         (static_inline) [HAVE_INLINE]: New macro.
75614         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
75615         Provide extern decls when !HAVE_INLINE.  Do not define unless
75616         static_inline is defined, either by us or by xmalloc.c.  Use
75617         static_inline rather than static inline.
75618         (XCALLOC): Optimize sizeof(T) = 1 case.
75619         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
75620
75621 2006-11-07  Bruno Haible  <bruno@clisp.org>
75622
75623         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
75624         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
75625         AC_C_INLINE.
75626         * modules/xalloc (Files): Add m4/inline.m4.
75627
75628 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75629
75630         * README: Fix typo.
75631         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
75632         (Miscellanous Notes): ...from this.
75633
75634 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
75635
75636         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
75637         Mention that offsetof should be used instead of sizeof.
75638         From Bruno Haible.
75639
75640 2006-11-07  Bruno Haible  <bruno@clisp.org>
75641
75642         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
75643
75644 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75645
75646         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75647         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
75648         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75649         (gl_tree_add_before, gl_tree_add_after):
75650         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
75651         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
75652         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
75653         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
75654         (gl_linked_add_after, gl_linked_add_at): Likewise.
75655         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
75656         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
75657         (gl_tree_add_before, gl_tree_add_after): Likewise.
75658         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
75659         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
75660         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
75661
75662 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75663
75664         * lib/gl_oset.h: Use C comment style, not C++ comment style.
75665
75666 2006-11-06  Bruno Haible  <bruno@clisp.org>
75667
75668         * m4/inline.m4: New file.
75669         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
75670         * modules/list (Files): Add m4/inline.m4.
75671         * modules/oset (Files): Likewise.
75672
75673 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
75674
75675         * lib/idcache.c: Include <stddef.h>, for offsetof.
75676         (struct userid.name): Change from char * to a flexible array member.
75677         All uses changed.
75678         * modules/idcache (Depends-on): Add flexmember.
75679
75680         * MODULES.html.sh (Core language properties): New module flexmember.
75681         * modules/flexmember, m4/flexmember.m4: New files.
75682
75683         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
75684         inline functions that are identical with the old xnmalloc_inline,
75685         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
75686         that we can avoid some unnecessary integer multiplications and
75687         divisions in the common case where the element size is known at
75688         compile time.
75689         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
75690         needed.
75691         (xnboundedmalloc): Remove.
75692         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
75693         arguments, for consistency with rest of this header.
75694         (xcharalloc): Rewrite using XNMALLOC.
75695         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
75696         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
75697         versions have been moved to lib/xalloc.h and renamed to be the
75698         non-*_inline versions.
75699         (xmalloc, xrealloc): Implement without reference to the xnmalloc
75700         and xnrealloc functions, since those functions are now inline and
75701         now call us.
75702         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
75703         renaming described above.
75704         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
75705         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
75706         captures the dependency in AC_C_INLINE.
75707
75708         New module canonicalize-lgpl, proposed by Charles Wilson in
75709         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
75710         with a few small changes afterwards.
75711         * MODULES.html.sh (File system functions): New module
75712         canonicalize-lgpl.
75713         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
75714         and canonicalize_file_name.
75715         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
75716         * modules/canonicalize-lgpl: New files.
75717
75718 2006-11-05  Bruno Haible  <bruno@clisp.org>
75719
75720         * gnulib-tool (func_import, func_create_testdir): Create directories
75721         also for files in subdirectories of lib/.
75722
75723 2006-11-05  Bruno Haible  <bruno@clisp.org>
75724
75725         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
75726         ANSI C compliant.
75727
75728 2006-11-03  Bruno Haible  <bruno@clisp.org>
75729
75730         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
75731         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
75732         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
75733         (xnboundedmalloc): New inline function.
75734         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
75735         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
75736         xmalloc.
75737         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
75738         xmalloc.
75739         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
75740         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
75741         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
75742         xmalloc.
75743         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75744         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
75745         xmalloc.
75746         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
75747         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75748         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
75749         xmalloc.
75750         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
75751         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
75752         gl_tree_add_after): Use XMALLOC instead of xmalloc.
75753         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
75754         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
75755         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
75756         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
75757
75758 2006-11-03  Bruno Haible  <bruno@clisp.org>
75759
75760         * lib/c-ctype.h [C++]: Define functions without name mangling.
75761         * lib/fwriteerror.h [C++]: Likewise.
75762         * lib/gcd.h [C++]: Likewise.
75763         * lib/linebreak.h [C++]: Likewise.
75764
75765 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75766
75767         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
75768         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
75769         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
75770         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
75771         Check for functions and headers just once.
75772         Check for declaration of canonicalize_file_name.
75773         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
75774
75775 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75776
75777         * gnulib-tool (func_import): Fix typo in actioncmd.
75778
75779 2006-11-02  Bruno Haible  <bruno@clisp.org>
75780
75781         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
75782         newline sequence in the Makefile.am snippet as a space, like "make"
75783         does.
75784         Reported by Roger Persson <perrog@gmail.com>.
75785
75786 2006-11-01  Bruno Haible  <bruno@clisp.org>
75787
75788         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
75789         already declared in <string.h>.
75790         * lib/strcase.h (strncasecmp): Don't declare it if yes.
75791
75792 2006-11-01  Bruno Haible  <bruno@clisp.org>
75793
75794         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
75795         * lib/strcase.h: Include <string.h>.
75796         (strcasecmp): Define to rpl_strcasecmp here.
75797
75798 2006-11-01  Bruno Haible  <bruno@clisp.org>
75799
75800         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
75801
75802 2006-11-01  Eric Blake  <ebb9@byu.net>
75803
75804         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
75805
75806         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
75807
75808 2006-10-29  Bruno Haible  <bruno@clisp.org>
75809
75810         Make it compile in C++ mode.
75811         * lib/full-write.c (full_rw): Add a cast.
75812
75813 2006-11-01  Bruno Haible  <bruno@clisp.org>
75814
75815         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75816         be POSIX compliant.
75817         Reported by Roger Persson <perrog@gmail.com>.
75818
75819 2006-11-01  Eric Blake  <ebb9@byu.net>
75820
75821         * lib/getopt_.h: Fix comments.
75822
75823 2006-10-31  Eric Blake  <ebb9@byu.net>
75824
75825         * modules/tmpdir (Depends-on): Add sys_stat.
75826         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75827         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75828         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75829         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75830         tempname.
75831
75832 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75833
75834         Avoid some C++ diagnostics reported by Bruno Haible.
75835         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75836         xmalloc.
75837         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75838         (struct slotvec): Move to top level.
75839         (quotearg_n_options): Rewrite to avoid xmalloc.
75840         * lib/xalloc.h (xcharalloc): New function.
75841         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75842         [defined __cplusplus]: Add function template that provides result
75843         type propagation.  This part of the change is from Bruno Haible.
75844
75845 2006-10-29  Bruno Haible  <bruno@clisp.org>
75846
75847         Make it compile in C++ mode.
75848         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75849         * lib/strnlen1.c (strnlen1): Cast memchr result.
75850         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75851         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75852         (create_temp_dir): Rename local variable 'template'.
75853         (compile_csharp_using_sscli): Add cast.
75854         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75855         * lib/findprog.c (find_in_path): Likewise.
75856         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75857         * lib/wait-process.c (register_slave_subprocess): Likewise.
75858
75859 2006-10-22  Bruno Haible  <bruno@clisp.org>
75860
75861         * modules/tsearch: New file.
75862         * lib/tsearch.h: New file.
75863         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75864         * m4/tsearch.m4: New file.
75865         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75866
75867 2006-10-29  Eric Blake  <ebb9@byu.net>
75868
75869         * lib/arcfour.c: Assume config.h.
75870         * lib/arctwo.c: Likewise.
75871         * lib/base64.c: Likewise.
75872         * lib/check-version.c: Likewise.
75873         * lib/crc.c: Likewise.
75874         * lib/des.c: Likewise.
75875         * lib/gc-gnulib.c: Likewise.
75876         * lib/gc-libgcrypt.c: Likewise.
75877         * lib/gc-pbkdf2-sha1.c: Likewise.
75878         * lib/getaddrinfo.c: Likewise.
75879         * lib/getdelim.c: Likewise.
75880         * lib/getline.c: Likewise.
75881         * lib/hmac-md5.c: Likewise.
75882         * lib/hmac-sha1.c: Likewise.
75883         * lib/iconvme.c: Likewise.
75884         * lib/md2.c: Likewise.
75885         * lib/md4.c: Likewise.
75886         * lib/memxor.c: Likewise.
75887         * lib/read-file.c: Likewise.
75888         * lib/readline.c: Likewise.
75889         * lib/rijndael-alg-fst.c: Likewise.
75890         * lib/rijndael-api-fst.c: Likewise.
75891         * lib/xgetdomainname.c: Likewise.
75892
75893 2006-10-28  Eric Blake  <ebb9@byu.net>
75894
75895         * lib/xstrndup.c: Assume config.h.
75896
75897 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75898
75899         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75900         stat-macros.h is now for our own macros, whereas stat_h is for
75901         macros in the <sys/stat.h> name space.
75902         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75903         (STAT_MACROS_H): Remove.
75904         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75905         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75906         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75907         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75908         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75909         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75910         Move these macros to ...
75911         * lib/stat_.h: here.  Don't include stat-macros.h.
75912         * lib/canonicalize.c: Don't include stat-macros.h.
75913         * lib/chown.c: Likewise.
75914         * lib/euidaccess.c: Likewise.
75915         * lib/file-type.c: Likewise.
75916         * lib/filemode.c: Likewise.
75917         * lib/glob.c: Likewise.
75918         * lib/isapipe.c: Likewise.
75919         * lib/lchown.c: Likewise.
75920         * lib/lstat.c: Likewise.
75921         * lib/mkdir-p.c: Likewise.
75922         * lib/rmdir.c: Likewise.
75923         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75924         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75925         unless mkdir isn't declared, to speed up 'configure'.
75926         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75927         would define all the S_* symbols.
75928         * modules/canonicalize (Depends-on):
75929         Depend on sys_stat, not stat-macros.
75930         * modules/chown: Likewise.
75931         * modules/euidaccess: Likewise.
75932         * modules/filemode: Likewise.
75933         * modules/file-type: Likewise.
75934         * modules/glob: Likewise.
75935         * modules/isapipe: Likewise.
75936         * modules/lchown: Likewise.
75937         * modules/lstat: Likewise.
75938         * modules/mkancesdirs: Likewise.
75939         * modules/rmdir: Likewise.
75940         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75941         * modules/modechange: Likewise.
75942         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75943         (configure.ac): Remove gl_STAT_MACROS.
75944         * modules/sys_stat (Depends-on): Remove stat-macros.
75945
75946 2006-10-27  Bruno Haible  <bruno@clisp.org>
75947
75948         * m4/signed.m4: Remove file.
75949         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75950         invocation.
75951         * modules/vasnprintf (Files): Remove m4/signed.m4.
75952
75953 2006-10-27  Bruno Haible  <bruno@clisp.org>
75954
75955         Update to GNU gettext 0.16.
75956         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75957         m4/inttypes-h.m4, m4/signed.m4.
75958         * m4/gettext.m4: Update to GNU gettext 0.16.
75959         * m4/intl.m4: New file, from GNU gettext.
75960         * m4/intldir.m4: New file, from GNU gettext.
75961         * config/srclist.txt: Update
75962
75963 2006-10-27  Eric Blake  <ebb9@byu.net>
75964
75965         * MODULES.html.sh: Document tempname.
75966         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75967         dependencies.
75968         (Files): Move lib/tempname.c...
75969         * modules/tempname: ...to this new module.
75970         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75971         (gl_PREREQ_TEMPNAME): Move...
75972         * m4/tempname.m4: ...to this new file.
75973         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75974         * modules/sys_stat (Depends-on): Add stat-macros.
75975         * lib/stat_.h (includes): Pick up stat macros.
75976         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75977         if stat macros are broken.
75978         * lib/tempname.c (includes): No need to include "stat-macros.h".
75979         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75980         (direxists, __path_search) [!_LIBC]: Don't compile these in
75981         gnulib; the tmpdir module covers that.
75982         * lib/tempname.h: New file.
75983
75984 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * COPYING: Explain how gnulib-tool converts licence headers.
75987         Almost all wording by Eric Blake.
75988
75989 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75990
75991         * lib/mbchar.h (is_basic_table): Make read-only.
75992         * lib/mbchar.c (is_basic_table): Likewise.
75993         Reported by John Darrington.
75994
75995 2006-10-25  Bruno Haible  <bruno@clisp.org>
75996
75997         * lib/progname.h (set_program_name): Undefine before defining.
75998
75999 2006-10-25  Bruno Haible  <bruno@clisp.org>
76000
76001         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
76002         false for non-gcc C++ compilers.
76003         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
76004
76005 2006-10-24  Bruno Haible  <bruno@clisp.org>
76006
76007         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
76008         iconv implementations like Irix iconv.
76009
76010 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76011
76012         * modules/vararrays: New file.
76013         * m4/vararrays.m4: New file, taken from diffutils.
76014         * MODULES.html.sh: New module vararrays.
76015
76016 2006-10-24  Karl Berry  <karl@gnu.org>
76017
76018         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
76019         Don't call GNU Unix.
76020
76021 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76022
76023         * users.txt: Add Libtool.
76024
76025         Sync from Libtool:
76026
76027         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76028
76029         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
76030         to gnulib's policy of including config.h unconditionally.
76031
76032 2006-10-24  Bruno Haible  <bruno@clisp.org>
76033
76034         * modules/wcwidth (Files): Add m4/wint_t.m4.
76035         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
76036         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
76037
76038 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
76039
76040         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
76041         to pacify GCC with some -W flags enabled.  Problem reported by
76042         Bruno Haible.
76043
76044 2006-10-24  Jim Meyering  <jim@meyering.net>
76045
76046         * MODULES.html.sh: Remove uinttostr.  It's not a module.
76047         Reported by Karl Berry.
76048
76049 2006-10-23  Bruno Haible  <bruno@clisp.org>
76050
76051         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
76052
76053 2006-10-24  Bruno Haible  <bruno@clisp.org>
76054
76055         * lib/gl_list.h: Use C comment style, not C++ comment style.
76056
76057 2006-10-23  Eric Blake  <ebb9@byu.net>
76058
76059         * lib/getaddrinfo.c (includes): Add missing include.
76060
76061 2006-10-23  Bruno Haible  <bruno@clisp.org>
76062             Paul Eggert  <eggert@cs.ucla.edu>
76063
76064         Ability to rename obstack_free.
76065         * lib/obstack.h (__obstack_free): New macro. Declare instead of
76066         obstack_free.
76067         (obstack_free): Invoke the __obstack_free macro.
76068         * lib/obstack.c (obstack_free): Use __obstack_free macro.
76069
76070 2006-10-23  Bruno Haible  <bruno@clisp.org>
76071             Paul Eggert  <eggert@cs.ucla.edu>
76072
76073         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
76074         __argc, __argv from the declaration. (They are defined as macros on
76075         mingw.)
76076
76077 2006-10-22  Bruno Haible  <bruno@clisp.org>
76078
76079         * doc/gnulib-intro.texi: New file.
76080         * doc/gnulib.texi: Include it.
76081
76082 2006-10-21  Bruno Haible  <bruno@clisp.org>
76083
76084         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
76085         "Introduction", "Miscellanous Notes", "Particular Modules".
76086
76087 2006-10-21  Bruno Haible  <bruno@clisp.org>
76088
76089         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76090         Change mostlyclean-local rule to avoid sh syntax error from bash
76091         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
76092
76093 2006-10-23  Jim Meyering  <jim@meyering.net>
76094
76095         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
76096         in place of snprintf.
76097
76098         * modules/inttostr (Files): Add lib/uinttostr.c.
76099         * lib/uinttostr.c (inttostr): New file/function.
76100         * lib/inttostr.h (uinttostr): Declare.
76101         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
76102         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
76103         Add uinttostr.
76104         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
76105
76106 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76107
76108         * lib/canonicalize.c (ELOOP): Define if not already defined.
76109         Problem reported by Bruno Haible in
76110         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
76111
76112 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
76113
76114         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
76115         Problem reported by Perry Smith and Ville Laurikari.
76116
76117         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
76118         uses.
76119
76120 2006-10-19  Bruno Haible  <bruno@clisp.org>
76121
76122         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
76123         for mingw.
76124
76125 2006-10-19  Bruno Haible  <bruno@clisp.org>
76126
76127         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
76128         Needed for mingw.
76129
76130 2006-10-19  Bruno Haible  <bruno@clisp.org>
76131
76132         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
76133
76134 2006-10-19  Bruno Haible  <bruno@clisp.org>
76135
76136         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
76137         it.
76138
76139 2006-10-19  Bruno Haible  <bruno@clisp.org>
76140
76141         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
76142         invocation.
76143
76144 2006-10-19  Bruno Haible  <bruno@clisp.org>
76145
76146         * gnulib-tool (func_create_testdir): Don't include ftruncate and
76147         mountlist by default.
76148
76149 2006-10-16  Bruno Haible  <bruno@clisp.org>
76150
76151         * lib/c-strstr.c: Include c-strstr.h.
76152
76153 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
76154
76155         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
76156         in a slash.
76157
76158 2006-10-18  Bruno Haible  <bruno@clisp.org>
76159
76160         * lib/lock.h [C++]: Wrap definitions in extern "C".
76161
76162 2006-10-18  Bruno Haible  <bruno@clisp.org>
76163
76164         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
76165         gl_LIBOBJS list.
76166
76167 2006-10-18  Bruno Haible  <bruno@clisp.org>
76168
76169         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
76170
76171 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
76172
76173         * lib/xstrtol.h: Include gettext.h.
76174         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
76175         Problem reported by Eric Blake.
76176         * modules/xstrtol (Depends-on): Add gettext-h.
76177
76178 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
76179
76180         * lib/strftime.c (advance): New macro.
76181         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
76182         incomplete type, so you can't add 0 to it.  Problem and patch
76183         reported by Eelco Dolstra for dietlibc.
76184
76185 2006-10-18  Jim Meyering  <jim@meyering.net>
76186
76187         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
76188         type for a local, and rename it: s/up/user_proc/.
76189
76190 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
76191
76192         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
76193         READ_UTMP_USER_PROCESS.
76194         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
76195
76196 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
76197
76198         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
76199         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
76200
76201 2006-10-17  Eric Blake  <ebb9@byu.net>
76202
76203         * lib/sigprocmask.c (sigprocmask): Fix typo.
76204
76205         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
76206
76207         * modules/clean-temp (Makefile.am): Don't add to make output...
76208         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
76209         config.h.
76210
76211 2006-10-17  Bruno Haible  <bruno@clisp.org>
76212
76213         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
76214         differently if DEFAULT_TEXT_DOMAIN is set.
76215
76216 2006-10-16  Bruno Haible  <bruno@clisp.org>
76217
76218         * lib/clean-temp.c: Include fwriteerror.h.
76219
76220 2006-10-16  Bruno Haible  <bruno@clisp.org>
76221
76222         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
76223
76224 2006-10-16  Bruno Haible  <bruno@clisp.org>
76225
76226         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
76227         * lib/sigprocmask.h: Include <sys/types.h>.
76228         (sigset_t): Use the system's definition if present.
76229
76230 2006-10-17  Eric Blake  <ebb9@byu.net>
76231
76232         * lib/xvasprintf.c (includes): Assume config.h.
76233         * lib/xasprintf.c (includes): Likewise.
76234
76235 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
76236
76237         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
76238         at least as wide as intmax_t.
76239
76240 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
76241
76242         (Imported from Automake.)
76243         * build-aux/gnupload: Update to version 1.1 of directive file.
76244
76245 2006-10-16  Eric Blake  <ebb9@byu.net>
76246
76247         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
76248         match Automake 1.10a.
76249
76250 2006-10-14  Bruno Haible  <bruno@clisp.org>
76251
76252         * modules/sigprocmask: New file.
76253         * lib/sigprocmask.h: New file.
76254         * lib/sigprocmask.c: New file.
76255         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
76256         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
76257         request sigprocmask.o.
76258         (gl_PREREQ_SIGPROCMASK): New macro.
76259         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
76260         (Depends-on): Add sigprocmask.
76261         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
76262         gt_SIGNALBLOCKING. Test for 'raise' only once.
76263         * lib/fatal-signal.c: Include sigprocmask.h.
76264         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
76265         unblock_fatal_signals): Define always.
76266         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76267         sigprocmask.
76268
76269 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76270
76271         Sync from Automake.
76272         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
76273         which incorrectly sets the mode of an existing destination
76274         directory.  In some cases the unpatched install-sh could do the
76275         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
76276         system.  We hope this is rare in practice, but it's clearly worth
76277         fixing.  Problem reported by Alex Unleashed in
76278         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
76279         Also, don't bother to check for -m bugs unless we're using -m;
76280         suggested by Stepan Kasal.
76281
76282 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76283
76284         Sync from Automake.
76285         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
76286         `-c' flag, so they appear at the same position as in %FASTDEP%
76287         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
76288         which ignores unknown options only after the first non-option.
76289         Bug report against M4 by Nelson H. F. Beebe.
76290
76291 2006-10-13  Jim Meyering  <jim@meyering.net>
76292
76293         Fix a bug in yesterday's change.
76294         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
76295         p->fts_statp->st_dev would be used uninitialized.
76296         Ensures that we always call fts_stat on the very first entry.
76297         Miklos Szeredi reported that find -xdev stopped working.
76298
76299 2006-10-12  Bruno Haible  <bruno@clisp.org>
76300
76301         * gnulib-tool (func_get_automake_snippet): Append an automatically
76302         computed EXTRA_DIST augmentation.
76303         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
76304         * modules/alloca-opt (Makefile.am): Likewise.
76305         * modules/allocsa (Makefile.am): Likewise.
76306         * modules/arcfour (Makefile.am): Likewise.
76307         * modules/arctwo (Makefile.am): Likewise.
76308         * modules/argmatch (Makefile.am): Likewise.
76309         * modules/argz (Makefile.am): Likewise.
76310         * modules/atexit (Makefile.am): Likewise.
76311         * modules/backupfile (Makefile.am): Likewise.
76312         * modules/byteswap (Makefile.am): Likewise.
76313         * modules/c-strtod (Makefile.am): Likewise.
76314         * modules/c-strtold (Makefile.am): Likewise.
76315         * modules/calloc (Makefile.am): Likewise.
76316         * modules/canon-host (Makefile.am): Likewise.
76317         * modules/canonicalize (Makefile.am): Likewise.
76318         * modules/chdir-long (Makefile.am): Likewise.
76319         * modules/chdir-safer (Makefile.am): Likewise.
76320         * modules/check-version (Makefile.am): Likewise.
76321         * modules/chown (Makefile.am): Likewise.
76322         * modules/cloexec (Makefile.am): Likewise.
76323         * modules/close-stream (Makefile.am): Likewise.
76324         * modules/closeout (Makefile.am): Likewise.
76325         * modules/crc (Makefile.am): Likewise.
76326         * modules/csharpexec (Makefile.am): Likewise.
76327         * modules/cycle-check (Makefile.am): Likewise.
76328         * modules/des (Makefile.am): Likewise.
76329         * modules/dev-ino (Makefile.am): Likewise.
76330         * modules/dirfd (Makefile.am): Likewise.
76331         * modules/dirname (Makefile.am): Likewise.
76332         * modules/dup2 (Makefile.am): Likewise.
76333         * modules/eealloc (Makefile.am): Likewise.
76334         * modules/error (Makefile.am): Likewise.
76335         * modules/euidaccess (Makefile.am): Likewise.
76336         * modules/exclude (Makefile.am): Likewise.
76337         * modules/exitfail (Makefile.am): Likewise.
76338         * modules/fcntl-safer (Makefile.am): Likewise.
76339         * modules/fcntl (Makefile.am): Likewise.
76340         * modules/file-type (Makefile.am): Likewise.
76341         * modules/fileblocks (Makefile.am): Likewise.
76342         * modules/filemode (Makefile.am): Likewise.
76343         * modules/filenamecat (Makefile.am): Likewise.
76344         * modules/fnmatch (Makefile.am): Likewise.
76345         * modules/fopen-safer (Makefile.am): Likewise.
76346         * modules/fpending (Makefile.am): Likewise.
76347         * modules/fprintftime (Makefile.am): Likewise.
76348         * modules/free (Makefile.am): Likewise.
76349         * modules/fsusage (Makefile.am): Likewise.
76350         * modules/ftruncate (Makefile.am): Likewise.
76351         * modules/fts (Makefile.am): Likewise.
76352         * modules/gc-arcfour (Makefile.am): Likewise.
76353         * modules/gc-des (Makefile.am): Likewise.
76354         * modules/gc-hmac-md5 (Makefile.am): Likewise.
76355         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
76356         * modules/gc-md4 (Makefile.am): Likewise.
76357         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76358         * modules/gc-sha1 (Makefile.am): Likewise.
76359         * modules/gc (Makefile.am): Likewise.
76360         * modules/getaddrinfo (Makefile.am): Likewise.
76361         * modules/getcwd (Makefile.am): Likewise.
76362         * modules/getdelim (Makefile.am): Likewise.
76363         * modules/getdomainname (Makefile.am): Likewise.
76364         * modules/getgroups (Makefile.am): Likewise.
76365         * modules/gethostname (Makefile.am): Likewise.
76366         * modules/gethrxtime (Makefile.am): Likewise.
76367         * modules/getline (Makefile.am): Likewise.
76368         * modules/getloadavg (Makefile.am): Likewise.
76369         * modules/getlogin_r (Makefile.am): Likewise.
76370         * modules/getndelim2 (Makefile.am): Likewise.
76371         * modules/getopt (Makefile.am): Likewise.
76372         * modules/getpagesize (Makefile.am): Likewise.
76373         * modules/getpass-gnu (Makefile.am): Likewise.
76374         * modules/getpass (Makefile.am): Likewise.
76375         * modules/getsubopt (Makefile.am): Likewise.
76376         * modules/gettime (Makefile.am): Likewise.
76377         * modules/gettimeofday (Makefile.am): Likewise.
76378         * modules/getugroups (Makefile.am): Likewise.
76379         * modules/getusershell (Makefile.am): Likewise.
76380         * modules/glob (Makefile.am): Likewise.
76381         * modules/group-member (Makefile.am): Likewise.
76382         * modules/hard-locale (Makefile.am): Likewise.
76383         * modules/hash (Makefile.am): Likewise.
76384         * modules/hmac-md5 (Makefile.am): Likewise.
76385         * modules/hmac-sha1 (Makefile.am): Likewise.
76386         * modules/human (Makefile.am): Likewise.
76387         * modules/idcache (Makefile.am): Likewise.
76388         * modules/imaxabs (Makefile.am): Likewise.
76389         * modules/imaxdiv (Makefile.am): Likewise.
76390         * modules/inet_ntop (Makefile.am): Likewise.
76391         * modules/inet_pton (Makefile.am): Likewise.
76392         * modules/intprops (Makefile.am): Likewise.
76393         * modules/inttostr (Makefile.am): Likewise.
76394         * modules/inttypes (Makefile.am): Likewise.
76395         * modules/isapipe (Makefile.am): Likewise.
76396         * modules/javaversion (Makefile.am): Likewise.
76397         * modules/lchmod (Makefile.am): Likewise.
76398         * modules/lchown (Makefile.am): Likewise.
76399         * modules/localcharset (Makefile.am): Likewise.
76400         * modules/long-options (Makefile.am): Likewise.
76401         * modules/lstat (Makefile.am): Likewise.
76402         * modules/malloc (Makefile.am): Likewise.
76403         * modules/mathl (Makefile.am): Likewise.
76404         * modules/mbchar (Makefile.am): Likewise.
76405         * modules/md2 (Makefile.am): Likewise.
76406         * modules/md4 (Makefile.am): Likewise.
76407         * modules/md5 (Makefile.am): Likewise.
76408         * modules/memcasecmp (Makefile.am): Likewise.
76409         * modules/memchr (Makefile.am): Likewise.
76410         * modules/memcmp (Makefile.am): Likewise.
76411         * modules/memcoll (Makefile.am): Likewise.
76412         * modules/memcpy (Makefile.am): Likewise.
76413         * modules/memmem (Makefile.am): Likewise.
76414         * modules/memmove (Makefile.am): Likewise.
76415         * modules/mempcpy (Makefile.am): Likewise.
76416         * modules/memrchr (Makefile.am): Likewise.
76417         * modules/memset (Makefile.am): Likewise.
76418         * modules/memxor (Makefile.am): Likewise.
76419         * modules/mkancesdirs (Makefile.am): Likewise.
76420         * modules/mkdir-p (Makefile.am): Likewise.
76421         * modules/mkdir (Makefile.am): Likewise.
76422         * modules/mkdtemp (Makefile.am): Likewise.
76423         * modules/mkstemp (Makefile.am): Likewise.
76424         * modules/mktime (Makefile.am): Likewise.
76425         * modules/modechange (Makefile.am): Likewise.
76426         * modules/mountlist (Makefile.am): Likewise.
76427         * modules/nanosleep (Makefile.am): Likewise.
76428         * modules/obstack (Makefile.am): Likewise.
76429         * modules/openat (Makefile.am): Likewise.
76430         * modules/pagealign_alloc (Makefile.am): Likewise.
76431         * modules/pathmax (Makefile.am): Likewise.
76432         * modules/physmem (Makefile.am): Likewise.
76433         * modules/poll (Makefile.am): Likewise.
76434         * modules/posixtm (Makefile.am): Likewise.
76435         * modules/posixver (Makefile.am): Likewise.
76436         * modules/putenv (Makefile.am): Likewise.
76437         * modules/quote (Makefile.am): Likewise.
76438         * modules/quotearg (Makefile.am): Likewise.
76439         * modules/raise (Makefile.am): Likewise.
76440         * modules/read-file (Makefile.am): Likewise.
76441         * modules/readline (Makefile.am): Likewise.
76442         * modules/readlink (Makefile.am): Likewise.
76443         * modules/readtokens (Makefile.am): Likewise.
76444         * modules/readutmp (Makefile.am): Likewise.
76445         * modules/realloc (Makefile.am): Likewise.
76446         * modules/regex (Makefile.am): Likewise.
76447         * modules/rename-dest-slash (Makefile.am): Likewise.
76448         * modules/rename (Makefile.am): Likewise.
76449         * modules/rijndael (Makefile.am): Likewise.
76450         * modules/rmdir (Makefile.am): Likewise.
76451         * modules/rpmatch (Makefile.am): Likewise.
76452         * modules/safe-read (Makefile.am): Likewise.
76453         * modules/safe-write (Makefile.am): Likewise.
76454         * modules/same-inode (Makefile.am): Likewise.
76455         * modules/same (Makefile.am): Likewise.
76456         * modules/save-cwd (Makefile.am): Likewise.
76457         * modules/savedir (Makefile.am): Likewise.
76458         * modules/setenv (Makefile.am): Likewise.
76459         * modules/settime (Makefile.am): Likewise.
76460         * modules/sha1 (Makefile.am): Likewise.
76461         * modules/sig2str (Makefile.am): Likewise.
76462         * modules/snprintf (Makefile.am): Likewise.
76463         * modules/stat-macros (Makefile.am): Likewise.
76464         * modules/stat-time (Makefile.am): Likewise.
76465         * modules/stdbool (Makefile.am): Likewise.
76466         * modules/stdint (Makefile.am): Likewise.
76467         * modules/stdlib-safer (Makefile.am): Likewise.
76468         * modules/stpcpy (Makefile.am): Likewise.
76469         * modules/stpncpy (Makefile.am): Likewise.
76470         * modules/strcase (Makefile.am): Likewise.
76471         * modules/strcasestr (Makefile.am): Likewise.
76472         * modules/strchrnul (Makefile.am): Likewise.
76473         * modules/strcspn (Makefile.am): Likewise.
76474         * modules/strdup (Makefile.am): Likewise.
76475         * modules/strerror (Makefile.am): Likewise.
76476         * modules/strftime (Makefile.am): Likewise.
76477         * modules/strndup (Makefile.am): Likewise.
76478         * modules/strnlen (Makefile.am): Likewise.
76479         * modules/strpbrk (Makefile.am): Likewise.
76480         * modules/strsep (Makefile.am): Likewise.
76481         * modules/strstr (Makefile.am): Likewise.
76482         * modules/strtod (Makefile.am): Likewise.
76483         * modules/strtoimax (Makefile.am): Likewise.
76484         * modules/strtok_r (Makefile.am): Likewise.
76485         * modules/strtol (Makefile.am): Likewise.
76486         * modules/strtoll (Makefile.am): Likewise.
76487         * modules/strtoul (Makefile.am): Likewise.
76488         * modules/strtoull (Makefile.am): Likewise.
76489         * modules/strtoumax (Makefile.am): Likewise.
76490         * modules/strverscmp (Makefile.am): Likewise.
76491         * modules/sys_socket (Makefile.am): Likewise.
76492         * modules/sys_stat (Makefile.am): Likewise.
76493         * modules/sysexits (Makefile.am): Likewise.
76494         * modules/time_r (Makefile.am): Likewise.
76495         * modules/timegm (Makefile.am): Likewise.
76496         * modules/timespec (Makefile.am): Likewise.
76497         * modules/tmpfile-safer (Makefile.am): Likewise.
76498         * modules/trim (Makefile.am): Likewise.
76499         * modules/unistd-safer (Makefile.am): Likewise.
76500         * modules/unlinkdir (Makefile.am): Likewise.
76501         * modules/unlocked-io (Makefile.am): Likewise.
76502         * modules/userspec (Makefile.am): Likewise.
76503         * modules/utime (Makefile.am): Likewise.
76504         * modules/utimecmp (Makefile.am): Likewise.
76505         * modules/utimens (Makefile.am): Likewise.
76506         * modules/vasnprintf (Makefile.am): Likewise.
76507         * modules/vasprintf (Makefile.am): Likewise.
76508         * modules/vsnprintf (Makefile.am): Likewise.
76509         * modules/xalloc (Makefile.am): Likewise.
76510         * modules/xgetcwd (Makefile.am): Likewise.
76511         * modules/xnanosleep (Makefile.am): Likewise.
76512         * modules/xreadlink (Makefile.am): Likewise.
76513         * modules/xstrtod (Makefile.am): Likewise.
76514         * modules/xstrtol (Makefile.am): Likewise.
76515         * modules/xstrtold (Makefile.am): Likewise.
76516         * modules/yesno (Makefile.am): Likewise.
76517         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
76518
76519 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76520
76521         * modules/error (Makefile.am): Distribute files through
76522         EXTRA_DIST, not lib_SOURCES.
76523
76524 2006-10-12  Eric Blake  <ebb9@byu.net>
76525
76526         * modules/error (Makefile.am): Distribute files in /lib.
76527         * modules/obstack (Makefile.am): Likewise.
76528
76529 2006-10-12  Bruno Haible  <bruno@clisp.org>
76530
76531         * modules/acl (Makefile.am): Distribute all files in lib/ through
76532         EXTRA_DIST.
76533         * modules/arcfour (Makefile.am): Likewise.
76534         * modules/arctwo (Makefile.am): Likewise.
76535         * modules/argmatch (Makefile.am): Likewise.
76536         * modules/argz (Makefile.am): Likewise.
76537         * modules/atexit (Makefile.am): Likewise.
76538         * modules/backupfile (Makefile.am): Likewise.
76539         * modules/c-strtod (Makefile.am): Likewise.
76540         * modules/c-strtold (Makefile.am): Likewise.
76541         * modules/calloc (Makefile.am): Likewise.
76542         * modules/canon-host (Makefile.am): Likewise.
76543         * modules/canonicalize (Makefile.am): Likewise.
76544         * modules/chdir-long (Makefile.am): Likewise.
76545         * modules/chdir-safer (Makefile.am): Likewise.
76546         * modules/check-version (Makefile.am): Likewise.
76547         * modules/chown (Makefile.am): Likewise.
76548         * modules/cloexec (Makefile.am): Likewise.
76549         * modules/close-stream (Makefile.am): Likewise.
76550         * modules/closeout (Makefile.am): Likewise.
76551         * modules/crc (Makefile.am): Likewise.
76552         * modules/cycle-check (Makefile.am): Likewise.
76553         * modules/des (Makefile.am): Likewise.
76554         * modules/dirfd (Makefile.am): Likewise.
76555         * modules/dirname (Makefile.am): Likewise.
76556         * modules/dup2 (Makefile.am): Likewise.
76557         * modules/euidaccess (Makefile.am): Likewise.
76558         * modules/exclude (Makefile.am): Likewise.
76559         * modules/exitfail (Makefile.am): Likewise.
76560         * modules/fcntl-safer (Makefile.am): Likewise.
76561         * modules/file-type (Makefile.am): Likewise.
76562         * modules/fileblocks (Makefile.am): Likewise.
76563         * modules/filemode (Makefile.am): Likewise.
76564         * modules/filenamecat (Makefile.am): Likewise.
76565         * modules/fnmatch (Makefile.am): Likewise.
76566         * modules/fopen-safer (Makefile.am): Likewise.
76567         * modules/fpending (Makefile.am): Likewise.
76568         * modules/fprintftime (Makefile.am): Likewise.
76569         * modules/free (Makefile.am): Likewise.
76570         * modules/fsusage (Makefile.am): Likewise.
76571         * modules/ftruncate (Makefile.am): Likewise.
76572         * modules/fts (Makefile.am): Likewise.
76573         * modules/gc (Makefile.am): Likewise.
76574         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
76575         * modules/getaddrinfo (Makefile.am): Likewise.
76576         * modules/getcwd (Makefile.am): Likewise.
76577         * modules/getdelim (Makefile.am): Likewise.
76578         * modules/getdomainname (Makefile.am): Likewise.
76579         * modules/getgroups (Makefile.am): Likewise.
76580         * modules/gethostname (Makefile.am): Likewise.
76581         * modules/gethrxtime (Makefile.am): Likewise.
76582         * modules/getline (Makefile.am): Likewise.
76583         * modules/getloadavg (Makefile.am): Likewise.
76584         * modules/getlogin_r (Makefile.am): Likewise.
76585         * modules/getopt (Makefile.am): Likewise.
76586         * modules/getpass (Makefile.am): Likewise.
76587         * modules/getpass-gnu (Makefile.am): Likewise.
76588         * modules/getsubopt (Makefile.am): Likewise.
76589         * modules/gettime (Makefile.am): Likewise.
76590         * modules/gettimeofday (Makefile.am): Likewise.
76591         * modules/getugroups (Makefile.am): Likewise.
76592         * modules/getusershell (Makefile.am): Likewise.
76593         * modules/glob (Makefile.am): Likewise.
76594         * modules/group-member (Makefile.am): Likewise.
76595         * modules/hard-locale (Makefile.am): Likewise.
76596         * modules/hash (Makefile.am): Likewise.
76597         * modules/hmac-md5 (Makefile.am): Likewise.
76598         * modules/hmac-sha1 (Makefile.am): Likewise.
76599         * modules/human (Makefile.am): Likewise.
76600         * modules/idcache (Makefile.am): Likewise.
76601         * modules/imaxabs (Makefile.am): Likewise.
76602         * modules/imaxdiv (Makefile.am): Likewise.
76603         * modules/inet_ntop (Makefile.am): Likewise.
76604         * modules/inet_pton (Makefile.am): Likewise.
76605         * modules/inttostr (Makefile.am): Likewise.
76606         * modules/isapipe (Makefile.am): Likewise.
76607         * modules/lchown (Makefile.am): Likewise.
76608         * modules/long-options (Makefile.am): Likewise.
76609         * modules/lstat (Makefile.am): Likewise.
76610         * modules/malloc (Makefile.am): Likewise.
76611         * modules/mathl (Makefile.am): Likewise.
76612         * modules/mbchar (Makefile.am): Likewise.
76613         * modules/md2 (Makefile.am): Likewise.
76614         * modules/md4 (Makefile.am): Likewise.
76615         * modules/md5 (Makefile.am): Likewise.
76616         * modules/memcasecmp (Makefile.am): Likewise.
76617         * modules/memchr (Makefile.am): Likewise.
76618         * modules/memcmp (Makefile.am): Likewise.
76619         * modules/memcoll (Makefile.am): Likewise.
76620         * modules/memcpy (Makefile.am): Likewise.
76621         * modules/memmem (Makefile.am): Likewise.
76622         * modules/memmove (Makefile.am): Likewise.
76623         * modules/mempcpy (Makefile.am): Likewise.
76624         * modules/memrchr (Makefile.am): Likewise.
76625         * modules/memset (Makefile.am): Likewise.
76626         * modules/memxor (Makefile.am): Likewise.
76627         * modules/mkancesdirs (Makefile.am): Likewise.
76628         * modules/mkdir (Makefile.am): Likewise.
76629         * modules/mkdir-p (Makefile.am): Likewise.
76630         * modules/mkdtemp (Makefile.am): Likewise.
76631         * modules/mkstemp (Makefile.am): Likewise.
76632         * modules/mktime (Makefile.am): Likewise.
76633         * modules/modechange (Makefile.am): Likewise.
76634         * modules/mountlist (Makefile.am): Likewise.
76635         * modules/nanosleep (Makefile.am): Likewise.
76636         * modules/openat (Makefile.am): Likewise.
76637         * modules/pagealign_alloc (Makefile.am): Likewise.
76638         * modules/physmem (Makefile.am): Likewise.
76639         * modules/poll (Makefile.am): Likewise.
76640         * modules/posixtm (Makefile.am): Likewise.
76641         * modules/posixver (Makefile.am): Likewise.
76642         * modules/putenv (Makefile.am): Likewise.
76643         * modules/quote (Makefile.am): Likewise.
76644         * modules/quotearg (Makefile.am): Likewise.
76645         * modules/raise (Makefile.am): Likewise.
76646         * modules/read-file (Makefile.am): Likewise.
76647         * modules/readline (Makefile.am): Likewise.
76648         * modules/readlink (Makefile.am): Likewise.
76649         * modules/readtokens (Makefile.am): Likewise.
76650         * modules/readutmp (Makefile.am): Likewise.
76651         * modules/realloc (Makefile.am): Likewise.
76652         * modules/regex (Makefile.am): Likewise.
76653         * modules/rename (Makefile.am): Likewise.
76654         * modules/rename-dest-slash (Makefile.am): Likewise.
76655         * modules/rijndael (Makefile.am): Likewise.
76656         * modules/rmdir (Makefile.am): Likewise.
76657         * modules/rpmatch (Makefile.am): Likewise.
76658         * modules/safe-read (Makefile.am): Likewise.
76659         * modules/safe-write (Makefile.am): Likewise.
76660         * modules/same (Makefile.am): Likewise.
76661         * modules/save-cwd (Makefile.am): Likewise.
76662         * modules/savedir (Makefile.am): Likewise.
76663         * modules/setenv (Makefile.am): Likewise.
76664         * modules/settime (Makefile.am): Likewise.
76665         * modules/sha1 (Makefile.am): Likewise.
76666         * modules/sig2str (Makefile.am): Likewise.
76667         * modules/snprintf (Makefile.am): Likewise.
76668         * modules/stdlib-safer (Makefile.am): Likewise.
76669         * modules/stpcpy (Makefile.am): Likewise.
76670         * modules/stpncpy (Makefile.am): Likewise.
76671         * modules/strcase (Makefile.am): Likewise.
76672         * modules/strcasestr (Makefile.am): Likewise.
76673         * modules/strchrnul (Makefile.am): Likewise.
76674         * modules/strcspn (Makefile.am): Likewise.
76675         * modules/strdup (Makefile.am): Likewise.
76676         * modules/strerror (Makefile.am): Likewise.
76677         * modules/strftime (Makefile.am): Likewise.
76678         * modules/strndup (Makefile.am): Likewise.
76679         * modules/strnlen (Makefile.am): Likewise.
76680         * modules/strpbrk (Makefile.am): Likewise.
76681         * modules/strsep (Makefile.am): Likewise.
76682         * modules/strstr (Makefile.am): Likewise.
76683         * modules/strtod (Makefile.am): Likewise.
76684         * modules/strtoimax (Makefile.am): Likewise.
76685         * modules/strtok_r (Makefile.am): Likewise.
76686         * modules/strtol (Makefile.am): Likewise.
76687         * modules/strtoll (Makefile.am): Likewise.
76688         * modules/strtoul (Makefile.am): Likewise.
76689         * modules/strtoull (Makefile.am): Likewise.
76690         * modules/strtoumax (Makefile.am): Likewise.
76691         * modules/strverscmp (Makefile.am): Likewise.
76692         * modules/time_r (Makefile.am): Likewise.
76693         * modules/timegm (Makefile.am): Likewise.
76694         * modules/tmpfile-safer (Makefile.am): Likewise.
76695         * modules/unistd-safer (Makefile.am): Likewise.
76696         * modules/unlinkdir (Makefile.am): Likewise.
76697         * modules/userspec (Makefile.am): Likewise.
76698         * modules/utime (Makefile.am): Likewise.
76699         * modules/utimecmp (Makefile.am): Likewise.
76700         * modules/utimens (Makefile.am): Likewise.
76701         * modules/vasnprintf (Makefile.am): Likewise.
76702         * modules/vasprintf (Makefile.am): Likewise.
76703         * modules/vsnprintf (Makefile.am): Likewise.
76704         * modules/xalloc (Makefile.am): Likewise.
76705         * modules/xgetcwd (Makefile.am): Likewise.
76706         * modules/xnanosleep (Makefile.am): Likewise.
76707         * modules/xreadlink (Makefile.am): Likewise.
76708         * modules/xstrtod (Makefile.am): Likewise.
76709         * modules/xstrtol (Makefile.am): Likewise.
76710         * modules/xstrtold (Makefile.am): Likewise.
76711         * modules/yesno (Makefile.am): Likewise.
76712
76713 2006-10-12  Jim Meyering  <jim@meyering.net>
76714
76715         * m4/getloadavg.m4: Revert the change below.
76716
76717         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
76718         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
76719         fail with a symlink, which is what coreutils' ./bootstrap now
76720         creates by default.
76721
76722 2006-10-12  Bruno Haible  <bruno@clisp.org>
76723
76724         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
76725         mingw.
76726         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
76727         MSVC and mingw explicitly.
76728
76729 2006-10-11  Simon Josefsson  <jas@extundo.com>
76730             Bruno Haible  <bruno@clisp.org>
76731
76732         Add support for multiple gnulib-tool invocations in the scope of a
76733         single configure.ac file.
76734         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
76735         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
76736         with the same contents as the _LIBADD variable.
76737         (func_emit_initmacro_start, func_emit_initmacro_end,
76738         func_emit_initmacro_done): New functions.
76739         (func_import, func_create_testdir): Invoke them. Allow the identifiers
76740         gl_LIBOBJS and gl_LTLIBOBJS.
76741
76742 2006-10-11  Bruno Haible  <bruno@clisp.org>
76743
76744         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
76745         (func_create_testdir): Don't create po/Makefile.am, don't invoke
76746         autoreconf. Instead, invoke autopoint explicitly but move back the
76747         *.m4 files from gnulib.
76748
76749 2006-10-11  Bruno Haible  <bruno@clisp.org>
76750
76751         * gnulib-tool (func_usage): Make module names after --create-testdir
76752         optional.
76753         (func_create_testdir): If no module was specified, use nearly all
76754         modules.
76755
76756 2006-10-12  Jim Meyering  <jim@meyering.net>
76757
76758         Big performance improvement for fts-based tools that use FTS_NOSTAT.
76759         Avoid spurious inode-mismatch problems on non-POSIX file systems.
76760         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
76761         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
76762         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
76763         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
76764         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
76765         (fts_set_stat_required): New function.
76766         (fts_open): Defer the calls to fts_stat, if possible or requested.
76767         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
76768         into fts_stat itself.
76769         (fts_read): Perform any required (deferred) fts_stat call.
76770         (fts_build): Likewise, for the directory we're about to open and read.
76771         In the readdir loop, carefully decide whether each entry will require
76772         an eventual call to fts_stat, using dirent.d_type info if available.
76773         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
76774         a command line argument into this function.  Update all callers.
76775         Map a return value of FTS_DOT to FTS_D for a command line argument.
76776         * modules/fts (Depends-on): Add d-type.  Alphabetize.
76777         Thanks to Miklos Szeredi for his tenacity and for the initial
76778         bug report about "find" failing on a FUSE-based file system.
76779
76780         * lib/fts.c (fts_open): Use consistent indentation.
76781
76782 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
76783
76784         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
76785         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
76786         reported by Jim Meyering.  All uses of cache variables renamed
76787         to match Autoconf's.
76788         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
76789         the other one.
76790
76791         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
76792         Fix misspelling in diagnostic.
76793
76794 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76795
76796         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
76797         defined.  Problem reported by Matthew Woehlke.
76798
76799         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
76800         Add support for Tandem NonStop R series.
76801         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
76802         Use new macro.
76803
76804         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
76805         (has_trailing_slash): Omit size arg; all callers changed.
76806         Omit 'inline', since it doesn't help performance and we'd
76807         need to configure it.
76808         Don't count //, ///, etc. as having a trailing slash.
76809         As a side effect, this removes a C99ism reported by Matthew Woehlke.
76810         (rpl_rename_dest_slash): On failure, use rename's errno rather
76811         than (in some cases) an incorrect or junk errno.
76812         Simplify code by removing need to compute length; this does
76813         cause it to make two passes instead of one over the file name,
76814         but it's worth it.
76815
76816         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76817         change, since Autoconf's version may no longer be appropriate now
76818         that we are using CVS Autoconf's version.  Add support for Tandem.
76819
76820 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76821             Bruno Haible  <bruno@clisp.org>
76822
76823         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76824         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76825         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76826         gl_AC_TYPE_LONG_LONG.
76827
76828         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76829         instead of HAVE_LONG_LONG.
76830         * lib/printf-args.c (printf_fetchargs): Likewise.
76831         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76832         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76833         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76834         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76835         gl_AC_TYPE_LONG_LONG.
76836
76837 2006-10-11  Bruno Haible  <bruno@clisp.org>
76838
76839         * m4/longlong.m4: Add comments.
76840         * m4/ulonglong.m4: Likewise.
76841
76842 2006-10-10  Bruno Haible  <bruno@clisp.org>
76843
76844         Make it possible to #define stpcpy, strdup to aliases.
76845         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76846         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76847
76848 2006-10-10  Bruno Haible  <bruno@clisp.org>
76849
76850         Make it possible to #define gcd to an alias.
76851         * lib/gcd.c: Include config.h.
76852
76853 2006-10-10  Bruno Haible  <bruno@clisp.org>
76854
76855         Make it possible to #define c_isascii to an alias.
76856         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76857         defined. Undefine the macros before defining them, to avoid gcc
76858         warnings.
76859         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76860         define NO_C_CTYPE_MACROS early.
76861
76862 2006-10-10  Bruno Haible  <bruno@clisp.org>
76863
76864         Make it possible to #define set_program_name to an alias.
76865         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76866         ENABLE_RELOCATABLE early.
76867
76868 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76869
76870         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76871         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76872         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76873         More generally, don't assume that 64-bit signed int is available
76874         if unsigned int is, and vice versa.
76875         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76876         unsigned symbols, not on their signed counterparts.
76877         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76878         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76879         (UINT64_C, UINTMAX_C):
76880         Likewise.
76881         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76882         unsigned counterparts.
76883         (Have_long_long, Unsigned): New macros.
76884         (Int): Renamed from INT.
76885         (strtoimax): Use the new macros.
76886         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76887         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76888         * modules/inttypes (inttypes.h): Substitute
76889         HAVE_UNSIGNED_LONG_LONG_INT.
76890         * modules/stdint (stdint.h): Likewise.
76891         (Files): Add m4/ulonglong.m4.
76892
76893 2006-10-10  Bruno Haible  <bruno@clisp.org>
76894
76895         Fix a gcc -Wshadow warning.
76896         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76897         to 'bucket'.
76898         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76899         gl_linked_indexof_from_to): Likewise.
76900         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76901         Likewise.
76902         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76903         Likewise.
76904         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76905         Reported by Eric Blake.
76906
76907 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76908
76909         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76910         for NetBSD.  Problem reported by Bruno Haible.
76911
76912 2006-10-09  Jim Meyering  <jim@meyering.net>
76913
76914         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76915         Patch from Bruno Haible.
76916
76917 2006-10-09  Jim Meyering  <jim@meyering.net>
76918
76919         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76920         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76921         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76922
76923 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76924
76925         Don't include <config.h> twice; this doesn't work in some cases,
76926         e.g., when config.h has "#define intmax_t long long int" and
76927         we include <config.h>, <inttypes.h>, <config.h> in that order.
76928         Problem reported by Matthew Woehlke in:
76929         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76930         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76931         * lib/fts-cycle.c: Don't include config.h.
76932         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76933         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76934         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76935         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76936         inttypes.h.
76937         * lib/xstrtoumax.c: Likewise.
76938         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76939         __strtol and the like, so that this module is more like its siblings.
76940         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76941         Remove; no longer needed now that we assume gnulib inttypes.h.
76942
76943 2006-10-08  Bruno Haible  <bruno@clisp.org>
76944
76945         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76946         option.
76947
76948 2006-10-07  Jim Meyering  <jim@meyering.net>
76949
76950         * modules/inttypes (inttypes.h): Revert what seems to have been
76951         an inadvertent part of today's change: use "|", not "/" in the
76952         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76953
76954 2006-10-07  Bruno Haible  <bruno@clisp.org>
76955
76956         * modules/sublist: New file.
76957
76958 2006-10-07  Bruno Haible  <bruno@clisp.org>
76959
76960         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76961         * modules/argz (argz.h): Likewise.
76962         * modules/arpa_inet (arpa/inet.h): Likewise.
76963         * modules/byteswap (byteswap.h): Likewise.
76964         * modules/configmake (configmake.h): Likewise.
76965         * modules/fcntl (fcntl.h): Likewise.
76966         * modules/fnmatch (fnmatch.h): Likewise.
76967         * modules/getopt (getopt.h): Likewise.
76968         * modules/glob (glob.h): Likewise.
76969         * modules/inttypes (inttypes.h): Likewise.
76970         * modules/netinet_in (netinet/in.h): Likewise.
76971         * modules/poll (poll.h): Likewise.
76972         * modules/stdbool (stdbool.h): Likewise.
76973         * modules/stdint (stdint.h): Likewise.
76974         * modules/sys_select (sys/select.h): Likewise.
76975         * modules/sys_socket (sys/socket.h): Likewise.
76976         * modules/sys_stat (sys/stat.h): Likewise.
76977         * modules/sysexits (sysexits.h): Likewise.
76978         * modules/unistd (unistd.h): Likewise.
76979         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76980         Add a "DO NOT EDIT" comment to the generated file.
76981         (func_import): Likewise for gnulib-comp.m4.
76982
76983 2006-10-07  Bruno Haible  <bruno@clisp.org>
76984
76985         * lib/gl_sublist.h: New file.
76986         * lib/gl_sublist.c: New file.
76987
76988 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76989
76990         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76991         name (relative to the original working directory) and the file
76992         name component (relative to the temporary working directory).  All
76993         callers changed.
76994         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76995         * lib/mkdir-p.c (make_dir_parents): Likewise.
76996         * lib/mkdir-p.h (make_dir_parents): Likewise.
76997
76998 2006-10-06  Eric Blake  <ebb9@byu.net>
76999
77000         Define several macros for use by the clean-temp module.
77001         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
77002         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
77003         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
77004
77005         * lib/clean-temp.h (close_stream_temp): New declaration.
77006         * lib/clean-temp.c (includes): Pull in headers according to what
77007         other modules are in use.
77008         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
77009
77010 2006-10-06  Bruno Haible  <bruno@clisp.org>
77011
77012         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
77013         instead of fopen, fwriteerror.
77014
77015 2006-10-06  Bruno Haible  <bruno@clisp.org>
77016
77017         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
77018         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
77019         int.
77020         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
77021         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
77022         Return an error indicator.
77023         Suggested by Eric Blake.
77024
77025 2006-10-06  Bruno Haible  <bruno@clisp.org>
77026
77027         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
77028         Reported by Eric Blake.
77029
77030 2006-10-06  Bruno Haible  <bruno@clisp.org>
77031
77032         * modules/closeout (Description): Mention stderr too.
77033
77034 2006-10-06  Bruno Haible  <bruno@clisp.org>
77035         and Paul Eggert  <eggert@cs.ucla.edu>
77036
77037         * lib/closeout.c (close_stdout): Also close stderr.
77038         * lib/closeout.h: Update comment.
77039
77040 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
77041
77042         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
77043         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
77044         * lib/dirchownmod.c: Include lchown.h.
77045         * lib/lchown.c: Don't include files that lchown.h now includes.
77046         Don't declare chown, since lchown.h now does that.
77047         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
77048         (lchown): Define to rpl_chown if lchown is declared but
77049         does not exist.  Declare using a prototype if lchown is not
77050         declared.  Add a copyright notice.
77051         * lib/mkstemp.h: Include <unistd.h>.
77052         * lib/openat.c: Include lchown.h.
77053
77054         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
77055         we now test for that separately.
77056         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
77057         rather than O_NOFOLLOW, when testing whether it's possible to
77058         avoid a race condition reliably.
77059         * lib/savewd.c (savewd_chdir): Likewise.
77060
77061         Remove macros that are no longer needed now that stdint.h is
77062         reliable.
77063         * lib/fsusage.c (UINTMAX_MAX): Remove.
77064         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
77065         * lib/utimecmp.c (SIZE_MAX): Remove.
77066
77067         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
77068
77069         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
77070         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
77071         O_NOATIME works.
77072
77073 2006-10-05  Bruno Haible  <bruno@clisp.org>
77074
77075         * lib/gl_list.h (gl_sortedlist_search_from_to,
77076         gl_sortedlist_indexof_from_to): New declarations.
77077         (gl_list_implementation): New fields sortedlist_search_from_to,
77078         sortedlist_indexof_from_to.
77079         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
77080         inline functions.
77081         * lib/gl_list.c (gl_sortedlist_search_from_to,
77082         gl_sortedlist_indexof_from_to): New functions.
77083         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
77084         function.
77085         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
77086         (gl_array_sortedlist_search_from_to): New function.
77087         (gl_array_list_implementation): Update.
77088         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
77089         function.
77090         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
77091         (gl_carray_sortedlist_search_from_to): New function.
77092         (gl_carray_list_implementation): Update.
77093         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
77094         gl_linked_sortedlist_indexof_from_to): New functions.
77095         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77096         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77097         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
77098         gl_tree_sortedlist_indexof_from_to): New functions.
77099         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77100         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77101         Update.
77102         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77103         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
77104         Update.
77105
77106 2006-10-05  Bruno Haible  <bruno@clisp.org>
77107
77108         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
77109         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
77110         (struct gl_list_implementation): Add fields search_from_to,
77111         indexof_from_to. Remove fields search, indexof.
77112         (gl_list_search): Use the search_from_to method.
77113         (gl_list_search_from, gl_list_search_from_to): New functions.
77114         (gl_list_indexof): Use the indexof_from_to method.
77115         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77116         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
77117         (gl_list_search_from, gl_list_search_from_to): New functions.
77118         (gl_list_indexof): Use the indexof_from_to method.
77119         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
77120         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
77121         gl_array_indexof. Add start_index, end_index arguments.
77122         (gl_array_search_from_to): Renamed from gl_array_search. Add
77123         start_index, end_index arguments.
77124         (gl_array_remove, gl_array_list_implementation): Update.
77125         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
77126         gl_carray_indexof. Add start_index, end_index arguments.
77127         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
77128         start_index, end_index arguments.
77129         (gl_carray_remove, gl_carray_list_implementation): Update.
77130         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
77131         gl_linked_search. Add start_index, end_index arguments.
77132         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
77133         start_index, end_index arguments.
77134         (gl_linked_remove): Update.
77135         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
77136         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
77137         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
77138         field to 'size_t'.
77139         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
77140         gl_tree_search. Add start_index, end_index arguments.
77141         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77142         start_index, end_index arguments.
77143         (gl_tree_remove): Update.
77144         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
77145         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
77146         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
77147         function.
77148         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
77149         gl_tree_search. Add start_index, end_index arguments.
77150         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
77151         start_index, end_index arguments.
77152         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
77153         Update.
77154         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
77155
77156 2006-10-05  Bruno Haible  <bruno@clisp.org>
77157
77158         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
77159
77160         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
77161         fwriteerror_temp): New declarations.
77162         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
77163         (descriptors): New variable.
77164         (cleanup): First, close the descriptors.
77165         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
77166         fclose_temp, fwriteerror_temp): New functions.
77167
77168 2006-10-04  Jim Meyering  <jim@meyering.net>
77169
77170         * lib/fts.c (fts_open): Tiny comment change.
77171
77172 2006-10-04  Bruno Haible  <bruno@clisp.org>
77173
77174         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
77175         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
77176         gl_LOCK_BODY.
77177         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
77178         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
77179         gl_LOCK_EARLY_BODY.
77180         (gl_LOCK): Require gl_LOCK_BODY.
77181
77182 2006-10-04  Bruno Haible  <bruno@clisp.org>
77183
77184         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
77185         (gl_oset_search_atleast): New declaration.
77186         (struct gl_oset_implementation): Add field 'search_atleast'.
77187         (gl_oset_search_atleast): New inline function.
77188         * lib/gl_oset.c (gl_oset_search_atleast): New function.
77189         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
77190         (gl_array_oset_implementation): Update.
77191         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
77192         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
77193         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
77194
77195 2006-10-04  Bruno Haible  <bruno@clisp.org>
77196
77197         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
77198
77199 2006-10-03  Bruno Haible  <bruno@clisp.org>
77200
77201         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
77202         from gl_avltreehash_list_implementation.
77203
77204 2006-10-03  Bruno Haible  <bruno@clisp.org>
77205
77206         * lib/gl_oset.c (gl_oset_add): Fix return type.
77207
77208 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
77209
77210         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
77211
77212 2006-10-02  Eric Blake  <ebb9@byu.net>
77213
77214         * modules/strnlen (Depends-on): Add extensions.
77215
77216 2006-10-02  Eric Blake  <ebb9@byu.net>
77217
77218         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
77219         definition in 2.60+.
77220
77221 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
77222
77223         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
77224         checks.
77225
77226 2006-10-02  Bruno Haible  <bruno@clisp.org>
77227
77228         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
77229         to the AUTOMAKE_OPTIONS.
77230         Reported by Jim Meyering.
77231
77232 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
77233
77234         Work around bug in Solaris 10 /proc file system:
77235         /proc/self/fd/NNN/.. isn't the parent directory of
77236         the directory whose file descriptor is NNN.  This needs to
77237         be worked around at run time, not compile time, since a
77238         program might be built on Solaris 8, where things work, and
77239         run on Solaris 10.
77240         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
77241         to use the following interface instead:
77242         (OPENAT_BUFFER_SIZE): New macro.
77243         (openat_proc_name): New function.
77244         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
77245         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
77246         Likewise.
77247         * lib/openat-proc.c: New file.
77248         * modules/openat (Files): Add lib/openat-proc.c.
77249         (Depends-on): Add same-inode, stdbool.
77250         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
77251
77252 2006-09-29  Bruno Haible  <bruno@clisp.org>
77253
77254         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
77255         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
77256         argument. Set stdout_closed before testing for ferror, not after.
77257         (fwriteerror, fwriteerror_no_ebadf): New functions.
77258
77259 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77260
77261         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
77262
77263 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
77264
77265         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
77266         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
77267
77268 2006-09-28  Jim Meyering  <jim@meyering.net>
77269
77270         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
77271         Include <unistd.h>.
77272
77273 2006-09-28  Bruno Haible  <bruno@clisp.org>
77274
77275         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
77276         * modules/linkedhash-list (Depends-on): Likewise.
77277         * modules/rbtreehash-list (Depends-on): Likewise.
77278
77279 2006-09-28  Bruno Haible  <bruno@clisp.org>
77280
77281         * lib/strndup.h: Simplify the redefinition of strndup.
77282         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
77283         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
77284
77285 2006-09-28  Bruno Haible  <bruno@clisp.org>
77286
77287         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
77288         * lib/gl_linkedhash_list.c: Likewise.
77289         * lib/gl_rbtreehash_list.c: Likewise.
77290
77291 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
77292
77293         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
77294         getaddrinfo.
77295
77296         * lib/__fpending.h: Don't include <stdio_ext.h> unless
77297         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
77298         it causes <stdio_ext.h> to cause a compile-time error.
77299         Problem reported by Nelson H. F. Beebe.
77300         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
77301         of HAVE_DECL___PENDING.
77302
77303         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
77304         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
77305         declaration.
77306
77307 2006-09-27  Jim Meyering  <jim@meyering.net>
77308
77309         This file could end up with a definition for a function
77310         named __strndup, rather than rpl_strndup on a system with
77311         incomplete weak_alias support.
77312         * lib/strndup.c (strndup): Rename from __strndup.
77313         Remove #defines that used to map __strndup to strndup.
77314         Don't use K&R prototypes.
77315         Remove LIBC-related code, since this file is not sync'd with glibc.
77316         * lib/strndup.h: Revamp, accordingly.
77317         * m4/strndup.m4: Modernize.
77318
77319 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
77320
77321         * modules/savewd (Depends-on): Add 'raise'.
77322         * lib/savewd.c: Include <signal.h>, for 'raise'.
77323
77324 2006-09-26  Jim Meyering  <jim@meyering.net>
77325
77326         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
77327         when we detect Darwin 8.7.0's acl_get_file bug.
77328         Rearrange to perform the new (below) run-test while $LIBS
77329         contains any acl-related library.  Set USE_ACL at the end.
77330         (gl_ACL_GET_FILE): New function.
77331
77332 2006-09-26  Eric Blake  <ebb9@byu.net>
77333
77334         * lib/verror.c: Include <config.h> unconditionally.
77335
77336 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
77337
77338         * modules/clock-time (Maintainer): Add self.
77339         * modules/getlogin_r (Depends-on): Add extensions.
77340
77341 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77342
77343         * modules/clock-time: New module.
77344         * modules/nanosleep (Depends-on): Add clock-time.
77345         * modules/gethrxtime (Depends-on): Likewise.
77346         * modules/gettime (Depends-on): Likewise.
77347         * modules/settime (Depends-on): Likewise.
77348
77349         * modules/fts-lgpl: Depend on openat.
77350         * modules/mkancesdirs: Depend on savewd.
77351         * modules/mkdir-p: Likewise.
77352
77353 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77354
77355         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
77356
77357         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
77358         `gl_have_arbitrary_file_name_length_limit' to
77359         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
77360         actually works between configure runs.
77361
77362 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77363             Bruno Haible  <bruno@clisp.org>
77364
77365         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
77366
77367 2006-09-25  Jim Meyering  <jim@meyering.net>
77368
77369         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
77370         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
77371
77372 2006-09-25  Eric Blake  <ebb9@byu.net>
77373
77374         * gnulib-tool (func_import, func_create_testdir): Fix typos in
77375         exec's in 2006-09-18 patch when shuffling fds.
77376
77377 2006-09-25  Bruno Haible  <bruno@clisp.org>
77378
77379         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
77380         Reported by Jim Meyering.
77381
77382 2006-09-24  Jim Meyering  <jim@meyering.net>
77383
77384         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
77385         compare a pointer against a literal "0".  That caused failures with
77386         at least HP-UX's hpcc.
77387
77388 2006-09-22  Simon Josefsson  <jas@extundo.com>
77389
77390         * modules/gc-sha1:
77391         * modules/gc-md4:
77392         * modules/gc-hmac-sha1:
77393         * modules/gc-hmac-md5:
77394         * modules/gc-des:
77395         * modules/gc-arcfour: Distribute more files.
77396
77397 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77398
77399         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
77400         (gl_linked_iterator_from_to): Initialize struct completely.
77401         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
77402         (gl_tree_iterator_from_to): Likewise
77403         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
77404         * lib/gl_array_list.c [lint] (gl_array_iterator)
77405         (gl_array_iterator_from_to): Likewise.
77406         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
77407         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
77408         (gl_carray_iterator_from_to): Likewise.
77409
77410         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
77411         * lib/md4.c (md4_process_block): Remove unused variable.
77412         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
77413         parentheses for clarity.
77414
77415 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77416
77417         * modules/bison-i18n (Depends-on): Add gettext.
77418
77419 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77420
77421         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
77422         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
77423         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
77424         also add missing comma that caused broken test.
77425         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
77426         stdlib.h, for `abort'.
77427         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
77428         variables.
77429         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
77430         include unistd.h if present, for `rmdir'.
77431         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
77432         variables.
77433         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
77434         in the process include standard headers for prototypes.
77435         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
77436         gets declared on GNU/Linux.
77437         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
77438         unistd.h, for `rmdir'.
77439         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
77440
77441         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
77442         always true.
77443         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
77444
77445         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
77446
77447 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77448
77449         * gnulib-tool (func_version): Create output all at once.  This
77450         may help avoid triggering unnecessary SIGPIPEs, and at any
77451         rate it doesn't hurt.
77452
77453 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77454             Bruno Haible  <bruno@clisp.org>
77455
77456         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
77457         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
77458         * m4/signed.m4 (bh_C_SIGNED): Likewise.
77459
77460         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
77461         (gl_FUNC_VASPRINTF): Invoke it.
77462
77463 2006-09-22  Bruno Haible  <bruno@clisp.org>
77464
77465         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
77466         getloadavg.c as first argument.
77467
77468 2006-09-22  Bruno Haible  <bruno@clisp.org>
77469
77470         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
77471         at the beginning of the gl_INIT macro.
77472         * modules/getloadavg (configure.ac): Pass $gl_source_base to
77473         gl_GETLOADAVG.
77474
77475 2006-09-22  Bruno Haible  <bruno@clisp.org>
77476
77477         * gnulib-tool (func_create_megatestdir): Don't include the config-h
77478         module.
77479         Suggested by Ralf Wildenhues.
77480
77481 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
77482
77483         Import this patch from libc:
77484
77485         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
77486
77487         * lib/regex_internal.c (re_string_reconstruct): Handle
77488         offset < pstr->valid_raw_len && pstr->offsets_needed case.
77489         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
77490         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
77491         re_string_context_at.
77492
77493         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
77494         now requires it.
77495         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
77496         gl_REGEX now does it for us.
77497         (gl_REGEX): Add test taken from
77498         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
77499
77500         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
77501         Check that large offsets work.  Modernize Autoconf usages.
77502         Prefer "yes" to mean a good thing rather than a bad.
77503         Don't put "#define mkstemp" in config.h, as this might interfere
77504         with standard system headers that "#define mkstemp mkstemp64".
77505
77506         * modules/mkstemp (Depends-on): Add extensions, so that
77507         mkstemp is visible on some platforms.
77508         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
77509         (Include): Change to "mkstemp.h" from <stdlib.h>.
77510         (Files): Add mkstemp.h.
77511
77512         * lib/mkstemp.h: New file, since some standard headers
77513         #define mkstemp.
77514         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
77515         Include "mkstemp.h".
77516         Make the _LIBC code resemble glibc original more,
77517         e.g., use K&R style.
77518         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
77519         (mkstemp): Remove, since mkstemp.h does this for us.
77520         * lib/stdlib--.h: Include mkstemp.h.
77521
77522         Import this patch from libc:
77523
77524         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77525
77526         * lib/tempname.c (__gen_tempname): Change attempts_min
77527         into a macro.  Use preprocessor to decide how to initialize
77528         attempts [Coverity CID 67].
77529
77530 2006-09-20  Bruno Haible  <bruno@clisp.org>
77531
77532         * lib/mkdtemp.c: Import from libc.
77533         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
77534                 * sysdeps/posix/tempname.c (__gen_tempname): Change
77535                 attempts_min into a macro.  Use preprocessor to decide how to
77536                 initialize attempts [Coverity CID 67].
77537         2001-11-27  Paul Eggert  <eggert@twinsun.com>
77538                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
77539                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
77540
77541 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77542
77543         * gnulib-tool (func_exit): New function, to allow to pass the
77544         exit status portably through the trap.  Use everywhere.
77545         (--help, --version): Signal a write error.
77546         (trap): catch SIGPIPE, for write errors.
77547         Exit at the end of the trap, with the correct exit status.
77548
77549 2006-09-19  Karl Berry  <karl@gnu.org>
77550
77551         * doc/gnulib.texi: note about the license texinfo files.
77552
77553 2006-09-19  Eric Blake  <ebb9@byu.net>
77554
77555         * gnulib-tool: Avoid space-tab.
77556
77557 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77558
77559         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
77560         that prevented coreutils 6.1 from building.  Problem reported
77561         by Petter Reinholdtsen.
77562
77563 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
77564
77565         * gnulib-tool (avoidlist): Fix typo that broke options like
77566         --avoid=lock that are used by coreutils bootstrap.
77567
77568 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
77569
77570         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
77571         more systematically.
77572
77573 2006-09-18  Jim Meyering  <jim@meyering.net>
77574
77575         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
77576
77577 2006-09-18  Bruno Haible  <bruno@clisp.org>
77578
77579         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
77580
77581 2006-09-18  Bruno Haible  <bruno@clisp.org>
77582
77583         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
77584         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
77585         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
77586         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
77587         * m4/gettext.m4: Require autoconf >= 2.52.
77588         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
77589         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
77590         of gl_cv_header_inttypes_h.
77591
77592 2006-09-18  Bruno Haible  <bruno@clisp.org>
77593
77594         * lib/javaversion.c: Include configmake.h.
77595
77596 2006-09-18  Bruno Haible  <bruno@clisp.org>
77597
77598         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
77599         avoid that the while loops be executed in a subshell.
77600
77601 2006-09-18  Bruno Haible  <bruno@clisp.org>
77602
77603         * MODULES.html.sh (func_module): Break long lines.
77604         Suggested by Bruce Korb <bkorb@gnu.org>.
77605
77606 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77607
77608         Speed up by a factor of 1.12.
77609         * gnulib-tool (nl): New variable.
77610         (func_import): Rewrite include directive extraction to only read each
77611         directive once.
77612
77613 2006-09-17  Bruno Haible  <bruno@clisp.org>
77614
77615         * modules/javaversion (Makefile.am): Remove DEFS setting.
77616         (Depends-on): Add configmake, for PKGDATADIR definition.
77617
77618 2006-09-17  Bruno Haible  <bruno@clisp.org>
77619
77620         * gnulib-tool (func_create_testdir): Rewrite all files at once.
77621
77622 2006-09-17  Bruno Haible  <bruno@clisp.org>
77623
77624         * gnulib-tool (func_append): New function, stolen from libtool.m4.
77625         (func_modules_transitive_closure, func_modules_add_dummy,
77626         func_modules_to_filelist, func_import, func_create_testdir,
77627         func_create_megatestdir, ...): Use it wherever possible.
77628         Suggested by Ralf Wildenhues.
77629
77630 2006-09-16  Karl Berry  <karl@gnu.org>
77631
77632         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
77633         to avoid sectioning errors.
77634         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
77635         [ifinfo]: blank line after @center-ed titles.
77636         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
77637         Spell FSF address consistently with others.
77638         (These changes approved by rms.)
77639
77640 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77641
77642         Speed up by a factor of 1.61.
77643         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
77644         already checked module names again.
77645
77646 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77647
77648         Speed up by a factor of 1.13.
77649         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
77650         for new_files, and the input to func_add_or_update.
77651
77652 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77653
77654         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
77655         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
77656
77657 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77658
77659         * modules/mkancesdirs (Depends-on): Add fcntl.
77660         * modules/savewd: New file.
77661         * MODULES.html.sh (File system functions): Add savewd.
77662
77663         * modules/configmake (Makefile.am): Add support for the
77664         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
77665
77666 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77667
77668         * m4/savewd.m4: New file.
77669
77670 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
77671
77672         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
77673         (dirchownmod): New arg FD.  All callers changed.
77674         Use FD rather than opening the directory ourself, as opening is
77675         now the caller's responsibility.
77676         * lib/dirchownmod.h: Likewise.
77677         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
77678         hosts that require <sys/types.h> before <sys/stat.h>.  Include
77679         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
77680         (test_dir): Remove.
77681         (mkancesdirs): Return length of prefix of FILE that has already
77682         been made, or -2 if there is a child doing the work.  Redo
77683         algorithm so that it is O(N) rather than O(N**2).  Optimize away
77684         ".", and treat ".." specially since it might stray back into
77685         already-created areas.  Use a subprocess if necessary.  New arg
77686         WD; all users changed.  MAKE_DIR function should now return 1
77687         if it creates a directory that is not readable.  Return -2 if
77688         a child process is spun off.
77689         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
77690         Adjust signature to match code.
77691         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
77692         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
77693         all users changed.
77694         * lib/savewd.c, lib/savewd.h: New files.
77695
77696 2006-09-15  Jim Meyering  <jim@meyering.net>
77697
77698         * modules/rename-dest-slash: New module.
77699         * MODULES.html.sh (posix_compat): Add it here.
77700
77701         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
77702
77703 2006-09-15  Jim Meyering  <jim@meyering.net>
77704
77705         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
77706         file.
77707
77708         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
77709
77710 2006-09-15  Jim Meyering  <jim@meyering.net>
77711
77712         * lib/rename-dest-slash.c (has_trailing_slash): Use
77713         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
77714         (rpl_rename_dest_slash): Perform the cheaper trailing slash
77715         test before testing whether SRC is a directory.
77716         Suggestions from Bruno Haible.
77717
77718         Avoid a warning about an unused variable.
77719         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
77720         into the #ifdef block where it's used.
77721
77722         * lib/rename-dest-slash.c: New file.
77723
77724 2006-09-14  Bruno Haible  <bruno@clisp.org>
77725
77726         * lib/allocsa.c: Include <config.h> unconditionally.
77727         * lib/asnprintf.c: Likewise.
77728         * lib/asprintf.c: Likewise.
77729         * lib/c-strcasecmp.c: Likewise.
77730         * lib/c-strcasestr.c: Likewise.
77731         * lib/c-strncasecmp.c: Likewise.
77732         * lib/c-strstr.c: Likewise.
77733         * lib/classpath.c: Likewise.
77734         * lib/clean-temp.c: Likewise.
77735         * lib/concatpath.c: Likewise.
77736         * lib/copy-file.c: Likewise.
77737         * lib/csharpcomp.c: Likewise.
77738         * lib/csharpexec.c: Likewise.
77739         * lib/execute.c: Likewise.
77740         * lib/fatal-signal.c: Likewise.
77741         * lib/findprog.c: Likewise.
77742         * lib/fwriteerror.c: Likewise.
77743         * lib/gl_array_list.c: Likewise.
77744         * lib/gl_array_oset.c: Likewise.
77745         * lib/gl_avltree_list.c: Likewise.
77746         * lib/gl_avltree_oset.c: Likewise.
77747         * lib/gl_avltreehash_list.c: Likewise.
77748         * lib/gl_carray_list.c: Likewise.
77749         * lib/gl_linked_list.c: Likewise.
77750         * lib/gl_linkedhash_list.c: Likewise.
77751         * lib/gl_list.c: Likewise.
77752         * lib/gl_oset.c: Likewise.
77753         * lib/gl_rbtree_list.c: Likewise.
77754         * lib/gl_rbtree_oset.c: Likewise.
77755         * lib/gl_rbtreehash_list.c: Likewise.
77756         * lib/imaxabs.c: Likewise.
77757         * lib/imaxdiv.c: Likewise.
77758         * lib/javacomp.c: Likewise.
77759         * lib/javaexec.c: Likewise.
77760         * lib/javaversion.c: Likewise.
77761         * lib/linebreak.c: Likewise.
77762         * lib/localcharset.c: Likewise.
77763         * lib/lock.c: Likewise.
77764         * lib/mbchar.c: Likewise.
77765         * lib/mbswidth.c: Likewise.
77766         * lib/mkdtemp.c: Likewise.
77767         * lib/pipe.c: Likewise.
77768         * lib/printf-args.c: Likewise.
77769         * lib/printf-parse.c: Likewise.
77770         * lib/progname.c: Likewise.
77771         * lib/progreloc.c: Likewise.
77772         * lib/readlink.c: Likewise.
77773         * lib/sh-quote.c: Likewise.
77774         * lib/stpcpy.c: Likewise.
77775         * lib/stpncpy.c: Likewise.
77776         * lib/strcasecmp.c: Likewise.
77777         * lib/strcasestr.c: Likewise.
77778         * lib/strcspn.c: Likewise.
77779         * lib/striconv.c: Likewise.
77780         * lib/strncasecmp.c: Likewise.
77781         * lib/strnlen1.c: Likewise.
77782         * lib/strstr.c: Likewise.
77783         * lib/strtok_r.c: Likewise.
77784         * lib/tls.c: Likewise.
77785         * lib/tmpdir.c: Likewise.
77786         * lib/unicodeio.c: Likewise.
77787         * lib/unsetenv.c: Likewise.
77788         * lib/vasnprintf.c: Likewise.
77789         * lib/vasprintf.c: Likewise.
77790         * lib/wait-process.c: Likewise.
77791         * lib/xallocsa.c: Likewise.
77792         * lib/xsetenv.c: Likewise.
77793         * lib/xstriconv.c: Likewise.
77794
77795 2006-09-13  Simon Josefsson  <jas@extundo.com>
77796
77797         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
77798         that internally, suggested by Ralf Wildenhues
77799         <Ralf.Wildenhues@gmx.de>.
77800
77801 2006-09-13  Simon Josefsson  <jas@extundo.com>
77802
77803         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
77804         @LIBOBJS@.
77805         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77806
77807 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
77808
77809         * lib/_fpending.c: Include <config.h> unconditionally, since we no
77810         longer worry about uses that don't define HAVE_CONFIG_H.
77811         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77812         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77813         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77814         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77815         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77816         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77817         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77818         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77819         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77820         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77821         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77822         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77823         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77824         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77825         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77826         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77827         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77828         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77829         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77830         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77831         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77832         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77833         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77834         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77835         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77836         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77837         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77838         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77839         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77840         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77841         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77842         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77843         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77844         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77845         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77846         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77847         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77848         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77849         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77850         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77851         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77852         Likewise.
77853
77854 2006-09-13  Eric Blake  <ebb9@byu.net>
77855
77856         * lib/getopt.c: Fix typo in last commit.
77857
77858 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77859
77860         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77861         dgettext.
77862
77863 2006-09-12  Jim Meyering  <jim@meyering.net>
77864
77865         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77866         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77867         Reported by Nelson H. F. Beebe.
77868
77869 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77870
77871         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77872         program_invocation_name and program_invocation_short_name are
77873         initialized.
77874         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77875         and program_invocation_short_name to argp.h, so they are visible
77876         to user programs.
77877         * lib/argp.h: Likewise
77878
77879 2006-09-10  Bruno Haible  <bruno@clisp.org>
77880
77881         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77882         m4/inttypes_h.m4, m4/uintmax_t.m4.
77883
77884 2006-09-10  Bruno Haible  <bruno@clisp.org>
77885
77886         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77887         gl_AC_TYPE_UINTMAX_T.
77888
77889 2006-09-10  Bruno Haible  <bruno@clisp.org>
77890
77891         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77892
77893 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77894
77895         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77896         convention.  Text proposed by Bruno Haible.
77897         (struct argp_option): Document the use of N_() wrappers.
77898
77899         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77900         '\v', and translate the two parts separately, instead of feeding
77901         the whole string to gettext.  This allows to exclude
77902         '\v' from the strings visible to the translator by writing doc
77903         strings as N_("..") "\v" N_("..").
77904
77905 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77906
77907         * config/srclist.txt: Undo latest change; the bug was fixed.
77908
77909 2006-09-09  Bruno Haible  <bruno@clisp.org>
77910
77911         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77912         assignments if building a library without libtool.
77913         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77914         in func_emit_lib_Makefile_am.
77915         (func_import): When building a static library libfoo.a, arrange to
77916         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77917         (func_create_testdir): Likewise.
77918         * modules/gc (configure.ac, Makefile.am): If building statically,
77919         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77920         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77921         * modules/striconv (configure.ac, Makefile.am): Likewise.
77922         Based on a suggestion by Ralf Wildenhues.
77923
77924 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77925
77926         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77927         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77928         Also:
77929
77930         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77931         Add year_2050_test to catch glibc bug 2821
77932         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77933
77934         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77935         Prefer #ifdef to #if.
77936
77937         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77938         Return from 'main' instead of calling 'exit'.
77939
77940 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77941
77942         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77943         returned the maximum time_t value rather than (time_t) -1.
77944         Problem originally reported by William Bardwell
77945         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77946
77947         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77948         Moved to here ...
77949         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77950         ... from here.
77951
77952 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77953
77954         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77955         2821 is fixed.
77956
77957 2006-09-08  Jim Meyering  <jim@meyering.net>
77958
77959         Don't make generated files read-only.  That would bother too many
77960         people.  However, do retain the ability to work when targets are
77961         read-only: remove the destination and temporary files before writing
77962         them (when generated via sed or echo), or by using the -f option for
77963         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77964         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77965         * modules/byteswap, modules/configmake, modules/fcntl:
77966         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77967         * modules/localcharset, modules/netinet_in, modules/poll:
77968         * modules/stdbool, modules/stdint, modules/sys_select:
77969         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77970
77971 2006-09-08  Jim Meyering  <jim@meyering.net>
77972
77973         Avoid new build failure on FreeBSD 6.0.
77974         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77975         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77976         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77977
77978 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77979
77980         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77981
77982 2006-09-07  Jim Meyering  <jim@meyering.net>
77983
77984         Fix global typo in last change: use chmod u-w, not chmod u-x.
77985         Spotted by Paul Eggert and Bruce Korb.
77986         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77987         * modules/byteswap, modules/configmake, modules/fcntl:
77988         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77989         * modules/localcharset, modules/netinet_in, modules/poll:
77990         * modules/stdbool, modules/stdint, modules/sys_select:
77991         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77992
77993 2006-09-06  Jim Meyering  <jim@meyering.net>
77994
77995         Make generated files be read-only.
77996         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77997         Ensure that each generated file is now read-only.
77998         * modules/argz: Likewise.
77999         * modules/arpa_inet: Likewise.
78000         * modules/byteswap: Likewise.
78001         * modules/configmake: Likewise.
78002         * modules/fcntl: Likewise.
78003         * modules/fnmatch: Likewise.
78004         * modules/getopt: Likewise.
78005         * modules/glob: Likewise.
78006         * modules/inttypes: Likewise.
78007         * modules/netinet_in: Likewise.
78008         * modules/poll: Likewise.
78009         * modules/stdbool: Likewise.
78010         * modules/stdint: Likewise.
78011         * modules/sys_select: Likewise.
78012         * modules/sys_socket: Likewise.
78013         * modules/sys_stat: Likewise.
78014         * modules/sysexits: Likewise.
78015         * modules/localcharset: Same as above, but continue using temporary
78016         file named "t-$@" (why different?) rather than the "$@-t" used
78017         everywhere else.
78018
78019         * modules/sysexits (Makefile.am): Replace literal occurrences
78020         of "sysexit.h" more readable, and more consistent, "$@".
78021
78022 2006-09-06  Bruno Haible  <bruno@clisp.org>
78023
78024         * modules/striconv: New file.
78025         * modules/xstriconv: New file.
78026         * MODULES.html.sh (Internationalization functions): Add striconv,
78027         xstriconv.
78028
78029 2006-09-06  Bruno Haible  <bruno@clisp.org>
78030
78031         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
78032         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
78033         not using libtool correctly.
78034
78035 2006-09-06  Bruno Haible  <bruno@clisp.org>
78036
78037         * lib/striconv.h: New file.
78038         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
78039         iconvstring.c.
78040         * lib/xstriconv.h: New file.
78041         * lib/xstriconv.c: New file.
78042
78043 2006-09-06  Bruno Haible  <bruno@clisp.org>
78044
78045         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
78046         lib_..._LDFLAGS.
78047
78048 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78049
78050         * lib/argz_.h: Sync from Libtool.
78051
78052         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
78053                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78054
78055         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
78056
78057 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78058
78059         * modules/trim: New file.
78060
78061 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
78062
78063         * lib/trim.h: New file.
78064         * lib/trim.c: New file.
78065
78066 2006-09-05  Bruno Haible  <bruno@clisp.org>
78067
78068         * MODULES.html.sh (String handling): Add trim.
78069
78070 2006-09-04  Karl Berry  <karl@gnu.org>
78071
78072         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
78073         until next release.
78074
78075 2006-09-03  Bruno Haible  <bruno@clisp.org>
78076
78077         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
78078         correctly.
78079
78080 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78081
78082         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
78083         not gl_GETLOADAVG.  Omit unneeded semicolons.
78084         Problems reported by Ralf Wildenhues in
78085         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78086         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
78087         at the end, which is the usual gnulib style.
78088
78089         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
78090         of doing all the work ourselves.
78091         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
78092         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
78093
78094 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78095
78096         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
78097         Problem reported by Ralf Wildenhues in
78098         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
78099
78100         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
78101         HAVE_STRUCT_STATFS_F_FSTYPENAME.
78102
78103 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
78104
78105         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
78106         yesterday's patch by changing test -n to test -z.
78107
78108 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78109
78110         * modules/getloadavg (Files): Add m4/getloadavg.m4.
78111         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
78112         the former is now obsolescent.
78113
78114         * modules/chdir-long (Depends-on): Add fcntl.
78115
78116 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78117
78118         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
78119         obsolescent, and programs should use gnulib instead.
78120         * m4/getloadavg.m4: New file, with contents taken from Autoconf
78121         but with prefixes changed.
78122
78123 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
78124
78125         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
78126         or stdbool.h, because they might not exist while configuring.
78127
78128         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
78129         Don't include unistd.h or limits.h; not needed, since chdir-long.h
78130         does that for us.
78131         (O_DIRECTORY): Remove.
78132
78133 2006-08-31  Eric Blake  <ebb9@byu.net>
78134
78135         * gnulib-tool: Don't let emacs change spaces to TAB.
78136
78137 2006-08-31  Bruno Haible  <bruno@clisp.org>
78138
78139         * gnulib-tool: When calling func_import more than once, do it in a
78140         subshell.
78141         Reported by Eric Blake <ebb9@byu.net>.
78142
78143 2006-08-31  Bruno Haible  <bruno@clisp.org>
78144
78145         * gnulib-tool (nl): Remove variable.
78146         (sed_transform_lib_file): Use more robust test for config-h module.
78147         (func_import): Fix typo in 2006-08-25 patch.
78148
78149 2006-08-31  Bruno Haible  <bruno@clisp.org>
78150
78151         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
78152         specified, augment Makefile.am variables instead of assigning them.
78153
78154 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78155
78156         Work around a bug in both the Linux and SunOS 64-bit kernels:
78157         nanosleep mishandles sleeps for longer than 2**31 seconds.
78158         Problem reported by Frank v Waveren in
78159         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78160         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
78161         Check for nanosleep bug.
78162         (LIB_NANOSLEEP): Append clock_gettime library if needed.
78163
78164 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78165
78166         Work around a bug in both the Linux and SunOS 64-bit kernels:
78167         nanosleep mishandles sleeps for longer than 2**31 seconds.
78168         Problem reported by Frank v Waveren in
78169         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
78170         * lib/nanosleep.c (BILLION): New constant.
78171         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
78172         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
78173         implementation.
78174
78175 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78176
78177         * modules/nanosleep (Depends-on): Add gettime.
78178
78179 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
78180         and Simon Josefsson  <jas@extundo.com>
78181         and Oskar Liljeblad  <oskar@osk.mine.nu>
78182
78183         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
78184         * gnulib-tool (func_import): New license type 'unmodifiable license
78185         text'.
78186         * modules/fdl: Use it.  Longer description.
78187         * module/gpl, module/lgpl: New files.
78188
78189 2006-08-30  Jim Meyering  <jim@meyering.net>
78190
78191         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
78192         shadowing the parameter.
78193
78194 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78195
78196         Sync from Libtool:
78197
78198         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78199
78200         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
78201         sharing with gnulib.  Report by Eric Blake.
78202
78203 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78204
78205         * modules/isapipe: New file.
78206         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
78207
78208 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78209
78210         * modules/configmake (Makefile.am): Add a comment, and omit
78211         the CONFIGMAKE_ prefix from generated macro names.  Suggested
78212         by Bruno Haible.
78213
78214 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78215
78216         * m4/isapipe.m4: New file.
78217
78218 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
78219
78220         * lib/isapipe.c, lib/isapipe.h: New files.
78221
78222 2006-08-29  Jim Meyering  <jim@meyering.net>
78223
78224         * modules/configmake (Makefile.am): Make configmake.h depend on
78225         Makefile.  Otherwise, a stale configmake.h could hang around.
78226
78227 2006-08-29  Eric Blake  <ebb9@byu.net>
78228
78229         * lib/error.c (error_at_line, print_errno_message): Match libc, after
78230         resolution of upstream bug 3044.
78231
78232 2006-08-29  Bruno Haible  <bruno@clisp.org>
78233
78234         * modules/localcharset (Depends-on): Add configmake.
78235         (Makefile.am): Remove setting of LIBDIR through DEFS.
78236
78237 2006-08-29  Bruno Haible  <bruno@clisp.org>
78238
78239         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
78240         defined.
78241
78242 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78243
78244         * modules/fcntl: New file.
78245         * modules/chdir-safer (Depends-on): Add fcntl.
78246         * modules/fts: Likewise.
78247         * modules/mkdir-p: Likewise.
78248
78249         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
78250         This undoes the most recent change, since we're now addressing the
78251         problem in a different way.
78252
78253         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
78254         into output, since the output might be called Makefile.am even
78255         if $makefile_name is something different.
78256         (func_import): Use $makefile_am rather than
78257         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
78258         empty.
78259
78260         * modules/inttypes (Files): Add m4/inttypes-h.m4.
78261
78262 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78263
78264         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
78265         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
78266         recent change to stdint.m4, since we're now addressing the problem in a
78267         different way.
78268
78269 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78270
78271         * m4/fcntl_h.m4: New file.
78272
78273 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
78274
78275         * lib/fcntl_.h: New file.
78276         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
78277         the fcntl module.
78278         * lib/dirchownmod.c: Likewise.
78279         * lib/fts.c: Likewise.
78280
78281         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
78282         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
78283         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
78284         just before including <inttypes.h>, to avoid circular inclusion.
78285
78286 2006-08-28  Jim Meyering  <jim@meyering.net>
78287
78288         * doc/visibility.texi: Actually read and correct the grammar of the
78289         sentence affected by yesterday's change.
78290
78291 2006-08-28  Eric Blake  <ebb9@byu.net>
78292
78293         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
78294         needs wrapper.
78295
78296 2006-08-28  Eric Blake  <ebb9@byu.net>
78297
78298         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
78299
78300 2006-08-28  Eric Blake  <ebb9@byu.net>
78301
78302         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
78303
78304 2006-08-28  Bruno Haible  <bruno@clisp.org>
78305
78306         * modules/c-strstr: New file, from GNU gettext.
78307         * MODULES.html.sh (String handling): Add c-strstr.
78308
78309 2006-08-28  Bruno Haible  <bruno@clisp.org>
78310
78311         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
78312         macros.
78313         Reported by Eric Blake.
78314
78315 2006-08-28  Bruno Haible  <bruno@clisp.org>
78316
78317         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
78318         (VASNPRINTF): Return a string of length > INT_MAX without failing.
78319         * lib/vasprintf.c: Include errno.h, limits.h.
78320         (EOVERFLOW): New fallback definition.
78321         (vasprintf): Test here whether the string length is > INT_MAX.
78322         * lib/vsnprintf.c: Include errno.h, limits.h.
78323         (EOVERFLOW): New fallback definition.
78324         (vsnprintf): Fix bug when generated string was too long for the buffer.
78325         Test here whether the string length is > INT_MAX.
78326
78327 2006-08-28  Bruno Haible  <bruno@clisp.org>
78328
78329         * lib/inttypes_.h (SCNX*): Remove definitions.
78330         Reported by Eric Blake.
78331
78332 2006-08-28  Bruno Haible  <bruno@clisp.org>
78333
78334         * lib/c-strstr.h: New file, from GNU gettext.
78335         * lib/c-strstr.c: New file, from GNU gettext.
78336
78337 2006-08-28  Bruno Haible  <bruno@clisp.org>
78338
78339         * gnulib-tool: Reorder some statements.
78340
78341 2006-08-28  Bruno Haible  <bruno@clisp.org>
78342
78343         * gnulib-tool: New option --makefile-name.
78344         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
78345         $makefile_name.
78346         (func_import): Write $makefile_name to the cache file, and read it from
78347         there unless explicitly specified. Use $makefile_name as file name
78348         instead of Makefile.am. Adjust the recommendations accordingly.
78349
78350 2006-08-28  Bruno Haible  <bruno@clisp.org>
78351
78352         * gnulib-tool (func_verify_module): Check against misapplying patch.
78353
78354 2006-08-28  Bruno Haible  <bruno@clisp.org>
78355
78356         * gnulib-tool (func_relativize, func_relconcat): New functions.
78357         Give an error if --local-dir is given with --update.
78358         Remove trailing slashes from $local_gnulib_dir.
78359         (func_import): Store the relativized $local_gnulib_dir in
78360         gnulib-cache.m4, and read it from there if not specified explicitly.
78361
78362 2006-08-28  Bruno Haible  <bruno@clisp.org>
78363
78364         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
78365         is the current directory. Respect also $local_gnulib_dir.
78366
78367 2006-08-28  Bruno Haible  <bruno@clisp.org>
78368             Simon Josefsson  <jas@extundo.com>
78369
78370         BeOS portability.
78371         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
78372
78373 2006-08-27  Jim Meyering  <jim@meyering.net>
78374
78375         * doc/visibility.texi: Remove duplicate word: "pointer".
78376
78377 2006-08-26  Bruno Haible  <bruno@clisp.org>
78378
78379         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
78380         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
78381         (Makefile.am): Create inttypes.h from inttypes_.h.
78382         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
78383
78384         * modules/imaxabs: New file.
78385
78386         * modules/imaxdiv: New file.
78387
78388 2006-08-26  Bruno Haible  <bruno@clisp.org>
78389
78390         * m4/inttypes.m4: New file.
78391         * m4/_inttypes_h.m4: Remove file.
78392         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
78393         PRI_MACROS_BROKEN.
78394         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
78395
78396         * m4/imaxabs.m4: New file.
78397
78398         * m4/imaxdiv.m4: New file.
78399
78400 2006-08-26  Bruno Haible  <bruno@clisp.org>
78401
78402         * lib/inttypes_.h: New file.
78403         * lib/inttypes.h: Remove file.
78404         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
78405
78406         * lib/imaxabs.c: New file.
78407
78408         * lib/imaxdiv.c: New file.
78409
78410 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78411
78412         New config-h module, so that "make" output needn't be cluttered
78413         by -DHAVE_CONFIG_H.
78414         * MODULES.html.sh (Support for building libraries and executables):
78415         Add config-h.
78416         * modules/config-h: New file.
78417         * gnulib-tool (nl, sed_transform_lib_file): New vars.
78418         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
78419         the config-h module is used.
78420
78421         New configmake module, so that "make" output needn't be cluttered
78422         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
78423         * MODULES.html.sh (Support for building libraries and executables):
78424         Add configmake.
78425         * modules/configmake: New file.
78426
78427 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
78428
78429         * m4/config-h.m4: New file.
78430
78431 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78432
78433         * config/srclist.txt: Add elisp-comp.
78434
78435 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
78436
78437         * MODULES.html.sh (Support for building libraries and executables):
78438         Add elisp-comp.
78439         * build-aux/elisp-comp: New file.
78440         * modules/elisp-comp: New file.
78441
78442 2006-08-24  Bruno Haible  <bruno@clisp.org>
78443
78444         * gnulib-tool (func_create_testdir): Use non-default values of
78445         sourcebase and m4base.
78446
78447 2006-08-24  Bruno Haible  <bruno@clisp.org>
78448
78449         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
78450         HTML structure.
78451
78452 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78453
78454         * modules/openat (Depends-on): Add lchown.
78455
78456 2006-08-23  Bruno Haible  <bruno@clisp.org>
78457
78458         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
78459         of gl_LOCK_EARLY instead of gl_LOCK.
78460
78461 2006-08-23  Bruno Haible  <bruno@clisp.org>
78462
78463         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
78464         on OSF/1 to no.
78465         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
78466
78467 2006-08-23  Bruno Haible  <bruno@clisp.org>
78468
78469         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
78470         as unusable.
78471
78472         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
78473         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
78474         (gl_LOCK): New macro.
78475
78476 2006-08-22  Simon Josefsson  <jas@extundo.com>
78477
78478         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
78479         to md5 module.
78480
78481 2006-08-22  Simon Josefsson  <jas@extundo.com>
78482
78483         * MODULES.html.sh: Add "Support for maintaining and release
78484         projects".
78485
78486         * build-aux/gnupload: New file, from coreutils.
78487
78488 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78489
78490         Avoid the need for AC_LIBSOURCES in m4 macros.
78491         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
78492         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
78493         * modules/check-version (EXTRA_DIST): Add check-version.h.
78494         * modules/crc (EXTRA_DIST): Add crc.h.
78495         * modules/des (EXTRA_DIST): Add des.h.
78496         * modules/gc (EXTRA_DIST): Add gc.h.
78497         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
78498         * modules/getline (EXTRA_DIST): Add getline.h.
78499         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
78500         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
78501         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
78502         * modules/md2 (EXTRA_DIST): Add md2.h.
78503         * modules/md4 (EXTRA_DIST): Add md4.h.
78504         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
78505         * modules/read-file (EXTRA_DIST): Add read-file.h.
78506         * modules/readline (EXTRA_DIST): Add readline.h.
78507         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
78508         rijndael-api-fst.h.
78509
78510 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78511
78512         * m4/rijndael.m4 (gl_ARCFOUR):
78513         * m4/arctwo.m4 (gl_ARCTWO):
78514         * m4/check-version.m4 (gl_CHECK_VERSION):
78515         * m4/crc.m4 (gl_CRC):
78516         * m4/des.m4 (gl_DES):
78517         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
78518         * m4/gc.m4 (gl_GC):
78519         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
78520         * m4/getline.m4 (gl_FUNC_GETLINE):
78521         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
78522         * m4/hmac-md5.m4 (gl_HMAC_MD5):
78523         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
78524         * m4/md2.m4 (gl_MD2):
78525         * m4/md4.m4 (gl_MD4):
78526         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
78527         * m4/read-file.m4 (gl_FUNC_READ_FILE):
78528         * m4/readline.m4 (gl_FUNC_READLINE):
78529         * m4/rijndael.m4 (gl_RIJNDAEL):
78530         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78531         to get the necessary .h files and whatnot.
78532
78533 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
78534
78535         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
78536         gnulib rather than the other way around.
78537         * config/srclistvars.sh (COREUTILS): Remove.
78538
78539 2006-08-22  Jim Meyering  <jim@meyering.net>
78540
78541         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
78542
78543         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
78544
78545 2006-08-22  Eric Blake  <ebb9@byu.net>
78546
78547         * modules/regexprops-generic: New file.
78548         * MODULES.html.sh (Support for building documentation): List it.
78549
78550 2006-08-22  Eric Blake  <ebb9@byu.net>
78551
78552         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
78553         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
78554         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
78555         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
78556
78557 2006-08-22  Bruno Haible  <bruno@clisp.org>
78558
78559         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
78560         and lib_LTLIBRARIES like the other lib_* variables.
78561
78562 2006-08-22  Bruno Haible  <bruno@clisp.org>
78563
78564         * build-aux/x-to-1.in: New file, from GNU gettext.
78565
78566 2006-08-22  Bruno Haible  <bruno@clisp.org>
78567
78568         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
78569         <utmpx.h> exists.
78570
78571 2006-08-22  Bruno Haible  <bruno@clisp.org>
78572
78573         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
78574         <utmpx.h> exists.
78575
78576 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78577
78578         BeOS portability.
78579         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
78580         exist.
78581         Problem reported by Bruno Haible.
78582
78583 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78584
78585         Avoid the need for AC_LIBSOURCES in m4 macros.
78586         * modules/acl (EXTRA_DIST): Add acl.h.
78587         * modules/argmatch (Files): Add m4/argmatch.m4.
78588         (configure.ac): Add gl_ARGMATCH.
78589         (EXTRA_DIST): Renamed from lib_SOURCES, for
78590         consistency with the other modules.  Remove argmatch.c.
78591         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
78592         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
78593         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
78594         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
78595         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
78596         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
78597         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
78598         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
78599         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
78600         * modules/closeout (EXTRA_DIST): Add closeout.h.
78601         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
78602         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
78603         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
78604         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
78605         dirname.h; remove basename.c and stripslash.c.
78606         * modules/exclude (EXTRA_DIST): Add exclude.h.
78607         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
78608         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
78609         * modules/file-type (EXTRA_DIST): Add file-type.h.
78610         * modules/filemode (EXTRA_DIST): Add filemode.h.
78611         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
78612         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78613         * modules/fpending (EXTRA_DIST): Add __fpending.h.
78614         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
78615         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
78616         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
78617         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
78618         * modules/getdate (EXTRA_DIST): Add getdate.c.
78619         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
78620         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
78621         * modules/getpass (EXTRA_DIST): Add getpass.h.
78622         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
78623         * modules/group-member (EXTRA_DIST): Add group-member.h.
78624         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
78625         * modules/hash (EXTRA_DIST): Add hash.h.
78626         * modules/human (EXTRA_DIST): Add human.h.
78627         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
78628         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
78629         * modules/lchown (EXTRA_DIST): Add lchown.h.
78630         * modules/long-options (EXTRA_DIST): Add long-options.h.
78631         * modules/lstat (EXTRA_DIST): Add lstat.h.
78632         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
78633         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
78634         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
78635         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
78636         * modules/memxor (EXTRA_DIST): Add memxor.h.
78637         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
78638         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
78639         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
78640         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
78641         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
78642         * modules/physmem (EXTRA_DIST): Add physmem.h.
78643         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
78644         * modules/posixver (EXTRA_DIST): Add posixver.h.
78645         * modules/quote (EXTRA_DIST): Add quote.h.
78646         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
78647         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
78648         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
78649         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
78650         regex_internal.h regexec.c.
78651         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
78652         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
78653         * modules/same (EXTRA_DIST): Add same.h.
78654         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
78655         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
78656         * modules/savedir (EXTRA_DIST): Add savedir.h.
78657         * modules/sha1 (EXTRA_DIST): Add sha1.h.
78658         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
78659         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
78660         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
78661         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
78662         * modules/strdup (EXTRA_DIST): Add strdup.h.
78663         * modules/strftime (EXTRA_DIST): Add strftime.h.
78664         * modules/strndup (EXTRA_DIST): Add strndup.h.
78665         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
78666         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
78667         * modules/time_r (EXTRA_DIST): Add time_r.h.
78668         * modules/timespec (EXTRA_DIST): Add timespec.h.
78669         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
78670         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
78671         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
78672         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
78673         * modules/userspec (EXTRA_DIST): Add userspec.h.
78674         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
78675         * modules/utimens (EXTRA_DIST): Add utimens.h.
78676         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
78677         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
78678         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
78679         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
78680         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
78681         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
78682         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
78683         * modules/yesno (EXTRA_DIST): Add yesno.h.
78684
78685 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
78686
78687         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
78688
78689         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
78690         * m4/dev-ino.m4, same-inode.m4: Remove.
78691
78692         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
78693         * m4/acl.m4 (AC_FUNC_ACL):
78694         * m4/backupfile.m4 (gl_BACKUPFILE):
78695         * m4/c-strtod.m4 (gl_C99_STRTOLD):
78696         * m4/canon-host.m4 (gl_CANON_HOST):
78697         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
78698         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
78699         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
78700         * m4/cloexec.m4 (gl_CLOEXEC):
78701         * m4/close-stream.m4 (gl_CLOSE_STREAM):
78702         * m4/closeout.m4 (gl_CLOSEOUT):
78703         * m4/dirfd.m4 (gl_FUNC_DIRFD):
78704         * m4/dirname.m4 (gl_DIRNAME):
78705         * m4/exclude.m4 (gl_EXCLUDE):
78706         * m4/exitfail.m4 (gl_EXITFAIL):
78707         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
78708         * m4/file-type.m4 (gl_FILE_TYPE):
78709         * m4/filemode.m4 (gl_FILEMODE):
78710         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
78711         * m4/fpending.m4 (gl_FUNC_FPENDING):
78712         * m4/fprintftime.m4 (gl_FPRINTFTIME):
78713         * m4/fts.m4 (gl_FUNC_FTS):
78714         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
78715         * m4/getdate.m4 (gl_GETDATE):
78716         * m4/gethrxtime.m4 (gl_GETHRXTIME):
78717         * m4/getpagesize.m4 (gl_GETPAGESIZE):
78718         * m4/getpass.m4 (gl_FUNC_GETPASS):
78719         * m4/gettime.m4 (gl_GETTIME):
78720         * m4/getugroups.m4 (gl_GETUGROUPS):
78721         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
78722         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
78723         * m4/hard-locale.m4 (gl_HARD_LOCALE):
78724         * m4/hash.m4 (gl_HASH):
78725         * m4/idcache.m4 (gl_IDCACHE):
78726         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
78727         * m4/lchown.m4 (gl_FUNC_LCHOWN):
78728         * m4/long-options.m4 (gl_LONG_OPTIONS):
78729         * m4/lstat.m4 (gl_FUNC_LSTAT):
78730         * m4/md5.m4 (gl_MD5):
78731         * m4/memcasecmp.m4 (gl_MEMCASECMP):
78732         * m4/memcoll.m4 (gl_MEMCOLL):
78733         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
78734         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
78735         * m4/memxor.m4 (gl_MEMXOR):
78736         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
78737         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
78738         * m4/modechange.m4 (gl_MODECHANGE):
78739         * m4/mountlist.m4 (gl_MOUNTLIST):
78740         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
78741         * m4/openat.m4 (gl_FUNC_OPENAT):
78742         * m4/pathmax.m4 (gl_PATHMAX):
78743         * m4/physmem.m4 (gl_PHYSMEM):
78744         * m4/posixtm.m4 (gl_POSIXTM):
78745         * m4/posixver.m4 (gl_POSIXVER):
78746         * m4/quote.m4 (gl_QUOTE):
78747         * m4/quotearg.m4 (gl_QUOTEARG):
78748         * m4/readtokens.m4 (gl_READTOKENS):
78749         * m4/readutmp.m4 (gl_READUTMP):
78750         * m4/regex.m4 (gl_REGEX):
78751         * m4/safe-read.m4 (gl_SAFE_READ):
78752         * m4/safe-write.m4 (gl_SAFE_WRITE):
78753         * m4/same.m4 (gl_SAME):
78754         * m4/save-cwd.m4 (gl_SAVE_CWD):
78755         * m4/savedir.m4 (gl_SAVEDIR):
78756         * m4/settime.m4 (gl_SETTIME):
78757         * m4/sha1.m4 (gl_SHA1):
78758         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
78759         * m4/stat-macros.m4 (gl_STAT_MACROS):
78760         * m4/stat-time.m4 (gl_STAT_TIME):
78761         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
78762         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
78763         * m4/strdup.m4 (gl_FUNC_STRDUP):
78764         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
78765         * m4/strndup.m4 (gl_FUNC_STRNDUP):
78766         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
78767         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
78768         * m4/time_r.m4 (gl_TIME_R):
78769         * m4/timespec.m4 (gl_TIMESPEC):
78770         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
78771         * m4/unlinkdir.m4 (gl_UNLINKDIR):
78772         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
78773         * m4/userspec.m4 (gl_USERSPEC):
78774         * m4/utimecmp.m4 (gl_UTIMECMP):
78775         * m4/utimens.m4 (gl_UTIMENS):
78776         * m4/xalloc.m4 (gl_XALLOC):
78777         * m4/xgetcwd.m4 (gl_XGETCWD):
78778         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
78779         * m4/xreadlink.m4 (gl_XREADLINK):
78780         * m4/xstrtod.m4 (gl_XSTRTOD):
78781         * m4/yesno.m4 (gl_YESNO):
78782         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
78783         to get the necessary .h files and whatnot.
78784
78785 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
78786             Bruno Haible  <bruno@clisp.org>
78787
78788         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
78789         /bin/sh understanding of '!' conditional negation.
78790
78791 2006-08-21  Jim Meyering  <jim@meyering.net>
78792
78793         * modules/openat (Depends-on): Really alphabetize.
78794
78795         * modules/acl (Depends-on): Add error and quote.
78796
78797         * check-module (find_included_lib_files): Add at-func.c to the
78798         ok-to-include-more-than-once white list.
78799
78800         * modules/openat (Depends-on): Add lstat.  Alphabetize.
78801
78802 2006-08-21  Bruno Haible  <bruno@clisp.org>
78803
78804         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78805         Emit a pkgdata_DATA variable only if some snippets add contents to it.
78806         Reported by Martin Lambers <marlam@marlam.de>.
78807
78808 2006-08-21  Bruno Haible  <bruno@clisp.org>
78809
78810         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78811         specify an installation location, don't emit a noinst_LIBRARIES or
78812         noinst_LTLIBRARIES assignment.
78813
78814 2006-08-21  Bruno Haible  <bruno@clisp.org>
78815
78816         BeOS portability.
78817         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78818         BeOS has mbrtowc() but no <wctype.h>.
78819
78820 2006-08-21  Bruno Haible  <bruno@clisp.org>
78821
78822         BeOS portability.
78823         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78824         exist.
78825
78826 2006-08-21  Bruno Haible  <bruno@clisp.org>
78827
78828         BeOS portability.
78829         * lib/mbchar.h: Include <wctype.h> only if it exists.
78830
78831 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78832
78833         Remove files that are no longer needed by their respective modules.
78834         * m4/obstack.m4: Remove.
78835         * m4/strerror_r.m4: Remove.
78836         * m4/uint32_t.m4: Remove.
78837         * m4/uintptr_t.m4: Remove.
78838         * m4/ullong_max.m4: Remove.
78839         * m4/xstrtoimax.m4: Remove.
78840         * m4/xstrtoumax.m4: Remove.
78841
78842         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78843         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78844         dependencies now capture this.
78845
78846         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78847         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78848         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78849         * m4/human.m4 (gl_HUMAN): Likewise.
78850         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78851         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78852
78853         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78854
78855         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78856         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78857         stdint.
78858         * m4/human.m4 (gl_HUMAN): Likewise.
78859         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78860         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78861         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78862         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78863         * m4/xstrtol (gl_XSTRTOL): Likewise.
78864
78865         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78866         AC_TYPE_LONG_LONG_INT.
78867         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78868         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78869         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78870         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78871
78872         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78873         on stdbool.
78874
78875         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78876         (gl_PREREQ_XSTRTOUL): Remove.
78877
78878         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78879
78880         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78881         mode.
78882
78883 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         Add and change modules to make it easier for coreutils to use
78886         gnulib-tool.
78887         * modules/backupfile (Files): Remove m4/d-ino.m4.
78888         (Depends-on): Add d-ino.
78889         * modules/cycle-check (Depends-on): Add stdint.
78890         (lib_SOURCES): Add cycle-check.h.
78891         * modules/d-ino: New module.
78892         * modules/d-type: New module.
78893         * modules/error (Files): Remove m4/strerror_r.m4.
78894         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78895         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78896         m4/inttypes_h.m4, m4/uintmax_t.m4.
78897         (Depends-on): Add stdint.
78898         (lib_SOURCES): Add fsusage.h.
78899         * modules/getcwd (Files): Remove d-ino.m4.
78900         (Depends-on): Add d-ino.
78901         * modules/getndelim2 (Depends-on): Add stdint.
78902         * modules/glob (Files): Remove m4/d-type.m4.
78903         (Depends-on): Add d-type.
78904         * modules/host-os: New module.
78905         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78906         m4/inttypes_h.m4, m4/uintmax_t.m4.
78907         * Depends-on: Add stdint.
78908         (lib_SOURCES): Add human.h.
78909         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78910         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78911         m4/uintmax_t.m4, m4/ulonglong.m4.
78912         (Depends-on): Add stdint.
78913         (EXTRA_DIST): Add inttostr.h.
78914         * modules/lchmod: New module.
78915         * modules/link-follow: New module.
78916         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78917         (Depends-on): Add lchmod.
78918         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78919         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78920         (Depends-on): Add stdint.
78921         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78922         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78923         (Depends-on): Add stdint.
78924         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78925         * modules/perl: New module.
78926         * modules/regex (Depends-on): Add stdint.
78927         * modules/rmdir-errno: New module.
78928         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78929         m4/intmax_t.m4.
78930         (Depends-on): Add stdint.
78931         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78932         m4/uintmax_t.m4.
78933         (Depends-on): Add stdint.
78934         * modules/unlink-busy: New module.
78935         * modules/utimecmp (Depends-on): Add stdint.
78936         * modules/uptime: New module.
78937         * modules/winsz-ioctl: New module.
78938         * modules/winsz-termios: New module.
78939         * modules/xnanosleep (Depends-on): Add nanosleep.
78940         * modules/ullong_max: Remove.
78941         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78942         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78943         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78944         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78945         (Depends-on): Add inttypes.
78946         (lib_SOURCES): Add xstrtol.h.
78947         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78948         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78949         * MODULES.html.sh: Move 'assert' into the assert section.
78950         Move 'dummy' into the linking section.
78951         Remove ullong_max.
78952         Add section for compatibility checks for POSIX:2001 functions,
78953         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78954         winsz-ioctl, and winsz-termios into it.
78955         Add lchmod.
78956         Add top-level Misc section and put host-os, perl, and uptime
78957         into it.
78958
78959 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78960
78961         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78962         now assume the stdint module.  Do not include inttypes.h.
78963         * lib/fsusage.h: Likewise.
78964         * lib/getndelim2.c: Likewise.
78965         * lib/human.h: Likewise.
78966         * lib/inttostr.h: Likewise.
78967         * lib/obstack.c: Likewise.
78968         * lib/regex_internal.h: Likewise.
78969         * lib/tempname.c: Likewise.
78970         * lib/utimecmp.c: Likewise.
78971         * lib/xstrtol.h: Likewise.
78972
78973         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78974
78975         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78976         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78977         * lib/xtime.h: Likewise.
78978
78979 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78980
78981         * modules/openat (Files): Add lib/fchmodat.c.
78982         Fixes problem reported by Jay Youngman.
78983
78984 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78985
78986         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78987         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78988
78989 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78990             Bruno Haible  <bruno@clisp.org>
78991
78992         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78993         and is a script that invokes bison. Tighten the code. Add comments.
78994
78995 2006-08-18  Jim Meyering  <jim@meyering.net>
78996
78997         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78998         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78999         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
79000         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
79001
79002 2006-08-18  Bruno Haible  <bruno@clisp.org>
79003
79004         * modules/bison-i18n: New file.
79005         * MODULES.html.sh (Internationalization functions): Add it.
79006
79007 2006-08-18  Bruno Haible  <bruno@clisp.org>
79008
79009         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
79010         sys/statvfs.h. When getmntinfo was found, check its declaration and
79011         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
79012
79013 2006-08-18  Bruno Haible  <bruno@clisp.org>
79014
79015         * m4/bison-i18n.m4: New file, from bison.
79016
79017 2006-08-18  Bruno Haible  <bruno@clisp.org>
79018
79019         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
79020         (ME_DUMMY): Treat "kernfs" as a dummy.
79021         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
79022
79023 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79024
79025         Update from coreutils.
79026
79027         2006-08-15  Jim Meyering  <jim@meyering.net>
79028
79029         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
79030
79031         2006-01-17  Jim Meyering  <jim@meyering.net>
79032
79033         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
79034
79035         2006-01-11  Jim Meyering  <jim@meyering.net>
79036
79037         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
79038         Check for the lchmod function.
79039
79040 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
79041
79042         Update from coreutils.
79043
79044         * lib/__fpending.h: Add copyright notice.
79045         * lib/fprintftime.h: Likewise.
79046         * lib/savedir.c: Use (C) in copyright notice.
79047         * lib/savedir.h: Likewise.
79048
79049         2006-08-15  Jim Meyering  <jim@meyering.net>
79050
79051         * lib/at-func.c: New file, with the logic of all emulated at-functions.
79052         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
79053         in support of the EXPECTED_ERRNO macro.
79054         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
79055         definitions.  Instead, define the appropriate symbols and include
79056         "at-func.c".
79057         * lib/mkdirat.c (mkdirat): Likewise.
79058         * lib/fchmodat.c (fchmodat): Likewise.
79059         (ENOSYS): Remove definition.
79060         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
79061         it.  Don't include "unistd--.h" -- it wasn't ever used.
79062
79063         2006-01-17  Jim Meyering  <jim@meyering.net>
79064
79065         Rewrite fts.c not to change the current working directory,
79066         by using openat, fstatat, fdopendir, etc..
79067
79068         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
79069         (HAVE_OPENAT_SUPPORT): Define.
79070         [_LIBC] (fchdir): Don't undef or define; no longer used.
79071         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
79072         Now, this `function' always succeeds, and consumes its file descriptor
79073         parameter -- so callers must not close such FDs.  Update callers.
79074         (diropen_fd, opendirat, cwd_advance_fd): New functions.
79075         (diropen): Add parameter, SP.  Adjust all callers.
79076         Implement using diropen_fd, rather than open.
79077         (fts_open): Initialize new member, fts_cwd_fd.
79078         Remove fts_rft-setting code.
79079         (fts_close): Close fts_cwd_fd, if necessary.
79080         (__opendir2): Define in terms of opendir or opendirat,
79081         depending on whether the FST_NOCHDIR flag is set.
79082         (fts_build): Since fts_safe_changedir consumes its FD, and since
79083         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
79084         and close the dup'd file descriptor upon failure.
79085         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
79086         (fts_safe_changedir): Tweak semantics to reflect that this function
79087         now calls cwd_advance_fd and hence consumes its FD argument.
79088         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
79089         [struct FTS] (fts_rft): Remove now-unused member.
79090         [struct FTS] (fts_cycle.state): Improve comment.
79091
79092         * lib/openat.c (openat_needs_fchdir): New function.
79093         * lib/openat.h (openat_needs_fchdir): Declare it.
79094
79095 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
79096
79097         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
79098         Problem and fix reported by Pádraig Brady in
79099         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
79100
79101 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79102
79103         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
79104
79105 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79106
79107         * lib/memcoll.c (memcoll): Optimize for the common case where the
79108         arguments are bytewise equal.
79109
79110 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
79111
79112         * doc/regexprops-generic.texi: Add a copyright notice.
79113
79114 2006-08-15  Bruno Haible  <bruno@clisp.org>
79115
79116         * modules/tmpdir (License): Change to LGPL.
79117
79118 2006-08-15  Bruno Haible  <bruno@clisp.org>
79119
79120         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
79121         module.
79122
79123 2006-08-14  Simon Josefsson  <jas@extundo.com>
79124
79125         * config/srclist.txt: Add gnupload.
79126
79127 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79128
79129         Change copyright notice from LGPL 2 to GPL 2, since that's the
79130         standard form used in the gnulib repository.
79131         * tests/test-lock.c: Likewise.
79132         * tests/test-stdint.c: Likewise.
79133         * tests/test-tls.c: Likewise.
79134
79135         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
79136         prelude-manager.  User shorter URLs for GNU projects, without '?'.
79137         Add copyright notice.
79138
79139         * check-module: Add copyright notice.  Output a copyright
79140         notice if "--version" is specified.
79141         * modules/COPYING: New file.
79142         * tests/test-getaddrinfo.c: Add copyright notice.
79143         * tests/test-verify.c: Likewise.
79144
79145 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         Change copyright notice from LGPL 2 to GPL 2, since that's the
79148         standard form used in the gnulib repository.
79149         * lib/lock.c: LGPL -> GPL.
79150         * lib/lock.h: Likewise.
79151         * lib/strnlen1.c: Likewise.
79152         * lib/strnlen1.h: Likewise.
79153         * lib/tls.c: Likewise.
79154         * lib/tls.h: Likewise.
79155         * lib/tmpdir.c: Likewise.
79156
79157         * lib/TODO: Remove; this belongs only in coreutils.
79158
79159 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79160
79161         Add copyright notices to long-enough files that lack them, since
79162         otherwise the files aren't clearly free.  Use the same notice that
79163         getdate.texi already uses.
79164         * doc/alloca-opt.texi: Add copyright notice.
79165         * doc/alloca.texi: Likewise.
79166         * doc/ctime.texi: Likewise.
79167         * doc/functions.texi: Likewise.
79168         * doc/gcd.texi: Likewise.
79169         * doc/gnulib-tool.texi: Likewise.
79170         * doc/inet_ntoa.texi: Likewise.
79171         * doc/visibility.texi: Likewise.
79172
79173         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
79174         * doc/quote.texi: Add copyright notice.
79175
79176         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
79177         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
79178         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
79179         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
79180         is now obsolete, and give a pointer to the Sun list.
79181         Add copyright notice.
79182
79183 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
79184
79185         * config/srclistvars.sh: Add copyright notice.
79186
79187 2006-08-14  Eric Blake  <ebb9@byu.net>
79188
79189         Import the following change from libc:
79190
79191         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
79192
79193         Upstream bug 2997.
79194         * lib/misc/error.c: Add space between program name and message if file
79195         name is missing.
79196
79197 2006-08-12  Karl Berry  <karl@gnu.org>
79198
79199         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
79200         remove, these originate in gnulib now.
79201
79202 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79203
79204         * doc/Makefile (standards.info standards.html standards.dvi):
79205         Also depend on make-stds.texi.
79206
79207 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
79208
79209         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
79210         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
79211
79212         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
79213         in wchar_t.  Problem reported by Eric Blake.
79214
79215         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
79216         LEN is smaller than SIZE.  Suggested by Bruno Haible.
79217         Also, help the compiler to keep LEN in a register.
79218
79219 2006-08-11  Eric Blake  <ebb9@byu.net>
79220
79221         * users.txt: Sort.  Add tar.
79222
79223 2006-08-11  Bruno Haible  <bruno@clisp.org>
79224
79225         * users.txt: New file.
79226
79227 2006-08-11  Bruno Haible  <bruno@clisp.org>
79228
79229         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
79230         before <wchar.h>. Needed for OSF/1 and BSD/OS.
79231
79232 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79233
79234         * modules/snprintf (Depends-on): Remove minmax.
79235         (Maintainer): Add self and Bruno.
79236
79237 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
79238
79239         * lib/.cppi-disable: Add snprintf.h, socket_.h.
79240         * lib/snprintf.c: Include <errno.h> and <limits.h>.
79241         (EOVERFLOW): Define if the system does not.
79242         Do not include "minmax.h"; it wasn't used.
79243         (snprintf): Don't assume size_t promotes to an unsigned type.
79244         Fix bug when generated string was too long for the buffer: the
79245         buffer's contents are supposed to be the initial prefix of the
79246         output.  Don't assume vasnprintf returns EOVERFLOW if the size
79247         exceeds INT_MAX; do the check ourselves.
79248
79249         Import the following changes from libc:
79250
79251         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
79252
79253         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
79254         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
79255         set wc to the byte which couldn't be converted.
79256         (re_string_reconstruct): Don't clear valid_raw_len before calling
79257         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
79258         tip_context using re_string_context_at.
79259
79260         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
79261
79262         * lib/posix/regex.h: g++ still cannot handled [restrict].
79263
79264         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
79265
79266         * lib/posix/regex.h: Remove special handling for VMS.
79267
79268 2006-08-10  Jim Meyering  <jim@meyering.net>
79269
79270         * modules/same-inode: New module.
79271         * modules/dev-ino: New module.
79272         * modules/cycle-check: Depend on these modules, rather than simply
79273         including their .h files.
79274         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
79275         required via m4/cycle-check.m4.
79276         * modules/same: Depend on new same-inode module, rather than
79277         including same-inode.h.
79278         * modules/chdir-safer: New file.
79279
79280         * modules/chown (Depends-on): Add stat-macros.
79281
79282 2006-08-10  Jim Meyering  <jim@meyering.net>
79283
79284         * m4/cycle-check.m4: New file.
79285         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
79286         * m4/dev-ino.m4, m4/same-inode.m4: New files.
79287
79288 2006-08-10  Eric Blake  <ebb9@byu.net>
79289
79290         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
79291         in from original proposal.
79292
79293 2006-08-10  Eric Blake  <ebb9@byu.net>
79294         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79295
79296         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
79297         namespace.
79298
79299 2006-08-10  Bruno Haible  <bruno@clisp.org>
79300
79301         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
79302         as well.
79303
79304 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79305
79306         Sync from coreutils.
79307
79308         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
79309
79310         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
79311         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
79312
79313 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79314
79315         * modules/restrict: Remove; no longer needed now that we assume
79316         Autoconf 2.59 or later.
79317         * MODULES.html.sh: Remove 'restrict'.
79318         * modules/argp (Depends-on): Remove 'restrict'.
79319         * modules/base64 (Depends-on): Likewise.
79320         * modules/gc (Depends-on): Likewise.
79321         * modules/getaddrinfo (Depends-on): Likewise.
79322         * modules/glob (Depends-on): Likewise.
79323         * modules/inet_ntop (Depends-on): Likewise.
79324         * modules/inet_pton (Depends-on): Likewise.
79325         * modules/memxor (Depends-on): Likewise.
79326         * modules/regex (Depends-on): Likewise.
79327         * modules/strtok_r (Depends-on): Likewise.
79328         * modules/time_r (Depends-on): Likewise.
79329
79330 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
79331
79332         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
79333         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
79334         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79335         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
79336         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
79337         * m4/memxor.m4 (gl_MEMXOR): Likewise.
79338         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
79339         gl_C_RESTRICT replaced by AC_C_RESTRICT.
79340
79341         Merge from coreutils.
79342         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
79343         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
79344         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
79345         * m4/time_r.m4 (gl_TIME_R): Likewise.
79346
79347 2006-08-09  Karl Berry  <karl@gnu.org>
79348
79349         * config/srclist.txt: no more gettext-tools, per Bruno.
79350
79351 2006-08-08  Eric Blake  <ebb9@byu.net>
79352
79353         * modules/verror: New module.
79354         * MODULES.html.sh: Document it.
79355
79356 2006-08-08  Eric Blake  <ebb9@byu.net>
79357
79358         * lib/verror.h, lib/verror.c: New files.
79359
79360 2006-08-08  Eric Blake  <ebb9@byu.net>
79361
79362         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
79363         verror_at_line output complies with GNU Coding Standards even when
79364         file is NULL.
79365
79366 2006-08-07  Bruno Haible  <bruno@clisp.org>
79367
79368         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
79369         versions of AIX.
79370         Reported by Ralf Wildenhues.
79371
79372 2006-08-07  Bruno Haible  <bruno@clisp.org>
79373
79374         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
79375         in an AC_DEFUN. Needed so that the autoconf snippets can use
79376         AC_REQUIRE.
79377
79378 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79379
79380         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79381         Initialize pkgdata_DATA.
79382         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
79383         overriding it.
79384
79385 2006-08-06  Eric Blake  <ebb9@byu.net>
79386
79387         * lib/error.h: Fold in some upstream changes from glibc.
79388         * lib/error.c: Likewise.
79389
79390 2006-08-04  Bruno Haible  <bruno@clisp.org>
79391
79392         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79393         Make the mostlyclean-local rule depend on mostlyclean-generic.
79394         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
79395
79396 2006-07-31  Bruno Haible  <bruno@clisp.org>
79397
79398         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
79399         <stdlib.h>, <string.h>.
79400
79401 2006-07-30  Bruno Haible  <bruno@clisp.org>
79402
79403         * modules/readlink (License): Change to LGPL.
79404
79405 2006-07-30  Bruno Haible  <bruno@clisp.org>
79406
79407         * modules/javaversion (Makefile.am): Distribute javaversion.java and
79408         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
79409         set PKGDATADIR to point to it.
79410
79411 2006-07-30  Bruno Haible  <bruno@clisp.org>
79412
79413         * modules/csharpexec (configure.ac): Comment out macro invocation.
79414         * modules/javaexec (configure.ac): Likewise.
79415         * modules/javacomp-script (configure.ac): Likewise.
79416
79417         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
79418
79419 2006-07-30  Bruno Haible  <bruno@clisp.org>
79420
79421         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
79422         linked-list.
79423
79424 2006-07-30  Bruno Haible  <bruno@clisp.org>
79425
79426         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
79427
79428 2006-07-30  Bruno Haible  <bruno@clisp.org>
79429
79430         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
79431         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
79432         get removed.
79433
79434 2006-07-29  Bruno Haible  <bruno@clisp.org>
79435
79436         Make it possible for gnulib-tool to work with locally modified or
79437         augmented gnulib repositories.
79438         * gnulib-tool (func_usage): Document --local-dir option.
79439         (local_gnulib_dir): New variable.
79440         Handle --local-dir option.
79441         (func_lookup_file): New function.
79442         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
79443         (func_get_description, func_get_filelist, func_get_description,
79444         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
79445         func_get_automake_snippet, func_get_include_directive,
79446         func_get_license, func_get_maintainer): Use func_lookup_file.
79447         (func_import, func_create_testdir): Use func_lookup_file.
79448
79449 2006-07-29  Bruno Haible  <bruno@clisp.org>
79450
79451         * modules/setenv (Depends-on): Add unistd.
79452
79453 2006-07-29  Bruno Haible  <bruno@clisp.org>
79454
79455         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
79456
79457 2006-07-29  Bruno Haible  <bruno@clisp.org>
79458
79459         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
79460
79461 2006-07-29  Bruno Haible  <bruno@clisp.org>
79462
79463         * gnulib-tool (import, update): If there is no Makefile.am, look at
79464         aclocal.m4, instead of bailing out.
79465
79466 2006-07-29  Bruno Haible  <bruno@clisp.org>
79467
79468         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
79469         Categorize the options by when they are useful.
79470
79471 2006-07-29  Bruno Haible  <bruno@clisp.org>
79472
79473         * gnulib-tool (func_usage): Document option --no-libtool.
79474         Handle option --no-libtool.
79475         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
79476         for changed semantics of $libtool variable.
79477         (func_import): Likewise. If libtool is not used, show this through
79478         an option --no-libtool.
79479         (func_create_testdir): Update.
79480
79481 2006-07-29  Bruno Haible  <bruno@clisp.org>
79482
79483         * gnulib-tool (func_import): Extend error message about missing
79484         --doc-base.
79485
79486 2006-07-29  Bruno Haible  <bruno@clisp.org>
79487
79488         * gnulib-tool (func_import): Don't create the $docbase directory if
79489         there is no file to store there.
79490
79491 2006-07-29  Bruno Haible  <bruno@clisp.org>
79492
79493         * gnulib-tool (autoconf_minversion): If a --dir option is given and
79494         relevant, look for configure.ac there, not in the current directory.
79495         Also use a simple search for AC_PREREQ, not "autoconf --trace".
79496
79497 2006-07-29  Bruno Haible  <bruno@clisp.org>
79498
79499         * gnulib-tool (SORT): New variable.
79500         (func_usage): Undocument --assume-autoconf option.
79501         Remove --assume-autoconf option handling.
79502         (autoconf_minversion): Determine from the contents of configure.ac.
79503         (func_import): Remove autoconf_minversion handling.
79504         Suggested by Eric Blake.
79505
79506 2006-07-29  Bruno Haible  <bruno@clisp.org>
79507
79508         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
79509
79510 2006-07-29  Bruno Haible  <bruno@clisp.org>
79511
79512         * config/srclist.txt (*setenv.[ch]): Remove rules.
79513
79514 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79515
79516         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
79517
79518 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79519
79520         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
79521         arpa/inet.h.
79522
79523 2006-07-28  Simon Josefsson  <jas@extundo.com>
79524
79525         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
79526         * modules/inet_pton (Depends-on): Likewise.
79527
79528 2006-07-28  Simon Josefsson  <jas@extundo.com>
79529
79530         * m4/netinet_in_h.m4: New file.
79531
79532 2006-07-28  Simon Josefsson  <jas@extundo.com>
79533
79534         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
79535         #include's.
79536
79537 2006-07-28  Simon Josefsson  <jas@extundo.com>
79538
79539         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
79540         #include's.
79541
79542 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
79543
79544         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
79545         setgid on directories only if they set these bits.
79546         * lib/modechange.h: Remove obsolete comment about masks.
79547
79548 2006-07-28  Eric Blake  <ebb9@byu.net>
79549
79550         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
79551         macro expansion.
79552
79553 2006-07-28  Bruno Haible  <bruno@clisp.org>
79554
79555         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
79556
79557 2006-07-28  Bruno Haible  <bruno@clisp.org>
79558
79559         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
79560
79561 2006-07-28  Bruno Haible  <bruno@clisp.org>
79562
79563         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
79564         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
79565         Define fallbacks.
79566         Avoids link error on FreeBSD 4.x.
79567         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79568
79569         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
79570         encoding.
79571         * lib/mbswidth.c (iswcntrl): Likewise.
79572
79573 2006-07-27  Bruno Haible  <bruno@clisp.org>
79574
79575         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
79576         test.
79577
79578 2006-07-27  Bruno Haible  <bruno@clisp.org>
79579
79580         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
79581         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
79582         defined.
79583
79584 2006-07-26  Eric Blake  <ebb9@byu.net>
79585
79586         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
79587
79588 2006-07-26  Eric Blake  <ebb9@byu.net>
79589
79590         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
79591         like mingw that lack mkstemp.
79592         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
79593         avoid compilation warning on mingw.
79594
79595 2006-07-26  Bruno Haible  <bruno@clisp.org>
79596
79597         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
79598         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
79599         INT_FAST*_MIN, INTPTR_MIN.
79600
79601 2006-07-25  Bruno Haible  <bruno@clisp.org>
79602
79603         * modules/version-etc (Depends-on): Add stdarg.
79604
79605 2006-07-25  Bruno Haible  <bruno@clisp.org>
79606
79607         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
79608         complex commands.
79609
79610 2006-07-25  Bruno Haible  <bruno@clisp.org>
79611
79612         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
79613         defined in <stdarg.h> or config.h.
79614
79615 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79616
79617         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
79618         (gl_STDIO_SAFER): Remove.
79619
79620 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
79621
79622         * MODULES.html.sh (File stream based Input/Output):
79623         Add fopen-safer, tmpfile-safer; remove stdio-safer.
79624         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
79625         * modules/fopen-safer, modules/tmpfile-safer: New files.
79626         * modules/stdio-safer: Remove.
79627
79628 2006-07-24  Bruno Haible  <bruno@clisp.org>
79629
79630         * modules/tmpdir: New file.
79631         * MODULES.html.sh (File system functions): Add it.
79632
79633 2006-07-24  Bruno Haible  <bruno@clisp.org>
79634
79635         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
79636         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
79637
79638 2006-07-24  Bruno Haible  <bruno@clisp.org>
79639
79640         * modules/clean-temp: New file.
79641
79642 2006-07-24  Bruno Haible  <bruno@clisp.org>
79643
79644         * m4/tmpdir.m4: New file, from GNU gettext.
79645
79646 2006-07-24  Bruno Haible  <bruno@clisp.org>
79647
79648         * lib/tmpdir.h: New file, from GNU gettext.
79649         * lib/tmpdir.c: New file, from GNU gettext.
79650
79651 2006-07-24  Bruno Haible  <bruno@clisp.org>
79652
79653         * lib/clean-temp.h: New file, from GNU gettext.
79654         * lib/clean-temp.c: New file, from GNU gettext.
79655
79656 2006-07-23  Eric Blake  <ebb9@byu.net>
79657
79658         * modules/stdio-safer (Files): Add tmpfile-safer.c.
79659         (Depends-on): Add binary-io.
79660
79661 2006-07-23  Eric Blake  <ebb9@byu.net>
79662
79663         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
79664
79665 2006-07-23  Eric Blake  <ebb9@byu.net>
79666
79667         * lib/tmpfile-safer.c: New file.
79668         * lib/stdio-safer.h (fopen_safer): Add prototype.
79669         * lib/stdio--.h (tmpfile): Make safer.
79670
79671 2006-07-23  Bruno Haible  <bruno@clisp.org>
79672
79673         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
79674         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
79675         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
79676         gl_linked_remove_at): Use it.
79677
79678 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79679         and Simon Josefsson <jas@extundo.com>
79680
79681         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
79682
79683         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
79684
79685 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79686
79687         * modules/close-stream: New file.
79688         * modules/closeout (Description): Make it clear that it exits
79689         with a diagnostic on error.
79690         (Depends-on): Add close-stream.  Remove fpending, stdbool.
79691         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
79692
79693 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79694
79695         * m4/close-stream.m4: New file.
79696
79697 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
79698
79699         * lib/close-stream.c, lib/close-stream.h: New files.
79700
79701 2006-07-22  Bruno Haible  <bruno@clisp.org>
79702
79703         Merge from GNU gettext 0.15.
79704
79705         2006-05-01  Bruno Haible  <bruno@clisp.org>
79706
79707                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
79708
79709         2006-07-22  Bruno Haible  <bruno@clisp.org>
79710
79711                 * modules/javaversion: New file.
79712                 * MODULES.html.sh (Java): Add javaversion.
79713
79714         2006-03-12  Bruno Haible  <bruno@clisp.org>
79715
79716                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
79717
79718         2005-12-04  Bruno Haible  <bruno@clisp.org>
79719
79720                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
79721                 (untested).
79722
79723         2006-06-21  Bruno Haible  <bruno@clisp.org>
79724
79725                 Avoid warnings from recent versions of mcs.
79726                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
79727                 -o, -L, -r any more. Use options documented since mcs-1.0
79728                 instead. Similarly for -g.
79729
79730         2005-12-04  Bruno Haible  <bruno@clisp.org>
79731
79732                 * build-aux/csharpcomp.sh.in: Suffix for resources is
79733                 .resources, not .resource.
79734
79735         2005-07-09  Bruno Haible  <bruno@clisp.org>
79736
79737                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
79738                 add a .dll suffix.
79739                 Reported by Mark Junker <mjscod@gmx.de>.
79740
79741         2006-07-22  Bruno Haible  <bruno@clisp.org>
79742
79743                 * modules/gettext: Upgrade to gettext-0.15.
79744                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
79745                 m4/visibility.m4.
79746                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
79747
79748 2006-07-22  Bruno Haible  <bruno@clisp.org>
79749
79750         Merge from GNU gettext 0.15.
79751
79752         2006-03-25  Bruno Haible  <bruno@clisp.org>
79753
79754                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
79755
79756         2006-07-21  Bruno Haible  <bruno@clisp.org>
79757
79758                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
79759                 "1.1".
79760
79761         2006-05-09  Bruno Haible  <bruno@clisp.org>
79762
79763                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
79764                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
79765                 for the conftestver execution.
79766
79767         2006-05-01  Bruno Haible  <bruno@clisp.org>
79768
79769                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
79770                 optional target-version argument. Verify that the compiler
79771                 groks source of the specified source-version, or add -source
79772                 option as necessary. Verify that the compiler produces
79773                 bytecode in the specified target-version, or add -target and
79774                 -source options as necessary. Make the result of the test
79775                 available as variable CONF_JAVAC. Also log error output in
79776                 config.log.
79777
79778         2006-03-11  Bruno Haible  <bruno@clisp.org>
79779
79780                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
79781
79782         2006-05-09  Bruno Haible  <bruno@clisp.org>
79783
79784                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
79785                 CLASSPATH_SEPARATOR to a semicolon.
79786
79787         2006-03-12  Bruno Haible  <bruno@clisp.org>
79788
79789                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
79790                 available as variable CONF_JAVA, for subsequent autoconf
79791                 tests. Also log error output in config.log.
79792
79793         2006-07-19  Bruno Haible  <bruno@clisp.org>
79794
79795                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
79796                 that getline works on glibc2 systems. Needed to avoid trouble
79797                 in relocatable.c.
79798                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
79799
79800         2005-12-04  Bruno Haible  <bruno@clisp.org>
79801
79802                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
79803                 launcher (untested).
79804
79805         2005-12-04  Bruno Haible  <bruno@clisp.org>
79806
79807                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
79808
79809         2006-07-22  Bruno Haible  <bruno@clisp.org>
79810
79811                 * gettext.m4: Update from GNU gettext-0.15.
79812                 * nls.m4: Likewise.
79813                 * po.m4: Likewise.
79814                 * inttypes-pri.m4: Likewise.
79815                 * inttypes-h.m4: Renamed from inttypes.m4.
79816                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79817
79818 2006-07-22  Bruno Haible  <bruno@clisp.org>
79819
79820         Merge from GNU gettext 0.15.
79821
79822         2005-07-05  Bruno Haible  <bruno@clisp.org>
79823
79824                 * printf-args.c (printf_fetchargs): Work around broken
79825                 definition of wint_t on mingw.
79826
79827         2005-02-12  Bruno Haible  <bruno@clisp.org>
79828
79829                 * xallocsa.h: Add extern "C" for C++.
79830
79831         2006-05-17  Bruno Haible  <bruno@clisp.org>
79832
79833                 Cygwin portability.
79834                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79835
79836         2006-04-30  Bruno Haible  <bruno@clisp.org>
79837
79838                 * progreloc.c: Include <mach-o/dyld.h> if available.
79839                 (find_executable): Use _NSGetExecutablePath when possible.
79840
79841         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79842
79843                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79844                 function.
79845
79846         2005-12-29  Bruno Haible  <bruno@clisp.org>
79847
79848                 * progreloc.c (set_program_name_and_installdir): Fix
79849                 compilation error.
79850
79851         2005-12-04  Bruno Haible  <bruno@clisp.org>
79852
79853                 Cygwin portability.
79854                 * progreloc.c: Include <windows.h> also on Cygwin.
79855                 (find_executable): Add support for Cygwin.
79856                 (set_program_name_and_installdir): Handle also platforms with
79857                 nonempty EXEEXT.
79858
79859         2006-07-11  Bruno Haible  <bruno@clisp.org>
79860
79861                 * javacomp.c: Fix a comment.
79862                 Reported by Jim Meyering.
79863
79864         2006-04-30  Bruno Haible  <bruno@clisp.org>
79865
79866                 * javacomp.h (compile_java_class): Add source_version,
79867                 target_version arguments.
79868                 * javacomp.c: Rewritten to choose only a compiler that
79869                 respects the specified source_version and target_version.
79870
79871         2006-06-27  Bruno Haible  <bruno@clisp.org>
79872
79873                 Assume correct S_ISDIR macro.
79874                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79875
79876         2006-07-22  Bruno Haible  <bruno@clisp.org>
79877
79878                 * javaversion.h: New file, from GNU gettext.
79879                 * javaversion.c: New file, from GNU gettext.
79880                 * javaversion.java: New file, from GNU gettext.
79881                 * javaversion.class: New file, from GNU gettext.
79882
79883         2006-05-17  Bruno Haible  <bruno@clisp.org>
79884
79885                 Cygwin portability.
79886                 * javaexec.c (execute_java_class): Test for jview program
79887                 also on Cygwin.
79888
79889         2006-04-09  Bruno Haible  <bruno@clisp.org>
79890
79891                 * fatal-signal.c: Don't include string.h.
79892                 (at_fatal_signal): Use a copying loop instead of memcpy.
79893
79894         2005-12-04  Bruno Haible  <bruno@clisp.org>
79895
79896                 * csharpexec.c: Add support for 'clix' launcher (untested).
79897                 (execute_csharp_using_sscli): New function.
79898                 (execute_csharp_program): Call it.
79899
79900         2006-06-21  Bruno Haible  <bruno@clisp.org>
79901
79902                 Avoid warnings from recent versions of mcs.
79903                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79904                 -o, -L, -r any more. Use options documented since mcs-1.0
79905                 instead. Similarly for -g.
79906
79907         2005-07-09  Bruno Haible  <bruno@clisp.org>
79908
79909                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79910                 add a .dll suffix.
79911                 Reported by Mark Junker <mjscod@gmx.de>.
79912
79913         2006-06-17  Bruno Haible  <bruno@clisp.org>
79914
79915                 * config.charset: Update for NetBSD 3.0.
79916
79917         2006-05-17  Bruno Haible  <bruno@clisp.org>
79918
79919                 Cygwin portability.
79920                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79921
79922         2006-05-16  Bruno Haible  <bruno@clisp.org>
79923
79924                 * localcharset.c [CYGWIN]: Include <windows.h>.
79925                 (get_charset_aliases): For Cygwin, return the same CPxxx
79926                 aliases list as under WIN32.
79927                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79928                 the environment variables. Fall back to GetACP().
79929
79930         2006-04-05  Bruno Haible  <bruno@clisp.org>
79931
79932                 * config.charset: Update Juan Manuel Guerrero's address.
79933
79934         2005-02-12  Bruno Haible  <bruno@clisp.org>
79935
79936                 * allocsa.h: Add extern "C" for C++.
79937
79938         2005-02-10  Bruno Haible  <bruno@clisp.org>
79939
79940                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79941                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79942
79943         2006-07-22  Bruno Haible  <bruno@clisp.org>
79944
79945                 * gettext.h: Update to GNU gettext-0.15.
79946
79947 2006-07-22  Bruno Haible  <bruno@clisp.org>
79948
79949         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79950         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79951         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79952
79953 2006-07-21  Eric Blake  <ebb9@byu.net>
79954
79955         * modules/stdlib-safer: New file.
79956         * MODULES.html.sh (File stream based Input/Output): Add
79957         stdlib-safer.
79958
79959 2006-07-21  Eric Blake  <ebb9@byu.net>
79960
79961         * lib/stdlib-safer.h: New file from coreutils, required by
79962         stdlib--.h.
79963
79964 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79965
79966         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79967
79968 2006-07-20  Bruno Haible  <bruno@clisp.org>
79969
79970         * gnulib-tool: Recognize new option --assume-autoconf.
79971         (autoconf_minversion): New variable.
79972         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79973
79974 2006-07-20  Bruno Haible  <bruno@clisp.org>
79975
79976         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79977
79978 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79979
79980         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79981         Reindent and repaginate.
79982
79983 2006-07-19  Derek Price  <derek@ximbiot.com>
79984
79985         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79986         Correct grammar.
79987
79988 2006-07-17  Bruno Haible  <bruno@clisp.org>
79989
79990         * modules/list: New file.
79991         * modules/array-list: New file.
79992         * modules/carray-list, modules/carray-list-tests: New files.
79993         * modules/linked-list, modules/linked-list-tests: New files.
79994         * modules/avltree-list, modules/avltree-list-tests: New files.
79995         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79996         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79997         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79998         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79999         * modules/oset: New file.
80000         * modules/array-oset: New file.
80001         * modules/avltree-oset, modules/avltree-oset-tests: New files.
80002         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
80003         * tests/test-carray_list.c: New file.
80004         * tests/test-linked_list.c: New file.
80005         * tests/test-avltree_list.c: New file.
80006         * tests/test-rbtree_list.c: New file.
80007         * tests/test-linkedhash_list.c: New file.
80008         * tests/test-avltreehash_list.c: New file.
80009         * tests/test-rbtreehash_list.c: New file.
80010         * tests/test-avltree_oset.c: New file.
80011         * tests/test-rbtree_oset.c: New file.
80012         * MODULES.html.sh (Container data structures): New section.
80013
80014 2006-07-17  Bruno Haible  <bruno@clisp.org>
80015
80016         * m4/gl_list.m4: New file.
80017
80018 2006-07-17  Bruno Haible  <bruno@clisp.org>
80019
80020         * lib/gl_list.h: New file.
80021         * lib/gl_list.c: New file.
80022         * lib/gl_array_list.h: New file.
80023         * lib/gl_array_list.c: New file.
80024         * lib/gl_carray_list.h: New file.
80025         * lib/gl_carray_list.c: New file.
80026         * lib/gl_linked_list.h: New file.
80027         * lib/gl_linked_list.c: New file.
80028         * lib/gl_anylinked_list1.h: New file.
80029         * lib/gl_anylinked_list2.h: New file.
80030         * lib/gl_avltree_list.h: New file.
80031         * lib/gl_avltree_list.c: New file.
80032         * lib/gl_anyavltree_list1.h: New file.
80033         * lib/gl_anyavltree_list2.h: New file.
80034         * lib/gl_rbtree_list.h: New file.
80035         * lib/gl_rbtree_list.c: New file.
80036         * lib/gl_anyrbtree_list1.h: New file.
80037         * lib/gl_anyrbtree_list2.h: New file.
80038         * lib/gl_anytree_list1.h: New file.
80039         * lib/gl_anytree_list2.h: New file.
80040         * lib/gl_linkedhash_list.h: New file.
80041         * lib/gl_linkedhash_list.c: New file.
80042         * lib/gl_anyhash_list1.h: New file.
80043         * lib/gl_anyhash_list2.h: New file.
80044         * lib/gl_avltreehash_list.h: New file.
80045         * lib/gl_avltreehash_list.c: New file.
80046         * lib/gl_rbtreehash_list.h: New file.
80047         * lib/gl_rbtreehash_list.c: New file.
80048         * lib/gl_anytreehash_list1.h: New file.
80049         * lib/gl_anytreehash_list2.h: New file.
80050
80051         * lib/gl_oset.h: New file.
80052         * lib/gl_oset.c: New file.
80053         * lib/gl_array_oset.h: New file.
80054         * lib/gl_array_oset.c: New file.
80055         * lib/gl_avltree_oset.h: New file.
80056         * lib/gl_avltree_oset.c: New file.
80057         * lib/gl_rbtree_oset.h: New file.
80058         * lib/gl_rbtree_oset.c: New file.
80059         * lib/gl_anytree_oset.h: New file.
80060
80061 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80062
80063         * m4/mkancesdirs.m4: New file.
80064         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
80065         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
80066         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
80067         it.
80068
80069 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80070
80071         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
80072         * lib/mkancesdirs.h: New files.
80073         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
80074         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
80075         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
80076         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
80077         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
80078         callers changed.  Revamp internals significantly, by not
80079         attempting to create directories that are temporarily more
80080         permissive than the final results.  Do not attempt to use
80081         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
80082         This removes some race conditions, fixes some bugs, and simplifies
80083         things.  Use new dirchownmod function to do owner and mode changes.
80084         * lib/mkdir-p.h: Likewise.
80085         * lib/modechange.c (octal_to_mode): New function.
80086         (struct mode_change): New member mentioned.
80087         (make_node_op_equals): New arg mentioned.  All callers changed.
80088         (mode_compile): Keep track of which mode bits the user has explicitly
80089         mentioned.
80090         (mode_adjust): New arg DIR, so that we implement the X op correctly.
80091         New arg PMODE_BITS, to keep track of which mode bits the user
80092         mentioned; it treats S_ISUID and S_ISGID speciall.
80093         All callers changed.
80094         * lib/modechange.h: Likewise.
80095
80096 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
80097
80098         * MODULES.html.sh: Add mkancestors.
80099         * modules/mkancesdirs: New module.
80100         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
80101         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
80102         The chdir-safer and afs files are now orphans; I'll remove them
80103         unless someone speaks up.
80104         Add lib/dirchownmod.c, lib/dirchownmod.h.
80105         (Depends-on): Remove alloca, chown, save-cwd, dirname.
80106         Add lchown, mkancesdirs.
80107         (Maintainer): Add self.
80108
80109 2006-07-15  Karl Berry  <karl@gnu.org>
80110
80111         * gnulib-tool: help message wording/arrangement.
80112
80113 2006-07-14  Simon Josefsson  <jas@extundo.com>
80114
80115         * doc/gnulib.texi (Libtool and Windows): New section.
80116
80117 2006-07-12  Simon Josefsson  <jas@extundo.com>
80118
80119         * modules/gendocs (License): Fix license, approved by Karl.
80120
80121 2006-07-12  Eric Blake  <ebb9@byu.net>
80122
80123         * MODULES.html.sh: Add gendocs.
80124
80125 2006-07-11  Eric Blake  <ebb9@byu.net>
80126
80127         * modules/fdl: New module, to install doc/fdl.texi.
80128         * MODULES.html.sh: Add new section for documentation modules.
80129         * gnulib-tool: Avoid space-tab.
80130         (--doc-base): New option, to manage files from doc.
80131
80132 2006-07-11  Eric Blake  <ebb9@byu.net>
80133
80134         * m4/absolute-header.m4: Fix comments to match recent change.
80135
80136 2006-07-11  Eric Blake  <ebb9@byu.net>
80137
80138         * gnulib-tool: List --doc-base before --tests-base.
80139
80140 2006-07-11  Derek R. Price  <derek@ximbiot.com>
80141
80142         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
80143
80144 2006-07-11  Bruno Haible  <bruno@clisp.org>
80145
80146         * README: Mention where to put documentation.
80147
80148 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80149
80150         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
80151
80152 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80153
80154         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
80155         to stdint.m4.
80156
80157 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
80158
80159         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
80160         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
80161         "no/such/file/stdint.h" when there is no such file, so that
80162         the resulting C code can be parsed by dodgy compilers.
80163         Problems reported by Bob Proulx.
80164
80165 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80166
80167         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
80168         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80169         macros into the GNU _D_EXACT_NAMLEN.
80170         * lib/savedir.c:  Likewise.
80171         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
80172
80173 2006-07-10  Derek R. Price  <derek@ximbiot.com>
80174         and Paul Eggert  <eggert@cs.ucla.edu>
80175
80176         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
80177         * m4/savedir.m4:
80178         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
80179         macros into the GNU _D_EXACT_NAMLEN.
80180
80181 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80182
80183         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
80184         around the absolute name, to work around a problem with the HP-UX
80185         11.23 native C compiler, reported by Bob Proulx.
80186
80187 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80188
80189         * doc/maintain.texi, make-stds.texi: Sync from
80190         <http://savannah.gnu.org/projects/gnustandards>.
80191
80192 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
80193
80194         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
80195
80196 2006-07-09  Jim Meyering  <jim@meyering.net>
80197
80198         * m4/glob.m4: Remove a doubled word in a comment.
80199
80200 2006-07-09  Jim Meyering  <jim@meyering.net>
80201
80202         * lib/argp-pv.c: Remove a doubled word in a comment.
80203         * lib/check-version.c (check_version): Likewise.
80204         * lib/javacomp.c (compile_java_class): Likewise.
80205
80206 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
80207
80208         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
80209         for the benefit of people using Autoconf 2.60.  If you want to
80210         support older Autoconf versions you can copy m4/onceonly_2_57.m4
80211         (or m4/onceonly.m4, if pre-2.57) manually.
80212
80213 2006-07-08  Jim Meyering  <jim@meyering.net>
80214
80215         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
80216         comment.
80217         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
80218         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
80219         comment.
80220
80221 2006-07-08  Jim Meyering  <jim@meyering.net>
80222
80223         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
80224
80225 2006-07-07  Simon Josefsson  <jas@extundo.com>
80226
80227         * tests/test-crc.c: Change expected crc value, the test vector
80228         were probably computed using the old broken crc.c?
80229
80230 2006-07-06  Simon Josefsson  <jas@extundo.com>
80231
80232         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
80233         now the canonical place for the M4 file).
80234
80235         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
80236         from the sys_socket dependency now.
80237
80238         * modules/inet_pton (Files): Ditto.
80239
80240         * modules/inet_ntop (Files): Ditto.
80241
80242 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80243
80244         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
80245         not gl_PREREQ_GETUSERSHELL.
80246
80247 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80248
80249         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
80250         with only one argument, for Autoconf 2.60.
80251         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
80252         expand to nothing, so add a shell command to avoid syntax error.
80253         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80254
80255 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80256
80257         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
80258
80259 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
80262         no longer needed.  Check for isblank decl.
80263         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
80264         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
80265         of existence.
80266
80267 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80268
80269         * lib/getloadavg.c: Use __VMS, not VMS.
80270         * lib/getopt.c: Likewise.
80271         * lib/getpagesize.h: Likewise.
80272         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
80273         and probably does not work.
80274
80275 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
80276
80277         * lib/.cppi-disable: Add wcwidth.
80278         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
80279         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
80280         (ISGRAPH): Remove.  All uses changed to isgraph.
80281         (FOLD) [!defined _LIBC]: Remove special case.
80282         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
80283         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
80284         HAVE_ISBLANK.
80285         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
80286         case.
80287
80288 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80289
80290         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
80291         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
80292         brackets.  Other minor changes to suppress some compiler
80293         warnings.
80294
80295 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80296         and Paul Eggert  <eggert@cs.ucla.edu>
80297
80298         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
80299         of invoking obsolescent AC_HEADER_DIRENT macro.
80300         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
80301         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
80302         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
80303         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
80304         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
80305         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
80306         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
80307         * m4/readdir.m4: Remove; no longer needed.
80308
80309 2006-07-06  Derek R. Price  <derek@ximbiot.com>
80310         and Paul Eggert  <eggert@cs.ucla.edu>
80311
80312         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
80313         Don't worry about this obsolete case any more.
80314         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
80315         directories.
80316         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
80317         worry about this obsolete case any more.
80318         * lib/fts.c: Likewise.
80319         * lib/getcwd.c: Likewise.
80320         * lib/glob.h: Likewise.
80321         * lib/savedir.c: Likewise.
80322
80323 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80324
80325         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
80326         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
80327         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
80328         needed.
80329         All uses removed.
80330         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80331         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80332         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
80333         needed.
80334         * m4/getdate.m4 (gl_GETDATE): Likewise.
80335         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80336         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80337         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80338         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80339         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
80340         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80341         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
80342         needed.
80343
80344 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
80345
80346         * lib/memcasecmp.c: Include <limits.h>.
80347         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
80348         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
80349         Don't assume isdigit succeeds only on '0' through '9'.
80350
80351 2006-07-05  Eric Blake  <ebb9@byu.net>
80352
80353         * modules/getaddrinfo (Depends-on): Add snprintf.
80354
80355 2006-07-05  Eric Blake  <ebb9@byu.net>
80356
80357         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
80358         to avoid 'header present but could not be compiled' on cygwin.
80359
80360 2006-07-05  Eric Blake  <ebb9@byu.net>
80361
80362         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
80363         missing from netdb.h.
80364         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
80365
80366 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80367
80368         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
80369         no longer needed.
80370         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
80371         * m4/getdate.m4 (gl_GETDATE): Likewise.
80372         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
80373         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
80374         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
80375         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
80376         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80377
80378 2006-07-05  Derek R. Price  <derek@ximbiot.com>
80379
80380         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
80381         All uses of is_space replaced by isspace.
80382         * lib/exit.h: Don't talk about STDC_HEADERS.
80383         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
80384         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
80385         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
80386         replaced by isprint etc.
80387         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
80388         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80389         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
80390         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
80391         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
80392         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
80393
80394 2006-07-05  Bruno Haible  <bruno@clisp.org>
80395
80396         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
80397         the function exists, before testing against AIX.
80398         Reported by Martin Lambers <marlam@marlam.de>.
80399
80400 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80401
80402         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
80403         From Mark D. Baushke.
80404
80405 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
80406
80407         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
80408         to the absolute name, not just one, to bypass Sun C 5.8's
80409         "warning: #include of /usr/include/... may be non-portable".
80410
80411 2006-07-04  Eric Blake  <ebb9@byu.net>
80412
80413         * modules/dirname-tests: New test module.
80414         * tests/test-dirname.c: New file, replacing dirname.c
80415         TEST_DIRNAME section that was recently deleted.
80416
80417 2006-07-04  Bruno Haible  <bruno@clisp.org>
80418
80419         Assume ANSI C header files and <ctype.h> functions.
80420         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
80421         (mbsnwidth): Use isprint, iscntrl instead.
80422
80423 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80424
80425         Merge from coreutils.
80426         * MODULES.html.sh: Add xstrtold.
80427         * modules/xstrtold: New file.
80428         * modules/cycle-check (Files): Add lib/same-inode.h.
80429         * modules/dirname (Files): Add m4/double-slash-root.m4.
80430         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
80431         * modules/mkdir-p (Files): Add lib/same-inode.h.
80432         * modules/same (Files): Add lib/same-inode.h.
80433
80434 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80435
80436         * m4/absolute-header.m4: Renamed from full-header-path.m4.
80437         This is to keep the terminology clean; POSIX talks about
80438         "absolute pathnames", not "full pathnames", but the GNU
80439         Coding Standards say to use "path" for something else;
80440         so use "absolute" to keep both sides happy.
80441         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
80442         Set gl_absolute_header, not gl_full_header_path.
80443         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
80444         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
80445         All uses changed.
80446
80447         Merge from coreutils.
80448
80449         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80450
80451         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
80452         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
80453         want to require the building of c-strtod.o.
80454         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
80455         needs -lm directly.
80456         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
80457
80458         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80459
80460         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
80461         --as-needed option if available.  Problem reported by Albert Chin in
80462         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
80463         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
80464         cc merely issues a bunch of annoying warnings for --as-needed
80465         (this problem was reported by Bob Proulx).  Also, try linking with
80466         -lm to detect a bug in binutils 2.16 (this problem was reported
80467         by Ralf Wildenhues).
80468
80469         2006-06-18  Jim Meyering  <jim@meyering.net>
80470
80471         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
80472         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
80473         macro.
80474         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
80475         also check for glibc-2.4's abort-inducing bug.
80476
80477         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
80478         Low-probability clean-up should be to use rmdir to get rid of
80479         the just-created directory, not unlink.
80480
80481         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
80482         configure fail, and request a bug report to inform us about it.
80483         Add a comment that, barring reports to the contrary, in 2007 we'll
80484         assume ftruncate is universally available.
80485
80486         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80487
80488         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
80489
80490         2006-03-12  Jim Meyering  <jim@meyering.net>
80491
80492         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
80493         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
80494         * m4/same.m4 (gl_SAME): Likewise.
80495         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
80496
80497         2006-03-11  Eric Blake  <ebb9@byu.net>
80498
80499         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
80500         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
80501         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
80502         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
80503
80504 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
80505
80506         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
80507         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
80508         reported by Mark D. Baushke, one in
80509         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
80510
80511         Merge from coreutils.
80512
80513         * lib/.cppi-disable: Add stdint_.h.
80514         * lib/.cvsignore: Add stdint.h.
80515
80516         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
80517
80518         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
80519         both double and long double versions.
80520         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
80521         * lib/xstrtold.c: New file.
80522         * lib/xstrtod.h (xstrtold): New decl.
80523
80524         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
80525
80526         * lib/filemode.c (setst): Remove.
80527         (strmode): Rewrite to avoid setst.  This makes the code shorter,
80528         (arguably) clearer, and the generated code is a bit smaller on my
80529         Debian GNU/Linux stable x86 host.
80530
80531         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
80532
80533         * lib/filemode.c: Include "filemode.h" first, to test the interface.
80534         Assume that filemode.h includes sys/types.h and sys/stat.h.
80535         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
80536         (ftypelet): Reorder to put common cases first, for efficiency.
80537         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
80538         to do 'M'.
80539         (strmode): Renamed from mode_string, and now stores 12 bytes instead
80540         of 10, for compatibility with FreeBSD.  All callers changed.
80541         (filemodestring): Now stores 12 bytes instead of 10, and sets file
80542         types that can't be deduced solely from st_mode.  First arg is now a
80543         const pointer.
80544         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
80545         (strmode): Renamed from mode_string.
80546         (filemodestring): New decl.
80547         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
80548         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
80549         needed.
80550         (S_ISPORT, S_ISWHT): New macros, if not already defined.
80551
80552         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
80553
80554         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
80555         fsusage.h now does that.  Include fsusage.h first, to test interface.
80556         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
80557         at most one method (the old code could have generated decls that
80558         didn't conform to C89, not that this was ever exercised).
80559         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
80560
80561         2006-03-19  Jim Meyering  <jim@meyering.net>
80562
80563         Work even in a chroot where d_ino values for entries in "/"
80564         don't match the stat.st_ino values for the same names.
80565         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
80566         number, iterate through all entries again, using lstat instead.
80567         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
80568         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
80569
80570         * lib/getcwd.c (__getcwd): Clarify a comment.
80571         Use memcpy in place of a call to strcpy.
80572
80573         2006-03-12  Jim Meyering  <jim@meyering.net>
80574
80575         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
80576         matches that of the current directory (which we're about to chdir ".."
80577         out of), then save the dev-ino of the parent, instead.
80578
80579         * lib/same-inode.h (SAME_INODE): New file/macro.
80580         * lib/chdir-safer.c (SAME_INODE): Remove definition.
80581         Include "same-inode.h", instead.
80582         * lib/same.c: Likewise.
80583         * lib/cycle-check.h: Include "same-inode.h".
80584         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
80585         * lib/cycle-check.c (SAME_INODE): Remove definition.
80586         * lib/root-dev-ino.h: Include "same-inode.h".
80587
80588         2006-03-11  Eric Blake  <ebb9@byu.net>
80589
80590         * lib/same.c (same_name): s/base_name/last_component/
80591         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
80592         * lib/filenamecat.c (file_name_concat): Likewise.
80593
80594         2006-03-11  Eric Blake  <ebb9@byu.net>,
80595                     Paul Eggert  <eggert@cs.ucla.edu>
80596
80597         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
80598         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
80599         drive prefix.
80600         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
80601         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
80602         (last_component): New method.
80603         * lib/dirname.c (dir_len): Determine when drive letters need a
80604         subsequent slash.  Preserve // when it is special.
80605         (dir_name): Don't append dot when drive letter is absolute.
80606         [TEST_DIRNAME]: Move into a full-blown gnulib test.
80607         * lib/basename.c (base_name): New semantics - malloc the result.
80608         Preserve // when it is special.  Preserve relative files that look
80609         like drive letters.
80610         (base_len): Preserve // when it is special.
80611         (last_component): New method, similar to old base_name semantics.
80612         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
80613         base_name.  Strip redundant slashes from ///.
80614
80615 2006-07-03  Jim Meyering  <jim@meyering.net>
80616
80617         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
80618         macro is used before the first cycle_check call.
80619
80620 2006-07-03  Eric Blake  <ebb9@byu.net>
80621
80622         * modules/dirname (Depends-on): Add xstrndup.
80623
80624 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80625
80626         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
80627         test cases, so that config.log is a bit easier to follow.
80628
80629 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
80630
80631         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
80632         both are 64 bits, since this seems to be the tradition, and this
80633         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
80634         we ever run into a host that prefers long long to long in this
80635         case, we'll need another configure-time test.  Problem reported by
80636         Jim Meyering.
80637
80638 2006-07-02  Eric Blake  <ebb9@byu.net>
80639
80640         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
80641
80642 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80643
80644         * modules/inttypes (Depends-on): No longer depends on stdint.
80645         * modules/stdint (Description): Say more about assumptions.
80646         Say that the fast types might differ.  Say macros are used.
80647         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
80648         (Makefile.am): Revise list of substituted symbols to match
80649         new stdint.m4.
80650         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
80651         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
80652         * tests/test-stdint.c (verify_same_types)
80653         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
80654         the code conforms to C99/C89.
80655         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
80656         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
80657
80658 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80659
80660         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
80661         but fix a bug, by requiring at least 64 bits.
80662         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
80663         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
80664         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
80665         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
80666
80667         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
80668         changes.  Make 2.59 a prerequisite.  Check and substitute for
80669         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
80670         inttypes.h.  Do not use special include files; just use the
80671         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
80672         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
80673         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
80674         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
80675         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
80676         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
80677         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
80678         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
80679         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
80680         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
80681         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
80682         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
80683         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
80684         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
80685         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
80686         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
80687         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
80688         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
80689         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
80690         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
80691         WINT_MAX.  Check for C99 conformance more strictly, by detecting
80692         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
80693         not check for things that C99 does not require, e.g., int8_t.  If
80694         a test isn't needed unless <stdint.h> isn't working, and is
80695         unlikely to be needed for any other reason, then don't do it
80696         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
80697         size_t, since we assume C89 freestanding at least.  Do not check
80698         for sig_atomic_t, wchar_t, or wint_t, since the code now does
80699         the right thing even if the types are not defined.  Instead use:
80700         (gl_STDINT_TYPE_PROPERTIES): New macro.
80701         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
80702         testing whether <sys/types.h> clashes, as Autoconf does this for
80703         us now.  All uses removed.
80704         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
80705         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
80706         (gl_CHECK_TYPE_SAME):
80707         Remove; no longer needed.
80708         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
80709         exists, since we'll return 0 anyway in that case.
80710         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
80711
80712 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
80713
80714         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
80715         possible collision with system files.
80716         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
80717         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
80718         WCHAR_MIN and WCHAR_MAX in this case.
80719         (<stddef.h>): Do not include; no longer needed.
80720         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
80721         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
80722         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
80723         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
80724         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
80725         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
80726         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
80727         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
80728         !defined(__c99))]: Include in this case too, since it's harmless
80729         now.
80730         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
80731         dangerous to do so.
80732         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
80733         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
80734         (_STDINT_MIN, _STDINT_MAX): New macros.
80735         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
80736         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
80737         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
80738         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
80739         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
80740         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
80741         macros, not typedefs; this simplifies things quite a bit.
80742         Use long int for all types narrower than int64_t.
80743         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
80744         Define in terms of long long int or int64_t or long int,
80745         not int64_t or int32_t.  This saves some compile-time testing.
80746         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
80747         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
80748         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
80749         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
80750         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
80751         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
80752         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
80753         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
80754         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
80755         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
80756         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80757         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80758         undef any previous version and define our own version, for
80759         simplicity and consistency with the new macros for types.
80760         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
80761         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
80762         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
80763         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
80764         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
80765         @WINT_T_SUFFIX@ to keep things simple here.
80766         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
80767         Simplify by assuming typical 8/16/32/64 host, since we're
80768         already doing that elsewhere anyway.
80769         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
80770         and assume long long int is 64 bits if available.  This
80771         speeds up 'configure'.
80772
80773 2006-07-01  Eric Blake  <ebb9@byu.net>
80774
80775         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
80776         Reported by Andreas Buening.
80777
80778 2006-07-01  Eric Blake  <ebb9@byu.net>
80779
80780         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
80781
80782 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
80783
80784         * lib/getaddrinfo.c: fixed typo
80785
80786 2006-06-29  Jim Meyering  <jim@meyering.net>
80787
80788         * modules/strftime (Maintainer): Add my name, since with the
80789         FPRINTFTIME changes strftime.c has forked from glibc.
80790
80791 2006-06-29  Eric Blake  <ebb9@byu.net>
80792
80793         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
80794
80795 2006-06-29  Eric Blake  <ebb9@byu.net>
80796
80797         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
80798
80799 2006-06-29  Eric Blake  <ebb9@byu.net>
80800
80801         * lib/stat_.h: New file.
80802
80803 2006-06-29  Eric Blake  <ebb9@byu.net>
80804
80805         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
80806         unused static function.
80807
80808 2006-06-29  Eric Blake  <ebb9@byu.net>
80809
80810         * doc/functions.texi (Function Portability): Document missing lstat
80811         on mingw.
80812
80813 2006-06-29  Eric Blake  <ebb9@byu.net>
80814
80815         * MODULES.html.sh: Add sys_stat.
80816         * modules/sys_stat: New module.
80817         * modules/mkstemp (Depends-on): Add sys_stat.
80818
80819 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80820
80821         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80822
80823 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80824
80825         * m4/c-bs-a.m4: Removed.
80826
80827 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80828
80829         * lib/strftime.c: Assume strftime() exists.
80830
80831 2006-06-29  Derek Price  <derek@ximbiot.com>
80832
80833         * modules/c-bs-a: Removed - \a is C89.
80834         * MODULES.html.sh: Remove c-bs-a.
80835
80836 2006-06-29  Bruno Haible  <bruno@clisp.org>
80837
80838         * modules/wcwidth (License): Change to LGPL.
80839
80840 2006-06-28  Simon Josefsson  <jas@extundo.com>
80841
80842         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80843         on _WIN32.
80844
80845         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80846         getnameinfo.
80847
80848 2006-06-28  Simon Josefsson  <jas@extundo.com>
80849
80850         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80851
80852 2006-06-28  Simon Josefsson  <jas@extundo.com>
80853
80854         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80855         functions there.  It will succeed on Windows XP, but on Windows
80856         2000 and (presumably) earlier, it will fail, and use the internal
80857         re-implementation.
80858         (use_win32_p): New function.
80859         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80860         Support AI_NUMERICSERV to disable getservbyname.
80861         (getnameinfo): New function, only supports
80862         NI_NUMERICHOST|NI_NUMERICSERV for now.
80863
80864         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80865         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80866         getnameinfo.
80867
80868 2006-06-28  Eric Blake  <ebb9@byu.net>
80869
80870         * modules/wcwidth: New file.
80871         * modules/mbchar (Depends-on): Add wcwidth.
80872         * modules/mbswidth (Depends-on): Add wcwidth.
80873         * MODULES.html.sh: Add wcwidth.
80874
80875 2006-06-28  Eric Blake  <ebb9@byu.net>
80876
80877         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80878         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80879
80880 2006-06-28  Eric Blake  <ebb9@byu.net>
80881
80882         * lib/xvasprintf.h: Fix comments.
80883
80884 2006-06-28  Eric Blake  <ebb9@byu.net>
80885
80886         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80887         * lib/mbswidth.c (wcwidth): Move from here...
80888         * lib/wcwidth.h: ...to this new file.
80889
80890 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80891
80892         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80893
80894         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80895         it's obsolete.
80896         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80897
80898 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80899
80900         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80901         Autoconf 2.60 says this stuff was obsolete.
80902
80903 2006-06-28  Bruno Haible  <bruno@clisp.org>
80904
80905         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80906
80907 2006-06-28  Bruno Haible  <bruno@clisp.org>
80908
80909         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80910         gt_TYPE_WCHAR_T.
80911
80912 2006-06-28  Bruno Haible  <bruno@clisp.org>
80913
80914         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80915         declaration for wcwidth.
80916         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
80917
80918 2006-06-28  Bruno Haible  <bruno@clisp.org>
80919
80920         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80921         (mkdir): Define using _mkdir.
80922
80923 2006-06-28  Bruno Haible  <bruno@clisp.org>
80924
80925         * lib/getaddrinfo.h: Fix POSIX URL.
80926         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80927         _WIN32.
80928         (use_win32_p): Make static.
80929         (getaddrinfo): Reject service name if it is empty or does not consist
80930         solely of decimal digits, or if its value is > 65535.
80931         (getnameinfo): Remove useless casts.
80932
80933 2006-06-27  Simon Josefsson  <jas@extundo.com>
80934
80935         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80936         Eggert and Martin Lambers.
80937
80938 2006-06-27  Simon Josefsson  <jas@extundo.com>
80939
80940         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80941         Eggert and Martin Lambers.
80942
80943 2006-06-27  Bruno Haible  <bruno@clisp.org>
80944
80945         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80946         result to 0, not to empty.
80947         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80948
80949 2006-06-27  Bruno Haible  <bruno@clisp.org>
80950
80951         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80952
80953 2006-06-26  Simon Josefsson  <jas@extundo.com>
80954
80955         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80956         present.
80957
80958 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80959
80960         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80961         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80962         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80963
80964 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80965
80966         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80967
80968 2006-06-26  Bruno Haible  <bruno@clisp.org>
80969
80970         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80971
80972 2006-06-26  Bruno Haible  <bruno@clisp.org>
80973
80974         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80975
80976 2006-06-26  Bruno Haible  <bruno@clisp.org>
80977
80978         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80979         SGI C compiler in pre-C99 mode.
80980         Suggested by Mark D. Baushke and Larry Jones.
80981
80982 2006-06-26  Bruno Haible  <bruno@clisp.org>
80983
80984         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80985         WCHAR_MAX.
80986         Reported by Mark D. Baushke and Larry Jones.
80987
80988 2006-06-26  Bruno Haible  <bruno@clisp.org>
80989
80990         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80991         in pre-C99 mode.
80992         Suggested by Mark D. Baushke and Larry Jones.
80993
80994 2006-06-23  Simon Josefsson  <jas@extundo.com>
80995             Bruno Haible  <bruno@clisp.org>
80996
80997         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80998         Emit mostlyclean-local rule.
80999         (func_emit_tests_Makefile_am): Likewise.
81000         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
81001
81002 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
81003
81004         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
81005
81006 2006-06-23  Bruno Haible  <bruno@clisp.org>
81007
81008         * tests/test-stdint.c: Update to match ISO C 99 Technical
81009         Corrigendum 1.
81010
81011 2006-06-23  Bruno Haible  <bruno@clisp.org>
81012
81013         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
81014
81015 2006-06-23  Bruno Haible  <bruno@clisp.org>
81016
81017         * lib/stdint_.h: Treat IRIX like OpenBSD.
81018
81019 2006-06-23  Bruno Haible  <bruno@clisp.org>
81020
81021         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
81022         ISO C 99 Technical Corrigendum 1.
81023
81024 2006-06-22  Simon Josefsson  <jas@extundo.com>
81025
81026         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
81027         MinGW.
81028
81029 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81030
81031         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
81032         needed.  Some compiler complained about some of them.  Problem reported
81033         by Larry Jones in
81034         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
81035
81036 2006-06-21  Simon Josefsson  <jas@extundo.com>
81037
81038         * tests/test-getaddrinfo.c: New file.
81039
81040         * modules/getaddrinfo-tests: New file.
81041
81042         * MODULES.html.sh: Add inet_pton.
81043
81044         * modules/inet_pton: New file.
81045
81046 2006-06-21  Simon Josefsson  <jas@extundo.com>
81047
81048         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
81049         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
81050         of using the (limited) gnulib implementation on Windows XP.
81051
81052         * m4/inet_pton.m4: New file.
81053
81054 2006-06-21  Simon Josefsson  <jas@extundo.com>
81055
81056         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
81057         variable.
81058
81059         * lib/socket_.h: Don't define WINVER.
81060
81061         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
81062         slightly modified to work in gnulib.
81063
81064 2006-06-21  Simon Josefsson  <jas@extundo.com>
81065
81066         * doc/gnulib.texi (Windows sockets): Add.
81067
81068 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
81069
81070         * lib/read-file.c (fread_file): Start with buffer allocation of
81071         0 bytes rather than 1 byte; this simplifies the code.
81072         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
81073         code to free buffer and save/restore errno.
81074         (internal_read_file): Remove unused local.
81075
81076 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
81077
81078         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
81079         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
81080         Problem reported by Denis Excoffier in
81081         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
81082
81083 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
81084
81085         * modules/sys_socket, modules/socklen: Include sys/types since
81086         FreeBSD 4.x's sys/socket.h needs it.
81087
81088 2006-06-19  Simon Josefsson  <jas@extundo.com>
81089
81090         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
81091
81092 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
81093
81094         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
81095
81096 2006-06-19  Bruno Haible  <bruno@clisp.org>
81097
81098         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
81099         and FULL_PATH_INTTYPES_H in angle brackets.
81100         Reported by Mark D. Baushke <mdb@gnu.org>.
81101
81102 2006-06-17  Eric Blake  <ebb9@byu.net>
81103
81104         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
81105         errno.
81106
81107 2006-06-17  Bruno Haible  <bruno@clisp.org>
81108
81109         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
81110         <sys/inttypes.h>.
81111
81112 2006-06-17  Bruno Haible  <bruno@clisp.org>
81113
81114         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
81115         whether errno is declared. Assume <errno.h> declares errno.
81116
81117 2006-06-17  Bruno Haible  <bruno@clisp.org>
81118
81119         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
81120
81121 2006-06-17  Bruno Haible  <bruno@clisp.org>
81122
81123         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
81124         problem on Solaris 2.5.1.
81125
81126 2006-06-16  Eric Blake  <ebb9@byu.net>
81127
81128         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
81129         * lib/unicodeio.c [!defined errno]: Likewise.
81130         * lib/strtol.c [!defined errno]: Likewise.
81131         * lib/strtod.c [!defined errno]: Likewise.
81132
81133 2006-06-15  Eric Blake  <ebb9@byu.net>
81134
81135         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
81136
81137 2006-06-15  Eric Blake  <ebb9@byu.net>
81138
81139         * config/srclist.txt (ssize_t.m4): Lose sync.
81140
81141 2006-06-15  Bruno Haible  <bruno@clisp.org>
81142
81143         * modules/stdint (Files): Include m4/full-header-path.m4,
81144         m4/size_max.m4, m4/wchar_t.m4.
81145         (Makefile.am): Many more substitutions.
81146         * modules/stdint-tests: New file.
81147         * tests/test-stdint.c: New file.
81148
81149 2006-06-15  Bruno Haible  <bruno@clisp.org>
81150
81151         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
81152         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
81153         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
81154         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
81155         gl_CHECK_TYPE_SAME): New macros.
81156
81157 2006-06-15  Bruno Haible  <bruno@clisp.org>
81158
81159         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
81160
81161 2006-06-15  Bruno Haible  <bruno@clisp.org>
81162
81163         * lib/stdint_.h: Rewritten to be fully auto-configured.
81164         Fixes bug on HP-UX/IA64.
81165
81166 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
81167
81168         * lib/getdate.y (__attribute__): Don't define if already defined.
81169         Problem reported by Larry Jones.
81170         * lib/utimens.c (__attribute__): Likewise.
81171
81172 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
81173
81174         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
81175         reported by Andreas Schwab.
81176
81177 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81178             Bruno Haible  <bruno@clisp.org>
81179
81180         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
81181         check for the declaration of strnlen and a run test that exposes the
81182         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
81183         rpl_strndup.
81184
81185 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81186             Bruno Haible  <bruno@clisp.org>
81187
81188         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
81189
81190 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81191
81192         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
81193         compile test, for Tru64 4.0D.
81194
81195 2006-05-28  Karl Berry  <karl@gnu.org>
81196
81197         * config/srclist.txt (printf-args.c): lose sync.
81198
81199 2006-05-26  Martin Lambers  <marlam@marlam.de>
81200
81201         * lib/getpass.c: Updates the test for the native W32 API, and adds
81202         missing includes, thus fixing compilation warnings.
81203
81204 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81205
81206         * lib/exclude.c (exclude_fnmatch): New function.
81207         (excluded_file_name): Call exclude_fnmatch.
81208         * lib/exclude.h (excluded_file_name): New prototype
81209
81210 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
81211
81212         * lib/tempname.c (small_open, large_open): New macros.
81213         (__open, __open64) [!_LIBC]: Remove.
81214         (__gen_tempname): Use small_open and large_open instead of __open
81215         and __open64.  This fixes a portability bug on HP-UX 11.11i
81216         reported by Simon Wing-Tang in
81217         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
81218
81219 2006-05-24  Bruno Haible  <bruno@clisp.org>
81220
81221         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
81222         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
81223         Reported by Thorsten Maerz <torte@netztorte.de> via
81224         Aaron Stone <aaron@serendipity.cx>.
81225
81226 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81227
81228         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
81229         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
81230         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
81231         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
81232         not really conditional on the cache.
81233         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
81234
81235 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
81236
81237         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
81238         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
81239         (my_usleep): Don't mishandle maximum value.
81240
81241 2006-05-19  Jim Meyering  <jim@meyering.net>
81242
81243         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
81244
81245 2006-05-17  Bruno Haible  <bruno@clisp.org>
81246
81247         Cygwin portability.
81248         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
81249
81250 2006-05-17  Bruno Haible  <bruno@clisp.org>
81251
81252         * lib/stdint_.h: Fix recognition of Cygwin.
81253
81254 2006-05-15  Bruno Haible  <bruno@clisp.org>
81255
81256         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
81257         on libtool patch by Ralf Wildenhues.
81258
81259 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81260
81261         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
81262         test for C99 conformance; (bool) 0.5 is an integer constant
81263         expression, but (bool) -0.5 is not.  Problem reported by Fedor
81264         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
81265
81266 2006-05-11  Simon Josefsson  <jas@extundo.com>
81267
81268         * m4/xvasprintf.m4: Fix obvious typo.
81269
81270 2006-05-11  Jim Meyering  <jim@meyering.net>
81271
81272         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
81273         James Lemley.
81274
81275 2006-05-10  Simon Josefsson  <jas@extundo.com>
81276
81277         * lib/md4.c: Typo fix, update copyright years.
81278         (K1, K2): Don't use L because it turn computations into 64-bit on
81279         64-bit platforms.
81280
81281 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
81282
81283         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
81284         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
81285         unwanted sign propagation, e.g., on hosts with 64-bit int.
81286         There still are some problems with reeelly weird theoretical hosts
81287         (e.g., 33-bit int) but it's not worth worrying about now.
81288         * lib/sha1.c (rol): Likewise.
81289         (K1, K2, K3, K4): Remove unnecessary L suffix.
81290
81291 2006-05-10  Bruno Haible  <bruno@clisp.org>
81292
81293         * lib/des.c: Cast to avoid warnings.
81294
81295 2006-05-09  Bruno Haible  <bruno@clisp.org>
81296
81297         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
81298         (Depends-on): Depend also on xsize, stdarg.
81299         (configure.ac): Add gl_XVASPRINTF.
81300
81301 2006-05-09  Bruno Haible  <bruno@clisp.org>
81302
81303         * m4/xvasprintf.m4: New file.
81304
81305 2006-05-09  Bruno Haible  <bruno@clisp.org>
81306
81307         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
81308         (EOVERFLOW): Define fallback value.
81309         (xstrcat): New function.
81310         (xvasprintf): Recognize the special case of a string concatenation.
81311
81312 2006-05-08  Eric Blake  <ebb9@byu.net>
81313
81314         * gnulib-tool (func_version): Base copyright year on CVS date.
81315         (func_emit_copyright_notice): New function.
81316         (func_emit_lib_Makefile_am): Use it.
81317         (func_emit_tests_Makefile_am): Likewise.
81318         (func_import): Likewise.
81319
81320 2006-05-08  Bruno Haible  <bruno@clisp.org>
81321
81322         * modules/stdarg: New file.
81323         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
81324
81325 2006-05-08  Bruno Haible  <bruno@clisp.org>
81326
81327         * m4/stdarg.m4: New file, from GNU gettext.
81328
81329 2006-05-08  Bruno Haible  <bruno@clisp.org>
81330
81331         * config/srclist.txt (build-aux/config.rpath): different from latest
81332         release.
81333
81334 2006-05-08  Bruno Haible  <bruno@clisp.org>
81335
81336         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
81337
81338 2006-05-05  Jim Meyering  <jim@meyering.net>
81339
81340         * m4/warning.m4: New file, derived from bison's file by the same name.
81341
81342 2006-05-03  Bruno Haible  <bruno@clisp.org>
81343
81344         * lib/stdint_.h: Shorter URL.
81345         * lib/inttypes.h: Likewise.
81346
81347 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81348
81349         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
81350
81351 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81352
81353         * lib/verify.h: Document the internals better.  Most of this change
81354         was written by Bruno Haible.
81355
81356 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
81357
81358         * doc/verify.texi: New file, partly based on a proposal by
81359         Bruno Haible.
81360
81361 2006-05-02  Bruno Haible  <bruno@clisp.org>
81362
81363         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
81364         test from here...
81365         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
81366
81367 2006-04-29  Bruno Haible  <bruno@clisp.org>
81368
81369         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
81370         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
81371
81372 2006-04-29  Bruno Haible  <bruno@clisp.org>
81373
81374         * gnulib-tool: Make --update option actually work.
81375
81376 2006-04-29  Bruno Haible  <bruno@clisp.org>
81377
81378         * doc/gcd.texi: New file.
81379         * doc/gnulib.texi: Include it.
81380
81381 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
81382
81383         * lib/getdate.y (get_date): When adding relative date, start with the
81384         initial time, not with the result of the first mktime call.
81385
81386 2006-04-25  Bruno Haible  <bruno@clisp.org>
81387
81388         * gnulib-tool (func_import): Output the include directives in three
81389         blocks, sorted separately.
81390         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81391
81392 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81393
81394         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
81395         to define main with arguments, for C++.  Reported by Eric Blake.
81396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
81397         Prefer 'int main ()' to 'int main (void)', for C++.
81398         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
81399         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
81400         for 'main', for C99 and C++.
81401
81402 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
81403
81404         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
81405         Don't assume that exit status -1 is valid.
81406         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81407         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
81408         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81409         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
81410         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
81411         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
81412         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
81413         functions can be used without declaring them, or that you can
81414         exit with status -1.
81415         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81416
81417 2006-04-24  Karl Berry  <karl@gnu.org>
81418
81419         * config/srclist.txt (longdouble.m4): sync lost.
81420
81421 2006-04-24  Eric Blake  <ebb9@byu.net>
81422
81423         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
81424
81425 2006-04-24  Bruno Haible  <bruno@clisp.org>
81426
81427         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
81428         poll() implementation in AIX.
81429         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81430
81431 2006-04-24  Bruno Haible  <bruno@clisp.org>
81432
81433         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
81434         assigned exactly once.
81435
81436 2006-04-23  Claudio Fontana  <claudio@gnu.org>
81437             Bruno Haible  <bruno@clisp.org>
81438
81439         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
81440         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
81441         for AM_CPPFLAGS.
81442
81443 2006-04-23  Bruno Haible  <bruno@clisp.org>
81444
81445         * modules/copy-file: Depend on unistd.
81446         * modules/execute: Likewise.
81447         * modules/fatal-signal: Likewise.
81448         * modules/findprog: Likewise.
81449         * modules/mkdtemp : Likewise.
81450         * modules/pipe: Likewise.
81451         * modules/wait-process: Likewise.
81452
81453 2006-04-23  Bruno Haible  <bruno@clisp.org>
81454
81455         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
81456         condition was already detected.
81457         Reported by Ben Pfaff <blp@cs.stanford.edu>.
81458
81459 2006-04-23  Bruno Haible  <bruno@clisp.org>
81460
81461         * lib/copy-file.c: Include <unistd.h> unconditionally.
81462         * lib/execute.c: Likewise.
81463         * lib/fatal-signal.c: Likewise.
81464         * lib/findprog.c: Likewise.
81465         * lib/mkdtemp.c: Likewise.
81466         * lib/pipe.h: Likewise.
81467         * lib/pipe.c: Likewise.
81468         * lib/wait-process.h: Likewise.
81469
81470 2006-04-23  Bruno Haible  <bruno@clisp.org>
81471
81472         * gnulib-tool (func_usage): Fix --import description. Document
81473         --update.
81474         (func_import): Create temporary file in a temporary directory, if
81475         --dry-run is specified. Silence errors from 'grep' when there are no
81476         m4 files in $m4dir.
81477         (func_create_testdir): Silence errors from 'grep' when there are no
81478         m4 files in $m4dir.
81479         Reported by Karl Berry <karl@freefriends.org>.
81480
81481 2006-04-20  Bruno Haible  <bruno@clisp.org>
81482
81483         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
81484         one argument, so that the code will be portable to Autoconf 2.60.
81485         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
81486         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
81487         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
81488
81489 2006-04-19  Derek Price  <derek@ximbiot.com>
81490             Eric Blake  <ebb9@byu.net>
81491
81492         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
81493         rather than "/full/path.h".  Update comment to match.  Shorten &
81494         generalize m4_translit call via AS_TR_CPP.
81495
81496 2006-04-19  Derek Price  <derek@ximbiot.com>
81497             Eric Blake  <ebb9@byu.net>
81498
81499         * lib/inttypes.h: Correct grammar in comment.
81500
81501 2006-04-18  Derek Price  <derek@ximbiot.com>
81502             Paul Eggert  <eggert@cs.ucla.edu>
81503
81504         * modules/inttypes: New file.
81505         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
81506
81507 2006-04-18  Derek Price  <derek@ximbiot.com>
81508             Paul Eggert  <eggert@cs.ucla.edu>
81509
81510         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
81511         New files.
81512
81513 2006-04-18  Derek Price  <derek@ximbiot.com>
81514             Paul Eggert  <eggert@cs.ucla.edu>
81515
81516         * lib/inttypes.h: New file.
81517         * lib/strtoimax.c: Assume <inttypes.h>.
81518
81519 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
81520
81521         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
81522         isn't mounted.  Problem reported by Kir Kolyshkin.
81523
81524 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
81525
81526         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
81527         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
81528         Derek R. Price.
81529         * lib/regex.h (RE_DUP_MAX): Update comment to match current
81530         implementation.
81531
81532 2006-04-12  Eric Blake  <ebb9@byu.net>
81533
81534         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
81535         is now done automatically by the corresponding Autoconf macro.
81536
81537 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
81538
81539         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
81540         time_r.h.
81541
81542 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81543
81544         Merge regex changes from libc, removing some of our
81545         POSIX-conformance changes that were rejected and redoing them in a
81546         less-intrusive way.
81547
81548         * lib/regcomp.c (re_compile_internal, init_dfa):
81549         Length arg is now size_t, not Idx.  All uses changed.
81550         (peek_token): Forward decl now says internal_function.
81551         (__re_error_msgid, __re_error_msgid_idx):
81552         Now static rather than extern with attribute_hidden.
81553         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
81554         For some reason libc prefers K&R style defns for external functions.
81555         (regerror) [!defined _LIBC]: Likewise.
81556         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
81557         (seek_collating_symbol_entry, lookup_collation_sequence_value):
81558         (build_range_exp, build_collating_symbol):
81559         Use K&R-style defn.
81560         (re_compile_fastmap): Use '\0' to memset, not 0.
81561         (utf8_sb_map): Make the calculations more obvious.
81562         (init_dfa, parse_bracket_exp, build_charclass_op):
81563         Call calloc and cast result, as glibc does.
81564         (init_word_char, fetch_token, peek_token, peek_token_bracket):
81565         (build_range_exp, build_collating_symbol):
81566         Now internal functions.
81567
81568         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
81569
81570         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
81571         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
81572         Don't depend on VMS; depend on __VMS instead, for POSIX
81573         namespace cleanness.
81574         (regoff_t): Define to ssize_t, not long int.
81575
81576         Remove the REG_ macros named below.  Instead, make the old names
81577         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
81578         __USE_GNU_REGEX.
81579         (REG_BACKSLASH_ESCAPE_IN_LISTS):
81580         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
81581         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
81582         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
81583         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
81584         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
81585         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
81586         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
81587         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
81588         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
81589         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
81590         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
81591         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
81592         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
81593         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
81594         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
81595         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
81596         (REG_NREGS):
81597         Remove.  All uses replaced by the old RE_* names.
81598         (RE_BACKSLASH_ESCAPE_IN_LISTS):
81599         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
81600         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
81601         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
81602         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
81603         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
81604         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
81605         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
81606         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
81607         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
81608         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
81609         Don't bother having these macros be independent of each others'
81610         values, since they no longer exist in the POSIX name space.
81611
81612         Rename the following member names back to their old names,
81613         unless !__USE_GNU_REGEX.  All uses changed back.
81614         (buffer): Renamed from re_buffer.
81615         (allocated): Renamed from re_allocated.
81616         (used): Renamed from re_used.
81617         (syntax): Renamed from re_syntax.
81618         (fastmap): Renamed from re_fastmap.
81619         (translate): Renamed from re_translate.
81620         (can_be_null): Renamed from re_can_be_null.
81621         (regs_allocated): Renamed from re_regs_allocated.
81622         (fastmap_accurate): Renamed from re_fastmap_accurate.
81623         (no_sub): Renamed from re_no_sub.
81624         (not_bol): Renamed from re_not_bol.
81625         (not_eol): Renamed from re_not_eol.
81626         (newline_anchor): Renamed from re_newline_anchor.
81627         (num_regs): Renamed from rm_num_regs.
81628         (start): Renamed from rm_start.
81629         (end): Renamed from rm_end.
81630
81631         (free_state): Move up a bit.
81632
81633         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
81634         #define to be empty.
81635         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
81636         when that is what is intended.
81637         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
81638         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
81639         (MAX): New macro.
81640         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
81641         All uses changed back to re_malloc, etc.  It's now the caller's
81642         responsibility to check for overflow; all callers changed.
81643         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
81644         (re_x2nrealloc): Remove.
81645         (free_state): Remove decl.
81646
81647         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
81648         (re_set_registers, re_exec):
81649         Use K&R-style defn.
81650
81651         2006-01-31  Roland McGrath  <roland@redhat.com>
81652
81653         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
81654         Reported by Mike Frysinger <vapier@gentoo.org>.
81655
81656         2006-01-15  Andreas Jaeger  <aj@suse.de>
81657
81658         [BZ #1950]
81659         * lib/regex_internal.c (re_string_reconstruct): Adjust for
81660         build_wcs_upper_buffer change.
81661         (build_wcs_upper_buffer): Change return type.
81662
81663         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
81664
81665         * lib/regex_internal.h: Include <stdint.h> if available.
81666
81667         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
81668
81669         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
81670
81671         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
81672
81673         * lib/regcomp.c: Adjust for changed secondary hash function.
81674
81675         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
81676
81677         * lib/regex.h: Pretty printing.
81678         Clean up namespace a bit.
81679
81680         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
81681
81682         * lib/regexec.c (update_cur_sifted_state, check_arrival,
81683         check_arrival_add_next_nodes): Avoid using uninitialized variable.
81684
81685         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
81686                     Ulrich Drepper  <drepper@redhat.com>
81687
81688         [BZ #1302]
81689         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
81690         changed.
81691         (bitset_word_t): Renamed from bitset_word.  All uses changed.
81692
81693         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
81694
81695         [BZ #281]
81696         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
81697         * lib/regcomp.c: Remove unnecessary uses of
81698         unsigned RE_TRANSLATE_TYPE.
81699         * lib/regex_internal.h: Likewise.
81700         * lib/regex_internal.c: Likewise.
81701         * lib/regexec.c: Likewise.
81702         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
81703
81704         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
81705
81706         * lib/regexec.c (find_recover_state): Remove unnecessary
81707         initialization.
81708         (transit_state_bkref): Make DFA a const pointer.
81709         (get_subexp): Likewise.
81710         (check_arrival): Likewise.
81711         (update_cur_sifted_state): Likewise.
81712         (re_search_internal): Likewise.
81713         (prune_impossible_nodes): Likewise.
81714         (acquire_init_state_context): Likewise.
81715         (proceed_next_node): Likewise.
81716         (set_regs): Likewise.
81717         (free_fail_stack_return): Likewise.
81718         (check_arrival_expand_ecl): Mark DFA parameter as const.
81719         (check_arrival_expand_ecl_sub): Likewise.
81720         (check_subexp_limits): Likewise.
81721         (sub_epsilon_src_nodes):  Likewise.
81722         (add_epsilon_src_nodes):  Likewise.
81723         (merge_state_array): Likewise.
81724         (update_regs): Likewise.
81725         (build_trtable): Likewise.
81726         (sift_states_backward): Mark MCTX parameter as const.
81727         (build_sifted_states): Likewise.
81728         (update_cur_sifted_state): Likewise.
81729         (sift_states_mkref): Likewise.
81730         (check_arrival_expand_ecl): Mark eclosure as const.
81731         (check_dst_limits_calc_pos_1): Likewise.
81732         * lib/regex_internal.h (re_match_context_t): Make dfa a const
81733         pointer.
81734
81735         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
81736
81737         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
81738         (transit_state_sb): Likewise.
81739         (transit_state_mb): Likewise.
81740         (sift_states_iter_mb): Likewise.
81741         (check_arrival_add_next_nodes): Likewise.
81742         (check_node_accept_bytes): Change first parameter to pointer-to-const.
81743         [_LIBC] (re_search_2_stub): Use mempcpy.
81744
81745         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
81746         mbrtowc for very simple UTF-8 case.
81747
81748         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
81749         a pointer-to-const.
81750         (re_acquire_state_context): Likewise.
81751         * lib/regex_internal.h: Adjust prototypes.
81752
81753         * lib/regex.c: Prevent using C++ compilers.
81754
81755         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
81756         (re_acquire_state_context): Likewise.
81757
81758 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81759
81760         * modules/regex (Depends-on): Add ssize_t.
81761
81762 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81763
81764         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
81765         translation table.
81766
81767 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
81768
81769         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
81770
81771 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
81772             Bruno Haible  <bruno@clisp.org>
81773
81774         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
81775         <sys/types.h> and <inttypes.h>.
81776
81777 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81778
81779         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
81780         `__error_t_defined', so argp.h will not typedef the former.
81781
81782 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
81783
81784         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
81785         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
81786         glibc names.  Even if glibc is changed to conform to POSIX, the
81787         traditional names will be available anyway, since regex depends on
81788         the extensions module.  Also, fix a longstanding typo in the
81789         implementation of Spencer ERE test #75 from grep 2.3.  Problems
81790         reported by Emanuele Giaquinta.  Also, change sense of cached
81791         variable, so that the message makes sense.
81792
81793 2006-03-24  Simon Josefsson  <jas@extundo.com>
81794
81795         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
81796         including some doc fixes.
81797         (base64_encode_alloc): Fix +1 bug on allocation failures.
81798
81799 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81800
81801         * lib/base64.c (base64_encode): Do not read past end of array with
81802         unsanitized input on systems with CHAR_BIT > 8.
81803
81804 2006-03-24  Eric Blake  <ebb9@byu.net>
81805
81806         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
81807
81808 2006-03-22  Karl Berry  <karl@gnu.org>
81809
81810         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81811         * config/srclistvars.sh (COREUTILS): new var.
81812
81813 2006-03-17  Jim Meyering  <jim@meyering.net>
81814
81815         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81816         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81817
81818 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81819
81820         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81821         no longer needs it.  Instead, check that regoff_t is as least
81822         as wide as ptrdiff_t.
81823
81824         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81825         so that our regex.h stays compatible with the installed regex.
81826         This is helpful for installers who configure --without-included-regex.
81827         Problem reported by Emanuele Giaquinta.
81828
81829 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81830
81831         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81832         Typedef to long int, not to off_, as POSIX will likely change
81833         in that direction.
81834
81835 2006-03-15  Eric Blake  <ebb9@byu.net>
81836
81837         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81838
81839 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81840
81841         * lib/argp-help.c (validate_uparams): Fix typo
81842         * lib/argp-parse.c (argp_default_options): Consistently begin help
81843         messages with a lowercase letter.
81844
81845 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81846
81847         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81848         overrun buffers and shouldn't be used (much as gets shouldn't be
81849         used).
81850         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81851
81852 2006-03-08  Simon Josefsson  <jas@extundo.com>
81853
81854         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81855         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81856
81857 2006-03-08  Simon Josefsson  <jas@extundo.com>
81858
81859         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81860         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81861
81862 2006-03-08  Simon Josefsson  <jas@extundo.com>
81863
81864         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81865         signal that configure disabled the device.
81866
81867 2006-03-08  Simon Josefsson  <jas@extundo.com>
81868
81869         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81870         languages.
81871
81872 2006-03-07  Simon Josefsson  <jas@extundo.com>
81873
81874         * modules/getopt (Depends-on): Add unistd.
81875
81876         * modules/unistd: New file.
81877
81878 2006-03-07  Simon Josefsson  <jas@extundo.com>
81879
81880         * modules/gc-random: New file.
81881
81882 2006-03-07  Simon Josefsson  <jas@extundo.com>
81883
81884         * m4/unistd_h.m4: New file.
81885
81886 2006-03-07  Simon Josefsson  <jas@extundo.com>
81887
81888         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81889         test to be side-effect free by storing the result in the cache
81890         variable gl_cv_lib_readline, and moving the assignment of
81891         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81892         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81893
81894 2006-03-07  Simon Josefsson  <jas@extundo.com>
81895
81896         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81897         error on missing devices (the functions will return an error).
81898
81899         * m4/gc.m4: Move random stuff to gc-random.m4
81900
81901 2006-03-07  Simon Josefsson  <jas@extundo.com>
81902
81903         * lib/unistd_.h: New file.
81904
81905 2006-03-07  Simon Josefsson  <jas@extundo.com>
81906
81907         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81908
81909 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81910
81911         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81912         Problem reported by Juan Manuel Guerrero.
81913
81914 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81915
81916         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81917         the unistd module.
81918         * lib/getlogin_r.c: Likewise.
81919         * lib/getlogin_r.h: Likewise.
81920         * lib/glob.c: Likewise.
81921         * lib/pagealign_alloc.c: Likewise.
81922         * lib/unistd_.h: Remove; no longer needed.
81923
81924 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81925
81926         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81927         Add unistd.
81928         * modules/c-stack (Depends-on): Add unistd.
81929         * modules/getlogin_r: Likewise.
81930         * modules/glob: Likewise.
81931         * modules/pagealign_alloc: Likewise.
81932         * modules/unistd (Files): Remove lib/unistd_.h.
81933         (EXTRA_DIST): Remove.
81934         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81935         need unistd_.h.
81936         (MOSTLYCLEANFILES): Remove unistd.h-t.
81937
81938 2006-03-03  Simon Josefsson  <jas@extundo.com>
81939
81940         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81941
81942 2006-03-03  Simon Josefsson  <jas@extundo.com>
81943
81944         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81945         libidn and bison.
81946
81947 2006-03-03  Simon Josefsson  <jas@extundo.com>
81948
81949         * build-aux/maint.mk: Add indent target.
81950
81951 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81952
81953         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81954         our replacement poll.h in any case, to avoid a differing
81955         declaration from a system header.  Seen on AIX.
81956
81957 2006-03-01  Simon Josefsson  <jas@extundo.com>
81958
81959         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81960         <kasal@ucw.cz>.
81961
81962 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81963
81964         * modules/gettime (Depends-on): Add extensions module.
81965         * modules/nanosleep (Depends-on): Likewise.
81966         * modules/settime (Depends-on): Likewise.
81967
81968 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81969
81970         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81971         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81972         pedantically.
81973         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81974         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81975
81976         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81977         not "==".  Reported by Ralf Wildenhues.
81978
81979 2006-03-01  Karl Berry  <karl@gnu.org>
81980
81981         * doc/Copyright/request-*: new files, synced from gnuorg.
81982
81983 2006-03-01  Karl Berry  <karl@gnu.org>
81984
81985         * config/srclist.txt (Copyright/*): new entries.
81986
81987 2006-02-28  Simon Josefsson  <jas@extundo.com>
81988
81989         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81990
81991 2006-02-27  Simon Josefsson  <jas@extundo.com>
81992
81993         * lib/base64.h: Indent #define's.  From Jim Meyering
81994         <jim@meyering.net>.
81995
81996 2006-02-27  Jim Meyering  <jim@meyering.net>
81997
81998         Revert the change of 2006-02-24, so these files can continue
81999         to be sync'd from gettext.
82000         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
82001         of `config.h'.
82002
82003 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82004
82005         * modules/intprops: New file.
82006         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
82007         Add intprops.
82008         * modules/getloadavg (Files): Remove lib/intprops.h.
82009         (Depends-on): Add intprops.
82010         * modules/human: Likewise.
82011         * modules/inttostr: Likewise.
82012         * modules/openat: Likewise.
82013         * modules/sig2str: Likewise.
82014         * modules/userspec: Likewise.
82015         * modules/utimecmp: Likewise.
82016         * modules/xnanosleep: Likewise.
82017         * modules/xstrtol: Likewise.
82018
82019 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
82020
82021         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
82022         * modules/lock-tests (TESTS): Use $(EXEEXT).
82023         * modules/tls-tests: Likewise.
82024         * modules/argp-tests: Likewise.
82025         (check_PROGRAMS): New var, replacing...
82026         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
82027
82028 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82029
82030         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
82031         `config.h'.
82032
82033 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
82034
82035         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
82036
82037 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82038
82039         Sync from coreutils.
82040         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
82041         gl_CHDIR_SAFER.
82042
82043 2006-02-22  Jim Meyering  <jim@meyering.net>
82044
82045         Sync from coreutils.
82046         * m4/chdir-safer.m4: New file.
82047
82048 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
82049
82050         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
82051         AT_FDCWD exceeds INT_MAX.
82052         * lib/openat.h (AT_FDCWD): Likewise.
82053
82054 2006-02-17  Eric Blake  <address@hidden>
82055
82056         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
82057
82058 2006-02-16  Simon Josefsson  <jas@extundo.com>
82059
82060         * modules/getaddrinfo (Depends-on): Add sys_socket.
82061
82062 2006-02-15  Simon Josefsson  <jas@extundo.com>
82063
82064         * build-aux/maint.mk: Add dsyntax-check rule.
82065
82066 2006-02-15  Eric Blake  <ebb9@byu.net>
82067
82068         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
82069         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
82070         'present but cannot compile' warnings on cygwin.
82071         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
82072         use ws2tcpip.h if sys/socket.h works.
82073         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
82074         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
82075
82076 2006-02-14  Simon Josefsson  <jas@extundo.com>
82077
82078         * modules/maintainer-makefile (Files): Rename.
82079
82080         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
82081         and (the local) Makefile.cfg to maint-cfg.mk.
82082
82083         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
82084         to the latter.
82085
82086         * modules/maintainer-makefile: New module.
82087
82088         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
82089         severaly stripped to make it possible to build it up from scratch
82090         with reliable tests.
82091
82092         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
82093         fixes to permit overriding the default actions when configure and
82094         makefile are not available.
82095
82096 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
82097
82098         Sync from coreutils.
82099         * modules/lstat (Depends-on): Don't depend on xalloc.
82100         (License): Change from GPL to LGPL, since this is now simply a
82101         replacement for a libc function.
82102
82103 2006-02-14  Jim Meyering  <jim@meyering.net>
82104
82105         Sync from coreutils.
82106
82107         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
82108         failure on deficient systems, and simplify gnulib lgpl dependencies.
82109         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
82110         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
82111
82112         * lib/xalloc-die.c: Remove unused definition of N_.
82113
82114 2006-02-14  Jim Meyering  <jim@meyering.net>
82115
82116         Sync from coreutils.
82117         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
82118         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
82119         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
82120         double-quote uses of that variable, to accommodate the rare case in
82121         which getmntent is available in none of the libraries checked.  This
82122         happens at least on FreeBSD 5.0.
82123
82124 2006-02-13  Simon Josefsson  <jas@extundo.com>
82125
82126         * gnulib-tool (Usage): Fix --import, from
82127         karl@freefriends.org (Karl Berry).
82128
82129 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
82130
82131         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
82132
82133 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
82134
82135         * lib/argp-namefrob.h: Restore changes accidentally lost during the
82136         "autoupdate" on 2005-12-12.
82137
82138 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82139
82140         * modules/closeout (Depends-on): Remove atexit.
82141
82142 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
82143
82144         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
82145         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
82146
82147 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
82148
82149         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
82150         __EXTENSIONS__ if this causes compilation to fail.  Problem
82151         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
82152         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
82153
82154 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
82155
82156         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
82157         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
82158         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
82159         All uses changed.
82160
82161 2006-01-26  Simon Josefsson  <jas@extundo.com>
82162
82163         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
82164         prototype is visible on mingw32.
82165
82166         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
82167         for mingw32.
82168
82169         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
82170         mingw32).
82171
82172 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
82173
82174         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
82175         attempt to open for write; this always fails, at least on POSIX
82176         hosts.  This reinstates the 2006-01-09 change, which was
82177         inadvertently removed.
82178
82179 2006-01-26  Bruno Haible  <bruno@clisp.org>
82180
82181         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
82182         Reported by Paul Eggert.
82183
82184 2006-01-26  Bruno Haible  <bruno@clisp.org>
82185             Paul Eggert  <eggert@cs.ucla.edu>
82186
82187         * lib/stdbool_.h (_Bool)
82188         [(! (defined __cplusplus || defined __BEOS__)
82189           && !defined __GNUC__
82190           && !(defined __HP_cc || defined __xlc__
82191                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
82192                || defined __sgi))]:
82193         #define to signed char in these cases too; this simplifies
82194         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
82195         etc., separately) and makes it more conservative.
82196
82197 2006-01-25  Simon Josefsson  <jas@extundo.com>
82198
82199         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
82200         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
82201         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
82202
82203 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
82204
82205         * lib/argp-namefrob.h: Bugfix. Remove stray #
82206
82207 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
82208
82209         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
82210         so that we test the test.
82211         Check for yet another HP-UX cc bug involving *bool |= bool.
82212
82213 2006-01-25  Karl Berry  <karl@gnu.org>
82214
82215         * config/srclist.txt (vasnprintf.c): sync lost.
82216
82217 2006-01-25  Jim Meyering  <jim@meyering.net>
82218
82219         Sync from the stable (b5) branch of coreutils:
82220
82221         * lib/fts.c (fts_children): Don't let close() clobber errno from
82222         failed fchdir().
82223
82224         * lib/fts.c (fts_stat): When following a symlink-to-directory,
82225         don't necessarily interpret stat-fails+lstat-succeeds as indicating
82226         a dangling symlink.  That can also happen at least for ELOOP.
82227         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
82228         FYI, this bug predates the inclusion of fts.c in coreutils.
82229
82230         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
82231         in their own block, so pre-c99 compilers don't object.
82232
82233         Avoid the double-free (first in fts_read, second in fts_close) that
82234         would occur when an `active' directory is made inaccessible (e.g.,
82235         via chmod a-x) during a traversal.
82236         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82237         before returning.  Reproduce this failure by
82238         mkdir -p a/b; cd a; chmod a-x . b
82239         Reported by Stavros Passas.
82240
82241 2006-01-25  Jim Meyering  <jim@meyering.net>
82242
82243         * lib/fileblocks.c: Remove more useless parentheses.
82244         * lib/readutmp.h: Likewise.
82245
82246 2006-01-25  Bruno Haible  <bruno@clisp.org>
82247
82248         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
82249         warnings.
82250         Reported by Paul Eggert.
82251
82252 2006-01-25  Bruno Haible  <bruno@clisp.org>
82253
82254         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
82255         rid of a trap command. For Solaris sh.
82256         Reported by Mark D. Baushke <mdb@gnu.org>.
82257
82258 2006-01-24  Simon Josefsson  <jas@extundo.com>
82259
82260         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
82261         Bruno.
82262
82263 2006-01-24  Karl Berry  <karl@gnu.org>
82264
82265         * config/srclist.txt (argp-namefrob.h): sync lost.
82266
82267 2006-01-24  Jim Meyering  <jim@meyering.net>
82268
82269         * modules/openat (Files): Add lib/intprops.h.
82270         From Mark D. Baushke.
82271
82272 2006-01-24  Jim Meyering  <jim@meyering.net>
82273
82274         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
82275         Reported by Mark D. Baushke.
82276
82277 2006-01-24  Jim Meyering  <jim@meyering.net>
82278
82279         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
82280
82281 2006-01-24  Bruno Haible  <bruno@clisp.org>
82282
82283         * modules/strnlen (Maintainer): Change from glibc to all.
82284
82285 2006-01-24  Bruno Haible  <bruno@clisp.org>
82286
82287         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
82288         Patch by Paul Eggert.
82289
82290 2006-01-24  Bruno Haible  <bruno@clisp.org>
82291
82292         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
82293         already has it.
82294         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
82295         2005-11-26.
82296
82297         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
82298         'signed char' to avoid problems with the built-in _Bool type.
82299         Reported by Paul Eggert on 2005-11-26.
82300
82301 2006-01-24  Bruno Haible  <bruno@clisp.org>
82302
82303         * gnulib-tool (func_import): Avoid constructing complicated sed
82304         expressions inside backquote.
82305         Report and solution by Mark D. Baushke <mdb@gnu.org>.
82306
82307 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
82308
82309         These changes imported from libc.
82310         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
82311         test and two separate function calls.
82312         * lib/strndup.c (__strndup): Add libc_hidden_def.
82313
82314 2006-01-23  Simon Josefsson  <jas@extundo.com>
82315
82316         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
82317         Remove the test_*_SOURCES variable: automake infers it by default.
82318         * modules/tls-tests: Likewise.
82319
82320 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82321
82322         Work around porting bugs reported by Dieter in
82323         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
82324         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
82325         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
82326         Include "getopt.h" first, to check interface.
82327         (getenv): Declare only if defined HAVE_DECL_GETENV &&
82328         !HAVE_DECL_GETENV.
82329         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
82330         (__strndup): Revert to K&R-style function dfns, the glibc style.
82331         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
82332         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
82333         Include strnlen.h first, to get prototype properly.
82334         (strnlen): Renamed from __strnlen.
82335         Remove weak alias.
82336
82337 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82338
82339         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
82340
82341 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
82342
82343         * config/srclist.txt: Adjust to reflect glibc reorganization.
82344         This affects only comments.
82345
82346 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82347
82348          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
82349          Reported by Bruce Korb <bkorb@gnu.org>.
82350
82351 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
82352
82353         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
82354         to pacify gcc -Wswitch-default.
82355
82356 2006-01-22  Bruno Haible  <bruno@clisp.org>
82357
82358         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
82359         temporary buffer for sprintf, take into account the precision also
82360         for 'd', 'i', 'u', 'o', 'x', 'X'.
82361
82362 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82363
82364         * modules/argp-tests: New module
82365         * tests/test-argp.c: New file
82366         * tests/test-argp-2.sh: New file
82367
82368 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
82369
82370         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
82371         (__argp_base_name): Removed
82372         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
82373         typo.
82374         (__argp_base_name): Provide macro definition or extern declaration
82375         depending on the configuration
82376
82377 2006-01-20  Simon Josefsson  <jas@extundo.com>
82378
82379         * modules/inet_ntop (Depends-on): Depend on sys_socket.
82380
82381 2006-01-20  Simon Josefsson  <jas@extundo.com>
82382
82383         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
82384
82385 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
82386
82387         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
82388         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
82389         Suggested by Bruno Haible.
82390
82391 2006-01-20  Karl Berry  <karl@gnu.org>
82392
82393         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
82394         until changes propagate, I guess.
82395
82396 2006-01-19  Simon Josefsson  <jas@extundo.com>
82397
82398         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
82399
82400 2006-01-19  Simon Josefsson  <jas@extundo.com>
82401
82402         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
82403
82404 2006-01-19  Simon Josefsson  <jas@extundo.com>
82405
82406         * gnulib-tool: Set check_PROGRAMS.
82407
82408         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82409         modules/des-tests, modules/gc-arcfour-tests,
82410         modules/gc-arctwo-tests, modules/gc-des-tests,
82411         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82412         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82413         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82414         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82415         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82416         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
82417         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
82418         test_*_SOURCES.
82419
82420 2006-01-18  Simon Josefsson  <jas@extundo.com>
82421
82422         * modules/socklen (Depends-on): Depend on sys_socket.
82423
82424 2006-01-18  Simon Josefsson  <jas@extundo.com>
82425
82426         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
82427         modules/des-tests, modules/gc-arcfour-tests,
82428         modules/gc-arctwo-tests, modules/gc-des-tests,
82429         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
82430         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
82431         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
82432         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
82433         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
82434         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
82435         $(EXEEXT) to automake TESTS variable, for mingw32.
82436
82437 2006-01-17  Simon Josefsson  <jas@extundo.com>
82438
82439         * modules/socklen (Include): Need sys/socket.h.
82440
82441 2006-01-17  Bruno Haible  <bruno@clisp.org>
82442
82443         * modules/ssize_t (Include): Add <sys/types.h>.
82444
82445 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
82446
82447         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
82448         it's not portable and it doesn't work with cross-compiles.
82449         Problem reported by Bruno Haible.  Fix missing-$ typo in
82450         'test "gl_cv_ignore_unused_libraries" ...' that prevented
82451         -zignore from being used with Sun's C compiler.
82452
82453 2006-01-12  Simon Josefsson  <jas@extundo.com>
82454
82455         * lib/base64.c: Fix warning, reported by Bruno Haible
82456         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
82457
82458 2006-01-12  Bruno Haible  <bruno@clisp.org>
82459
82460         * modules/ldd: New file.
82461         * build-aux/ldd.sh.in: New file.
82462         * MODULES.html.sh (Support for building libraries and executables): Add
82463         ldd.
82464
82465 2006-01-12  Bruno Haible  <bruno@clisp.org>
82466
82467         * m4/ldd.m4: New file.
82468
82469 2006-01-12  Bruno Haible  <bruno@clisp.org>
82470
82471         * gnulib-tool (func_import, func_create_testdir): Don't go into an
82472         endless loop while replacing $auxdir with build-aux.
82473
82474 2006-01-11  Simon Josefsson  <jas@extundo.com>
82475
82476         * lib/stdint_.h (SIZE_MAX): Add missing (.
82477
82478 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
82479
82480         Sync from coreutils.
82481         * lib/md5.c: Fix commentary typos.
82482         (alignof, UNALIGNED_P): No need for a GCC-specific version.
82483         * lib/md5.h (__attribute__): Remove; unused.
82484         * lib/sha1.c: Fix commentary to match md5 better.
82485         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
82486         so that we don't need to worry about alignment.  All uses changed.
82487         This merges the 2005-10-28 md5 change into sha1.
82488
82489 2006-01-11  Jim Meyering  <jim@meyering.net>
82490
82491         Sync from coreutils.
82492         * lib/md5.c (OP): Fix spacing.
82493
82494 2006-01-11  Bruno Haible  <bruno@clisp.org>
82495
82496         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82497         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
82498         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
82499
82500 2006-01-11  Bruno Haible  <bruno@clisp.org>
82501
82502         Ensure automatic ordering between gl_LOCK and gl_ARGP.
82503         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
82504         the "early" section as well.
82505
82506 2006-01-11  Bruno Haible  <bruno@clisp.org>
82507
82508         Avoid "ar: no archive members specified" error on MacOS X.
82509         * gnulib-tool (func_modules_add_dummy): New function.
82510         (func_import, func_create_testdir): Invoke it.
82511
82512 2006-01-11  Bruno Haible  <bruno@clisp.org>
82513
82514         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
82515         with $auxdir in AC_CONFIG_FILES statements.
82516
82517 2006-01-11  Bruno Haible  <bruno@clisp.org>
82518
82519         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
82520         Initialize also noinst_HEADERS to empty.
82521
82522 2006-01-11  Bruno Haible  <bruno@clisp.org>
82523
82524         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
82525         variables.
82526         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
82527         autoreconf.
82528
82529 2006-01-11  Bruno Haible  <bruno@clisp.org>
82530
82531         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
82532         overridable by the user.
82533         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82534
82535 2006-01-10  Simon Josefsson  <jas@extundo.com>
82536
82537         * modules/sys_socket: New file.
82538
82539 2006-01-10  Simon Josefsson  <jas@extundo.com>
82540
82541         * m4/sys_socket_h.m4: New file.
82542
82543 2006-01-10  Simon Josefsson  <jas@extundo.com>
82544
82545         * lib/socket_.h: New file.
82546
82547 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82548
82549         * modules/readutmp (Maintainer): Add myself.
82550
82551 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82552
82553         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
82554         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
82555         People who are still concerned with buggy memcmp implementations
82556         can invoke gl_FUNC_MEMCMP themselves.
82557
82558 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
82559
82560         * lib/regex_internal.h (BITSET_WORD_BITS):
82561         Work around a bug in 64-bit PGC (before version 6.1-2), where the
82562         preprocessor mishandles large unsigned values as if they were signed.
82563         Problem reported by Claudio Fontana in
82564         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
82565
82566 2006-01-10  Jim Meyering  <jim@meyering.net>
82567
82568         Avoid the double-free (first in fts_read, second in fts_close) that
82569         would occur when an `active' directory is made inaccessible (e.g.,
82570         via chmod a-x) during a traversal.
82571         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
82572         before returning.  Reproduce this failure by
82573         mkdir -p a/b; cd a; chmod a-x . b
82574         Reported by Stavros Passas.
82575
82576         Sync from coreutils.
82577         * lib/sha1.c: Tweak grammar in a comment.
82578
82579 2006-01-10  Jim Meyering  <jim@meyering.net>
82580
82581         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
82582         Patch by Joerg Sonnenberger.
82583
82584 2006-01-10  Bruno Haible  <bruno@clisp.org>
82585
82586         * modules/readutmp: Depend on module free.
82587         * modules/strtok_r: Depend on module restrict.
82588
82589 2006-01-10  Bruno Haible  <bruno@clisp.org>
82590
82591         * modules/gettext (configure.ac): Add an invocation of
82592         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
82593
82594 2006-01-10  Bruno Haible  <bruno@clisp.org>
82595
82596         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
82597         Reported by Werner Lemberg <wl@gnu.org>.
82598
82599 2006-01-10  Bruno Haible  <bruno@clisp.org>
82600
82601         * lib/localcharset.c: Update from GNU gettext.
82602
82603 2006-01-10  Bruno Haible  <bruno@clisp.org>
82604
82605         * lib/argp.h (__const): Remove macro. Use const instead.
82606         * lib/argp-fmtstream.h (__const): Likewise.
82607         * lib/glob_.h (__const): Remove macro.
82608         * lib/glob-libc.h: Use const instead of __const.
82609
82610 2006-01-10  Bruno Haible  <bruno@clisp.org>
82611
82612         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
82613         variable.
82614         Needed to avoid an automake error regarding the 'gettext' module.
82615
82616 2006-01-09  Simon Josefsson  <jas@extundo.com>
82617
82618         * modules/inet_ntop (Depends-on): Add restrict.
82619
82620 2006-01-09  Simon Josefsson  <jas@extundo.com>
82621
82622         * modules/gc-rijndael-tests (License): Put under LGPL.
82623
82624         * modules/gc-des-tests (License): Likewise.
82625
82626         * modules/gc-arcfour-tests (License): Likewise.
82627
82628         * modules/gc-arctwo-tests (License): Likewise.
82629
82630         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
82631
82632         * modules/gc-hmac-sha1-tests (Files): Likewise.
82633
82634         * modules/gc-hmac-md5-tests (License): Likewise.
82635
82636         * modules/gc-sha1-tests (License): Likewise.
82637
82638         * modules/gc-md5-tests (License): Likewise.
82639
82640         * modules/gc-md4-tests (License): Likewise.
82641
82642         * modules/gc-md2-tests (License): Likewise.
82643
82644         * modules/gc-tests (License): Likewise.
82645
82646         * modules/des-tests (License): Likewise.
82647
82648         * modules/md4-tests (License): Likewise.
82649
82650         * modules/md2-tests (License): Likewise.
82651
82652 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82653
82654         Sync from coreutils:
82655
82656         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
82657         * modules/lib-ignore: New file.
82658         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
82659         chdir-safer.m4, lchmod.m4.
82660         * modules/openat: Add mkdirat.c, openat-priv.h.
82661
82662 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82663
82664         Sync from coreutils.
82665         * m4/lib-ignore.m4: New file.
82666         * m4/lchmod.m4: New file.
82667
82668 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82669
82670         Sync from coreutils.
82671         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
82672         for write access: POSIX says that must fail.
82673         * lib/fts.c (diropen): Likewise.
82674         * lib/save-cwd.c (save_cwd): Likewise.
82675         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
82676         well, for minor improvements on hosts that lack O_DIRECTORY.
82677         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
82678         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
82679         Fall back on chown if open failed with EACCES.
82680
82681         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
82682         Report an error at compile-time if only a 1-second nominal clock
82683         resolution is found.
82684
82685         * lib/lchmod.h: New file.
82686         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
82687         (make_dir_parents): Use lchown rather than chown, and
82688         lchmod rather than chmod.
82689
82690         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
82691         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
82692         "proc" reported by n0dalus.
82693
82694         * lib/mountlist.c: Include <limits.h>.
82695         (dev_from_mount_options)
82696         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
82697         New function.  It no longer assumes "dev=" has the System V meaning
82698         on Linux (since it doesn't).  It also parses "dev=" more carefully.
82699         (read_file_system_list)
82700         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
82701         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
82702         dev= in that case.
82703
82704         * lib/posixtm.h (PDS_PRE_2000): New macro.
82705         * lib/posixtm.c (year): Arg is now syntax_bits rather than
82706         allow_century.  All usages changed.  Reject dates outside the range
82707         1969-1999 if PDS_PRE_2000 is used.
82708
82709 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
82710
82711         Sync from coreutils.
82712         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
82713         (Time of day items): Mention the possibility of leap seconds.
82714         Problem reported by Dr. David Alan Gilbert.
82715
82716 2006-01-09  Jim Meyering  <jim@meyering.net>
82717
82718         Sync from coreutils.
82719
82720         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
82721
82722         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
82723
82724         * lib/modechange.c (mode_compile): Reject an invalid mode string
82725         that starts with an octal digit.  From Andreas Gruenbacher.
82726
82727         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
82728         and dup to open_safer and dup_safer, respectively.
82729         (openat_permissive): Fix typo in comment.
82730
82731         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
82732         "gettext.h"; either no longer needed or are guaranteed by openat.h.
82733         (_): Remove; no longer needed.
82734         (openat): Renamed from rpl_openat; no need for rpl_openat
82735         since openat.h renames openat for us.
82736         Replace most of the body with a call to openat_permissive,
82737         to avoid duplicate code.
82738         Port to (probably hypothetical) environments were mode_t is
82739         wider than int.
82740         (openat_permissive): Require mode arg, so that we can check
82741         types better.  Put it just after flags.  Change cwd failure
82742         indicator from pointer-to-bool to pointer-to-errno-value.
82743         All callers changed.
82744         Invoke openat_save_fail and/or openat_restore_fail if
82745         cwd_errno is null, so that openat can call us.
82746         (openat_permissive, fdopendir, fstatat, unlinkat):
82747         Simplify errno handling to avoid some duplicate code,
82748         as it's OK to set errno on success.
82749         * lib/openat.h: Revamp code so that function macros depend on
82750         __OPENAT_PREFIX only, not also on AT_FDCWD.
82751         (openat_ro): Remove.  Caller changed to use openat_permissive.
82752         (openat_permissive): Now a macro, if not a function.
82753         (openat_restore_fail, openat_save_fail): Now always functions,
82754         since mkdirat needs them even if __OPENAT_PREFIX is defined.
82755
82756         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
82757         and openat.c.
82758         * lib/mkdirat.c: Include openat-priv.h.
82759         Remove definitions of macros defined therein.
82760         * lib/openat.c: Likewise.
82761
82762         * lib/mkdirat.c (mkdirat): New file and function.
82763         * lib/openat.h (mkdirat): Declare.
82764
82765         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
82766
82767         * lib/openat.h (openat_permissive): Declare.
82768         (openat_ro): Define.
82769
82770         * lib/openat.c (EXPECTED_ERRNO): New macro.
82771         (openat_permissive): New function -- used in remove.c rewrite.
82772         (all functions): Set errno just before returning, only if there
82773         was an actual failure.
82774         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
82775
82776         Emulate openat-family functions using Linux's procfs, if possible.
82777         Idea and some code based on Ulrich Drepper's glibc changes.
82778
82779         * lib/openat.c: (BUILD_PROC_NAME): New macro.
82780         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
82781         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
82782         before falling back on save_cwd and restore_cwd.
82783         (fdopendir, fstatat, unlinkat): Likewise.
82784
82785         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
82786         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
82787
82788         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
82789         as second argument to va_arg.  Otherwise, some versions of gcc
82790         warn that `if this code is reached, the program will abort'.
82791
82792 2006-01-09  Jim Meyering  <jim@meyering.net>
82793
82794         Sync from coreutils.
82795         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
82796         Require openat-priv.h.
82797
82798 2006-01-09  Bruno Haible  <bruno@clisp.org>
82799
82800         * modules/strnlen (Include): Use strnlen.h.
82801
82802 2006-01-09  Bruno Haible  <bruno@clisp.org>
82803
82804         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
82805
82806 2006-01-09  Bruno Haible  <bruno@clisp.org>
82807
82808         * lib/sysexit_.h (EX_OK): New macro.
82809         Suggested by Martin Lambers <marlam@marlam.de>.
82810
82811 2006-01-09  Bruno Haible  <bruno@clisp.org>
82812
82813         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82814         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82815
82816 2006-01-09  Bruno Haible  <bruno@clisp.org>
82817
82818         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82819         numbers.
82820
82821 2006-01-09  Bruno Haible  <bruno@clisp.org>
82822
82823         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82824         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82825         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82826         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82827
82828 2006-01-09  Bruno Haible  <bruno@clisp.org>
82829
82830         * build-aux/javacomp.sh.in: New file, moved from lib/.
82831         * modules/javacomp-script (Files): Update.
82832         (configure.ac): Add AC_CONFIG_FILES invocation.
82833         (EXTRA_DIST): Remove variable.
82834
82835         * build-aux/javaexec.sh.in: New file, moved from lib/.
82836         * modules/javaexec (Files): Update.
82837         (configure.ac): Add AC_CONFIG_FILES invocation.
82838         (EXTRA_DIST): Remove javaexec.sh.in.
82839
82840         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82841         * modules/csharpcomp-script (Files): Update.
82842         (configure.ac): Add AC_CONFIG_FILES invocation.
82843         (EXTRA_DIST): Remove variable.
82844
82845         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82846         * modules/csharpexec (Files): Update.
82847         (configure.ac): Add AC_CONFIG_FILES invocation.
82848         (EXTRA_DIST): Remove csharpexec.sh.in.
82849
82850 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82851
82852         Sync from coreutils.
82853
82854         Add POSIX ACL support
82855         * lib/acl.h (copy_acl, set_acl): Add declarations.
82856         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82857         systems other than Linux.
82858         (chmod_or_fchmod): New function: use fchmod when possible,
82859         and chmod otherwise.
82860         (file_has_acl): Add a POSIX ACL implementation, with a
82861         Linux-specific subcase.
82862         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82863         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82864         acls are unsupported.
82865         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82866         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82867         are unsupported.
82868
82869 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82870
82871         Sync from coreutils.
82872         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82873
82874 2006-01-07  Bruno Haible  <bruno@clisp.org>
82875
82876         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82877         gl_EARLY.
82878
82879 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82880
82881         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82882         Problem reported for Mingw by Mark Junker.
82883
82884 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82885
82886         * README: Gnulib normally doesn't generate a tarball.
82887
82888 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82889
82890         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82891         long int, not int, for nanosecond counts, so that people who are
82892         used to POSIX struct timespec won't be surprised.  Reported by Jim
82893         Meyering.
82894
82895 2005-12-28  Bruno Haible  <bruno@clisp.org>
82896
82897         * build-aux/config.rpath: Update from GNU gettext.
82898
82899 2005-12-16  Jim Meyering  <jim@meyering.net>
82900
82901         * modules/fprintftime: New module.
82902         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82903
82904 2005-12-16  Jim Meyering  <jim@meyering.net>
82905
82906         * m4/fprintftime.m4: New file.
82907
82908 2005-12-16  Jim Meyering  <jim@meyering.net>
82909
82910         * lib/fprintftime.c, lib/fprintftime.h: New files.
82911
82912 2005-12-15  Simon Josefsson  <jas@extundo.com>
82913
82914         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82915         new m4/socklen.m4.
82916
82917 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82918
82919         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82920         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82921
82922 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82923
82924         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82925         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82926         struct uparams is valid. Fall back to the default values if it is
82927         not.
82928
82929 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82930
82931         * modules/argp (Files): Add argp-pin.c
82932         (Depends-on): dirname
82933         (lib_SOURCES): Add argp-pin.c
82934
82935 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82936
82937         * m4/argp.m4:  Check if program_invocation_name and
82938         program_invocation_short_name are declared and define appropriate
82939         macros if they are not.
82940
82941 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82942
82943         * lib/argp-help.c (__argp_base_name): New function
82944         (__argp_short_program_name): Rewrite using __argp_base_name
82945         * lib/argp-namefrob.h: Define program_invocation_name and
82946         program_invocation_short_name if requested
82947         (__argp_base_name): Add prototype
82948         * lib/argp-parse.c (argp_def): Use gettext wrappers
82949         (argp_default_parser): Use __argp_base_name
82950         * lib/argp-pin.c: New file. Defines program_invocation_name and
82951         program_invocation_short_name on systems that lack them.
82952
82953 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82954
82955         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82956         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82957         porting problem reported by Georg Schwarz in
82958         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82959
82960 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82961
82962         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82963         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82964         porting problem reported by Georg Schwarz in
82965         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82966
82967 2005-12-05  Bruno Haible  <bruno@clisp.org>
82968
82969         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82970         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82971         Reported by Mark Junker <mjscod@gmx.de>.
82972
82973 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82974
82975         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82976         Use implementation from Albert Chin, with some
82977         comments/corrections by Stepan Kasal and myself.
82978
82979 2005-12-02  Bruno Haible  <bruno@clisp.org>
82980
82981         * gnulib-tool (func_import): Accept GPLed build tool modules when
82982         --lgpl is given.
82983         * modules/csharpcomp-script: New file.
82984         * modules/csharpcomp: Depend on it.
82985         * modules/javacomp-script: New file.
82986         * modules/javacomp: Depend on it.
82987         Suggested by Simon Josefsson.
82988
82989 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82990
82991         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82992         statement, to work around an HP-UX 10.20 compiler bug reported by
82993         Peter O'Gorman.
82994
82995 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82996
82997         * modules/savedir (Depends-on): Add openat.
82998
82999 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
83000
83001         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
83002         (uintmax_t) [defined uintmax_t]: Do not declare.
83003         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
83004         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
83005         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
83006         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
83007         sake of portability to weird hosts that C allows (though we don't
83008         know of any practical examples).
83009
83010         * lib/savedir.h (fdsavedir): New decl.
83011         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
83012         contains most of the former guts of savedir.
83013         (savedir): Use savedirstream.
83014         Include "openat.h".
83015
83016 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83017
83018         * modules/obstack (Files): Add m4/ulonglong.m4.
83019         Problem reported by Davide Angelocola.
83020
83021 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
83022
83023         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
83024         coreutils no longer futzes with rounding modes.
83025
83026 2005-11-14  Jim Meyering  <jim@meyering.net>
83027
83028         * lib/mkstemp-safer.c: Include <config.h>, required for possible
83029         replacement of mkstemp.
83030
83031 2005-11-10  Simon Josefsson  <jas@extundo.com>
83032
83033         * lib/readline.c: Remove EOL.
83034
83035 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83036
83037         * modules/gethrxtime (Depends-on): Add gettime.
83038
83039 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
83042         or gettimeofday; no longer needed.
83043
83044 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83045
83046         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
83047         time business.
83048         (gethrxtime) [! (HAVE_NANOUPTIME
83049         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
83050         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
83051         our own approximation.
83052
83053 2005-11-08  Eric Blake  <ebb9@byu.net>
83054
83055         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83056
83057 2005-11-08  Eric Blake  <ebb9@byu.net>
83058
83059         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
83060
83061 2005-11-04  Bruno Haible  <bruno@clisp.org>
83062
83063         * gnulib-tool: Implement --update mode.
83064
83065 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83066
83067         Fix porting problem reported by Theodoros V. Kalamatianos.
83068         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
83069         Don't assume that futimes failing means we must fail.
83070
83071 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83072
83073         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
83074         variables to suggest the intended function of the PATH_MAX check.
83075
83076 2005-10-30  Kean Johnston  <jkj@sco.com>
83077
83078         Trivial changes to support SCO systems.
83079         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
83080         as PATH_MAX.
83081         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
83082         where __ptr is null when no I/O is pending.
83083
83084 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83085
83086         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
83087         leave errno alone.  Problem reported by Dmitry V. Levin.
83088
83089 2005-10-28  Simon Josefsson  <jas@extundo.com>
83090
83091         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
83092         Test more.
83093
83094         * tests/test-gc-md2.c, tests/test-md2.c: New files.
83095
83096         * modules/md2, modules/md2-tests: New files.
83097
83098 2005-10-28  Simon Josefsson  <jas@extundo.com>
83099
83100         * m4/inet_ntop.m4: More tests.
83101
83102         * m4/gc-md2.m4, md2.m4: New file.
83103
83104 2005-10-28  Simon Josefsson  <jas@extundo.com>
83105
83106         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
83107         "restrict" keywords, as per POSIX.  Protect the function
83108         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
83109         Don't use K&R prototypes.  Check the sprintf return values.
83110         Re-define EAFNOSUPPORT if not present.  Indent.
83111
83112         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
83113         suggested by Bruno Haible <bruno@clisp.org>.
83114
83115         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
83116
83117         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
83118
83119         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
83120         libgcrypt).
83121
83122         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
83123
83124         * lib/md2.h, lib/md2.c: New files.
83125
83126 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
83127
83128         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
83129         errno alone.  Problem reported by Frederic Jolliton.
83130
83131 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
83132
83133         * modules/verify (License): Change from GPL to LGPL.  This is a
83134         tiny module and there are apparently near-equivalents that are
83135         under the BSD license.
83136
83137 2005-10-24  Simon Josefsson  <jas@extundo.com>
83138
83139         * modules/sha1: Relicense to LGPL.
83140
83141 2005-10-24  Simon Josefsson  <jas@extundo.com>
83142
83143         * lib/md4.h: Shrink buffer size, now that we changed the type.
83144
83145 2005-10-23  Simon Josefsson  <jas@extundo.com>
83146
83147         * gnulib-tool (func_import): Fix --tests-base.
83148
83149 2005-10-22  Simon Josefsson  <jas@extundo.com>
83150
83151         * modules/arcfour (Depends-on): Need stdint.
83152
83153 2005-10-22  Simon Josefsson  <jas@extundo.com>
83154
83155         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
83156         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
83157
83158 2005-10-22  Simon Josefsson  <jas@extundo.com>
83159
83160         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
83161         suggested by Bruno Haible <bruno@clisp.org>.
83162
83163 2005-10-22  Simon Josefsson  <jas@extundo.com>
83164
83165         * lib/crc.h: Include stddef.h, for size_t.
83166
83167 2005-10-22  Simon Josefsson  <jas@extundo.com>
83168
83169         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
83170         arcfour_context struct (simplify test vector testing in GNU
83171         Shishi).
83172
83173 2005-10-21  Simon Josefsson  <jas@extundo.com>
83174
83175         * modules/des, modules/des-tests: New files.
83176
83177         * modules/gc-des, modules/gc-des-tests: New files.
83178
83179         * tests/test-des.c, tests/test-gc-des.c: New file.
83180
83181 2005-10-21  Simon Josefsson  <jas@extundo.com>
83182
83183         * modules/arctwo, modules/arctwo-tests: New files.
83184
83185         * tests/test-arctwo.c: New file.
83186
83187         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
83188
83189         * tests/test-gc-arctwo.c: New file.
83190
83191 2005-10-21  Simon Josefsson  <jas@extundo.com>
83192
83193         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
83194         Bruno Haible <bruno@clisp.org>.
83195
83196         * m4/gc-des.m4: New file.
83197
83198 2005-10-21  Simon Josefsson  <jas@extundo.com>
83199
83200         * m4/arctwo.m4: New file.
83201
83202         * m4/gc-arctwo.m4: New file.
83203
83204 2005-10-21  Simon Josefsson  <jas@extundo.com>
83205
83206         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
83207         block.
83208
83209 2005-10-21  Simon Josefsson  <jas@extundo.com>
83210
83211         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
83212         <bruno@clisp.org>.
83213
83214         * lib/hmac-sha1.c (hmac_sha1): Likewise.
83215
83216         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
83217         Bruno Haible <bruno@clisp.org>.
83218
83219         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
83220         <bruno@clisp.org>.
83221
83222 2005-10-21  Simon Josefsson  <jas@extundo.com>
83223
83224         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
83225
83226 2005-10-21  Simon Josefsson  <jas@extundo.com>
83227
83228         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
83229
83230 2005-10-21  Simon Josefsson  <jas@extundo.com>
83231
83232         * lib/des.h, lib/des.c: New files.
83233
83234         * lib/gc-gnulib.c: Support DES.c
83235
83236 2005-10-21  Simon Josefsson  <jas@extundo.com>
83237
83238         * lib/arctwo.h, lib/arctwo.c: New files.
83239
83240         * lib/gc-gnulib.c: Support ARCTWO.
83241
83242 2005-10-21  Simon Josefsson  <jas@extundo.com>
83243
83244         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
83245         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
83246
83247 2005-10-21  Simon Josefsson  <jas@extundo.com>
83248
83249         * gnulib-tool (func_import, func_create_testdir): Define automake
83250         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
83251         Makefile.am snippet),
83252         suggested by Bruno Haible <bruno@clisp.org>.
83253
83254         * modules/gc (Makefile.am): Use it.
83255
83256 2005-10-21  Bruno Haible  <bruno@clisp.org>
83257
83258         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
83259         patch.
83260
83261 2005-10-19  Simon Josefsson  <jas@extundo.com>
83262
83263         * tests/test-gc-rijndael.c: New file.
83264
83265         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
83266
83267 2005-10-19  Simon Josefsson  <jas@extundo.com>
83268
83269         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
83270         interface too.
83271
83272 2005-10-19  Simon Josefsson  <jas@extundo.com>
83273
83274         * tests/test-gc-arcfour.c: New file.
83275
83276         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
83277
83278 2005-10-19  Simon Josefsson  <jas@extundo.com>
83279
83280         * modules/gc-md4, modules/gc-md4-tests: New file.
83281
83282         * tests/test-gc-md4.c: New file.
83283
83284 2005-10-19  Simon Josefsson  <jas@extundo.com>
83285
83286         * m4/gc-md4.m4: New file.
83287
83288 2005-10-19  Simon Josefsson  <jas@extundo.com>
83289
83290         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
83291         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
83292         <kasal@ucw.cz>.
83293
83294 2005-10-19  Simon Josefsson  <jas@extundo.com>
83295
83296         * m4/gc-arcfour.m4: New file.
83297
83298         * m4/gc-rijndael.m4: New file.
83299
83300 2005-10-19  Simon Josefsson  <jas@extundo.com>
83301
83302         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
83303
83304 2005-10-19  Simon Josefsson  <jas@extundo.com>
83305
83306         * lib/gc-gnulib.c: Support ARCFOUR.
83307
83308 2005-10-19  Simon Josefsson  <jas@extundo.com>
83309
83310         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
83311         support.
83312
83313         * lib/gc.h: Add ECB enum type.
83314
83315         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
83316
83317 2005-10-18  Simon Josefsson  <jas@extundo.com>
83318
83319         * tests/test-md5.c: New file.
83320
83321         * modules/md5-tests: New file.
83322
83323 2005-10-18  Simon Josefsson  <jas@extundo.com>
83324
83325         * tests/test-md4.c: New file.
83326
83327         * modules/md4, modules/md4-tests: New files.
83328
83329 2005-10-18  Simon Josefsson  <jas@extundo.com>
83330
83331         * m4/md4.m4: New file.
83332
83333 2005-10-18  Simon Josefsson  <jas@extundo.com>
83334
83335         * lib/md4.h, lib/md4.c: New files, based on md5.?.
83336
83337 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
83338
83339         * gnulib-tool (func_create_testdir): Omit the second check whether
83340         BUILT_SOURCES in nonempty.
83341
83342 2005-10-17  Simon Josefsson  <jas@extundo.com>
83343
83344         * tests/test-rijndael.c: New file.
83345
83346 2005-10-17  Simon Josefsson  <jas@extundo.com>
83347
83348         * modules/sha1: Depend on stdint instead of md5.
83349
83350         * modules/md5: Depend on stdint, remove uint32_t.
83351
83352 2005-10-17  Simon Josefsson  <jas@extundo.com>
83353
83354         * modules/gc-sha1-tests: New file.
83355
83356         * tests/test-gc-sha1.c: New file.
83357
83358 2005-10-17  Simon Josefsson  <jas@extundo.com>
83359
83360         * m4/md5.m4: Remove call to uint32_t.m4.
83361
83362 2005-10-17  Simon Josefsson  <jas@extundo.com>
83363
83364         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
83365
83366         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
83367         md5.h.
83368
83369         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
83370
83371         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
83372
83373 2005-10-17  Simon Josefsson  <jas@extundo.com>
83374
83375         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
83376
83377 2005-10-17  Simon Josefsson  <jas@extundo.com>
83378
83379         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
83380
83381 2005-10-17  Simon Josefsson  <jas@extundo.com>
83382
83383         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
83384
83385         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
83386
83387 2005-10-17  Bruno Haible  <bruno@clisp.org>
83388
83389         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
83390         that it can also be used in a test.
83391
83392 2005-10-16  Bruno Haible  <bruno@clisp.org>
83393
83394         * gnulib-tool (func_emit_tests_Makefile_am): Also define
83395         TESTS_ENVIRONMENT, so that individual tests can augment it.
83396
83397         * gnulib-tool (func_create_testdir): Use an intermediate target for
83398         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
83399         macros, like $(ALLOCA_H), which cannot be passed through the command
83400         line.
83401
83402 2005-10-15  Simon Josefsson  <jas@extundo.com>
83403
83404         * modules/rijndael-tests: New file.
83405
83406         * modules/rijndael: New file.
83407
83408 2005-10-15  Simon Josefsson  <jas@extundo.com>
83409
83410         * m4/rijndael.m4: New file.
83411
83412 2005-10-15  Simon Josefsson  <jas@extundo.com>
83413
83414         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
83415
83416         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
83417
83418 2005-10-14  Simon Josefsson  <jas@extundo.com>
83419
83420         * tests/test-arcfour.c: New file.
83421
83422         * modules/arcfour, modules/arcfour-tests: New files.
83423
83424 2005-10-14  Simon Josefsson  <jas@extundo.com>
83425
83426         * m4/arcfour.m4: New file.
83427
83428 2005-10-14  Simon Josefsson  <jas@extundo.com>
83429
83430         * lib/arcfour.h, lib/arcfour.c: New files.
83431
83432 2005-10-14  Roland McGrath  <roland@redhat.com>
83433
83434         Import from libc.  [BZ #1331]
83435         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
83436         macro argument.
83437         Reported by Matej Vela <vela@debian.org>.
83438
83439 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83440
83441         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
83442         include <wchar.h>; no longer needed.
83443
83444 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
83445
83446         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
83447
83448 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
83449         and  Ulrich Drepper  <drepper@redhat.com>
83450
83451         Import from libc.
83452         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
83453         instead of inline stream orientation test and two separate
83454         function calls.  Pay no attention to USE_IN_LIBIO.
83455
83456 2005-10-13  Simon Josefsson  <jas@extundo.com>
83457
83458         * modules/gc-hmac-md5-tests: New file.
83459
83460         * tests/test-gc-hmac-sha1.c: New file.
83461
83462         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
83463
83464         * modules/gc-hmac-md5-tests: New file.
83465
83466         * tests/test-gc-md5.c: New file.
83467
83468         * modules/gc-md5-tests: New file.
83469
83470 2005-10-13  Simon Josefsson  <jas@extundo.com>
83471
83472         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
83473         Move memory allocation outside of loop.
83474
83475 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
83476
83477         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
83478         intermediate directory is in a read-only file system.  Problem
83479         reported by Eric Blake.
83480
83481 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
83482
83483         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
83484
83485 2005-10-12  Simon Josefsson  <jas@extundo.com>
83486
83487         * tests/test-hmac-sha1.c: New file.
83488
83489         * modules/hmac-sha1-tests: New file.
83490
83491         * modules/hmac-sha1: New file.
83492
83493 2005-10-12  Simon Josefsson  <jas@extundo.com>
83494
83495         * modules/gc-sha1: New file.
83496
83497 2005-10-12  Simon Josefsson  <jas@extundo.com>
83498
83499         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
83500
83501         * tests/test-gc-pbkdf2-sha1.c: New file.
83502
83503 2005-10-12  Simon Josefsson  <jas@extundo.com>
83504
83505         * modules/gc-md5, modules/gc-hmac-md5: New files.
83506
83507         * modules/gc (Files): Remove md5, memxor and hmac files.
83508
83509 2005-10-12  Simon Josefsson  <jas@extundo.com>
83510
83511         * m4/gc-pbkdf2-sha1.m4: New file.
83512
83513         * m4/gc-hmac-sha1.m4: New file.
83514
83515         * m4/gc-sha1: New file.
83516
83517         * m4/hmac-sha1.m4: New file.
83518
83519 2005-10-12  Simon Josefsson  <jas@extundo.com>
83520
83521         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
83522
83523         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
83524
83525 2005-10-12  Simon Josefsson  <jas@extundo.com>
83526
83527         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
83528         suggested by Bruno Haible <bruno@clisp.org>.
83529
83530 2005-10-12  Simon Josefsson  <jas@extundo.com>
83531
83532         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
83533
83534 2005-10-12  Simon Josefsson  <jas@extundo.com>
83535
83536         * lib/gc-pbkdf2-sha1.c: New file.
83537
83538         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
83539
83540 2005-10-12  Simon Josefsson  <jas@extundo.com>
83541
83542         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
83543
83544         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
83545
83546 2005-10-12  Simon Josefsson  <jas@extundo.com>
83547
83548         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
83549         GC_USE_HMAC_MD5, respectively.
83550
83551         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
83552         (gc_md5): Fix typo.
83553
83554         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
83555
83556         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
83557
83558         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
83559
83560 2005-10-12  Bruno Haible  <bruno@clisp.org>
83561
83562         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
83563         Reported by Stepan Kasal <kasal@ucw.cz>.
83564
83565 2005-10-11  Simon Josefsson  <jas@extundo.com>
83566
83567         * tests/test-crc.c: New file.
83568
83569         * modules/crc, modules/crc-tests: New files.
83570
83571 2005-10-11  Simon Josefsson  <jas@extundo.com>
83572
83573         * m4/crc.m4: New file.
83574
83575 2005-10-11  Simon Josefsson  <jas@extundo.com>
83576
83577         * lib/gc.h: Add gc_hash and gc_hash_buffer.
83578
83579         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
83580
83581         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
83582
83583 2005-10-11  Simon Josefsson  <jas@extundo.com>
83584
83585         * lib/crc.h, lib/crc.c: New files.
83586
83587         * lib/gc.h (gc_hash_buffer): Add doc.
83588
83589 2005-10-11  Bruno Haible  <bruno@clisp.org>
83590
83591         * modules/c-strcasestr: New file.
83592         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
83593
83594 2005-10-11  Bruno Haible  <bruno@clisp.org>
83595
83596         * modules/c-strcase: New file.
83597         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
83598
83599 2005-10-11  Bruno Haible  <bruno@clisp.org>
83600
83601         * lib/strcasecmp.c: Include limits.h.
83602         (strcasecmp): Avoid integer overflow on exotic platforms.
83603         * lib/strncasecmp.c: Include limits.h.
83604         (strncasecmp): Avoid integer overflow on exotic platforms.
83605         Reported by Paul Eggert.
83606
83607 2005-10-11  Bruno Haible  <bruno@clisp.org>
83608
83609         * lib/c-strcasestr.h: New file, from GNU gettext.
83610         * lib/c-strcasestr.c: New file, from GNU gettext.
83611
83612 2005-10-11  Bruno Haible  <bruno@clisp.org>
83613
83614         * lib/c-strcase.h: New file, from GNU gettext.
83615         * lib/c-strcasecmp.c: New file, from GNU gettext.
83616         * lib/c-strncasecmp.c: New file, from GNU gettext.
83617
83618 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
83619
83620         * modules/mempcpy (License): GPL -> LGPL.
83621         * modules/strchrnul (License): Likewise.
83622         * modules/sysexits (License): Likewise.
83623
83624 2005-10-08  Simon Josefsson  <jas@extundo.com>
83625
83626         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
83627
83628 2005-10-07  Simon Josefsson  <jas@extundo.com>
83629
83630         * m4/memxor.m4: Remove gl_C_RESTRICT call.
83631
83632 2005-10-06  Simon Josefsson  <jas@extundo.com>
83633
83634         * tests/test-hmac-md5.c: New file.
83635
83636         * modules/hmac-md5-tests: New file.
83637
83638         * modules/hmac-md5: New file.
83639
83640 2005-10-06  Simon Josefsson  <jas@extundo.com>
83641
83642         * m4/hmac-md5.m4: New file.
83643
83644         * m4/memxor.m4: Require gl_C_RESTRICT.
83645
83646 2005-10-06  Simon Josefsson  <jas@extundo.com>
83647
83648         * lib/memxor.c (memxor): Avoid casts and warnings.
83649
83650 2005-10-06  Simon Josefsson  <jas@extundo.com>
83651
83652         * lib/hmac-md5.c: New file.
83653
83654         * lib/hmac.h: New file.
83655
83656 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
83657
83658         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
83659         promotes to int, not unsigned int, to catch the AIX 5.3
83660         compiler bug.
83661
83662 2005-10-05  Simon Josefsson  <jas@extundo.com>
83663
83664         * modules/memxor: New file.
83665
83666         * modules/iconv (Files): Move config.rpath to havelib, it is used
83667         there.
83668
83669         * modules/havelib (Files): Add config.rpath.
83670
83671 2005-10-05  Simon Josefsson  <jas@extundo.com>
83672
83673         * m4/memxor.m4: New file.
83674
83675 2005-10-05  Simon Josefsson  <jas@extundo.com>
83676
83677         * lib/memxor.c (memxor): Fix compiler error.
83678
83679         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
83680         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
83681
83682         * lib/memxor.h, lib/memxor.c: New files.
83683
83684         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
83685         we assume all systems have it, suggested by Jim Meyering
83686         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
83687         any systems lack sys/socket.h; mingw32 is known to lack it, but we
83688         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
83689         same reasons.
83690
83691 2005-10-05  Simon Josefsson  <jas@extundo.com>
83692
83693         * config/srclist.txt: Add glibc bug 1423 for md5.h.
83694
83695 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
83696
83697         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
83698         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
83699         needed, since the source code now assumes these .h files.
83700
83701 2005-10-05  Derek Price  <derek@ximbiot.com>
83702
83703         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
83704
83705 2005-10-05  Bruno Haible  <bruno@clisp.org>
83706
83707         * modules/stdint (License): Change to LGPL.
83708
83709 2005-10-04  Simon Josefsson  <jas@extundo.com>
83710
83711         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
83712         D. Baushke" <mdb@gnu.org>.
83713
83714 2005-10-04  Bruno Haible  <bruno@clisp.org>
83715
83716         * lib/verify.h (verify_true): Provide alternative definition for C++.
83717
83718 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
83719
83720         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
83721         (SSIZE_MAX): New macro, if not already defined.
83722         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
83723         than 2 GiB.
83724
83725 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83726
83727         Sync from coreutils.
83728         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
83729         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
83730         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
83731         ULLONG_MAX doesn't work with 2.7.2.1.
83732
83733 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83734
83735         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
83736         From Ben Pfaff.
83737
83738         * modules/exclude (Depends-on): Depend on verify.
83739         * modules/strtoimax (Depends-on): Likewise.
83740         * modules/utimecmp (Depends-on): Likewise.
83741
83742 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
83743
83744         * lib/exclude.c: Include verify.h.
83745         (verify): Remove.  All callers changed to use verify.h's version.
83746         * lib/strtoimax.c: Likewise.
83747         * lib/utimecmp.c: Likewis.e
83748
83749         Sync from coreutils.
83750         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
83751         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
83752         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
83753         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
83754         bother returning ENOSYS if settimeofday or stime fails; just let
83755         them return whatever errno they want to return.
83756         * lib/utimens.c: Include unistd.h, for dup2.
83757         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
83758         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
83759
83760 2005-10-02  Jim Meyering  <jim@meyering.net>
83761
83762         Sync from coreutils.
83763         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
83764         from glibc-2.2.5 that fails for read-only files.
83765
83766 2005-10-02  Jim Meyering  <jim@meyering.net>
83767
83768         Sync from coreutils.
83769         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
83770         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
83771         `#if HAVE_CONFIG_H'.
83772         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
83773         Remove AT_FDCWD test.
83774         Do not consume the fd unless successful.
83775         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
83776         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
83777         block, so that we don't even try to compile it if settimeofday is
83778         available.  This works around a compilation failure on OSF1 V5.1,
83779         due to stime requiring a `long int*' while tv_sec is `int'.
83780
83781 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
83782
83783         Sync from coreutils.
83784         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
83785         against `yes', rather than just testing for nonempty.
83786
83787 2005-10-01  Simon Josefsson  <jas@extundo.com>
83788
83789         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
83790         and Darwin.
83791
83792         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
83793         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
83794         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
83795         freeaddrinfo and gai_strerror are declared by the POSIX headers.
83796         Check if struct addrinfo is declared.
83797
83798 2005-10-01  Simon Josefsson  <jas@extundo.com>
83799
83800         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
83801         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
83802         AI_* and EAI_* definitions.  Protect function declarations.
83803
83804 2005-10-01  Jim Meyering  <jim@meyering.net>
83805
83806         Sync from coreutils.
83807
83808         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
83809         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
83810         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83811         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83812         in the inet and nsl libraries.  Required on Solaris 5.7.
83813
83814 2005-10-01  Jim Meyering  <jim@meyering.net>
83815
83816         Sync from coreutils.
83817         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83818         in the inet and nsl libraries.  Required on Solaris 5.7.
83819
83820 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83821
83822         * lib/getdelim.c (getdelim): Remove unused variables.
83823
83824 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83825
83826         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83827         so that the code works even with ancient cpp.  Portability problem
83828         with GCC 2.7.2.1 reported by Thomas M.Ott.
83829
83830 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83831
83832         * modules/regex (Depends-on): Add strcase.
83833
83834         * modules/gethostname (Licence): Change from GPL to LGPL, since
83835         gethostname.c is a trivial implementation of a standard library
83836         function.
83837         * modules/poll (License): Change from GPL to LGPL, since it's
83838         derived from LGPL code.
83839
83840 2005-09-27  Jim Meyering  <jim@meyering.net>
83841
83842         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83843         HAVE_CONFIG_H.
83844
83845         * lib/intprops.h (signed_type_or_expr__): Define.
83846         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83847         for unsigned types.
83848
83849 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83850
83851         * lib/verify.h (verify_expr): Remove, replacing with:
83852         (verify_true): New macro that returns true instead of void.
83853         (verify_type__): Remove.
83854         (verify): Use verify_true rather than verify_type__.
83855
83856 2005-09-26  Bruno Haible  <bruno@clisp.org>
83857
83858         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83859         is necessary.
83860         (lib_SOURCES): Remove mbchar.c.
83861         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83862         (Files): Add m4/mbrtowc.m4.
83863         * modules/mbiter: Likewise.
83864         * modules/mbuiter: Likewise.
83865
83866 2005-09-26  Bruno Haible  <bruno@clisp.org>
83867
83868         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83869         compile mbchar.c if they are not both present.
83870         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83871         * m4/mbiter.m4 (gl_MBITER): Likewise.
83872         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83873         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83874         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83875
83876 2005-09-25  Jim Meyering  <jim@meyering.net>
83877
83878         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83879         also uses socklen_t.
83880
83881 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83882
83883         * lib/utimens.c (ENOSYS): Define if not already defined.
83884         (futimens): Support having a null PATH if the file descriptor
83885         is nonnegative.
83886
83887         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83888         Remove.
83889         (__attribute): Define to empty unless GCC 3.1 or later.
83890         This works around a core dump on OpenBSD 3.4, which has GCC
83891         2.95.3, which dumps core when given __attribute__(()).  It also
83892         simplifies other tests, since we really don't want to bother with
83893         worrying about which ancient version of GCC supported what.
83894         Original problem reported by Yoann Vandoorselaere, with part of
83895         the fix suggested by Derek Price.
83896
83897 2005-09-24  Jim Meyering  <jim@meyering.net>
83898
83899         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83900         so we can once again use a positive bitfield width of 1 -- now we
83901         don't have to explain why we were using a bitfield width of 2.
83902
83903 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83904
83905         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83906         and similarly for the other external symbols.  Problem reported
83907         by James Gallager.
83908
83909         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83910         bug reported by Jim Meyering.
83911
83912         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83913         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83914         not needed, since socklen is a prerequisite module.
83915
83916 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83917
83918         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83919         Problem reported by Eric Blake.
83920         (getaddrinfo): Initialize se so that it's not garbage.
83921         Redo internal storage allocation so that it doesn't make unportable
83922         assumptions about alignment.
83923         Fix a memory leak.
83924
83925         * lib/utimens.c (futimens): Use futimesat if available.
83926         Prefer it to futimes since it doesn't have the futimes bug.
83927
83928         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83929         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83930         Instead, declare a function that returns a pointer to an array,
83931         and use verify_type__ to declare the size of the array.
83932         Problem and germ of a solution reported by Bruno Haible.
83933         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83934         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83935
83936 2005-09-23  Jim Meyering  <jim@meyering.net>
83937
83938         Sync from coreutils.
83939         Correct build failure (socklen_t not defined) on at least
83940         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83941         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83942
83943 2005-09-23  Jim Meyering  <jim@meyering.net>
83944
83945         * modules/getaddrinfo (Depends-on): Add socklen.
83946
83947 2005-09-23  Bruno Haible  <bruno@clisp.org>
83948
83949         * tests/test-verify.c: New file.
83950
83951 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83952
83953         Sync from coreutils.
83954
83955         * modules/argmatch (Depends-on): Add verify.
83956         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83957         unistd-safer.
83958         * modules/save-cwd (Depends-on): Likewise.
83959
83960         * modules/openat (Files): Add lib/openat-die.c.
83961         (Depends-on): Remove error, exitfail.
83962         Add dirname.
83963
83964         * modules/verify: New file.
83965         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83966         with "verify" module.
83967
83968 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83969
83970         Sync from coreutils.
83971
83972         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83973         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83974         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83975         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83976         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83977         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83978         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83979         Don't bother checking for string.h, stdlib.h, unistd.h.
83980         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83981         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83982         module's job.
83983         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83984         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83985
83986         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83987         (gl_GETDATE): Use it.
83988
83989         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83990
83991 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83992
83993         Sync from coreutils.
83994
83995         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83996         stat-time.h.
83997         * lib/argmatch.h: Include verify.h
83998         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83999         (ARGMATCH_ASSERT): Remove; unused.
84000         * lib/canonicalize.c: Assume STDC_HEADERS.
84001         * lib/exclude.c: Include "strcase.h".
84002         * lib/regex_internal.h [!defined _LIBC]: Likewise.
84003         * lib/getusershell.c: Include stdio--.h rather than stdio.h
84004         and stdio-safer.h.
84005         (getusershell): Call fopen, not fopen_safer.
84006         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
84007         Do not include unistd-safer.h.
84008         (save_cwd): Don't call fd_safer; no longer needed
84009         now that we include fcntl--.h.
84010
84011         * lib/getdate.y (relative_time): New type.
84012         (RELATIVE_TIME_0): New constant.
84013         (parser_control): Use relative_time instead of doing it ourselves.
84014         (%union): Add new relative_time rel member.
84015         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
84016         Now typeless.
84017         (relunit, relunit_snumber): Now of type rel.
84018         (zone, rel, relunit, get_date): Adjust to above changes.
84019
84020         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
84021         Do not include unistd-safer.h.
84022         (getloadavg): Don't call fd_safer; no longer needed
84023         now that we include fcntl--.h.
84024
84025         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
84026         (make_dir_parents): Treat ENOSYS like EEXIST.
84027
84028         Improve quality of diagnostics on restore_cwd failure.
84029         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
84030         (make_dir_parents): Last arg is now int * (for errno), not bool *.
84031         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
84032         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
84033         each time through the loop.  Do not diagnose restore_cwd failure;
84034         that is the caller's job (and perhaps the caller does not care).
84035
84036         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
84037         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
84038         If the file already exists but is not a directory, don't bother
84039         to try to make its parents.
84040         Close potential file descriptor leak if we can't chdir("/") (!).
84041         Don't always return true if chdir($PWD) fails; return true only
84042         if the requested action was done successfully (except for the
84043         chdir($PWD)).
84044         Don't log final directory unless we actually made it.
84045         Refactor to avoid duplicate code to fix up permissions.
84046         Don't attempt to fix up parent permissions if chdir($PWD) fails.
84047
84048         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
84049         to make it a bit faster and (I hope) clearer.
84050         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
84051         Fix bug in formats like %2N.
84052
84053         * lib/verify.h: New file.
84054
84055 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
84056
84057         Sync from coreutils.
84058         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
84059
84060 2005-09-22  Jim Meyering  <jim@meyering.net>
84061
84062         Sync from coreutils.
84063
84064         * m4/lstat.m4 (gl_FUNC_LSTAT):
84065         Use AC_LIBSOURCES to require lstat.c and lstat.h.
84066         Remove obsolete comment.
84067         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
84068         * m4/xstrtod.m4: Likewise.
84069
84070         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
84071
84072 2005-09-22  Jim Meyering  <jim@meyering.net>
84073
84074         Sync from coreutils.
84075
84076         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
84077
84078         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
84079         the .tm_year member, since otherwise gcc-4.0 would now warn about
84080         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
84081
84082         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
84083         order to avoid an unsuppressible warning from gcc on 64-bit systems.
84084
84085         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
84086         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
84087         when run in a time zone for which daylight savings time is in effect
84088         for the starting date.
84089
84090         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
84091         stop us from restricting permissions of just-created absolute-named
84092         directories.
84093         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
84094         to restore initial working directory.
84095         * lib/mkdir-p.c (make_dir_parents): New parameter:
84096         different_working_dir, to tell caller if/when we change the working
84097         directory and are unable to return to the initial one.
84098         * lib/mkdir-p.h (make_dir_parents): Update prototype.
84099         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
84100         `return false'.  This fixes a bug introduced on 2004-07-30.
84101
84102         * lib/openat.c (fdopendir): Be sure to close the supplied
84103         file descriptor before returning.  This makes our replacement
84104         implementation a little closer to Solaris's, where fdopendir
84105         ties the file descriptor to the returned DIR* pointer.
84106         * lib/openat.c (unlinkat): New function.
84107         * lib/openat.h (unlinkat): Add prototype.
84108         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
84109         (openat_restore_fail): Rename from openat_restore_die.
84110         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
84111
84112         Provide an alternative to exiting immediately upon save_cwd or
84113         restore_cwd failure.  Now, an application can arrange e.g.,
84114         to perform a longjump in that case.
84115         * lib/openat.c: Include dirname.h.
84116         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
84117         (rpl_openat, fdopendir, fstatat): Call openat_save_die
84118         and openat_restore_die rather than calling error directly.
84119         Don't include "error.h" or "exitfail.h"; they're no longer needed.
84120
84121         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
84122         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
84123         define.
84124
84125         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
84126         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
84127                             int utc, int nanoseconds);
84128         Background:
84129         date should not have to allocate a megabyte of virtual memory to
84130         handle a format argument like +%1048575T.  When implemented with
84131         strftime, it must allocate such a buffer, use strftime to fill it
84132         in, print it, then free it.
84133         With fprintftime, it simply prints everything and exits.
84134         With no need for memory allocation, that's one fewer way to fail.
84135         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
84136         optional field width, not before, so we accept %9:z, not %:9z.
84137         (my_strftime): Be sure to use L_('x') for literals.
84138
84139         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
84140         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
84141         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
84142         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
84143         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
84144         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
84145         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
84146         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
84147         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
84148         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
84149         * lib/xgethostname.c, lib/xreadlink.c:
84150         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
84151
84152         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
84153         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
84154         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
84155         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84156         and don't include <sys/file.h>).
84157
84158 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
84159
84160         Sync from coreutils.
84161
84162         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
84163         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
84164         [!LDAV_DONE]: Avoid unused variable warning.
84165
84166 2005-09-21  Bruno Haible  <bruno@clisp.org>
84167
84168         * lib/unicodeio.h (unicode_to_mb): New declaration.
84169
84170 2005-09-20  Derek Price  <derek@ximbiot.com>
84171
84172         * lib/getaddrinfo.c: Don't include <netdb.h> included from
84173         getaddrinfo.h.
84174
84175 2005-09-20  Bruno Haible  <bruno@clisp.org>
84176
84177         * gnulib-tool: Remove trailing slashes from the values specified for
84178         --source-base, --m4-base, --tests-base, --aux-dir.
84179         Suggested by Simon Josefsson <jas@extundo.com>.
84180
84181 2005-09-20  Bruno Haible  <bruno@clisp.org>
84182
84183         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
84184         func_modules_to_filelist, func_import, func_create_testdir): Make all
84185         sorting results locale-independent, so that gnulib-cache.m4 doesn't
84186         change when gnulib-tool is invoked in a different locale.
84187
84188 2005-09-19  Simon Josefsson  <jas@extundo.com>
84189
84190         * m4/socklen.m4: Fix typo.
84191
84192 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84193
84194         Use a consistent style for including <config.h>.
84195         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
84196         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
84197         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
84198         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
84199         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
84200         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
84201         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
84202         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
84203         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
84204         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
84205         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
84206         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
84207         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
84208         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
84209         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
84210         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
84211         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
84212         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
84213         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
84214         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
84215         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
84216         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
84217         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
84218         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
84219         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
84220         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
84221         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
84222         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
84223         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
84224         lib/xstrtoumax.c, lib/yesno.c:
84225         Standardize inclusion of config.h.
84226         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
84227         lib/inttostr.h:  Removed inclusion of config.h from header files.
84228         * lib/inttostr.c:  Adjusted in-tree users.
84229         * lib/timespec.h: Remove superfluous warning to include config.h.
84230         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
84231         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
84232         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
84233         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
84234         config.h with HAVE_CONFIG_H.
84235
84236 2005-09-19  Jim Meyering  <jim@meyering.net>
84237
84238         * modules/pathmax (License): Change to LGPL.
84239
84240 2005-09-19  Derek Price  <derek@ximbiot.com>
84241
84242         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
84243
84244 2005-09-19  Bruno Haible  <bruno@clisp.org>
84245
84246         * gnulib-tool (import): Provide default for --tests-base.
84247
84248 2005-09-19  Bruno Haible  <bruno@clisp.org>
84249
84250         * doc/quote.texi: New file, extracted from gnulib.texi.
84251         * doc/ctime.texi: New file, extracted from gnulib.texi.
84252         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
84253         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
84254         * doc/gnulib.texi: Include them.
84255
84256 2005-09-18  Bruno Haible  <bruno@clisp.org>
84257
84258         Portability fix.
84259         * gnulib-tool (func_readlink): New function.
84260         (func_ln_if_changed): Use it.
84261
84262 2005-09-18  Bruno Haible  <bruno@clisp.org>
84263
84264         * gnulib-tool: Support --with-tests also with --import.
84265         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
84266         (func_import): Use variables $testsbase and $inctests. Emit a
84267         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
84268         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
84269         SUBDIRS += $testsdir.
84270         (func_create_testdir): Update.
84271
84272 2005-09-18  Bruno Haible  <bruno@clisp.org>
84273
84274         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
84275         instead of $dry_run.
84276         (func_cp_if_changed, func_mv_if_changed): Remove functions.
84277         (func_ln_if_changed): Don't handle dry-run here.
84278         (func_import): In dry-run mode, detect more precisely which actions
84279         would be performed, and don't use "...ing" verbs.
84280
84281 2005-09-18  Bruno Haible  <bruno@clisp.org>
84282
84283         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
84284         (func_import): Use join on two temporary files instead of three nested
84285         loops, in order to determine which files are new or old.
84286
84287 2005-09-18  Bruno Haible  <bruno@clisp.org>
84288
84289         * gnulib-tool (func_import): Comment out code that spits out the
84290         new files with --dry-run.
84291
84292 2005-09-18  Bruno Haible  <bruno@clisp.org>
84293
84294         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
84295
84296 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84297
84298         * lib/stat-time.h: New file.
84299         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
84300         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
84301         in a different way.
84302         (timespec_cmp): New function.
84303         * lib/utimecmp.c: Include stat-time.h.
84304         (SYSCALL_RESOLUTION): Depend on whether various struct stat
84305         members exist, not on the obsolescent ST_MTIM_NSEC.
84306         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
84307
84308 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84309
84310         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
84311
84312 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
84313
84314         * MODULES.html.sh (File system functions): Add stat-time.
84315         * modules/stat-time: New file.
84316         * modules/timespec (Files): Remove m4/st_mtim.m4; this
84317         is now done in a different way, by the stat-time module.
84318         * modules/utimecmp (Depends-on): Add stat-time.
84319
84320 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
84321
84322         * m4/st_mtim.m4: Remove.  Superseded by...
84323         * m4/stat-time.m4: New file.
84324         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
84325         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
84326
84327 2005-09-15  Derek Price  <derek@ximbiot.com>
84328
84329         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
84330
84331 2005-09-15  Derek Price  <derek@ximbiot.com>
84332
84333         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
84334         * lib/regex_internal.c: Ditto, using this...
84335         (__GNUC_PREREQ): ...new macro.
84336         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
84337         using...
84338         (__GNUC_PREREQ): ...this new macro.
84339
84340         * lib/strstr.h: Include string.h. Define strstr as a macro here.
84341
84342 2005-09-15  Derek Price  <derek@ximbiot.com>
84343             Paul Eggert  <eggert@cs.ucla.edu>
84344
84345         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
84346         changes, consolidating in...
84347         * lib/regex_internal.h: ...this file.
84348
84349 2005-09-13  Jim Meyering  <jim@meyering.net>
84350
84351         * lib/canon-host.c: Filter through gnu indent and reword comments
84352         slightly.
84353         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
84354
84355 2005-09-13  Derek Price  <derek@ximbiot.com>
84356
84357         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
84358         failure.
84359         Reported by Jim Meyering  <jim@meyering.net>.
84360
84361 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84362
84363         * lib/base64.c: Typo.
84364         (base64_encode): Put b64str in initialized data section.
84365
84366 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
84367
84368         Merge glibc and coreutils changes into gnulib, plus a few
84369         extra fixes.
84370         * lib/md5.c: Use #error rather than a string.
84371         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
84372         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
84373         (__attribute__): Define to empty for non recent-GCC.
84374         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
84375         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
84376         Renamed from their non-__ counterparts, with new macros replacing
84377         them if not _LIBC.  Add __THROW attribute.
84378         (rol): Remove.
84379         (struct md5_ctx): Align buffer if using GCC.
84380         * lib/sha1.h (struct sha1_ctx): Likewise.
84381         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
84382         The old name was backwards.
84383         (NOTSWAP): Remove; not used.
84384         (rol): New macro, moved here from md5.h.
84385         (sha1_process_block): Remove a FIXME that doesn't make sense.
84386
84387 2005-09-12  Derek Price  <derek@ximbiot.com>
84388
84389         Return usable errors from canon-host.
84390         * lib/canon-host.h: New file.
84391         * lib/canon-host.c (canon_host): Wrap...
84392         (canon_host_r): ...this new function, which now relies exclusively on
84393         getaddrinfo.
84394         (ch_strerror): New function.
84395         (last_cherror): New global.
84396         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
84397         interface.
84398         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
84399         void *.
84400         (freeaddrinfo): Free ai->ai_canonname when set.
84401
84402 2005-09-12  Derek Price  <derek@ximbiot.com>
84403
84404         Make canon-host require getaddrinfo.
84405         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
84406         AC_LIBSOURCE canon-host.h.  Call...
84407         (gl_PREREQ_CANON_HOST): ...this new function, which requires
84408         gl_GETADDRINFO.
84409         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
84410
84411 2005-09-12  Derek Price  <derek@ximbiot.com>
84412
84413         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
84414         LGPL.
84415         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
84416
84417 2005-09-12  Derek Price  <derek@ximbiot.com>
84418
84419         * lib/gai_strerror.c: Include config.h when available.  Include
84420         getaddrinfo.h before other headers to test interface.
84421         Reported by Larry Jones <lawrence.jones@ugs.com>.
84422
84423 2005-09-12  Derek Price  <derek@ximbiot.com>
84424             Paul Eggert  <eggert@cs.ucla.edu>
84425
84426         * modules/glob (Files): Add glob-libc.h.
84427
84428 2005-09-12  Derek Price  <derek@ximbiot.com>
84429             Paul Eggert  <eggert@cs.ucla.edu>
84430
84431         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
84432         glob_.h, glob-libc.h.
84433         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
84434
84435 2005-09-12  Derek Price  <derek@ximbiot.com>
84436             Paul Eggert  <eggert@cs.ucla.edu>
84437
84438         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
84439         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
84440         protecting things that should be done only in gnulib contexts.
84441         * lib/glob_.h: New file, containing only the glob things needed for
84442         gnulib.
84443         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
84444         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
84445         (glob, globfree, glob_pattern_p): Now defined simply in terms of
84446         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
84447         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
84448         and to respect the namespace rules better.
84449
84450 2005-09-08  Simon Josefsson  <jas@extundo.com>
84451
84452         * modules/socklen: New file.
84453
84454 2005-09-08  Simon Josefsson  <jas@extundo.com>
84455
84456         * m4/socklen.m4: New file.
84457
84458 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84459
84460         * modules/utimens (Files): Add m4/utimbuf.m4, since
84461         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
84462         Reported by Sergey Poznyakoff.
84463
84464 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84465
84466         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
84467         definitions, since that's the preferred style in glibc.
84468         Fix a minor spacing issue, and update copyright notice to match
84469         glibc's.
84470
84471 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
84472
84473         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
84474
84475 2005-09-06  Simon Josefsson  <jas@extundo.com>
84476
84477         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
84478         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
84479
84480 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84481
84482         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
84483         warning.
84484
84485 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
84486
84487         * config/srclist.txt: Add glibc bug 1302.
84488
84489 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
84490
84491         Change bitset word type from unsigned int to unsigned long int,
84492         as this has better performance on typical 64-bit hosts.
84493         Port bitset code to hosts with unusual word sizes.
84494         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
84495         (build_collating_symbol):
84496         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
84497         argument is a bitset.  This is merely a style issue, but it makes
84498         it clearer that an entire array is expected.
84499         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
84500         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
84501         Port to the case where bitset_word is not the same as unsigned int.
84502         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84503         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
84504         Likewise.
84505         * lib/regexec.c (check_dst_limits_calc_pos_1,
84506         check_subexp_matching_top):
84507         (build_trtable, group_nodes_into_DFAstates):
84508         Likewise.
84509         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
84510         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
84511         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
84512         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
84513         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
84514         * lib/regcomp.c (optimize_subexps, lower_subexp):
84515         Work even if bitset_word has holes in its bitwise representation.
84516         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
84517         * lib/regexec.c (check_dst_limits_calc_pos_1,
84518         check_subexp_matching_top):
84519         Likewise.
84520         * lib/regex_internal.c (re_string_reconstruct):
84521         Don't assume UCHAR_MAX == 255.
84522         * lib/regex_internal.h (bitset_set_all): Likewise.
84523         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
84524         All uses changed.
84525         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
84526         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
84527         All uses changed.
84528         (BITSET_WORD_MAX): New macro.
84529         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
84530         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
84531         (bitset_empty, bitset_copy):
84532         Prefer sizeof (bitset) to multiplying it out ourselves.
84533         (bitset_not_merge): Remove; unused.
84534         (bitset_contain): Return bool, not unsigned int with one bit on.
84535         All callers changed.
84536         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
84537         alignment than re_node_set; do this by defining a new internal
84538         type struct dests_alloc and using it to allocate memory.
84539
84540 2005-09-05  Bruno Haible  <bruno@clisp.org>
84541
84542         * gnulib-tool (func_import): Fix comparison in handling of symbolic
84543         links.
84544
84545 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
84546
84547         * modules/size_max (Makefile.am): Add size_max.h
84548
84549 2005-09-04  Derek Price  <derek@ximbiot.com>
84550
84551         * gnulib-tool (func_import): Fix reversed $symbolic logic.
84552
84553 2005-09-03  Simon Josefsson  <jas@extundo.com>
84554
84555         * gnulib-tool: Fix typo.
84556
84557 2005-09-03  Simon Josefsson  <jas@extundo.com>
84558
84559         * config/srclist.txt: Add glibc bug 1293.
84560
84561 2005-09-03  Derek Price  <derek@ximbiot.com>
84562
84563         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
84564         From Larry Jones <lawrence.jones@ugs.com>.
84565
84566 2005-09-02  Simon Josefsson  <jas@extundo.com>
84567
84568         * modules/socklen: New file.
84569
84570 2005-09-02  Simon Josefsson  <jas@extundo.com>
84571
84572         * modules/havelib: New module.
84573
84574         * modules/gettext, modules/iconv, modules/lock, modules/readline:
84575         Use havelib.
84576
84577 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84578
84579         Check for arithmetic overflow when calculating sizes, to prevent
84580         some buffer-overflow issues.  These patches are conservative, in the
84581         sense that when I couldn't determine whether an overflow was possible,
84582         I inserted a run-time check.
84583         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
84584         macros.
84585         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
84586         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
84587         (re_xnrealloc, re_x2nrealloc): New inline functions.
84588         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
84589         parse_bracket_exp):
84590         (build_equiv_class, build_charclass): Check for arithmetic overflow
84591         in size expression calculations.
84592         * lib/regex_internal.c (re_string_realloc_buffers):
84593         (build_wcs_upper_buffer, re_node_set_add_intersect):
84594         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
84595         (re_dfa_add_node, register_state): Likewise.
84596         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
84597         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
84598         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
84599         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
84600
84601 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
84602
84603         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84604         m4/ulonglong.m4.  Problem reported by Martin Lambers.
84605
84606 2005-09-02  Bruno Haible  <bruno@clisp.org>
84607
84608         Support for lib vs. lib64 distinction on biarch platforms.
84609         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
84610         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
84611         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
84612
84613 2005-09-02  Bruno Haible  <bruno@clisp.org>
84614
84615         * gnulib-tool (import): In the other first-use case, provide defaults
84616         as well.
84617
84618 2005-09-02  Bruno Haible  <bruno@clisp.org>
84619
84620         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
84621         patches not yet found in the latest gettext release.
84622
84623 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84624
84625         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
84626         to avoid a collision with bits/local_lim.h in glibc.
84627         All uses changed.  Problem reported by Dmitry V. Levin in
84628         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
84629
84630         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
84631         bugs in int versus size_t comparisons.
84632         (re_string_context_at): Fix bug where the code assumed that
84633         Idx is signed.
84634
84635         Use bool where appropriate.
84636         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
84637         All callers changed.
84638         (calc_eclosure_iter): Likewise, for ROOT arg.
84639         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
84640         (build_charclass_op): Likewise, for NON_MATCH arg.
84641         * lib/regex_internal.c (re_string_allocate, re_string_construct):
84642         (re_string_construct_common): Likewise, for ICASE arg.
84643         * lib/regexec.c (re_search_2_stub, re_search_stub):
84644         Likewise, for RET_LEN arg.
84645         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
84646         (set_regs): Likewise, for FL_BACKTRACK arg.
84647         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
84648         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
84649         (calc_eclosure_iter, parse_bracket_exp):
84650         Use bool for internal variables that are booleans.
84651         * lib/regexec.c (re_search_internal, check_matching,
84652         proceed_next_node):
84653         (set_regs, build_sifted_states, sift_states_bkref):
84654         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
84655         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84656         (find_collation_sequence_value):
84657         Likewise.
84658         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
84659         (re_node_set_compare):
84660         Return bool, not int. All callers changed.
84661         * lib/regexec.c (check_halt_node_context, check_dst_limits):
84662         (build_trtable, check_node_accept): Likewise.
84663         * lib/regex_internal.h: Include stdbool.h.
84664
84665         Fix bugs uncovered when converting to bool.
84666         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
84667         failure instead of charging ahead blindly.
84668         * lib/regex_internal.c (register_state): Likewise.
84669         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
84670         for freeing internal storage.
84671         (group_nodes_into_DFA_states): Use unsigned int, not int, for
84672         bitset pieces used as boolean, to avoid undefined behavior
84673         on hosts that do int overflow checking.
84674
84675 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
84676
84677         * config/srclist.txt: Add glibc bugs 1285-1287.
84678
84679 2005-09-01  Jim Meyering  <jim@meyering.net>
84680
84681         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
84682         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
84683         Require gl_STAT_MACROS, too.
84684
84685 2005-09-01  Bruno Haible  <bruno@clisp.org>
84686
84687         * gnulib-tool (import): In the first-use case, provide defaults.
84688
84689 2005-09-01  Bruno Haible  <bruno@clisp.org>
84690
84691         * gnulib-tool (func_import): Remove the .tmp files.
84692
84693 2005-09-01  Bruno Haible  <bruno@clisp.org>
84694
84695         * gnulib-tool (func_import): Fix handling of symbolic links.
84696
84697 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84698
84699         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
84700         old glibc regex code mishandles strings longer than 2**31 bytes.
84701         This patch fixes this when the regex code is used in gnulib
84702         (i.e., outside glibc).
84703
84704         This patch should not affect the use of the regex code inside
84705         glibc.  No doubt this problem also needs to be handled for glibc
84706         as well, but the result will be an incompatible change to the
84707         glibc ABI, and the old ABI will have to be supported too.  That
84708         can be the the subject for another patch.
84709
84710         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
84711         governing whether the rest of this patch is active.  By default,
84712         the macro is disabled and the patch has no effect.
84713         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
84714         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
84715         (struct re_pattern_buffer, re_search, re_search_2, re_match):
84716         (re_match_2, re_set_registers): Use the new types.
84717         * lib/regex_internal.h (Idx, re_hashval_t): New types.
84718         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
84719         New macros.
84720         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
84721         (re_string_context_at, bin_tree_t, re_dfastate_t):
84722         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
84723         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
84724         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
84725         (re_string_char_size_at, re_string_wchar_at):
84726         (re_string_elem_size_at):
84727         Use the new types and macros to port to 64-bit hosts.
84728         Use unsigned types for internal values, so that the code
84729         mostly works even for arrays larger than SSIZE_MAX.
84730         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
84731         (search_duplicated_node, calc_eclosure_iter, fetch_number):
84732         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
84733         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
84734         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
84735         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
84736         (calc_inveclosure, parse_dup_op, build_range_exp):
84737         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
84738         (fetch_number, create_token_tree, mark_opt_subexp):
84739         Likewise.
84740         * lib/regex_internal.c (re_string_construct_common,
84741         create_ci_newstate):
84742         (create_cd_newstate, re_string_allocate, re_string_construct):
84743         (re_string_realloc_buffers, build_wcs_upper_buffer):
84744         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84745         (re_string_reconstruct, re_string_peek_byte_case):
84746         (re_string_fetch_byte_case, re_string_context_at):
84747         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84748         (re_node_set_init_copy, re_node_set_add_intersect):
84749         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84750         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84751         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84752         (re_acquire_state, re_acquire_state_context, register_state):
84753         Likewise.
84754         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
84755         search_cur_bkref_entry):
84756         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
84757         (re_search_internal, re_search_2_stub, re_search_stub)
84758         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
84759         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
84760         (update_cur_sifted_state, check_dst_limits):
84761         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84762         (check_subexp_limits, sift_states_bkref, merge_state_array):
84763         (check_subexp_matching_top, get_subexp, get_subexp_sub):
84764         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
84765         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84766         (expand_bkref_cache, check_node_accept_bytes):
84767         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
84768         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
84769         (acquire_init_state_context, check_halt_node_context):
84770         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
84771         (sift_states_backward, clean_state_log_if_needed):
84772         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
84773         (find_recover_state, transit_state_sb, transit_state_mb):
84774         (transit_state_bkref, build_trtable, match_ctx_clean):
84775         Likewise.
84776         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
84777         to work around an assumption that REG_MISSING is negative.
84778
84779         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
84780         (seek_collating_symbol_entry) [defined _LIBC]:
84781         (lookup_collation_sequence_value) [defined _LIBC]:
84782         (build_range_exp, build_collating_symbol) [defined _LIBC]:
84783         Use prototypes rather than old-style function definitions.
84784         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
84785         (transit_state_sb) [0]:
84786         (find_collation_sequence_value) [defined _LIBC]: Likewise.
84787
84788         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
84789         rm_eo.
84790
84791         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
84792         (optimize_subexps, lower_subexp):
84793         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
84794         since the signed shift might overflow.  Use 1u<<31 instead.
84795         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
84796         Likewise.
84797         * lib/regexec.c (check_dst_limits_calc_pos_1,
84798         check_subexp_matching_top): Likewise.
84799
84800         * lib/regcomp.c (optimize_subexps, lower_subexp):
84801         Use CHAR_BIT rather than 8, for clarity.
84802         * lib/regexec.c (check_dst_limits_calc_pos_1):
84803         (check_subexp_matching_top): Likewise.
84804         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
84805         have to worry about portability issues when shifting it left.
84806         Remove no-longer-needed test for table_size > 0.
84807         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
84808         in a word, as the resulting behavior is undefined.
84809         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
84810         in one case, a <= should have been an <, and in another case the
84811         whole test was missing.
84812         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84813         the standard name CHAR_BIT.
84814         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84815         this is not true on one's complement and signed-magnitude hosts.
84816
84817         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84818         next_last_offset.
84819         (struct re_dfa_t): Remove unused member states_alloc.
84820         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84821
84822 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84823
84824         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84825         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84826         and large-file glibc and in 32-bit large-file Solaris.
84827
84828 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84829
84830         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84831         lengths fit in regoff_t; this isn't true if regoff_t is the same
84832         width as size_t.
84833         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84834         (= START + RANGE) instead of RANGE.  This avoids overflow
84835         problems when regoff_t is the same width as size_t.
84836         All callers changed.
84837         (re_search_2_stub): Check for overflow when adding the
84838         sizes of the two strings.
84839         (re_search_stub): Check for overflow when adding START
84840         to RANGE; if it occurs, substitute the extreme value.
84841
84842 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84843
84844         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84845
84846 2005-08-31  Jim Meyering  <jim@meyering.net>
84847
84848         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84849         a pointer-to-const.
84850         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84851         (register_state): Likewise.
84852         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84853         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84854         (group_nodes_into_DFAstates): Likewise.
84855
84856 2005-08-31  Jim Meyering  <jim@meyering.net>
84857
84858         * check-module: Add a FIXME comment.
84859
84860 2005-08-31  Eric Blake  <ebb9@byu.net>
84861
84862         * modules/unistd-safer (Files): Add unistd--.h.
84863         * modules/stdio-safer (Files): Add stdio--.h.
84864
84865 2005-08-31  Derek Price  <derek@ximbiot.com>
84866
84867         * lib/getdelim.c (getdelim): Return EOF on EOF.
84868         Reported by Larry Jones <lawrence.jones@ugs.com>.
84869
84870 2005-08-31  Bruno Haible  <bruno@clisp.org>
84871
84872         Avoid unnecessary diffs in the generated lib/Makefile.am.
84873         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84874         the generated files.
84875         (func_import): Don't set cmd.
84876
84877 2005-08-31  Bruno Haible  <bruno@clisp.org>
84878
84879         * lib/strstr.c: Include <stddef.h>, for NULL.
84880         * lib/strcasestr.c: Likewise.
84881         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84882
84883 2005-08-31  Bruno Haible  <bruno@clisp.org>
84884
84885         * gnulib-tool: New option --macro-prefix.
84886         (func_import): Use macro_prefix.
84887         (import): Handle option --macro-prefix.
84888
84889 2005-08-31  Bruno Haible  <bruno@clisp.org>
84890
84891         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84892         Also use new variables cached_lgpl, cached_libtool.
84893
84894 2005-08-31  Bruno Haible  <bruno@clisp.org>
84895
84896         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84897         always instantiating them.
84898
84899 2005-08-31  Bruno Haible  <bruno@clisp.org>
84900
84901         * gnulib-tool (func_import): Read the previous cached settings
84902         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84903         earlier added by gnulib but are now dropped. Warn when a gnulib file
84904         overwrites a non-gnulib file.
84905
84906 2005-08-31  Bruno Haible  <bruno@clisp.org>
84907
84908         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84909         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84910         projects that don't keep autogenerated files in CVS. Put into
84911         actioncmd only the specified modules, not the transitive closure.
84912
84913 2005-08-31  Bruno Haible  <bruno@clisp.org>
84914
84915         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84916         Create directories that shall be filled.
84917         (import): Don't look for gl_* macros in configure.ac. Recurse across
84918         all directories containing a gnulib-cache.m4 files, if meaningful.
84919
84920 2005-08-31  Bruno Haible  <bruno@clisp.org>
84921
84922         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84923         (import): Set seen_libtool when we see gl_LIBTOOL.
84924
84925 2005-08-31  Bruno Haible  <bruno@clisp.org>
84926
84927         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84928         declaration macro definitions from generated gnulib.m4.
84929
84930 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84931
84932         * lib/iconvme.h: Add prototype for iconv_alloc.
84933
84934 2005-08-29  Simon Josefsson  <jas@extundo.com>
84935
84936         * lib/iconvme.c: Fix errno.
84937
84938 2005-08-29  Bruno Haible  <bruno@clisp.org>
84939
84940         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84941         that it works when the directory contains spaces.
84942
84943 2005-08-29  Bruno Haible  <bruno@clisp.org>
84944
84945         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84946
84947 2005-08-29  Bruno Haible  <bruno@clisp.org>
84948
84949         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84950         Emit more advice.
84951
84952 2005-08-29  Bruno Haible  <bruno@clisp.org>
84953         and Stepan Kasal  <kasal@ucw.cz>
84954
84955         * check-module: If more parameters are given, check each of them
84956         separately; add more exceptions, as noted by Jim Meyering.
84957         (check_module): New procedure.
84958         (%exempt_header): Now contains all exceptions.
84959
84960 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84961
84962         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84963
84964 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84965
84966         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84967
84968 2005-08-28  Bruno Haible  <bruno@clisp.org>
84969
84970         * m4/gnulib-tool.m4: New file.
84971
84972 2005-08-27  Jim Meyering  <jim@meyering.net>
84973
84974         * modules/unistd-safer (Files): Add pipe-safer.c.
84975         * modules/fcntl-safer (Files): Add creat-safer.c.
84976
84977 2005-08-27  Jim Meyering  <jim@meyering.net>
84978
84979         * m4/stdlib-safer.m4: New file.  From coreutils.
84980         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84981         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84982         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84983         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84984         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84985
84986 2005-08-27  Jim Meyering  <jim@meyering.net>
84987
84988         * lib/fopen-safer.c: Merge minor changes from coreutils.
84989         * lib/dup-safer.c: Likewise.
84990         * lib/fd-safer.c: Likewise.
84991
84992         Merge from coreutils.
84993         * lib/stdio--.h: New file.
84994         * lib/stdlib--.h: New file.
84995         * lib/mkstemp-safer.c: New file.
84996
84997         GNU tar needs these.
84998         * lib/pipe-safer.c: New file.
84999         * lib/creat-safer.c: New file.
85000         * lib/fcntl--.h (creat): Define to creat_safer.
85001         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
85002         * lib/unistd--.h (pipe): Define to pipe_safer.
85003         * lib/unistd-safer.h: Declare pipe_safer.
85004
85005 2005-08-26  Simon Josefsson  <jas@extundo.com>
85006
85007         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
85008         Haible <bruno@clisp.org>.
85009
85010 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
85011
85012         * lib/regex_internal.h: Remove all references to
85013         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
85014         or better.
85015         (bitset_not, bitset_merge, bitset_not_merge):
85016         (bitset_mask, re_string_allocate, re_string_construct):
85017         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
85018         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
85019         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
85020         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
85021         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85022         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85023         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
85024         (re_acquire_state_context):
85025         Remove unnecessary forward decls.
85026         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
85027         Put __attribute at function definition,
85028         now that the function decl has been removed.
85029         * lib/regex_internal.c (re_string_peek_byte_case):
85030         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
85031         Likewise.
85032
85033 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
85034
85035         * m4/regex.m4: Add AC_PREREQ(2.50).
85036         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
85037
85038 2005-08-25  Simon Josefsson  <jas@extundo.com>
85039
85040         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
85041         __fsetlocking.
85042
85043 2005-08-25  Simon Josefsson  <jas@extundo.com>
85044
85045         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
85046         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
85047         GLIBC specific code.
85048
85049 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85050
85051         Make regex safe for g++.  This fixes one real bug (an "err"
85052         that should have been "*err").  g++ problem reported by
85053         Sam Steingold.
85054         * lib/regex_internal.h (re_calloc): New macro, consistent with
85055         re_malloc etc.  All callers of calloc changed to use re_calloc.
85056         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
85057         not int.  All callers changed.
85058         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
85059         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
85060         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
85061         (find_recover_state): Change "err" to "*err"; this fixes what
85062         appears to be a real bug.
85063         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
85064         versus int.
85065
85066 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85067
85068         * modules/regex (Depends-on): Add malloc, since the code
85069         assumes that !malloc(0) means failure.
85070
85071 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85072
85073         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
85074
85075         alloca modernization/simplification for regex.
85076         * lib/regex.c: Remove portability cruft for alloca.  This no longer
85077         needs to be at the start of the file, and can be moved into
85078         regex_internal.h and simplified.
85079         * lib/regex_internal.h: Include <alloca.h>.
85080         (__libc_use_alloca) [!defined _LIBC]: New macro.
85081         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
85082         now works outside glibc.
85083
85084 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
85085
85086         * config/srclist.txt: Add glibc bugs 1241, 1245.
85087
85088 2005-08-25  Jim Meyering  <jim@meyering.net>
85089
85090         * lib/open-safer.c: Include <config.h>.
85091         Otherwise, we'd lose LARGEFILE support in any file using
85092         e.g. "fcntl--.h"
85093
85094 2005-08-25  Bruno Haible  <bruno@clisp.org>
85095
85096         * m4/minmax.m4: Require autoconf 2.52.
85097         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
85098         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
85099         alternatives of translit over the alphabet.
85100         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
85101
85102 2005-08-24  Simon Josefsson  <jas@extundo.com>
85103
85104         * tests/test-getpass.c: New file.
85105
85106 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85107
85108         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
85109         for GNU regex features.
85110
85111 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85112
85113         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
85114         * lib/regex.h (regerror): Likewise.
85115
85116         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
85117         requires this.  (The code never needed it.)
85118
85119         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
85120         All uses of recently-renamed identifiers changed to use the new,
85121         POSIX-compliant names.  The code will build and run just fine
85122         without these changes, but it's better to eat our own dog food
85123         and use the standard-conforming names.
85124
85125         * lib/regex.h: Fix a multitude of POSIX name space violations.
85126         These changes have an effect only for programs that define
85127         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
85128         do not change anything for programs compiled in the normal way.
85129         Also, there is no effect on the ABI.
85130
85131         (_REGEX_SOURCE): New macro.
85132         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
85133         defined and _GNU_SOURCE is not; this fixes a name space violation.
85134
85135         Rename the following macros to obey POSIX requirements.
85136         The old names are still visible as macros if _REGEX_SOURCE is defined.
85137         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
85138         RE_BACKSLASH_ESCAPE_IN_LISTS.
85139         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
85140         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
85141         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
85142         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
85143         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
85144         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
85145         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
85146         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
85147         (REG_INTERVALS): renamed from RE_INTERVALS.
85148         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
85149         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
85150         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
85151         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
85152         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
85153         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
85154         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
85155         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
85156         RE_UNMATCHED_RIGHT_PAREN_ORD.
85157         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
85158         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
85159         (REG_DEBUG): renamed from RE_DEBUG.
85160         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
85161         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
85162         unusual, since we can't clash with the POSIX REG_ICASE.
85163         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
85164         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
85165         (REG_NO_SUB): renamed from RE_NO_SUB.
85166         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
85167         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
85168         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
85169         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
85170         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
85171         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
85172         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
85173         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
85174         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
85175         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
85176         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
85177         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
85178         RE_SYNTAX_POSIX_MINIMAL_BASIC.
85179         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
85180         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
85181         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
85182         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
85183         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
85184         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
85185         (REG_FIXED): Renamed from REGS_FIXED.
85186         (REG_NREGS): Renamed from RE_NREGS.
85187
85188         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
85189         of other REG_* macros, since POSIX says the user is allowed to
85190         #undef these macros selectively.
85191
85192         (reg_errcode_t): Update comment stating what other tables need
85193         to be consistent.
85194
85195         Rename the following enum values to obey POSIX requirements.
85196         The old names are still visible as macros.
85197         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
85198         is not defined, since GNU is supposed to be a superset of POSIX as
85199         much as possible, and since we want reg_errcode_t to be a signed
85200         type for implementation consistency.
85201         (_REG_NOERROR): Renamed from REG_NOERROR.
85202         (_REG_NOMATCH): Renamed from REG_NOMATCH.
85203         (_REG_BADPAT): Renamed from REG_BADPAT.
85204         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
85205         (_REG_ECTYPE): Renamed from REG_ECTYPE.
85206         (_REG_EESCAPE): Renamed from REG_EESCAPE.
85207         (_REG_ESUBREG): Renamed from REG_ESUBREG.
85208         (_REG_EBRACK): Renamed from REG_EBRACK.
85209         (_REG_EPAREN): Renamed from REG_EPAREN.
85210         (_REG_EBRACE): Renamed from REG_EBRACE.
85211         (_REG_BADBR): Renamed from REG_BADBR.
85212         (_REG_ERANGE): Renamed from REG_ERANGE.
85213         (_REG_ESPACE): Renamed from REG_ESPACE.
85214         (_REG_BADRPT): Renamed from REG_BADRPT.
85215         (_REG_EEND): Renamed from REG_EEND.
85216         (_REG_ESIZE): Renamed from REG_ESIZE.
85217         (_REG_ERPAREN): Renamed from REG_ERPAREN.
85218         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
85219         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
85220         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
85221         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
85222
85223         (_REG_RE_NAME, _REG_RM_NAME): New macros.
85224         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
85225         changed.  But support the old name if the new one is not defined
85226         and if _REGEX_SOURCE.
85227
85228         Change the following member names in struct re_pattern_buffer.
85229         The old names are still supported if !_REGEX_SOURCE.
85230         The new names are always supported, regardless of _REGEX_SOURCE.
85231         (re_buffer): Renamed from buffer.
85232         (re_allocated): Renamed from allocated.
85233         (re_used): Renamed from used.
85234         (re_syntax): Renamed from syntax.
85235         (re_fastmap): Renamed from fastmap.
85236         (re_translate): Renamed from translate.
85237         (re_can_be_null): Renamed from can_be_null.
85238         (re_regs_allocated): Renamed from regs_allocated.
85239         (re_fastmap_accurate): Renamed from fastmap_accurate.
85240         (re_no_sub): Renamed from no_sub.
85241         (re_not_bol): Renamed from not_bol.
85242         (re_not_eol): Renamed from not_eol.
85243         (re_newline_anchor): Renamed from newline_anchor.
85244
85245         Change the following member names in struct re_registers.
85246         The old names are still supported if !_REGEX_SOURCE.
85247         The new names are always supported, regardless of _REGEX_SOURCE.
85248         (rm_num_regs): Renamed from num_regs.
85249         (rm_start): Renamed from start.
85250         (rm_end): Renamed from end.
85251
85252         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
85253         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
85254         Prepend __ to parameter names.
85255
85256         Undo yesterday's changes.
85257
85258 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
85259
85260         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
85261         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
85262         lib/regex.c.
85263
85264 2005-08-24  Jim Meyering  <jim@meyering.net>
85265
85266         Sync from coreutils.
85267         * m4/fcntl-safer.m4: New file.
85268
85269         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
85270         and object files for this module.
85271
85272 2005-08-24  Jim Meyering  <jim@meyering.net>
85273
85274         Sync from coreutils.
85275         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
85276
85277 2005-08-24  Jim Meyering  <jim@meyering.net>
85278
85279         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
85280         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
85281
85282 2005-08-24  Jim Meyering  <jim@meyering.net>
85283
85284         * modules/fcntl-safer: New module.
85285         * modules/fts (Depends-on): Add fcntl-safer.
85286         * MODULES.html.sh (File descriptor based Input/Output):
85287         Add fcntl-safer.
85288
85289 2005-08-24  Bruno Haible  <bruno@clisp.org>
85290
85291         Support for unit test modules.
85292         * modules/README: Mention tests modules.
85293         * modules/TEMPLATE-TESTS: New file.
85294         * gnulib-tool: New options --extract-tests-module, --with-tests and
85295         --tests-base (unused for the moment).
85296         (testsbase, inctests): New variables.
85297         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
85298         (func_verify_module): Exclude TEMPLATE-TESTS.
85299         (func_verify_nontests_module, func_verify_tests_module): New functions.
85300         (func_get_dependencies): Add implicit dependency for tests modules.
85301         (func_get_tests_module): New function.
85302         (func_modules_transitive_closure): When --with-tests was specified,
85303         include the unit tests as well, unless explicitly avoided.
85304         (func_emit_lib_Makefile_am): Ignore the tests modules here.
85305         (func_emit_tests_Makefile_am): New function.
85306         (func_create_testdir): When --with-tests was specified, emit a
85307         tests/ directory.
85308         * MODULES.html.sh (Future developments): Update.
85309
85310 2005-08-24  Bruno Haible  <bruno@clisp.org>
85311
85312         * modules/tls-tests: New file.
85313         * tests/test-tls.c: New file, from GNU gettext.
85314
85315 2005-08-24  Bruno Haible  <bruno@clisp.org>
85316
85317         * modules/lock-tests: New file.
85318         * tests/test-lock.c: New file, from GNU gettext.
85319
85320 2005-08-24  Bruno Haible  <bruno@clisp.org>
85321
85322         * lib/lock.h: Add multiple inclusion guard.
85323         * lib/tls.h: Add multiple inclusion guard.
85324
85325 2005-08-24  Bruno Haible  <bruno@clisp.org>
85326
85327         * gnulib-tool: Add support for the --aux-dir option to
85328         --create-testdir, --create-megatestdir, --test, --megatest.
85329         (func_create_testdir, func_create_megatestdir): Optionally emit a
85330         AC_CONFIG_AUX_DIR directive.
85331         (create-testdir, create-megatestdir, test, megatest): Provide a
85332         default value for $auxdir.
85333
85334 2005-08-24  Bruno Haible  <bruno@clisp.org>
85335
85336         * gnulib-tool (import): Use compound statement instead of subshell
85337         where possible.
85338
85339 2005-08-24  Bruno Haible  <bruno@clisp.org>
85340
85341         * gnulib-tool (import): Change --aux-dir default to "build-aux".
85342
85343 2005-08-24  Bruno Haible  <bruno@clisp.org>
85344
85345         * gnulib-tool (func_version): Update.
85346
85347 2005-08-24  Bruno Haible  <bruno@clisp.org>
85348
85349         * gnulib-tool (func_import, func_create_testdir,
85350         func_create_megatestdir): Quote all autoconf macro arguments.
85351
85352 2005-08-24  Bruno Haible  <bruno@clisp.org>
85353
85354         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
85355         option --force, because --force causes the aclocal.m4 of each
85356         subdirectory to be newer than the corresponding config.h.in.
85357
85358 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85359
85360         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
85361         All contents moved to gl_REGEX.
85362         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
85363         assume that it does.
85364
85365 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85366
85367         * lib/regex.h (REG_NOSYS)
85368         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
85369         Define, since POSIX requires it as of 2001.
85370         (_REG_ENOSYS)
85371         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
85372         New private symbol, used to keep the enum signed in all cases.
85373         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
85374         Youngman in
85375         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
85376
85377         * lib/regex_internal.c (re_string_skip_chars, register_state):
85378         (calc_state_hash):
85379         Remove forward decls; no longer needed now that we use prototypes.
85380         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
85381         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
85382         (clean_state_log_if_needed): Likewise.
85383
85384 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
85385
85386         * config/srclist.txt: Add glibc bugs 1231-1233.
85387
85388 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85389
85390         Fix problems reported by Sam Steingold in
85391         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
85392         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
85393         assumed that reg_errcode_t is a signed type, which is not
85394         necessarily true if _XOPEN_SOURCE is not defined.
85395         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
85396         since some compilers warn about it otherwise.
85397
85398 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85399
85400         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
85401         (init_word_char, create_initial_state, duplicate_node_closure):
85402         (fetch_token, peek_token_bracket, build_range_exp):
85403         (build_collating_symbol): Remove forward decls; no longer needed
85404         now that we use prototypes.
85405
85406         * lib/regcomp.c:
85407         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
85408         (re_compile_fastmap_iter, regcomp, regerror, regfree):
85409         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
85410         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
85411         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
85412         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
85413         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
85414         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
85415         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
85416         (build_range_exp, build_collating_symbol, parse_bracket_exp):
85417         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
85418         (build_charclass, build_charclass_op, fetch_number, create_tree):
85419         (create_token_tree, mark_opt_subexp, duplicate_tree):
85420         Use prototypes rather than old-style definitions.
85421
85422         * lib/regex_internal.c:
85423         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
85424         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
85425         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
85426         (re_string_reconstruct, re_string_peek_byte_case):
85427         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
85428         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
85429         (re_node_set_init_copy, re_node_set_add_intersect):
85430         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
85431         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
85432         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
85433         (re_acquire_state, re_acquire_state_context, register_state):
85434         (create_ci_newstate, create_cd_newstate, free_state):
85435         Likewise.
85436         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
85437         re_search_2):
85438         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
85439         (re_search_internal, prune_impossible_nodes):
85440         (acquire_init_state_context, check_matching, static):
85441         (check_halt_node_context, check_halt_state_context, proceed_next_node):
85442         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
85443         (update_regs, sift_states_backward, build_sifted_states):
85444         (clean_state_log_if_needed, merge_state_array):
85445         (update_cur_sifted_state, add_epsilon_src_nodes):
85446         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
85447         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
85448         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
85449         (find_recover_state, check_subexp_matching_top, transit_state_mb):
85450         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
85451         (check_arrival, check_arrival_add_next_nodes):
85452         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
85453         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
85454         (check_node_accept_bytes, check_node_accept, extend_buffers):
85455         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
85456         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
85457         (sift_ctx_init):
85458         Likewise.
85459
85460         * lib/regex_internal.h:
85461         (re_string_allocate, re_string_construct, re_string_reconstruct):
85462         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
85463         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
85464         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
85465         (re_string_context_at, re_string_peek_byte_case):
85466         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
85467         is defined, since we now use prototypes always.
85468
85469         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
85470         C89 or better.  All uses removed.
85471
85472 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
85473
85474         * config/srclist.txt: Add glibc bugs 1220-1227.
85475
85476 2005-08-20  Jim Meyering  <jim@meyering.net>
85477
85478         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
85479         of unused local, dfa.
85480
85481 2005-08-20  Bruno Haible  <bruno@clisp.org>
85482
85483         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
85484
85485 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85486
85487         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
85488         (re_node_set_insert_last, re_dfa_add_node):
85489         Rename local variables to avoid GCC shadowing warnings.
85490
85491 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85492
85493         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
85494         [defined lint]: Suppress bogus uninitialized-variable warnings.
85495
85496         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
85497         and let the caller return REG_ESPACE if out of space.  This
85498         removes an uninitialied-variable warning with GCC 4.0.1, and also
85499         avoids taking the address of a local variable.  All callers
85500         changed.
85501
85502 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
85503
85504         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
85505         $LIBCSRC/posix/regexec.c.
85506         Add glibc bug 1217 for regcomp.c.
85507
85508 2005-08-19  Jim Meyering  <jim@meyering.net>
85509
85510         * lib/regexec.c (proceed_next_node): Redo local variables to
85511         avoid GCC shadowing warnings.
85512
85513 2005-08-18  Bruno Haible  <bruno@clisp.org>
85514
85515         * lib/strstr.c (strstr): Fix return value in multibyte case.
85516         * lib/strcasestr.c (strcasestr): Likewise.
85517
85518 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
85519
85520         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
85521
85522 2005-08-17  Jim Meyering  <jim@meyering.net>
85523
85524         Make the %s format (seconds since the epoch) work for a negative
85525         number and when used with a zero-padded field width, e.g. %015s.
85526
85527         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
85528         label so that it precedes the code to set `digits'.  Otherwise,
85529         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
85530         print `00-22'.  Now, it prints `-0022', as it should.
85531
85532 2005-08-17  Bruno Haible  <bruno@clisp.org>
85533
85534         * modules/strstr (Files): Add m4/mbrtowc.m4.
85535         (Depends-on): Add mbuiter.
85536
85537 2005-08-17  Bruno Haible  <bruno@clisp.org>
85538
85539         * modules/strcasestr: New file.
85540         * MODULES.html.sh (String handling, based on ANSI C 89): Add
85541         strcasestr.
85542
85543 2005-08-17  Bruno Haible  <bruno@clisp.org>
85544
85545         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
85546
85547 2005-08-17  Bruno Haible  <bruno@clisp.org>
85548
85549         * modules/mbuiter: New file.
85550         * MODULES.html.sh (Extended multibyte and wide character utilities):
85551         Add mbuiter.
85552
85553 2005-08-17  Bruno Haible  <bruno@clisp.org>
85554
85555         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
85556         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
85557
85558 2005-08-17  Bruno Haible  <bruno@clisp.org>
85559
85560         * m4/strcasestr.m4: New file.
85561
85562 2005-08-17  Bruno Haible  <bruno@clisp.org>
85563
85564         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
85565         * lib/strstr.c: Completely rewritten, with multibyte locale support.
85566
85567 2005-08-17  Bruno Haible  <bruno@clisp.org>
85568
85569         * lib/strcasestr.h: New file.
85570         * lib/strcasestr.c: New file.
85571
85572 2005-08-17  Bruno Haible  <bruno@clisp.org>
85573
85574         * lib/strcasecmp.c: Use mbuiter.h.
85575
85576 2005-08-17  Bruno Haible  <bruno@clisp.org>
85577
85578         * lib/mbuiter.h: New file.
85579
85580 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
85581
85582         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
85583         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
85584         and gl_GETOPT are both invoked via different paths (as happens
85585         with GNU tar CVS because it uses both argp and getopt), the former
85586         wins.
85587
85588 2005-08-16  Bruno Haible  <bruno@clisp.org>
85589
85590         * modules/tls: New file.
85591         * MODULES.html.sh (Multithreading): Add tls.
85592
85593 2005-08-16  Bruno Haible  <bruno@clisp.org>
85594
85595         * modules/strnlen1: New file.
85596         * MODULES.html.sh (String handling): Add strnlen1.
85597
85598 2005-08-16  Bruno Haible  <bruno@clisp.org>
85599
85600         * modules/strcase (Files): Add m4/mbrtowc.m4.
85601         (Depends-on): Add strnlen1, mbchar.
85602
85603 2005-08-16  Bruno Haible  <bruno@clisp.org>
85604
85605         * modules/mbiter: New file.
85606         * MODULES.html.sh (Extended multibyte and wide character utilities):
85607         Add mbiter.
85608
85609 2005-08-16  Bruno Haible  <bruno@clisp.org>
85610
85611         * modules/mbfile: New file.
85612         * MODULES.html.sh (Extended multibyte and wide character utilities):
85613         Add mbfile.
85614
85615 2005-08-16  Bruno Haible  <bruno@clisp.org>
85616
85617         * modules/mbchar: New file.
85618         * MODULES.html.sh (Extended multibyte and wide character utilities):
85619         New section.
85620
85621 2005-08-16  Bruno Haible  <bruno@clisp.org>
85622
85623         * m4/tls.m4: New file, from GNU gettext.
85624
85625 2005-08-16  Bruno Haible  <bruno@clisp.org>
85626
85627         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
85628         always.
85629         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
85630
85631 2005-08-16  Bruno Haible  <bruno@clisp.org>
85632
85633         * m4/mbiter.m4: New file.
85634
85635 2005-08-16  Bruno Haible  <bruno@clisp.org>
85636
85637         * m4/mbfile.m4: New file.
85638
85639 2005-08-16  Bruno Haible  <bruno@clisp.org>
85640
85641         * m4/mbchar.m4: New file.
85642
85643 2005-08-16  Bruno Haible  <bruno@clisp.org>
85644
85645         * lib/tls.h: New file, from GNU gettext.
85646         * lib/tls.c: New file, from GNU gettext.
85647
85648 2005-08-16  Bruno Haible  <bruno@clisp.org>
85649
85650         * lib/strnlen1.h: New file.
85651         * lib/strnlen1.c: New file.
85652
85653 2005-08-16  Bruno Haible  <bruno@clisp.org>
85654
85655         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
85656         (mbi_init): Update.
85657         (mbi_avail, mbi_advance): Let the iteration end before the terminating
85658         NUL byte, not after it.
85659
85660 2005-08-16  Bruno Haible  <bruno@clisp.org>
85661
85662         * lib/strcase.h (strcasecmp): Add note in comments.
85663         * lib/strncasecmp.c: Use code from strcasecmp.c.
85664         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
85665         (strcasecmp): Work correctly in multibyte locales.
85666
85667 2005-08-16  Bruno Haible  <bruno@clisp.org>
85668
85669         * lib/mbiter.h: New file.
85670
85671 2005-08-16  Bruno Haible  <bruno@clisp.org>
85672
85673         * lib/mbfile.h: New file.
85674
85675 2005-08-16  Bruno Haible  <bruno@clisp.org>
85676
85677         * lib/mbchar.h: New file.
85678         * lib/mbchar.c: New file.
85679
85680 2005-08-16  Bruno Haible  <bruno@clisp.org>
85681
85682         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
85683         the valid ones. Makes the comparison operations transitive:
85684         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
85685         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
85686
85687 2005-08-15  Simon Josefsson  <jas@extundo.com>
85688
85689         * modules/ssize_t (License): Change to 'unlimited'.
85690
85691         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
85692
85693 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
85694
85695         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
85696         Add comments for each pending glibc patch.
85697
85698 2005-08-15  Bruno Haible  <bruno@clisp.org>
85699
85700         * lib/regex.h (__restrict_arr): Don't define to __restrict if
85701         __cplusplus is defined.
85702
85703 2005-08-14  Jim Meyering  <jim@meyering.net>
85704
85705         Sync from coreutils.
85706
85707         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
85708         Use the hash-table-based cycle-detection code not just when
85709         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
85710         Reported by James Youngman in
85711         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
85712         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
85713         FTS_TIGHT_CYCLE_CHECK.
85714         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
85715         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
85716         once again.
85717         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
85718         * lib/fts.c (fd_safer): Remove decl.
85719         Include fcntl--.h rather than unistd-safer.h
85720         (fts_safe_changedir): Don't call fd_safer; no longer needed
85721         now that we include fcntl--.h.
85722
85723 2005-08-12  Simon Josefsson  <jas@extundo.com>
85724
85725         * modules/getndelim2: Use ssize_t module.
85726         * modules/getnline: Likewise.
85727         * modules/safe-read: Likewise.
85728         * modules/xreadlink: Likewise.
85729
85730         * modules/ssize_t: New file.
85731
85732 2005-08-12  Simon Josefsson  <jas@extundo.com>
85733
85734         * m4/readline.m4: Look for termcap, curses or ncurses if required.
85735
85736 2005-08-12  Simon Josefsson  <jas@extundo.com>
85737
85738         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85739         ssize_t.
85740
85741 2005-08-12  Simon Josefsson  <jas@extundo.com>
85742
85743         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
85744         readline, getdelim and check_version.
85745         (Support for systems lacking ISO C 99: Sizes of integer types):
85746         Add size_max.
85747
85748 2005-08-12  Bruno Haible  <bruno@clisp.org>
85749
85750         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
85751
85752 2005-08-11  Simon Josefsson  <jas@extundo.com>
85753
85754         * modules/readline: New file.
85755
85756         * modules/strnlen (Files): Add strnlen.h.
85757
85758 2005-08-11  Simon Josefsson  <jas@extundo.com>
85759
85760         * m4/readline.m4: New file.
85761
85762 2005-08-11  Simon Josefsson  <jas@extundo.com>
85763
85764         * lib/readline.h, readline.c: New file.
85765
85766 2005-08-11  Simon Josefsson  <jas@extundo.com>
85767
85768         * doc/gnulib.texi (Initial import, Finishing touches): Mention
85769         gl_AVOID.
85770
85771 2005-08-11  Bruno Haible  <bruno@clisp.org>
85772
85773         * lib/strnlen.h (strnlen): Change parameter name to match comment.
85774
85775 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
85776
85777         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
85778
85779 2005-08-10  Simon Josefsson  <jas@extundo.com>
85780
85781         * tests/test-iconvme.c: New file.
85782
85783 2005-08-10  Simon Josefsson  <jas@extundo.com>
85784
85785         * m4/strnlen.m4: New file.
85786
85787         * m4/strndup.m4: Don't check for strnlen declaration, done in
85788         strnlen.m4.
85789
85790 2005-08-10  Simon Josefsson  <jas@extundo.com>
85791
85792         * lib/strndup.c: Use strnlen.h.
85793
85794         * lib/strnlen.h: New file.
85795
85796 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
85797
85798         * README: Typos.
85799
85800 2005-08-02  Simon Josefsson  <jas@extundo.com>
85801
85802         * modules/readline: New file.
85803
85804 2005-08-02  Simon Josefsson  <jas@extundo.com>
85805
85806         * modules/getdelim: New file.
85807
85808         * modules/getline: Rewrite, don't use getndelim2.
85809
85810 2005-08-02  Simon Josefsson  <jas@extundo.com>
85811
85812         * m4/getline.m4: Separate out getdelim stuff into separate module.
85813
85814         * m4/getdelim.m4: New file.
85815
85816 2005-08-02  Simon Josefsson  <jas@extundo.com>
85817
85818         * lib/getline.h, getline.c: Rewrite.
85819
85820         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85821
85822 2005-07-31  Bruno Haible  <bruno@clisp.org>
85823
85824         * lib/lock.h (gl_lock_initializer): New macro.
85825         (gl_lock_define_initialized): Use it.
85826         (gl_rwlock_initializer): New macro.
85827         (gl_rwlock_define_initialized): Use it.
85828         (gl_recursive_lock_initializer): New macro.
85829         (gl_recursive_lock_define_initialized): Use it.
85830
85831 2005-07-30  Karl Berry  <karl@gnu.org>
85832
85833         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85834         Report from Ben Pfaff, regarding getopt.
85835
85836 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85837
85838         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85839         normal way.
85840         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85841         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85842         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85843         (gl_GETOPT): Use the new macros.  Most of the implementation
85844         is moved to the new macros.  This is for programs like Emacs
85845         that don't want all the functionality of gl_GETOPT.
85846
85847 2005-07-26  Bruno Haible  <bruno@clisp.org>
85848
85849         * m4/lock.m4: Update from GNU gettext.
85850
85851 2005-07-26  Bruno Haible  <bruno@clisp.org>
85852
85853         * lib/lock.h: Update from GNU gettext.
85854         * lib/lock.c: Update from GNU gettext.
85855
85856 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85857
85858         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85859         obsolescent AC_TRY_RUN.  Include the default includes files, for
85860         'exit'.
85861
85862 2005-07-24  Bruno Haible  <bruno@clisp.org>
85863
85864         * modules/visibility: New file.
85865         * MODULES.html.sh (Misc): Add visibility.
85866
85867 2005-07-24  Bruno Haible  <bruno@clisp.org>
85868
85869         * m4/visibility.m4: New file.
85870
85871 2005-07-24  Bruno Haible  <bruno@clisp.org>
85872
85873         * doc/visibility.texi: New file.
85874
85875 2005-07-22  Bruno Haible  <bruno@clisp.org>
85876
85877         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85878         $(ALLOCA_H), redundant through BUILT_SOURCES.
85879         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85880         redundant through BUILT_SOURCES.
85881         * modules/byteswap (Makefile.am): Remove explicit dependency on
85882         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85883         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85884         $(FNMATCH_H), redundant through BUILT_SOURCES.
85885         * modules/getopt (Makefile.am): Remove explicit dependency on
85886         $(GETOPT_H), redundant through BUILT_SOURCES.
85887         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85888         redundant through BUILT_SOURCES.
85889         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85890         redundant through BUILT_SOURCES.
85891         * modules/stdbool (Makefile.am): Remove explicit dependency on
85892         $(STDBOOL_H), redundant through BUILT_SOURCES.
85893         * modules/stdint (Makefile.am): Remove explicit dependency on
85894         $(STDINT_H), redundant through BUILT_SOURCES.
85895         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85896         Remove explicit dependency on $(SYSEXITS_H).
85897         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85898
85899 2005-07-18  Simon Josefsson  <jas@extundo.com>
85900
85901         * lib/check-version.c (check_version): Accept identical versions too.
85902
85903 2005-07-18  Bruno Haible  <bruno@clisp.org>
85904
85905         * modules/lock: New file.
85906         * MODULES.html.sh (Multithreading): New section.
85907
85908 2005-07-18  Bruno Haible  <bruno@clisp.org>
85909
85910         * m4/lock.m4: New file, from GNU gettext.
85911
85912 2005-07-18  Bruno Haible  <bruno@clisp.org>
85913
85914         * lib/lock.h: New file, from GNU gettext.
85915         * lib/lock.c: New file, from GNU gettext.
85916
85917 2005-07-18  Bruno Haible  <bruno@clisp.org>
85918
85919         * lib/lock.h (gl_once_t): New type.
85920         (gl_once_define, gl_once): New macros.
85921         * lib/lock.c (fresh_once): New variable.
85922         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85923         functions.
85924
85925 2005-07-16  Simon Josefsson  <jas@extundo.com>
85926
85927         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85928         workaround, suggested by Bruno.
85929
85930 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85931
85932         * modules/xalloc (Depends-on): Add xalloc-die.
85933         * modules/xvasprintf (Depends-on): Add xalloc-die.
85934
85935 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85936
85937         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85938         with a minor change.
85939
85940 2005-07-15  Bruno Haible  <bruno@clisp.org>
85941
85942         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85943         When using lib/poll.c, define poll as rpl_poll.
85944
85945 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85946
85947         * modules/argp (Depends-on): Remove unlocked-io.
85948
85949 2005-07-14  Derek Price  <derek@ximbiot.com>
85950
85951         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85952         for glob symlink bug.
85953
85954 2005-07-14  Bruno Haible  <bruno@clisp.org>
85955
85956         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85957         Instead, test for *_unlocked function declarations directly.
85958
85959 2005-07-11  Simon Josefsson  <jas@extundo.com>
85960
85961         * modules/size_max: New file.
85962
85963         * modules/xsize: Depend on size_max module for size_max.m4.
85964
85965 2005-07-11  Simon Josefsson  <jas@extundo.com>
85966
85967         * lib/size_max.h: New file.
85968
85969 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85970
85971         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85972         copyright symbol and the year.
85973         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85974         (version_etc_va): Use parameterized copyright notice.
85975         Reword to conform to the current GNU coding standards.
85976
85977 2005-07-11  Karl Berry  <karl@gnu.org>
85978
85979         * doc/gnulib.texi (Quoting): new node.
85980         (Initial import): more info, from Patrice.
85981
85982 2005-07-11  Bruno Haible  <bruno@clisp.org>
85983
85984         * gnulib-tool (func_usage): Document option --avoid.
85985         (Command line options): Handle --avoid.
85986         (func_acceptable): New function.
85987         (func_modules_transitive_closure): Use it.
85988
85989 2005-07-11  Bruno Haible  <bruno@clisp.org>
85990
85991         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85992         Reported by Jim Meyering.
85993
85994 2005-07-10  Bruno Haible  <bruno@clisp.org>
85995
85996         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85997         Needed when size_t is smaller than 'unsigned int'.
85998         Reported by Paul Eggert.
85999
86000 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86001
86002         * modules/argp (Depends-on): Add unlocked-io
86003
86004 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
86005
86006         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
86007         block of defines.
86008
86009 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
86010
86011         * config/srclist.txt: Comment out regcomp.c, since we have a porting
86012         fix now.
86013
86014 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
86015         and Paul Eggert  <eggert@cs.ucla.edu>
86016
86017         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
86018         in wint_t, not wchar_t.  Remove now-unnecessary cast.
86019
86020 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86021
86022         * modules/regex (Files): Add lib/regex_internal.c,
86023         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
86024         (Depends-on): Add extensions.
86025         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
86026
86027 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86028
86029         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
86030         pathconf.
86031         * m4/same.m4 (gl_SAME): Likewise.
86032         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
86033
86034         * m4/regex.m4: Adjust to new libc regex implementation.
86035         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
86036         all the .c and .h parts of (the new) regex.
86037         Quote the m4 stuff better.
86038         Check for RE_ICASE bug of old gnulib.
86039         Check for REG_STARTEND of recent libc.
86040         Rename local variables from jm_* to gl_*.
86041         Quote operand of "test -f".
86042         Say "recent enough" version of libc, not "version 2".
86043         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
86044         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
86045         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
86046         Remove check for btowc, isascii.
86047         Require AM_LANGINFO_CODESET.
86048
86049 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86050
86051         * lib/regex.c, regex.h: Sync from libc.
86052         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
86053         * lib/regexec.c:
86054         New files, synced from libc, except that regex_internal.h
86055         currently has a small porting fix.
86056
86057 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
86058
86059         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
86060         regex_internal.c, regexec.c.
86061         Add regex_internal.h too, but as a comment, since the libc version
86062         is currently broken in gnulib mode.
86063
86064 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
86065
86066         Support programs like Emacs that use gnulib but not gettext.
86067         * MODULES.html.sh (Internationalization functions): Add gettext-h.
86068         * modules/gettext-h: New file.
86069         * modules/gettext (Files): Remove lib/gettext.h.
86070         (Depends-on): Add gettext-h.
86071         (Makefile.am): Remove lib_SOURCES.
86072         * modules/argmatch, modules/c-stack, modules/closeout:
86073         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
86074         * modules/execute, modules/file-type, modules/getaddrinfo:
86075         * modules/getopt, modules/human, modules/javacomp:
86076         * modules/javaexec, modules/mkdir-p, modules/obstack:
86077         * modules/openat, modules/pagealign_alloc, modules/pipe:
86078         * modules/quotearg, modules/regex, modules/rpmatch:
86079         * modules/unicodeio, modules/userspec, modules/version-etc:
86080         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
86081         * modules/xsetenv:
86082         Depend on gettext-h, not gettext.
86083
86084 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
86085
86086         * gnulib-tool (func_import): Add support for 'public domain' license.
86087         * modules/alloca, modules/atexit, modules/memmove:
86088         Now public domain, not GPL.
86089         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
86090         * modules/realloc, modules/strerror, modules/strtod:
86091         Now LGPL, not GPL.
86092
86093 2005-07-05  Bruno Haible  <bruno@clisp.org>
86094
86095         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
86096         autoconf CVS. Needed for mingw.
86097
86098 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86099
86100         Remove the dependency of the strftime module on the tzset module.
86101         * modules/strftime (Depends-on): Remove dependency on tzset.
86102
86103 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86104
86105         Remove the dependency of the strftime module on the tzset module.
86106         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
86107         gl_FUNC_TZSET_CLOBBER.
86108
86109 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
86110
86111         Remove the dependency of the strftime module on the tzset module.
86112         * lib/strftime.c (my_strftime)
86113         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
86114         Copy the input structure, to work around some of the bug with
86115         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
86116         Solaris releases, you should also use the tzset module, but we won't
86117         require it as a dependency any more since we don't want LGPLed code
86118         to depend on GPLed code.
86119
86120 2005-07-02  Jim Meyering  <jim@meyering.net>
86121
86122         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
86123         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
86124         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
86125         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
86126
86127 2005-07-02  Jim Meyering  <jim@meyering.net>
86128
86129         * lib/backupfile.c (backup_args): Change a `0' to NULL.
86130
86131 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
86132
86133         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
86134         declares only 'struct timespec;' (!).
86135
86136 2005-07-01  Jim Meyering  <jim@meyering.net>
86137
86138         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
86139         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
86140         * lib/save-cwd.c, tempname.c:
86141         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
86142         and don't include <sys/file.h>).
86143
86144 2005-06-29  Jim Meyering  <jim@meyering.net>
86145
86146         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
86147         type name.  Use the variable name instead.
86148         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
86149         Likewise.
86150
86151 2005-06-28  Simon Josefsson  <jas@extundo.com>
86152
86153         * modules/check-version (Files): Add check-version.m4.
86154
86155 2005-06-28  Simon Josefsson  <jas@extundo.com>
86156
86157         * m4/check-version.m4: New file, suggested by Jim Meyering
86158         <jim@meyering.net>.
86159
86160 2005-06-28  Simon Josefsson  <jas@extundo.com>
86161
86162         * lib/check-version.h, lib/check-version.c: New files.
86163
86164 2005-06-28  Simon Josefsson  <jas@extundo.com>
86165
86166         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
86167         collision with global variable.  Better indentation.  Don't
86168         increment buffer pointer beyond buffer end.  Based on comments
86169         from Paul Eggert <eggert@cs.ucla.edu>.
86170
86171         * lib/base64.h: Indent.
86172
86173 2005-06-28  Simon Josefsson  <jas@extundo.com>
86174
86175         * doc/gnulib.texi (Library version handling): New section.
86176
86177 2005-06-28  Jim Meyering  <jim@meyering.net>
86178
86179         * check-module (find_included_lib_files): Hard-code another
86180         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
86181         but modules/fts-lgpl (correctly) does not list those files.
86182
86183         * modules/canonicalize (Files): Add lib/pathmax.h.
86184
86185 2005-06-25  Simon Josefsson  <jas@extundo.com>
86186
86187         * modules/check-version: New file.
86188
86189 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
86190
86191         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
86192         initializer of struct addrinfo, as an indication that we don't
86193         care how many members the structure has.
86194
86195 2005-06-24  Derek Price  <derek@ximbiot.com>
86196         and Bruno Haible  <bruno@clisp.org>
86197
86198         Remove stat module & update lstat.
86199         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
86200         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86201         * m4/stat.m4: Remove this file.
86202
86203 2005-06-24  Derek Price  <derek@ximbiot.com>
86204         and Bruno Haible  <bruno@clisp.org>
86205
86206         Remove stat module & update lstat.
86207         * lib/stat.c: Remove this file...
86208         (slash_aware_lstat): ...moving this content and its support...
86209         * lib/lstat.c (rpl_lstat): ...into here.
86210         * lib/lstat.h: New file.
86211
86212 2005-06-24  Derek Price  <derek@ximbiot.com>
86213         and Bruno Haible  <bruno@clisp.org>
86214
86215         Remove stat module & update lstat.
86216         * config/srclist.txt (libc sources): Remove stat.
86217
86218 2005-06-24  Derek Price  <derek@ximbiot.com>
86219         and Bruno Haible  <bruno@clisp.org>
86220
86221         Remove stat module & update lstat.
86222         * MODULES.html.sh (stat): Remove.
86223         * MODULES.html: Regenerated.
86224         * modules/lstat (Description): Correct function name.
86225         (Files): Add "lstat.h".
86226         (Depends-on): Remove stat, add xalloc, stat-macros.
86227         * modules/stat: Remove this file.
86228         (Include): Add "lstat.h", remove <sys/stat.h>.
86229
86230 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
86231
86232         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
86233         (ranged_convert): Don't save conversion in a temporary struct.
86234         This causes a warning with GCC 4.0.0, and anyway in the typical
86235         case it's not worth the extra 100 bytes or so of code.
86236         (ranged_convert, __mktime_internal): When calling a function via a
86237         pointer P, use P () rather than (*P) (), as we now assume C89 or
86238         better.
86239
86240 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
86241
86242         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
86243         "who -r" failed to give output.  Problem reported by Tim Waugh.
86244
86245         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
86246         (xcalloc): Use it to avoid needless tests.
86247         Problem reported by Jim Meyering.
86248
86249 2005-06-20  Derek Price  <derek@ximbiot.com>
86250
86251         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
86252         unnecessary for Autoconfs > 2.59c.
86253
86254 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86255
86256         * lib/argp.h (__option_is_short): Check upper limit of
86257         __key. Isprint() requires its argument to have the value
86258         of an unsigned char or EOF.
86259
86260 2005-06-16  Jim Meyering  <jim@meyering.net>
86261
86262         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
86263         when either N or S is zero.
86264
86265 2005-06-16  Derek Price  <derek@ximbiot.com>
86266
86267         * m4/bison.m4: Declare YACC & YFLAGS precious.
86268
86269 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
86270
86271         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
86272         multibyte string or pattern, fall back on unibyte matching.
86273         Problem reported by James Youngman.
86274
86275 2005-06-08  Bruno Haible  <bruno@clisp.org>
86276
86277         * modules/csharpcomp: New file.
86278         * MODULES.html.sh (C#): Add csharpcomp.
86279
86280 2005-06-08  Bruno Haible  <bruno@clisp.org>
86281
86282         * m4/csharpcomp.m4: New file, from GNU gettext.
86283
86284 2005-06-08  Bruno Haible  <bruno@clisp.org>
86285
86286         * lib/csharpcomp.h: New file, from GNU gettext.
86287         * lib/csharpcomp.c: New file, from GNU gettext.
86288         * lib/csharpcomp.sh.in: New file, from GNU gettext.
86289
86290 2005-06-08  Bruno Haible  <bruno@clisp.org>
86291
86292         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
86293         warning on mingw.
86294
86295 2005-06-07  Derek Price  <derek@ximbiot.com>
86296
86297         Sync from CVS.
86298         * lib/glob_.h: Indent nested #ifdef.
86299
86300 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86301
86302         Sync from coreutils.
86303         Use "file name" when talking about file names, instead of "filename"
86304         or "path", as per the GNU coding standards.
86305         * lib/mkdir-p.c: Renamed from makepath.c.
86306         (make_dir_parents): Renamed from make_path.  All callers changed.
86307         * lib/mkdir-p.h: Likewise.  All includers changed.
86308         * lib/filenamecat.c: Renamed from path-concat.c.
86309         (file_name_concat): Renamed from path_concat.  All callers changed.
86310         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
86311         * lib/filenamecat.h: Likewise.  All includers changed.
86312         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
86313         in comments or local variable names.
86314         * lib/basename.c: Likewise.
86315         * lib/canonicalize.c, canonicalize.h: Likewise.
86316         * lib/dirname.c, dirname.h: Likewise.
86317         * lib/euidaccess.c: Likewise.
86318         * lib/exclude.c: Likewise
86319         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
86320         * lib/fsusage.c, fsuage.h: Likewise.
86321         * lib/fts.c, fts_.h: Likewise.
86322         * lib/getcwd.c: Likewise.
86323         * lib/getloadavg.c: Likewise.
86324         * lib/mkstemp.c: Likewise.
86325         * lib/mountlist.c, mountlist.h: Likewise.
86326         * lib/openat.c, openat.h: Likewise.
86327         * lib/readlink-stub.c: Likewise.
86328         * lib/readutmp.c, readutmp.h: Likewise.
86329         * lib/rename.c: Likewise.
86330         * lib/rmdir.c: Likewise.
86331         * lib/same.c: Likewise.
86332         * lib/savedir.c: Likewise.
86333         * lib/stripslash.c: Likewise.
86334         * lib/tempname.c: Likewise.
86335         * lib/xreadlink.c: Likewise.
86336         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
86337         All uses changed.
86338         * lib/exclude.h: Likewise.
86339
86340         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
86341         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86342         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
86343         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86344         * lib/pathmax.h: Include <limits.h> unconditionally, since other
86345         files have been getting away with it for years (MORE/BSD 4.3
86346         is extinct now).
86347         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
86348         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
86349
86350         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
86351         Define to 256, not 255, as per modern POSIX.
86352
86353 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86354
86355         Sync from coreutils.
86356         Use "file name" when talking about file names, instead of "filename"
86357         or "path", as per the GNU coding standards.
86358         * MODULES.html.sh: mkdir-p renamed from makepath.
86359         filenamecat renamed from path-concat.
86360         * modules/filenamecat: Renamed from modules/path-concat.
86361         (Files): filenamecat.h and filenamecat.c renamed from
86362         path-concat.h and path-concat.c.
86363         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
86364         (Include): filenamecat.h, not path-concat.h.
86365         * modules/mkdir-p: Renamed from modules/makepath.
86366         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
86367         makepath.c.
86368         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
86369         (Include): mkdir-p.h, not makepath.h.
86370
86371 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
86372
86373         Sync from coreutils.
86374         * m4/mkdir-p.m4: Renamed from makepath.m4.
86375         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
86376         Rename files from makepath.c to mkdir-p.c, and from
86377         makepath.h to mkdir-p.h.
86378         * m4/filenamecat.m4: Renamed from path-concat.m4.
86379         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
86380         Rename files from path-concat.c to filenamecat.c,
86381         and from path-concat.h to filenamecat.h.
86382         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
86383         "file name" in local variables or comments.
86384         * m4/rename.m4: Likewise.
86385
86386 2005-06-01  Bruno Haible  <bruno@clisp.org>
86387
86388         * modules/csharpexec: New file.
86389         * MODULES.html.sh (C#): New section.
86390
86391 2005-06-01  Bruno Haible  <bruno@clisp.org>
86392
86393         * m4/csharp.m4: New file, from GNU gettext.
86394         * m4/csharpexec.m4: New file, from GNU gettext.
86395
86396 2005-06-01  Bruno Haible  <bruno@clisp.org>
86397
86398         * lib/csharpexec.h: New file, from GNU gettext.
86399         * lib/csharpexec.c: New file, from GNU gettext.
86400         * lib/csharpexec.sh.in: New file, from GNU gettext.
86401
86402 2005-05-31  Derek Price  <derek@ximbiot.com>
86403             Paul Eggert  <eggert@cs.ucla.edu>
86404
86405         Sync from cvs.
86406         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86407
86408 2005-05-31  Derek Price  <derek@ximbiot.com>
86409             Paul Eggert  <eggert@cs.ucla.edu>
86410
86411         Sync from cvs.
86412         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
86413
86414 2005-05-29  Derek Price  <derek@ximbiot.com>
86415
86416         * config/srclist.txt (glob_.h, glob.c): Add these files.
86417
86418 2005-05-29  Derek Price  <derek@ximbiot.com>
86419
86420         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
86421         * modules/glob: New file.
86422         * modules/getlogin_r: Add link to POSIX spec in description.
86423
86424 2005-05-29  Derek Price  <derek@ximbiot.com>
86425             Paul Eggert  <eggert@cs.ucla.edu>
86426
86427         * m4/glob.m4: New file.
86428
86429 2005-05-29  Derek Price  <derek@ximbiot.com>
86430             Paul Eggert  <eggert@cs.ucla.edu>
86431
86432         * lib/glob_.h, lib/glob.c: New files.
86433
86434 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86435
86436         * modules/fts (Files): Remove m4/inttypes-pri.m4.
86437         * modules/fts-lgpl (Depends-on): Remove gettext.
86438
86439 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86440
86441         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
86442         and don't require gt_INTTYPES_PRI.
86443
86444 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
86445
86446         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
86447
86448         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
86449         the configuration hassle isn't worth it.
86450         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
86451         (LONGEST_MODIFIER, PRIuMAX): Remove.
86452
86453 2005-05-27  Bruno Haible  <bruno@clisp.org>
86454
86455         * lib/getlogin_r.h: Remove second include of <stddef.h>.
86456
86457 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
86458
86459         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
86460         _POSIX_PTHREAD_SEMANTICS for Solaris.
86461
86462 2005-05-25  Derek Price  <derek@ximbiot.com>
86463
86464         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
86465
86466 2005-05-25  Derek Price  <derek@ximbiot.com>
86467             Paul Eggert  <eggert@cs.ucla.edu>
86468
86469         * modules/getlogin_r, m4/getlogin_r.m4: New files.
86470         * lib/getlogin_r.c, getlogin_r.h: New files.
86471
86472 2005-05-25  Bruno Haible  <bruno@clisp.org>
86473             Derek Price  <derek@ximbiot.com>
86474
86475         * lib/getlogin_r.h: Simplify API documentation.
86476
86477 2005-05-23  Derek Price  <derek@ximbiot.com>
86478
86479         * modules/minmax (Files): Add m4/minmax.m4.
86480         (configure.ac): Add gl_MINMAX.
86481
86482 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
86483
86484         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
86485         so that unistd-safer.h (GPL'ed code) need not be included.
86486
86487 2005-05-22  Bruno Haible  <bruno@clisp.org>
86488
86489         * m4/minmax.m4: New file.
86490         Based on a patch by Derek Price <derek@ximbiot.com>.
86491
86492 2005-05-22  Bruno Haible  <bruno@clisp.org>
86493
86494         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
86495         (INT64_MIN): Fix definition.
86496         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
86497
86498         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
86499         NEED_SIGNED_INT_TYPES.
86500
86501         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
86502         HAVE_SYSTEM_INTTYPES.
86503
86504 2005-05-22  Bruno Haible  <bruno@clisp.org>
86505
86506         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
86507         Also include <sys/param.h> if it defines MIN, MAX.
86508         Based on a patch by Derek Price <derek@ximbiot.com>.
86509
86510 2005-05-21  Jim Meyering  <jim@meyering.net>
86511
86512         * modules/fts (Files): Add m4/inttypes-pri.m4.
86513         (Depends-on): Add lstat and remove gettext.  Alphabetize.
86514
86515 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86516
86517         New fts module.
86518         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
86519         (setup_dir, free_dir): New functions.
86520         (enter_dir, leave_dir): Define trivial
86521         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
86522         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
86523         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
86524         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
86525         Move to fts-cycle.c.
86526         (fts_open): Use setup_dir.
86527         (fts_close): Use free_dir.
86528         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
86529         This adds a label and some gotos, but the alternatives were messier.
86530         Check for memory allocation failure when entering a dir.
86531         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
86532         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
86533         (FTS): New member fts_cycle, that is a union that contains the
86534         old active_dir_ht and cycle_state.  All uses changed to mention
86535         fts_cycle.ht and fts_cycle.state.
86536         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
86537         fts.c, with the following changes:
86538         (setup_dir, free_dir): New functions.
86539         (enter_dir): Now returns bool.  Return true if successful, false
86540         if memory exhausted.  All callers changed.
86541         Do not bother partly cleaning up on
86542         memory allocation failure; that is free_dir's job.
86543         However, free ad if hash_insert fails, to avoid memory leak.
86544         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
86545         fts->fts_options to see which union member to use.
86546
86547 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86548
86549         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
86550         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
86551
86552 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
86553
86554         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
86555
86556 2005-05-20  Jim Meyering  <jim@meyering.net>
86557
86558         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
86559         Now a macro, to pacify GCC.
86560
86561 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86562
86563         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
86564         of -1.
86565
86566 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
86567
86568         * lib/chown.c (rpl_chown): Return -1 on failure.
86569
86570 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86571
86572         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
86573         Don't check for stddef.h.
86574         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
86575         don't use its results.
86576         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
86577         since we include them unconditionally.  Don't require
86578         AM_STDBOOL_H, since stdbool is a prerequisite.
86579         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
86580         since we assume C89 or better.
86581         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
86582         as we don't use their results.
86583         Don't check for fchdir, memmove, memset, strrchr, as we use
86584         them unconditionally.
86585         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
86586         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
86587
86588 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
86589
86590         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
86591         Include <stddef.h> unconditionally, since we assume C89 now.
86592         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
86593         * lib/fts.c: Include fts_.h first, to check interface.
86594         Do not include intprops.h; no longer needed.
86595         Include cycle-check.h and hash.h, since fts_.h no longer does.
86596         Remove unnecessary casts of closedir to void.
86597         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
86598         decide whether to decrement nlinks.
86599         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
86600         (FTS): Use struct hash_table * instead of Hash_table, so that
86601         we no longer need to include hash.h here.
86602
86603 2005-05-18  Jim Meyering  <jim@meyering.net>
86604
86605         * modules/dirfd (License): Change to LGPL.  Most of the code
86606         is already in the public domain.
86607
86608 2005-05-18  Jim Meyering  <jim@meyering.net>
86609
86610         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
86611         Reported by Yoann Vandoorselaere.
86612
86613 2005-05-17  Jim Meyering  <jim@meyering.net>
86614
86615         * m4/fts.m4: New file, from coreutils.
86616
86617 2005-05-17  Jim Meyering  <jim@meyering.net>
86618
86619         * lib/fts.c, lib/fts_.h: New files, from coreutils.
86620
86621 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86622
86623         Sync from coreutils.
86624         * m4/unlinkdir.m4: New file.
86625
86626 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86627
86628         Sync from coreutils.
86629         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
86630         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
86631         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
86632         White space changes only.
86633         * lib/makepath.c (make_path): Port to hosts where leading "//" is
86634         special.
86635         * lib/yesno.c: Include getline.h, not ctype.h.
86636         (yesno): Don't remove leading white space; POSIX doesn't allow it.
86637         Use getline to remove arbitrary restriction on response length.
86638
86639 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
86640
86641         * config/srclist-update: Spell out "Street" in FSF postal
86642         mail address; this is the style the FSF seems to prefer.
86643
86644         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
86645         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
86646         this updates FSF postal mail address.
86647
86648         Sync from coreutils.
86649         * modules/unlinkdir: New file.
86650         * modules/yesno (Depends-on): Add getline.
86651         * MODULES.html.sh (File system functions): Add unlinkdir.
86652
86653 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86654
86655         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
86656         lib/strsep.h:
86657         Change the initial comment to refer to GPL, not LGPL.
86658         gnulib-tool will change it to LGPL as needed.
86659
86660         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
86661         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
86662         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
86663         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
86664         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
86665         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
86666         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
86667         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
86668         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
86669         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
86670         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
86671         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
86672         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
86673         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
86674         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
86675         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
86676         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
86677         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
86678         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
86679         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
86680         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
86681         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
86682         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
86683         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
86684         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
86685         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
86686         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
86687         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
86688         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
86689         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
86690         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
86691         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
86692         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
86693         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
86694         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
86695         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
86696         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
86697         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
86698         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
86699         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
86700         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
86701         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
86702         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
86703         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
86704         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
86705         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
86706         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
86707         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
86708         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
86709         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
86710         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
86711         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
86712         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
86713         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
86714         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
86715         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
86716         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
86717         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
86718         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
86719         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
86720         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
86721         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
86722         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
86723         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
86724         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
86725         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
86726         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
86727         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
86728         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
86729         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
86730         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
86731         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
86732         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
86733         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
86734         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
86735         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
86736         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
86737         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
86738         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
86739         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
86740         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
86741         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
86742         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
86743         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
86744         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
86745         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
86746         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
86747         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
86748         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
86749         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
86750         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
86751         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
86752         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
86753         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
86754         lib/yesno.c, lib/yesno.h:
86755         Update FSF postal mail address.
86756
86757 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
86758
86759         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
86760         tests/test-memmem.c, tests/test-stpncpy.c:
86761         Update FSF postal mail address.
86762
86763 2005-05-13  Bruno Haible  <bruno@clisp.org>
86764
86765         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
86766         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
86767         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
86768         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
86769         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
86770         Add support for 64-bit integers in the MSVC compiler.
86771
86772 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86773
86774         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
86775
86776 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
86777
86778         * gnulib-tool (func_import): Sort and uniquify recommended includes.
86779
86780 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
86781
86782         * doc/getdate.texi (General date syntax): Don't say that date
86783         date --iso-8601=ns generates acceptable dates; it doesn't yet.
86784         Problem reported by Nic Ferrier.
86785
86786 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86787
86788         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
86789         specified in ai_socktype. Fix invalid ai_protocol
86790         check. ai_protocol is usually set to 0 or depending on
86791         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
86792         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
86793         ai_socktype / ai_protocol in the returned addrinfo structure.
86794
86795 2005-05-10  Simon Josefsson  <jas@extundo.com>
86796
86797         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
86798         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
86799
86800 2005-05-10  Karl Berry  <karl@gnu.org>
86801
86802         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
86803         (from http://www.gnu.org/licenses).
86804         * doc/COPYING.LIB: also rename to COPYING.LESSER.
86805         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
86806         fdl.texi suffices.
86807
86808 2005-05-10  Karl Berry  <karl@gnu.org>
86809
86810         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86811         (COPYING.DOC): remove.
86812
86813         * config/srclist-update: new FSF address.
86814
86815 2005-05-10  Derek Price  <derek@ximbiot.com>
86816
86817         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86818         possible.
86819
86820 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86821             Bruno Haible  <bruno@clisp.org>
86822
86823         * modules/inet_ntop: New file.
86824         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86825         inet_ntop.
86826
86827 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86828             Bruno Haible  <bruno@clisp.org>
86829
86830         * m4/inet_ntop.m4: New file.
86831
86832 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86833             Bruno Haible  <bruno@clisp.org>
86834
86835         * lib/inet_ntop.h: New file.
86836         * lib/inet_ntop.c: New file, from glibc with modifications.
86837
86838 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86839
86840         * modules/time_r (License): Change to LGPL.
86841         * modules/extensions (License): Change to LGPL.  Actually,
86842         the license is more permissive than that, but currently gnulib-tool
86843         doesn't know how to handle more-permissive licenses.
86844
86845         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86846         Problem reported by Dave Love.
86847
86848 2005-05-08  Jim Meyering  <jim@meyering.net>
86849
86850         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86851         blank.
86852
86853 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86854
86855         * modules/argmatch (Depends-on): Add stdbool.
86856         * modules/backupfile (Depends-on): Likewise.
86857         * modules/chdir-long (Depends-on): Likewise.
86858         * modules/closeout (Depends-on): Likewise.
86859         * modules/cycle-check (Depends-on): Likewise.
86860         * modules/dirname (Depends-on): Likewise.
86861         * modules/fnmatch (Depends-on): Likewise.
86862         * modules/fsusage (Depends-on): Likewise.
86863         * modules/fwriteerror (Depends-on): Likewise.
86864         * modules/getcwd (Depends-on): Likewise.
86865         * modules/getloadavg (Depends-on): Likewise.
86866         * modules/hard-locale (Depends-on): Likewise.
86867         * modules/makepath (Depends-on): Likewise.
86868         * modules/mountlist (Depends-on): Likewise.
86869         * modules/nanosleep (Depends-on): Likewise.
86870         * modules/posixtm (Depends-on): Likewise.
86871         * modules/quotearg (Depends-on): Likewise.
86872         * modules/readtokens (Depends-on): Likewise.
86873         * modules/readtokens0 (Depends-on): Likewise.
86874         * modules/readutmp (Depends-on): Likewise.
86875         * modules/save-cwd (Depends-on): Likewise.
86876         * modules/strftime (Depends-on): Likewise.
86877         * modules/userspec (Depends-on): Likewise.
86878         * modules/utimecmp (Depends-on): Likewise.
86879         * modules/xgetcwd (Depends-on): Likewise.
86880         * modules/xnanosleep (Depends-on): Likewise.
86881         * modules/xstrtod (Depends-on): Likewise.
86882         * modules/yesno (Depends-on): Likewise.
86883
86884 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86885
86886         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86887         needless checks.
86888
86889 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86890
86891         Merge from coreutils.  Among other things,
86892         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86893         * lib/fd-safer.c: New file.
86894         * lib/fcntl-safer.h, open-safer.c: Remove.
86895         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86896         * lib/dup-safer.c: Include unistd-safer.h first.
86897         Don't include errno.h.
86898         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86899         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86900         * lib/file-type.c: Rely on file-type.h change.
86901         * lib/getloadavg.c: Include unistd-safer.h.
86902         (getloadavg): Use safer open.
86903         * lib/getusershell.c: Include "stdio-safer.h".
86904         (getusershell): Use safer fopen.
86905         * lib/long-options.c (long_options): Use NULL rather than 0.
86906         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86907         'free'.
86908         * lib/modechange.c: Likewise.
86909         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86910         (MODE_DONE): New constant.
86911         (struct mode_change): Remove 'next' member.
86912         (make_node_op_equals): New function; like the old one of the
86913         same name, except it allocates an array.
86914         (mode_compile, mode_create_from_ref): Use it.
86915         (mode_compile): Allocate result as an array, not a linked list.
86916         Parse octal string ourself, so that we catch mistakes like "+0".
86917         (mode_adjust): Arg is an array, not a linked list.
86918         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86919         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86920         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86921         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86922         Remove.  This is now stat-macros.h's job.
86923         (talloc): Remove.  All callers replaced by xalloc, so that
86924         our invokers don't have to worry about reporting memory failures.
86925         (make_node_op_equals): Remove.
86926         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86927         New constants.
86928         (struct mode_change): Moved here from modechange.h.
86929         (mode_append_entry): Remove.
86930         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86931         apps to have incorrect behavior.  Use simpler algorithm for head
86932         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86933         Detect more invalid usages rather than having somewhat-random behavior.
86934         Don't insert an "a=" action, as that leads to incorrect behavior.
86935         (mode_compile, mode_create_from_ref): Return NULL on error instead
86936         of an enum, since now there's only one way to have an error.  All
86937         callers changed.
86938         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86939         at the correct time.  Simplify calculation of "+u" and its ilk.
86940         Don't mishandle "+X".
86941         (mode_free): Remove "register" and localize decls.
86942         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86943         (struct mode_change): Move to modechange.c; callers don't
86944         need to see this stuff.
86945         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86946         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86947         (mode_change, mode_adjust): Reflect the new signatures noted above.
86948         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86949         that might redefine system include files.
86950         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86951         (my_usleep): Use NULL rather than (void *) 0.
86952         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86953         Use siginterrupt to specify that system calls should be interrupted.
86954         (rpl_nanosleep): Move initialization of suspended closer to call of
86955         my_usleep.
86956         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86957         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86958         (desirable_utmp_entry): New function.
86959         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86960         using x2nrealloc, to simplify logic.
86961         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86962         size calculation.  Do not assume utmp file is a regular file.
86963         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86964         (READ_UTMP_CHECK_PIDS): New constant.
86965         * lib/save-cwd.c: Include unistd-safer.h.
86966         (save_cwd): Use fd_safer.
86967         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86968         [!_LIBC] Include "stat-macros.h" instead.
86969         * lib/unistd-safer.h (fd_safer): New decl.
86970
86971 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86972
86973         * modules/getloadavg (Depends-on): Add unistd-safer.
86974         * modules/getusershell (Depends-on): Add stdio-safer.
86975         * modules/lstat (Depends-on): Remove xalloc.
86976         * modules/mkstemp (Depends-on): Add stat-macros.
86977         * modules/modechange (Depends-on): Remove xstrtol.
86978         Add stat-macros, xalloc.
86979         * modules/save-cwd (Depends-on): Add unistd-safer.
86980         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86981         * modules/unistd-safer (Files): Add lib/fd-safer.c
86982         (Makefile.am): Remove lib_SOURCES.
86983
86984         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86985         Remove fcntl-safer; unistd-safer supersedes it.
86986
86987 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86988
86989         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86990         AC_HEADER_STAT.
86991         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86992         (gl_PREREQ_CHOWN): Remove.
86993         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86994         it.  Don't require AC_HEADER_STAT.
86995         (gl_PREREQ_LSTAT): Remove.
86996         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86997         Don't require AC_HEADER_STAT.
86998         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86999         (gl_PREREQ_RMDIR): Remove.
87000         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
87001         mention stat-macros.h or AC_HEADER_STAT, since we'll make
87002         the stat-macros module a prerequisite.
87003         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
87004         * m4/filemode.m4 (gl_FILEMODE): Likewise.
87005         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
87006         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
87007         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
87008         variable names.
87009         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
87010         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
87011         variable prefixes.
87012         * m4/fcntl-safer.m4: Remove.
87013         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
87014         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
87015         Invoke gl_PREREQ_FD_SAFER.
87016         (gl_PREREQ_FD_SAFER): New macro.
87017         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
87018         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
87019         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
87020         Remove duplicate call to AC_LIBOBJ(readutmp).
87021         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
87022
87023         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
87024         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
87025
87026 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
87027
87028         * MODULES.html.sh (Misc): Add byteswap.
87029
87030 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87031
87032         * modules/getcwd (Depends-on): Add extensions.
87033         * modules/openat (Depends-on): Likewise.
87034
87035 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87036
87037         * modules/byteswap: New file.
87038
87039 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87040
87041         * m4/byteswap.m4: New file.
87042
87043 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
87044
87045         * lib/byteswap_.h: New file.
87046
87047 2005-04-25  Karl Berry  <karl@gnu.org>
87048
87049         * m4/gettext.m4: Update from GNU gettext 0.14.4.
87050
87051 2005-04-25  Albert Chin  <china@thewrittenword.com>
87052
87053         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
87054         Toolkit C bug.
87055
87056 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
87057
87058         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
87059         (func_ln_if_changed): Remove forcibly for no error message
87060         in case file does not exist.
87061
87062 2005-04-19  Simon Josefsson  <jas@extundo.com>
87063
87064         * gnulib-tool (Options): Make --symlink mean --symbolic.
87065
87066 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
87067
87068         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
87069
87070 2005-04-16  Simon Josefsson  <jas@extundo.com>
87071
87072         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
87073
87074 2005-04-15  Simon Josefsson  <jas@extundo.com>
87075
87076         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
87077
87078 2005-04-15  Simon Josefsson  <jas@extundo.com>
87079
87080         * gnulib-tool: Rename --symlink to --symbolic.
87081
87082 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
87083
87084         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
87085         symbolic links to files instead of copying/moving.  Add --aux-dir,
87086         specifying directory relative --dir where auxiliary build tools
87087         are placed.
87088
87089 2005-04-14  Bruno Haible  <bruno@clisp.org>
87090
87091         * modules/allocsa (License): Change to LGPL.
87092         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
87093
87094 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
87095
87096         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
87097         that "UTC +1 second" continues to work.  Problem reported
87098         by Dmitry V. Levin.
87099         (relunit_snumber): New rule.
87100         (relunit): Use it.
87101
87102 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
87103
87104         * lib/getdate.y (universal_time_zone_table): New constant.
87105         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
87106         universal_time_zone_table.
87107         (lookup_zone): Prefer universal_time_zone_table to
87108         local_time_zone_table, so that "GMT" time stamps are allowed in
87109         London during the summer.  Problem reported by Ian Abbott.
87110
87111 2005-04-12  Jim Meyering  <jim@meyering.net>
87112
87113         * lib/human.c (humblock): Set *options even when returning due to
87114         xstrtoumax conversion failure.  Thanks to a used-uninitialized
87115         warning from gcc-4.
87116
87117 2005-04-09  Jim Meyering  <jim@meyering.net>
87118
87119         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
87120         -Wuninitialized: initialize tm0.tm_year.
87121
87122 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
87123
87124         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
87125         count, since there's no maximum.  All uses changed.
87126         Add member dsts_seen.
87127         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
87128         not being INT_MAX.
87129         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
87130         Use pc_rels_seen to decide whether a date is absolute.
87131
87132         * lib/getdate.y (number): Don't overwrite year.
87133         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
87134         check.
87135
87136 2005-04-02  Simon Josefsson  <jas@extundo.com>
87137
87138         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
87139         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
87140
87141 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
87142
87143         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
87144         where no absolute path name can be longer than PATH_MAX.
87145
87146 2005-03-27  Jim Meyering  <jim@meyering.net>
87147
87148         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
87149
87150 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
87151
87152         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
87153         "one's complement" -> "ones' complement" in comment, as per Knuth.
87154         "value of type" -> "type or expression" in comment.
87155         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
87156
87157 2005-03-26  Jim Meyering  <jim@meyering.net>
87158
87159         Comment nits.
87160         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
87161         Correct typos: s/or/of/.
87162
87163 2005-03-26  Jim Meyering  <jim@meyering.net>
87164
87165         * modules/check-include-files: Move to ../ and rename to...
87166         * check-module: ...this.
87167
87168 2005-03-25  Jim Meyering  <jim@meyering.net>
87169
87170         * modules/xvasprintf (Files): Add xalloc.h.
87171
87172 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
87173
87174         * modules/gettext (Files): config/config.rpath ->
87175         build-aux/config.rpath
87176         * modules/iconv (Files): Likewise.
87177         Problem reported by Oskar Liljeblad.
87178
87179 2005-03-23  Jim Meyering  <jim@meyering.net>
87180
87181         * modules/check-include-files: New script to check for
87182         missing dependencies, multiple includes, etc.
87183
87184         * modules/c-strtold (Depends-on): Add xalloc.
87185         * modules/c-strtod (Depends-on): Add xalloc.
87186         * modules/hash (Depends-on): Add xalloc.
87187         (Files): Remove lib/xalloc.h.
87188
87189         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
87190         * modules/userspec (Files): Add lib/inttostr.h.
87191
87192 2005-03-23  Jim Meyering  <jim@meyering.net>
87193
87194         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
87195
87196 2005-03-22  Jim Meyering  <jim@meyering.net>
87197
87198         * modules/stat-macros: New module.
87199         * modules/canonicalize, modules/euidaccess, modules/file-type,
87200         * modules/filemode, modules/lchown, modules/makepath,
87201         * modules/rmdir, modules/stat: Depend on new stat-macros module
87202         rather than listing lib/stat-macros.h manually.
87203         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
87204
87205 2005-03-22  Jim Meyering  <jim@meyering.net>
87206
87207         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
87208
87209 2005-03-22  Bruno Haible  <bruno@clisp.org>
87210
87211         * config/srclist.txt: Replace target directory 'config' with
87212         'build-aux'.
87213         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
87214         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
87215         ../build-aux/.
87216
87217 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
87218
87219         * modules/chdir-long (Depends-on): Add mempcpy.
87220
87221         * modules/acl, modules/backupfile, modules/c-strtod,
87222         modules/c-strtold, modules/canon-host, modules/canonicalize,
87223         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
87224         modules/exclude, modules/exitfail, modules/file-type,
87225         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
87226         modules/getdate, modules/getline, modules/getpagesize,
87227         modules/getpass, modules/getugroups, modules/group-member,
87228         modules/hard-locale, modules/hash, modules/human, modules/idcache,
87229         modules/inttostr, modules/long-options, modules/makepath,
87230         modules/md5, modules/memcasecmp, modules/memcoll,
87231         modules/modechange, modules/mountlist, modules/path-concat,
87232         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
87233         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
87234         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
87235         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
87236         modules/strftime, modules/strndup, modules/strverscmp,
87237         modules/timespec, modules/unlocked-io, modules/userspec,
87238         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
87239         modules/yesno:
87240         Remove lib_SOURCES line from Makefile.am section, as this is now
87241         done automatically by the corresponding Autoconf macro.
87242
87243 2005-03-21  Jim Meyering  <jim@meyering.net>
87244
87245         Changes imported from coreutils.
87246
87247         * lib/cycle-check.c: Don't include xalloc.h.
87248
87249         * lib/path-concat.c: Don't include assert.h.
87250         (path_concat): Remove assertion that would have triggered
87251         for ABASE starting with more than one slash.
87252         Reported by Andreas Schwab.
87253
87254         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
87255         properly when ABASE is an absolute file name.
87256         Correct the description of this function.
87257         Include <assert.h>.
87258         Add an assertion and a test driver.
87259         This fixes a bug introduced on 2004-07-02.
87260         Andreas Schwab reported the resulting failure of cp --parents:
87261         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
87262
87263 2005-03-21  Jim Meyering  <jim@meyering.net>
87264
87265         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
87266         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
87267
87268 2005-03-21  Jim Meyering  <jim@meyering.net>
87269         and  Paul Eggert  <eggert@cs.ucla.edu>
87270
87271         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
87272         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
87273         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
87274         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
87275         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
87276         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
87277         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
87278         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
87279         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
87280         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
87281         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
87282         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
87283         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
87284         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
87285         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
87286         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
87287         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
87288         for these modules.
87289
87290 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
87291
87292         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
87293         (which shouldn't happen), generate nothing instead of returning 0
87294         immediately, so that nstrftime (NULL, ...) doesn't return 0.
87295
87296 2005-03-16  Bruno Haible  <bruno@clisp.org>
87297
87298         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
87299         HAVE_LONGLONG_64BIT.
87300
87301 2005-03-16  Bruno Haible  <bruno@clisp.org>
87302
87303         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
87304         HAVE_LONGLONG_64BIT.
87305
87306 2005-03-16  Bruno Haible  <bruno@clisp.org>
87307
87308         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
87309         HAVE_LONGLONG_64BIT.
87310
87311 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87312
87313         * lib/strftime.c (my_strftime): Prepend space to format so that we can
87314         reliably distinguish strftime failure from empty output on POSIX
87315         hosts.
87316
87317 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
87318
87319         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
87320         (iconv_string): Don't guess a size-zero buffer, as that might cause
87321         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
87322         result would be 'too large', where 'too large' is (heuristically)
87323         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
87324         overflow concerns.  This will prevent some unwanted malloc failures
87325         when the inputs are very large.
87326
87327 2005-03-15  Karl Berry  <karl@gnu.org>
87328
87329         * config/srclist.txt (config.rpath): from gettext.
87330         * config/config.rpath: update.
87331
87332 2005-03-15  Bruno Haible  <bruno@clisp.org>
87333
87334         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
87335         to 'negate'.
87336
87337         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
87338         variable.
87339
87340         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
87341         results.
87342
87343 2005-03-14  Simon Josefsson  <jas@extundo.com>
87344
87345         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
87346         <fx@gnu.org>.
87347
87348 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
87349
87350         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
87351         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
87352         intprops.h.
87353         * lib/strtol.c: Likewise.
87354
87355 2005-03-14  Jim Meyering  <jim@meyering.net>
87356
87357         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
87358         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
87359         to be nonzero so that we (and caller) can detect the difference
87360         between a valid zero-length expansion and an error return, even
87361         when the underlying strftime fails before writing anything into
87362         that location.
87363
87364 2005-03-14  Bruno Haible  <bruno@clisp.org>
87365
87366         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
87367         Update from GNU gettext 0.14.3.
87368
87369 2005-03-10  Jim Meyering  <jim@meyering.net>
87370
87371         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
87372
87373 2005-03-10  Jim Meyering  <jim@meyering.net>
87374
87375         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
87376         so that this module works on systems without fchdir.
87377
87378 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
87379
87380         Factor int-properties macros into a single file, except for
87381         glibc-related files.
87382         * lib/intprops.h: New file.
87383         * lib/getloadavg.c: Include it instead of limits.h.
87384         (INT_STRLEN_BOUND): Remove.
87385         * lib/human.c: Include intprops.h.
87386         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
87387         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
87388         302/1000.
87389         * lib/inttostr.h: Include intprops.h instead of limits.h.
87390         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
87391         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
87392         for consistency with intprops.h.
87393         (time_t_is_integer, twos_complement_arithmetic): Use them.
87394         * lib/sig2str.h: Include <signal.h>, intprops.h.
87395         (INT_STRLEN_BOUND): Remove.
87396         * lib/strftime.c (TYPE_SIGNED): Remove.
87397         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
87398         * lib/strtol.c: Adjust comments to match intprops.h.
87399         * lib/userspec.c: Include intprops.h.
87400         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
87401         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
87402         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
87403         instead of rolling our own expressions.
87404         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
87405
87406         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
87407         instead of int.
87408         (my_strftime): Do not mishandle years close to INT_MAX, by doing
87409         the right thing even if adding 1900 would overflow.  Similarly
87410         for tm_mon + 1 and tm_yday + 1.
87411         Make %Y always equivalent to %C%y, and similarly for %G and %g.
87412         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
87413         (DO_SIGNED_NUMBER): New macro.
87414         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
87415
87416 2005-03-07  Bruno Haible  <bruno@clisp.org>
87417
87418         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
87419
87420 2005-03-07  Bruno Haible  <bruno@clisp.org>
87421
87422         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
87423
87424 2005-03-04  Derek R. Price  <derek@ximbiot.com>
87425
87426         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
87427         (func_import): Only replace files via --import when they have actually
87428         changed.
87429
87430 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87431
87432         * m4/mmap-anon.m4: New file.
87433         * m4/pagealign_alloc.m4: New file.
87434
87435 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87436             Bruno Haible  <bruno@clisp.org>
87437
87438         * modules/pagealign_alloc: New file.
87439         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
87440
87441 2005-03-03  Derek R. Price  <derek@ximbiot.com>
87442             Bruno Haible  <bruno@clisp.org>
87443
87444         * lib/pagealign_alloc.h: New file.
87445         * lib/pagealign_alloc.c: New file.
87446
87447 2005-03-03  Bruno Haible  <bruno@clisp.org>
87448
87449         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
87450         Use an all-permissive copyright notice, recommended by RMS.
87451
87452 2005-03-02  Bruno Haible  <bruno@clisp.org>
87453
87454         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
87455         of AIX, the replacement has to be done only after <string.h> is
87456         included, therefore not in config.h. stpncpy.h does the replacement,
87457         and stpncpy.c uses it.
87458
87459 2005-03-02  Bruno Haible  <bruno@clisp.org>
87460
87461         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
87462         stpncpy.c uses it.
87463
87464 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87465
87466         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
87467         The workaround isn't strictly needed for POSIX conformance, and
87468         it's too much of a pain to configure and maintain.  We'll ask
87469         people to fix their kernels instead.
87470         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
87471         (NANOSLEEP_BUG_WORKAROUND): Remove.
87472         (xnanosleep): Remove the workaround.
87473
87474 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87475
87476         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
87477         Reported by Derek Price.
87478         (Include): Add "timespec.h".
87479
87480         * modules/xnanosleep (Depends-on): Remove gethrxtime.
87481
87482 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
87483
87484         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
87485         to detect nanosleep bug.
87486
87487 2005-03-01  Bruno Haible  <bruno@clisp.org>
87488
87489         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
87490
87491 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
87492
87493         * modules/gethrxtime: New file.
87494         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
87495         (Depends-on): Add gethrxtime.
87496         (configure.ac): Add gl_XNANOSLEEP.
87497         (Makefile.am): Remove lib_SOURCES line.
87498
87499 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87500
87501         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
87502         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
87503
87504 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
87505
87506         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
87507         * lib/timespec.h (gettime): Return void, since it always
87508         succeeds now.  All uses changed.
87509         * lib/gettime.c (gettime): Likewise.
87510         [HAVE_NANOTIME]: Prefer nanotime.
87511         Assume gettimeofday succeeds, as POSIX requires.
87512         Assime time () succeeds, since other code already does.
87513         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
87514         (timespec_subtract): Remove.
87515         (NANOSLEEP_BUG_WORKAROUND): New constant.
87516         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
87517         things considerably.  Use it only on GNU/Linux hosts, since the
87518         workaround shouldn't be needed elsewhere.
87519
87520 2005-02-24  Bruno Haible  <bruno@clisp.org>
87521
87522         * modules/gettext (Files): Add m4/glibc2.m4.
87523
87524 2005-02-24  Bruno Haible  <bruno@clisp.org>
87525
87526         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
87527         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
87528         * m4/progtest.m4:
87529         Update from GNU gettext 0.14.2.
87530         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
87531
87532 2005-02-24  Bruno Haible  <bruno@clisp.org>
87533
87534         * lib/localcharset.c: Update from GNU gettext 0.14.2.
87535         * lib/config.charset: Update from GNU gettext 0.14.2.
87536
87537 2005-02-24  Bruno Haible  <bruno@clisp.org>
87538
87539         * lib/gettext.h: Update from GNU gettext 0.14.2.
87540
87541 2005-02-23  Simon Josefsson  <jas@extundo.com>
87542
87543         * m4/iconvme.m4: New file.
87544
87545 2005-02-23  Jim Meyering  <jim@meyering.net>
87546
87547         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
87548         change.
87549         Thanks to Bruno Haible for catching it.
87550
87551 2005-02-22  Simon Josefsson  <jas@extundo.com>
87552
87553         * modules/iconvme: New file.
87554
87555         * MODULES.html.sh: Add iconvme.
87556
87557 2005-02-22  Simon Josefsson  <jas@extundo.com>
87558
87559         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
87560
87561 2005-02-22  Simon Josefsson  <jas@extundo.com>
87562
87563         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
87564
87565 2005-02-22  Jim Meyering  <jim@meyering.net>
87566
87567         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
87568         s/ifndef/ifdef/.
87569
87570 2005-02-20  Neil Conway  <neilc@samurai.com>
87571
87572         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
87573         returned by OSX/Darwin if the specified buffer is not large
87574         enough for the hostname.
87575
87576 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87577
87578         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
87579         pass it to _help, otherwise the latter coredumps trying to
87580         dereference state.root_argp.
87581
87582 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87583
87584         * modules/chdir-long (Depends-on): Add memrchr.
87585         * modules/memrchr (Files): Add lib/memrchr.h.
87586         (Include): "memrchr.h".
87587
87588 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87589
87590         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
87591
87592 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
87593
87594         * lib/memrchr.h: New file.
87595         * lib/chdir-long.c: Include it.
87596         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
87597         Don't bother including stddef.h.
87598
87599 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
87600
87601         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
87602         inclusion.
87603         Include <sys/types.h>, for dev_t.
87604         (ME_DUMMY, ME_REMOTE): Move from here....
87605         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
87606         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
87607         Dmitry V. Levin.
87608         Include mountlist.h first, to test the interface.
87609
87610 2005-01-29  Bruno Haible  <bruno@clisp.org>
87611
87612         * lib/progname.c (program_name): Initialize.
87613         Needed when linking statically on MacOS X.
87614
87615 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87616
87617         Sync from coreutils.
87618         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
87619         (Depends-on): Add c-strtod.
87620         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
87621
87622 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
87623
87624         Sync from coreutils.
87625         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
87626
87627         Remove files that are specific to coreutils.
87628         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
87629
87630 2005-01-28  Bruno Haible  <bruno@clisp.org>
87631
87632         * modules/javacomp: New file.
87633         * MODULES.html.sh (Java): Add javacomp.
87634
87635 2005-01-28  Bruno Haible  <bruno@clisp.org>
87636
87637         * m4/javacomp.m4: New file, from GNU gettext.
87638
87639 2005-01-28  Bruno Haible  <bruno@clisp.org>
87640
87641         * lib/javacomp.sh.in: New file, from GNU gettext.
87642         * lib/javacomp.h: New file, from GNU gettext.
87643         * lib/javacomp.c: New file, from GNU gettext.
87644
87645 2005-01-26  Simon Josefsson  <jas@extundo.com>
87646
87647         * lib/gai_strerror.c: Use GPL in header.
87648
87649 2005-01-26  Bruno Haible  <bruno@clisp.org>
87650
87651         * modules/javaexec: New file.
87652         * MODULES.html.sh (Java): Add javaexec.
87653
87654 2005-01-26  Bruno Haible  <bruno@clisp.org>
87655
87656         * m4/javaexec.m4: New file, from GNU gettext.
87657
87658 2005-01-26  Bruno Haible  <bruno@clisp.org>
87659
87660         * lib/javaexec.sh.in: New file, from GNU gettext.
87661         * lib/javaexec.h: New file, from GNU gettext.
87662         * lib/javaexec.c: New file, from GNU gettext.
87663
87664 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87665
87666         * modules/lchown (Depends-on): Remove lchown.h
87667
87668 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87669
87670         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
87671         must be defined if the header file was not found, in order
87672         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
87673
87674 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87675
87676         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
87677         initializers for struct pentry_state.
87678         (__argp_error): Check return value of __asprintf
87679         (__argp_failure): Translate error message
87680
87681         * lib/argp-parse.c: Removed braces around the expansion of N_()
87682
87683 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
87684
87685         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
87686         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
87687         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
87688         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
87689         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
87690         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
87691         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
87692         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
87693         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
87694         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
87695         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
87696         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
87697         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
87698         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
87699         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
87700         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
87701         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
87702         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
87703         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
87704         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
87705         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
87706         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
87707         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
87708         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
87709         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
87710         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
87711         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
87712         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
87713         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
87714         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
87715         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
87716         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
87717         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
87718         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
87719         xstrtol.m4, xstrtoumax.m4, yesno.m4:
87720         Use an all-permissive copyright notice, recommended by RMS.
87721
87722 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
87723
87724         * modules/chdir-long (Depends-on): Remove mempcpy.
87725
87726 2005-01-21  Jim Meyering  <jim@meyering.net>
87727
87728         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
87729         same value as for Solaris 9.
87730
87731         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
87732         component length.  This included changing the parameter to be
87733         of type `char *' rather than `char const *'.
87734         * lib/chdir-long.h (chdir_long): Update prototype.
87735
87736         * lib/openat.c (fdopendir, fstatat): New functions.
87737         * lib/openat.h: Include headers required for use of DIR and struct
87738         stat.
87739         [AT_SYMLINK_NOFOLLOW]: Define.
87740         (fdopendir, fstatat): Add prototypes.
87741
87742 2005-01-21  Bruno Haible  <bruno@clisp.org>
87743
87744         * modules/classpath: New file.
87745         * MODULES.html.sh (Java): Add classpath.
87746
87747 2005-01-21  Bruno Haible  <bruno@clisp.org>
87748
87749         * lib/classpath.h: New file, from GNU gettext.
87750         * lib/classpath.c: New file, from GNU gettext.
87751
87752 2005-01-20  Simon Josefsson  <jas@extundo.com>
87753
87754         * modules/version-etc-fsf: New file.
87755
87756 2005-01-20  Simon Josefsson  <jas@extundo.com>
87757
87758         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
87759         * lib/version-etc.c: Remove version_etc_copyright.
87760         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
87761         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
87762
87763 2005-01-20  Simon Josefsson  <jas@extundo.com>
87764
87765         * lib/base64.h (isbase64): Add.
87766
87767         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
87768         using a unsigned prototype, don't inline.
87769         (base64_decode): Use it.
87770
87771 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87772
87773         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
87774         it.
87775
87776 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87777
87778         * lib/save-cwd.c (save_cwd): Remove code to support the case
87779         where fchdir is missing or flaky.
87780
87781 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
87782
87783         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
87784
87785 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
87786
87787         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
87788         AC_LIBSOURCES now does this.
87789         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
87790         with new ullong_max module.
87791
87792 2005-01-19  Bruno Haible  <bruno@clisp.org>
87793
87794         * modules/sh-quote: New file.
87795         * MODULES.html.sh (Executing programs): Add sh-quote.
87796
87797 2005-01-19  Bruno Haible  <bruno@clisp.org>
87798
87799         * lib/sh-quote.h: New file, from GNU gettext.
87800         * lib/sh-quote.c: New file, from GNU gettext.
87801
87802 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87803
87804         Merge from coreutils.
87805         * m4/ullong_max.m4: New file.
87806         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
87807         (gl_MACROS): Assume localeconv exists.
87808
87809 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87810
87811         Merge changes from coreutils, as described below in several
87812         changelogs dated today.
87813
87814         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87815         (O_DIRECTORY): Remove; not needed here, since "." must be
87816         a directory.  All uses removed.
87817         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87818         universal on Suns, and we also need to test for IRIX.
87819         Revamp code to use 'if' rather than '#if'.
87820         Avoid unnecessary comparison of cwd->desc to 0.
87821
87822         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87823         for known valid error numbers rather than observed invalid ones.
87824
87825 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87826
87827         * modules/ullong_max: New file.
87828
87829         * modules/chdir-long, modules/openat: New files.
87830         * modules/save-cwd (Depends-on): Depend on chdir-long.
87831         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87832
87833 2005-01-18  Jim Meyering  <jim@meyering.net>
87834
87835         Merge from coreutils.
87836         * m4/chdir-long.m4, m4/openat.m4: New files.
87837         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87838         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87839         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87840         is sane and DOES follow symlinks.  Besides, testing 20 different
87841         systems found no broken chown implementations.
87842         Prompted by a change in rsync's copy of this macro.
87843         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87844
87845         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87846
87847         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87848         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87849         NULL-means-set-to-current-time semantics.
87850         Remove temporary file immediately, rather than waiting
87851         for configure's at-exit trap code to do it.
87852
87853 2005-01-18  Jim Meyering  <jim@meyering.net>
87854
87855         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87856
87857         * lib/utimens.c (futimens): Account for the fact that futimes
87858         can also fail with errno == ENOSYS or errno == ENOENT.
87859         Patch from Dmitry V. Levin.
87860
87861         Change the name of the robust chdir function from chdir to chdir_long.
87862         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87863         (restore_cwd): Use chdir_long, not chdir.
87864         * lib/chdir-long.c: Renamed from chdir.c.
87865         * lib/chdir-long.h: Renamed from chdir.h.
87866         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87867         Hurd.
87868
87869 2005-01-18  Bruno Haible  <bruno@clisp.org>
87870
87871         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87872         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87873         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87874         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87875         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87876         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87877         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87878         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87879         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87880         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87881         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87882         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87883         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87884         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87885         Use an all-permissive copyright notice, recommended by RMS.
87886
87887 2005-01-18  Bob Proulx  <bob@proulx.com>
87888
87889         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87890         simplify offsetof() macro construct to avoid compile failure with
87891         native HP-UX 11.0 ANSI C compiler.
87892
87893 2005-01-17  Bruno Haible  <bruno@clisp.org>
87894
87895         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87896         redundant because stpncpy.m4 takes care of it.
87897
87898 2005-01-17  Bruno Haible  <bruno@clisp.org>
87899
87900         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87901
87902 2005-01-17  Bruno Haible  <bruno@clisp.org>
87903
87904         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87905         used.
87906
87907 2005-01-17  Bruno Haible  <bruno@clisp.org>
87908
87909         * lib/fwriteerror.h (fwriteerror): Change specification to include
87910         fclose.
87911         * lib/fwriteerror.c: Include <stdbool.h>.
87912         (fwriteerror): At the end, close the file stream. Record whether
87913         stdout was already closed.
87914
87915 2005-01-17  Bruno Haible  <bruno@clisp.org>
87916
87917         * lib/execute.c (environ): Declare if needed.
87918         * lib/pipe.c (environ): Likewise.
87919         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87920
87921 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87922
87923         * modules/argp: Depend on vsnprintf
87924
87925 2005-01-10  Jim Meyering  <jim@meyering.net>
87926
87927         * modules/closeout (Depends-on): Add atexit.
87928
87929 2005-01-06  Bruno Haible  <bruno@clisp.org>
87930
87931         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87932
87933 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87934
87935         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87936         definitions to be after all include files, to avoid collisions.
87937         Problem reported by Bob Proulx.
87938
87939 2005-01-04  Jim Meyering  <jim@meyering.net>
87940
87941         Changes imported from coreutils.
87942         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87943         as the mkstemp template, use a temporary directory and an
87944         8.3-friendly template to avoid trouble on systems like DJGPP.
87945         Reported by Juan M. Guerrero via Stepan Kasal.
87946         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87947         close. Remove the temporary directory right away, rather than waiting
87948         for configure's at-exit trap code to do it.
87949         Suggestion from Stepan Kasal.
87950
87951 2005-01-01  Simon Josefsson  <jas@extundo.com>
87952
87953         * gnulib-tool: Print #include directives when --import'ing.
87954
87955 2004-12-28  Simon Josefsson  <jas@extundo.com>
87956
87957         * tests/test-base64.c: Include required header files.  Remove
87958         unused variables.
87959
87960 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87961
87962         * modules/error (Depends-on): Remove gettext.
87963
87964 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87965
87966         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87967         not needed.  This removes a dependency on the gettext module.
87968         [defined _LIBC]: Do not include <libintl.h>; not needed.
87969
87970 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87971
87972         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87973         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87974
87975 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87976
87977         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87978         HAVE_DECL_STRTOLD.
87979
87980 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87981
87982         * modules/getdate (Depends-on): Remove alloca-opt.
87983
87984 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87985
87986         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87987
87988 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87989
87990         * lib/argp-parse.c: Include <stddef.h>.
87991         (alignof, alignto): New macros.
87992         (parser_init): Don't assume that void * is aligned sufficiently
87993         for struct option.
87994
87995         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87996         need to extend the stack.
87997         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87998         large.
87999
88000 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88001
88002         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
88003
88004 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88005
88006         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
88007         (2004-10-24) change.  Apparently this was a false alarm.
88008
88009         * modules/getdate: Depend on alloca-opt, not alloca.
88010
88011 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
88012
88013         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
88014         Remove now-obsolete comment about AIX.
88015         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
88016         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
88017         (YYMAXDEPTH): New macro.
88018
88019 2004-12-18  Simon Josefsson  <jas@extundo.com>
88020
88021         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
88022
88023 2004-12-18  Bruno Haible  <bruno@clisp.org>
88024
88025         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
88026
88027 2004-12-18  Bruno Haible  <bruno@clisp.org>
88028
88029         * lib/fatal-signal.c (fatal_signals): Make non-const.
88030         (init_fatal_signals): New function.
88031         (uninstall_handlers, install_handlers): Ignore signals that were set to
88032         SIG_IGN.
88033         (at_fatal_signal): Call init_fatal_signals.
88034         (init_fatal_signal_set): Likewise. Ignore signals that were set to
88035         SIG_IGN.
88036         Reported by Paul Eggert.
88037
88038 2004-12-18  Bruno Haible  <bruno@clisp.org>
88039
88040         * doc/alloca.texi: New file.
88041         * doc/alloca-opt.texi: New file.
88042
88043 2004-12-17  Jim Meyering  <jim@meyering.net>
88044
88045         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
88046         Otherwise, install-sh could exit with improper exit status when
88047         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
88048
88049 2004-12-16  Simon Josefsson  <jas@extundo.com>
88050
88051         * tests/test-base64.c: Add license.
88052
88053 2004-12-15  Stepan Kasal  <address@hidden>
88054
88055         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
88056
88057 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
88058
88059         * modules/getcwd (Files): Add m4/d-ino.m4.
88060         Suggested by Mark D. Baushke.
88061
88062 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88063
88064         * lib/getdate.y (textint): New member "negative".
88065         (time_zone_hhmm): New function.
88066         Expect 14 shift-reduce conflicts, not 13.
88067         (o_colon_minutes): New rule.
88068         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
88069         (yylex): Set the "negative" member of signed numbers.
88070
88071 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
88072
88073         * doc/getdate.texi (Time of day items, Time zone items):
88074         Describe new formats +00:00, UTC+00:00.
88075
88076 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
88077
88078         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
88079         spurious "-l"s.  Problem reported by Stepan Kasal.
88080
88081 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
88082
88083         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
88084         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
88085
88086 2004-12-04  Simon Josefsson  <jas@extundo.com>
88087
88088         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
88089         Vandoorselaere <yoann@prelude-ids.org>.
88090
88091 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88092
88093         Changes imported from coreutils.
88094         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
88095         exist.
88096         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
88097
88098 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88099
88100         Changes imported from coreutils.
88101         * lib/hard-locale.c: Assume <locale.h> exists.
88102         Include "strdup.h".
88103         (GLIBC_VERSION): New macro.
88104         (hard_locale): Assume setlocale exists.
88105         Rewrite to avoid #ifdef.
88106         Use strdup rather than malloc + strcpy.
88107         * lib/human.c: Assume <locale.h> exists.
88108         (human_readable): Assume localeconv exists.
88109
88110 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
88111
88112         * modules/hard-locale (Depends-on): Add strdup.
88113
88114 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
88115
88116         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
88117         convert T2, not T.  (Imported from libc.)
88118
88119 2004-11-30  Simon Josefsson  <jas@extundo.com>
88120
88121         * modules/restrict (License): Change to LGPL.
88122
88123 2004-11-30  Simon Josefsson  <jas@extundo.com>
88124
88125         * m4/restrict.m4: Add copyright and copying conditions.
88126
88127 2004-11-30  Simon Josefsson  <jas@extundo.com>
88128
88129         * m4/base64.m4: New file.
88130
88131 2004-11-30  Simon Josefsson  <jas@extundo.com>
88132
88133         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
88134         base64.
88135
88136         * tests/test-base64.c: New file.
88137
88138         * modules/base64: New file.
88139
88140 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88141
88142         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
88143         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
88144
88145         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
88146
88147 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
88148
88149         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
88150         (__getcwd.c): Don't restore errno; glibc doesn't.
88151         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
88152         first, falling back to our code only if its results look suspicious.
88153         Ensure that the resulting buffer is only as large as necessary.
88154
88155         * lib/readutmp.c: Include readutmp.h first.
88156         Include <errno.h>, since readutmp.h no longer does that.
88157         * lib/readutmp.h: Don't include <errno.h>,
88158         <sys/param.h>, <time.h>; not needed to establish interface.
88159         (errno): Remove decl.
88160         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
88161         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
88162         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
88163
88164 2004-11-28  Simon Josefsson  <jas@extundo.com>
88165
88166         * lib/base64.h, base64.c: New file.
88167
88168 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
88169
88170         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
88171
88172 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
88173
88174         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
88175         (Depends-on): Remove pathmax, same.  Add mempcpy.
88176         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
88177         (Makefile.am): Append getcwd.h to lib_SOURCES.
88178         (Include): Add getcwd.h.
88179         (Maintainer): Change from Jim Meyering to "all, glibc",
88180         since getdate now uses intended-for-glibc code.
88181         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
88182         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
88183
88184 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88185
88186         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
88187         HP's ANSI C compiler.
88188         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
88189         Declaring int functions causes warnings on some modern systems and
88190         shouldn't be needed to compile on ancient ones.
88191         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
88192         defined.
88193
88194         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
88195         with the following changes.
88196         (__set_errno): Parenthesize properly.
88197         Include <stdbool.h>.
88198         (MIN, MAX, MATCHING_INO): New macros.
88199         (__getcwd): Define with prototype, not K&R form.
88200         Use heuristics to allocate default buffer on stack if possible.
88201         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
88202         behavior, and to avoid the PATH_MAX limit when computing
88203         ../../../../...
88204         Use MATCHING_INO to compare inode number to file.
88205         Check for arithmetic overflow in size calculations.
88206         Fix bug in reallocation of dot array that caused getcwd to fail
88207         on directories nested deeper than 75.
88208         Be more careful about saving errno on error.
88209         Do not use realloc; use only free+malloc, as this is a bit
88210         more flexible and avoids a needless copy operation.
88211         Do not inspect st_dev and st_ino for symbolic links; POSIX
88212         doesn't specify the latter.
88213         Check for closedir errors.
88214         Avoid needless casts.
88215         Use "#ifdef weak_alias" around weak_alias, to be like other
88216         glibc code.
88217         The following changes to getcwd.c have effect only when used in
88218         gnulib; they have no effect inside glibc proper.
88219         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
88220         as alloca isn't used.
88221         (alloca, __alloca): Likewise.
88222         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
88223         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
88224         unconditionally, as gnulib assumes C89 or better.
88225         Do not include <sys/param.h>.
88226         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
88227         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
88228         better.
88229         (NULL) [!defined NULL]: Remove; we assume C89 or better.
88230         Include <dirent.h> in a way that is compatible with modern Autoconf.
88231         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
88232         New macros, if not already defined.
88233         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
88234         Use "_LIBC", not "defined _LIBC", for consistency.
88235         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
88236         a mempcpy module.
88237         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
88238         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
88239         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
88240         credit only to Jim Meyering and adjust the copyright dates.
88241         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
88242         <stdlib.h>, <unistd.h>, "pathmax.h".
88243         Instead, include "xgetcwd.h" (first) and "getcwd.h".
88244         (INITIAL_BUFFER_SIZE): Remove.
88245         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
88246
88247 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
88248
88249         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
88250         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
88251         Use the _ONCE methods, for efficiency.
88252         Check for fcntl.h.  In test program, include <errno.h>
88253         and <fcntl.h> if available.  Remove old K&R cruft from
88254         test program.  Check for common errors in GNU/Linux,
88255         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
88256         don't do AC_LIBOBJ, as that's getcwd.m4's job.
88257         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
88258         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
88259         name accordingly.
88260         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
88261         accommodate new getcwd.c.
88262         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
88263         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
88264         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
88265         that's all we need now.
88266
88267 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88268
88269         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
88270         argp-parse.c depends on getopt internals, that means we should
88271         always use our getopt, to be on the safe side.
88272         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
88273         order not to spoil the result of an eventual previous invocation
88274         of gl_GETOPT_SUBSTITUTE.
88275
88276 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88277
88278         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
88279         redefinition warnings. To avoid them, include the defines
88280         in `#if !defined __need_getopt ... #endif'. The only place
88281         where __getopt_argv_const is used is in definitions
88282         of getopt_long and getopt_long_only below, which are as well
88283         protected by `#ifndef __need_getopt'.
88284         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
88285         __need_getopt after including <stdio.h> and <unistd.h> These
88286         headers might have defined it.
88287
88288 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88289
88290         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
88291
88292 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
88293
88294         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
88295         (futimens): New function, which uses futimes if available.
88296         (futimens, utimens): Support timespec==NULL, with same semantics
88297         as utime and utimens.
88298         * lib/utimens.h (futimens): New decl.
88299
88300 2004-11-23  Jim Meyering  <jim@meyering.net>
88301
88302         * lib/getopt_.h: Remove trailing blanks.
88303
88304 2004-11-23  Jim Meyering  <jim@meyering.net>
88305
88306         * lib/__fpending.c: Add comment.
88307
88308 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
88309
88310         * modules/canonicalize (Depends-on): Add xreadlink.
88311         Problem reported by James Youngman.
88312
88313 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
88314
88315         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
88316         New macros.
88317         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
88318         optopt): Use them instead of invoking ## directly; otherwise, the
88319         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
88320
88321 2004-11-19  Bruno Haible  <bruno@clisp.org>
88322
88323         * lib/strtok_r.c: Move comments from here...
88324         * lib/strtok_r.h: ... to here.
88325
88326 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88327
88328         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
88329         implementations that mishandle size_t overflow.
88330
88331 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
88332
88333         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
88334         might fail.  Problem reported by Yoann Vandoorselaere.
88335         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
88336         implementations that mishandle size_t overflow.
88337
88338 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88339
88340         * modules/canon-host (Depends-on): Add strdup.
88341
88342 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88343
88344         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
88345
88346 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88347
88348         * lib/canon-host.c: Include "strdup.h".
88349         (canon_host): Use getaddrinfo if available, so that IPv6 works.
88350         Use strdup instead of malloc/strcpy to duplicate strings.
88351
88352         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
88353         (human_space_before_unit): New constant.
88354         * lib/human.c (human_readable): Support it.
88355
88356         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
88357         (xgetcwd): Set errno correctly when failing.
88358         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
88359         the failure is actually due to a PATH_MAX problem.
88360
88361         Further getopt changes to make it more likely that glibc will
88362         buy the changes back.
88363         * lib/getopt.c (POSIXLY_CORRECT): New constant.
88364         (getopt): Use it, so to preserve glibc semantic
88365         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
88366         when compiling for libc.
88367         * lib/getopt_.h (__getopt_argv_const): Bring it back.
88368         (getopt_long, getopt_long_only): Use it.
88369
88370         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88371         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
88372         (getopt): Argv is now char * const *, as per standard.
88373         (_getopt_internal_r, _getopt_internal): Argv is now char **,
88374         not char *__getopt_argv_const *.
88375         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88376         _getopt_long_only_r): Likewise.
88377         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
88378         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88379         _getopt_long_r, _getopt_long_only_r): Likewise.
88380         * lib/getopt_.h (__getopt_argv_const): Remove.
88381         (getopt): Argv is now char * const *, as per standard.
88382
88383         * lib/getdate.y (tORDINAL): New token.
88384         (day, relunit): Allow it for relative times.
88385         (relative_time_table): Use tORDINAL for ordinals.
88386
88387 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
88388
88389         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
88390         Document that "second" isn't allowed as an ordinal number.
88391
88392 2004-11-16  Jim Meyering  <jim@meyering.net>
88393
88394         * modules/closeout (Depends-on): Add fpending.
88395
88396 2004-11-15  Jim Meyering  <jim@meyering.net>
88397
88398         * lib/closeout.c: Include "__fpending.h" once again.
88399         Include <stdbool.h>.
88400         (close_stdout): Don't fail just because stdout was closed initially,
88401         since some programs don't write to stdout in the normal course of
88402         operation (other than --version and --help), and we don't want this
88403         function to make e.g. `touch file >&-' fail.
88404         But do fail if it was closed and someone has tried to write to it.
88405         E.g., `printf foo >&-' must fail.
88406
88407 2004-11-13  Jim Meyering  <jim@meyering.net>
88408
88409         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
88410
88411 2004-11-12  Simon Josefsson  <jas@extundo.com>
88412
88413         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
88414         small doc fix is still pending.
88415
88416 2004-11-11  Simon Josefsson  <jas@extundo.com>
88417
88418         * modules/strtok_r: New file.
88419
88420         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88421         strtok_r.
88422
88423 2004-11-11  Simon Josefsson  <jas@extundo.com>
88424
88425         * m4/strtok_r.m4: New file.
88426
88427         * m4/getopt.m4: Replace opterr.
88428
88429 2004-11-11  Simon Josefsson  <jas@extundo.com>
88430
88431         * lib/strtok_r.h, strtok_r.c: New file.
88432
88433 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88434
88435         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
88436         of replacing opterr, getopt, etc.  This should handle the
88437         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
88438
88439 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
88440
88441         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
88442         we can stop lying to compilers about the constness of argv when we
88443         are compiled outside glibc.
88444         (getopt, getopt_long, getopt_long_only): Use it.
88445         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
88446         _getopt_internal, getopt): Likewise.
88447         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
88448         _getopt_long_only_r): Likewise.
88449         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
88450         _getopt_long_r, _getopt_long_only_r): Likewise.
88451
88452         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
88453         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
88454         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
88455         the other external symbols.
88456         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
88457         declaration, since the above renaming now works around collisions.
88458
88459 2004-11-11  Jim Meyering  <jim@meyering.net>
88460
88461         * lib/linebreak.c: Remove trailing blanks.
88462         * lib/alloca_.h: Likewise.
88463         * lib/acosl.c: Likewise.
88464         * lib/euidaccess.c: Likewise.
88465         * lib/allocsa.h: Likewise.
88466
88467 2004-11-10  Simon Josefsson  <jas@extundo.com>
88468
88469         * m4/getaddrinfo.m4: New file.
88470
88471 2004-11-10  Simon Josefsson  <jas@extundo.com>
88472
88473         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
88474
88475 2004-11-10  Simon Josefsson  <jas@extundo.com>
88476
88477         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88478         getaddrinfo.
88479
88480         * modules/getaddrinfo: New file.
88481
88482 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88483
88484         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
88485
88486 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
88487
88488         * lib/mktime.c (SHR): New macro, which is a portable
88489         substitute for >> that should work even on Crays.
88490         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
88491         Problem reported by Mark D. Baushke in
88492         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
88493         * lib/getdate.y (SHR): Likewise.
88494         (tm_diff): Use it.
88495         * lib/strftime.c (SHR): Likewise.
88496         (tm_diff): Use it.
88497         * lib/quotearg.c (struct quoting_options): Use unsigned int for
88498         quote_these_too, so that right shifts are well defined.  All uses
88499         changed.
88500
88501 2004-11-10  Jim Meyering  <jim@meyering.net>
88502
88503         Ensure that no close failure goes unreported.
88504         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
88505         return early when it seems there's nothing to flush.
88506         Don't include __fpending.h.
88507
88508 2004-11-10  Jim Meyering  <jim@meyering.net>
88509
88510         * modules/closeout (Depends-on): Remove fpending.
88511
88512 2004-11-10  Jim Meyering  <jim@meyering.net>
88513
88514         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
88515
88516 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88517
88518         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
88519         gl_FUNC_STRFTIME.
88520         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
88521         and AC_REQUIRE when possible, to avoid duplicate checks.
88522         Check for <wchar.h>.
88523
88524 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
88525
88526         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
88527
88528 2004-11-09  Bruno Haible  <bruno@clisp.org>
88529
88530         * m4/sockpfaf.m4: New file.
88531
88532 2004-11-05  Bruno Haible  <bruno@clisp.org>
88533
88534         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
88535         Reported by Mark D. Baushke <mdb@cvshome.org>.
88536
88537 2004-11-04  Bruno Haible  <bruno@clisp.org>
88538
88539         2004-09-11  Bruno Haible  <bruno@clisp.org>
88540                 * allocsa.valgrind: New file.
88541         2004-02-06  Bruno Haible  <bruno@clisp.org>
88542                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
88543                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
88544                 Reported by Christopher Seip <chris.seip@hp.com>.
88545
88546 2004-11-04  Bruno Haible  <bruno@clisp.org>
88547
88548         * modules/allocsa (Files): Add lib/allocsa.valgrind.
88549         (Makefile.am): Distribute it.
88550
88551 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
88552
88553         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
88554         with errno == ERANGE if the buffer is too small.
88555         Problem reported by Mark D. Baushke.
88556
88557 2004-11-03  Albert Chin  <china@thewrittenword.com>
88558             Paul Eggert  <eggert@cs.ucla.edu>
88559
88560         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
88561         equivalent, substitute $ac_type for equivalent type rather than
88562         blindly using uint32_t *always* which won't work if uint32_t is not
88563         available.  Define _UINT32_T to work around typedef of uint32_t if
88564         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
88565         2.5.1.
88566
88567 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88568
88569         * m4/jm-macros.m4: Sync from coreutils.
88570         (gl_MACROS): Check for mbrlen, for pathchk.
88571         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
88572
88573 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88574
88575         * lib/xreadlink.c (MAXSIZE): New macro.
88576         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
88577         size does not exceed MAXSIZE.  Avoid cast.
88578         As suggested by Mark D. Baushke in
88579         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
88580         if readlink fails with buffer size just under MAXSIZE, try again
88581         with MAXSIZE.
88582
88583 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
88584
88585         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
88586
88587 2004-11-02  Derek R. Price  <derek@ximbiot.com>
88588         and  Paul Eggert  <eggert@cs.ucla.edu>
88589
88590         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
88591         (get_date): Overparenthesize to avoid GCC warning.
88592
88593 2004-11-02  Bruno Haible  <bruno@clisp.org>
88594
88595         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
88596         returns void.
88597
88598 2004-11-02  Bruno Haible  <bruno@clisp.org>
88599
88600         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
88601         function returns void.
88602
88603 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88604
88605         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
88606         fflush_unlocked, flockfile, funlockfile, funlockfile,
88607         fputs_unlocked, putc_unlocked.
88608
88609 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
88610
88611         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88612         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
88613         already declared.
88614
88615 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88616
88617         * modules/getdate (Files): Add doc/getdate.texi.
88618         (Depends-on): Add setenv, xalloc.
88619
88620 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88621
88622         * lib/getdate.y: Add support for TZ="foo" within a date string.
88623         Fix some bugs near time_t boundaries.  Reject dates with
88624         out-of-range components, e.g., "Sept 31".
88625         Include <stdlib.h>, "setenv.h", "xalloc.h".
88626         (ISDIGIT_LOCALE): Remove; unused.
88627         Note that the TZ and time functions used here are not reentrant.
88628         (mktime_ok, get_tz): New functions.
88629         (TZBUFSIZE): New constant.
88630         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
88631         This requires that we sometimes generate our own TZ="XXX..." setting.
88632
88633 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
88634
88635         * doc/getdate.texi: New file, from coreutils with modifications for
88636         the new TZ parsing.
88637
88638 2004-10-27  Derek R. Price  <derek@ximbiot.com>
88639
88640         * lib/mktime.c (not_equal_tm): Remove redundant check.
88641
88642 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88643
88644         * modules/regex (lib_SOURCES): Add regex.c.
88645         Reported by James Youngman in
88646         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
88647
88648 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
88649
88650         * lib/getdate.y: Use Bison 1.875 features, and some minor
88651         code cleanups.  This change does not affect semantics.
88652         Don't include <stdlib.h>; no longer needed.
88653         Don't include unlocked-io.h; only the "#if TEST" code uses
88654         stdio, and performance isn't crucial there.
88655         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
88656         Bison 1.875 features as described below.
88657         All uses of "PC." replaced by "pc->".
88658         (YYSTYPE): Add a forward declaration.
88659         (yylex, yyerror): Use full prototypes in forward decls.
88660         Use "%pure-parser" rather than obsolescent "%pure_parser".
88661         Use %parse-param and %lex-param instead of obsolescent
88662         YYPARSE_PARAM and YYLEX_PARAM.
88663         (meridian_table, month_and_day_table, time_units_table,
88664         relative_time_table, time_zone_table, military_table,
88665         lookup_zone, lookup_word, get_date):
88666         Use NULL instead of 0 where appropriate.
88667         (to_hour): Avoid abort (), to avoid a dependency on
88668         stdlib.h.
88669         (yyerror, yylex): Now accepts parser_control * arg.
88670         (main) [TEST]: Use '\0' rather than 0 for char.
88671
88672 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88673
88674         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
88675
88676 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
88677
88678         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
88679         It's now the caller's responsibility to handle the case where
88680         !HAVE_GETPAGESIZE && !defined getpagesize.
88681
88682         * lib/mktime.c (leapyear): Arg is long int, not int.
88683
88684 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
88685
88686         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
88687
88688 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
88689
88690         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
88691         missing.  Problem reported by James Youngman.
88692
88693 2004-10-16  Simon Josefsson  <jas@extundo.com>
88694
88695         * gnulib-tool: Fix comments.  Fix parse problem.
88696         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
88697
88698 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
88699
88700         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
88701         implementation of getopt_long.  Problem reported by Alexander Taler in:
88702         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
88703
88704 2004-10-15  Bruno Haible  <bruno@clisp.org>
88705
88706         * gnulib-tool: Untabify. Initialize supplied_libname.
88707         (func_usage): More homogenous output.
88708         (func_modules_transitive_closure, func_modules_to_filelist,
88709         func_emit_lib_Makefile_am): New functions.
88710         (func_import): New function, extracted from big case statement. Use
88711         func_get_license, func_modules_transitive_closure,
88712         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
88713         opt_lgpl. Don't use test -a, as it's not portable.
88714         (func_create_testdir): Use func_modules_transitive_closure,
88715         func_modules_to_filelist, func_emit_lib_Makefile_am.
88716
88717 2004-10-15  Bruno Haible  <bruno@clisp.org>
88718
88719         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
88720
88721 2004-10-15  Bruno Haible  <bruno@clisp.org>
88722
88723         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
88724         the portions belonging to each module.
88725         Suggested by Derek Robert Price <derek@ximbiot.com>.
88726
88727 2004-10-12  Simon Josefsson  <jas@extundo.com>
88728
88729         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
88730         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
88731         to real functions.
88732
88733 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88734
88735         * modules/vsnprintf: New file.
88736
88737 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88738
88739         * m4/vsnprintf.m4: New file.
88740
88741 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88742
88743         * lib/vsnprintf.h: New file.
88744         * lib/vsnprintf.c: New file.
88745
88746 2004-10-11  Bruno Haible  <bruno@clisp.org>
88747
88748         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
88749         vsnprintf.
88750
88751 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
88752
88753         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
88754
88755 2004-10-07  Bruno Haible  <bruno@clisp.org>
88756
88757         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
88758         fits into the provided buffer.
88759
88760 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
88761
88762         * lib/diacrit.c, diacrit.h: Add GPL notice.
88763
88764         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
88765         notice.
88766         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
88767         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
88768         This avoids a potential constant-folding bug.
88769
88770 2004-10-05  Bruno Haible  <bruno@clisp.org>
88771
88772         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
88773         for the declaration of strsep.
88774
88775 2004-10-05  Bruno Haible  <bruno@clisp.org>
88776
88777         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
88778
88779 2004-10-04  Simon Josefsson  <jas@extundo.com>
88780
88781         * modules/memmem: New file.
88782         * tests/test-memmem.c: New file.
88783         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
88784
88785 2004-10-04  Simon Josefsson  <jas@extundo.com>
88786
88787         * m4/memmem.m4: New file.
88788
88789 2004-10-04  Simon Josefsson  <jas@extundo.com>
88790
88791         * lib/memmem.h: New file.
88792         * lib/memmem.c: New file, taken from glibc.
88793
88794 2004-10-04  Simon Josefsson  <jas@extundo.com>
88795
88796         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
88797         '#ifdef USE_UNLOCKED_IO'.
88798
88799 2004-10-04  Simon Josefsson  <jas@extundo.com>
88800
88801         * config/srclist.txt: Add memmem from glibc.
88802
88803 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88804
88805         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
88806
88807         * modules/argmatch, modules/argp, modules/closeout, modules/error,
88808         modules/exclude, modules/getdate, modules/getline,
88809         modules/getndelim2, modules/getpass, modules/getpass-gnu,
88810         modules/getusershell, modules/linebuffer, modules/md5,
88811         modules/mountlist, modules/posixtm, modules/readtokens,
88812         modules/readutmp, modules/regex, modules/sha1,
88813         modules/version-etc, modules/yesno:
88814         Remove dependency on unlocked-io.
88815
88816 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88817
88818         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88819
88820         * m4/unlocked-io.m4: Add copyright notice.
88821         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88822
88823 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88824
88825         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88826         * lib/xmalloc.c (xmemdup): Likewise.
88827         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88828         XFREE): Remove these long-obsolescent macros.
88829         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88830         * lib/xstrdup.c: Remove.
88831
88832         * lib/regex.c (re_comp): Cast gettext return value to char *,
88833         Problem reported by Martin Neitzel via Mark D. Baushke.
88834
88835 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88836
88837         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88838         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88839         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88840         regex.c, sha1.c, version-etc.c, yesno.c:
88841         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88842         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88843         the includer's responsibility.
88844
88845         Sync from coreutils.
88846
88847         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88848         points to the start of a string, as the C Standard says the
88849         resulting behavior is undefined.
88850
88851         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88852         simple -> simple_backups, numbered_existing ->
88853         numbered_existing_backups, numbered -> numbered_backups
88854         to avoid shadowing problems.  All uses changed.
88855         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88856         * lib/backupfile.c (check_extension, numbered_backup):
88857         Rename locals to avoid shadowing 'basename'.
88858         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88859         once.
88860
88861         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88862         * lib/.cvsignore: Add getopt.h.
88863
88864 2004-10-04  Bruno Haible  <bruno@clisp.org>
88865
88866         * modules/README: New file.
88867         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88868         not a module.
88869
88870 2004-10-02  Jim Meyering  <jim@meyering.net>
88871
88872         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88873
88874 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88875
88876         * modules/strsep: New file.
88877
88878 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88879
88880         * m4/strsep.m4: New file.
88881
88882 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88883
88884         * lib/strsep.h: New file.
88885         * lib/strsep.c: New file.
88886
88887 2004-10-01  Simon Josefsson  <jas@extundo.com>
88888
88889         * lib/snprintf.c (snprintf): Handle size==0.
88890
88891 2004-10-01  Simon Josefsson  <jas@extundo.com>
88892             Bruno Haible  <bruno@clisp.org>
88893
88894         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88895         (snprintf): Declare 'args'.
88896
88897 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88898
88899         * lib/snprintf.c: Remove comments as to why each header is needed.
88900
88901 2004-10-01  Bruno Haible  <bruno@clisp.org>
88902
88903         * MODULES.html.sh: Add strsep.
88904
88905 2004-09-30  Simon Josefsson  <jas@extundo.com>
88906
88907         * modules/snprintf: New file.
88908
88909 2004-09-30  Simon Josefsson  <jas@extundo.com>
88910
88911         * m4/snprintf.m4: New file.
88912
88913 2004-09-30  Simon Josefsson  <jas@extundo.com>
88914
88915         * lib/snprintf.h, lib/snprintf.c: New files.
88916
88917 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88918
88919         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88920         (hol_entry_help): Never translate an empty string.
88921         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88922         * lib/argp.h (OPTION_NO_TRANS): New option.
88923
88924 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88925
88926         * modules/argp (Maintainer): Replace Simon Josefsson
88927         by Sergey Poznyakoff.
88928
88929 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88930
88931         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88932         changes merged back into glibc.
88933
88934 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88935
88936         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88937
88938 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88939
88940         * lib/xvasprintf.c: Include xalloc.h.
88941         (xvasprintf): Use xalloc_die, not xmalloc_die.
88942
88943 2004-09-29  Bruno Haible  <bruno@clisp.org>
88944
88945         * modules/alloca-opt: New file, derived from modules/alloca.
88946         * modules/allocsa: Depend on alloca-opt instead of alloca.
88947         * modules/setenv: Likewise.
88948         * modules/vasnprintf: Likewise.
88949         * MODULES.html.sh: Add alloca-opt.
88950
88951 2004-09-28  Simon Josefsson  <jas@extundo.com>
88952
88953         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88954         LGPL, and to replace license template from GPL to LGPL.
88955
88956 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88957
88958         * modules/dummy: Change license to LGPL.
88959
88960 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88961
88962         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88963
88964 2004-09-24  Simon Josefsson  <jas@extundo.com>
88965
88966         * modules/minmax (License): Change from GPL to LGPL.
88967
88968 2004-09-23  Simon Josefsson  <jas@extundo.com>
88969
88970         * gnulib-tool (--import): Typo.
88971
88972 2004-09-23  Simon Josefsson  <jas@extundo.com>
88973
88974         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88975
88976 2004-09-22  Bruno Haible  <bruno@clisp.org>
88977
88978         * modules/*: Add 'License' field.
88979         * gnulib-tool: Accept --extract-license option.
88980         (func_get_license): New function.
88981
88982 2004-09-21  Bruno Haible  <bruno@clisp.org>
88983
88984         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88985         Reported by Simon Josefsson.
88986
88987 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88988
88989         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88990         gl_AC_TYPE_LONG_LONG.
88991
88992 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88993
88994         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88995
88996 2004-09-18  Simon Josefsson  <jas@extundo.com>
88997         and  Paul Eggert  <eggert@cs.ucla.edu>
88998
88999         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
89000         calls with autoreconf.  Define GL_LIB.
89001
89002 2004-09-14  Karl Berry  <karl@gnu.org>
89003
89004         * config/srclist.txt: unsync setenv.c, sigh.
89005
89006 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89007
89008         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
89009         Problem reported by Bruno Haible in:
89010         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
89011
89012 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
89013
89014         * config/srclist.txt: Comment out argp-pvh.c.
89015
89016 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
89017
89018         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
89019         in case some system header has #define'd it.  Problem reported by
89020         Soeren D. Schulze in
89021         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
89022
89023 2004-09-09  Karl Berry  <karl@gnu.org>
89024
89025         * regex.[ch]: delete from the root.  These were supposed to be
89026                 synced with emacs cvs, but this has not happened for about
89027                 a year, and anyway nothing else uses emacs regex.[ch].
89028                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
89029                 lib/regex[.ch] is untouched.
89030
89031 2004-09-09  Bruno Haible  <bruno@clisp.org>
89032
89033         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
89034
89035 2004-09-09  Bruno Haible  <bruno@clisp.org>
89036
89037         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
89038         modifications.
89039         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
89040
89041 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89042
89043         * modules/xvasprintf: New file.
89044         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
89045
89046 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
89047
89048         * lib/xvasprintf.h: New file.
89049         * lib/xvasprintf.c: New file.
89050         * lib/xasprintf.c: New file.
89051
89052 2004-09-08  Bruno Haible  <bruno@clisp.org>
89053
89054         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
89055
89056 2004-09-08  Bruno Haible  <bruno@clisp.org>
89057
89058         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
89059         length is > INT_MAX.
89060         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
89061         more.
89062
89063 2004-09-08  Bruno Haible  <bruno@clisp.org>
89064
89065         * lib/stdint_.h: New file, taken from GNU clisp.
89066
89067 2004-09-08  Bruno Haible  <bruno@clisp.org>
89068             Oskar Liljeblad  <oskar@osk.mine.nu>
89069
89070         * modules/stdint: New file.
89071         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
89072
89073 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89074
89075         Import from coreutils.
89076         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
89077         strings on unbounded length.  alloca's performance benefits aren't
89078         that important here.
89079         (V_STRDUP): Remove.
89080         (parse_with_separator): New function, with most of the internals
89081         of the old parse_user_spec.  Allow user to omit both user and group,
89082         for compatibility with FreeBSD.
89083         Clone only the user name, not the entire spec.
89084         Do not set *uid, *gid unless entirely successful.
89085         Avoid memory leak in some failing cases.
89086         Fix regression for USER.GROUP reported by Dmitry V. Levin in
89087         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
89088         (parse_user_spec): Rewrite to use parse_with_separator.
89089
89090 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89091
89092         * modules/userspec: Don't depend on alloca.
89093
89094 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
89095
89096         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
89097
89098 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
89099
89100         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
89101         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
89102         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
89103
89104 2004-08-16  Simon Josefsson  <jas@extundo.com>
89105
89106         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
89107         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
89108         Add --dry-run for --import.
89109         Let user provided command line parameters override configure.ac
89110         settings.
89111
89112 2004-08-12  Simon Josefsson  <jas@extundo.com>
89113
89114         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
89115         as discussed with Paul Eggert in threads rooted at
89116         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
89117         and
89118         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
89119         Before, the test was empty, and relied on ELIDE_CODE in source
89120         code.)
89121         (gl_PREREQ_GETOPT): New macro.
89122         (gl_GETOPT): Use them.
89123
89124 2004-08-12  Simon Josefsson  <jas@extundo.com>
89125
89126         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
89127         * lib/getopt_.h: Renamed from getopt.h.
89128
89129 2004-08-12  Simon Josefsson  <jas@extundo.com>
89130
89131         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
89132         Change default library name from libfoo to libgnu.
89133         Now, if you have a configure.ac that says:
89134                 gl_SOURCE_BASE(gl)
89135                 gl_M4_BASE(gl/m4)
89136                 gl_MODULES(error getopt etcetera)
89137                 gl_INIT
89138         you can import all you need by running:
89139                 ../gnulib/gnulib-tool --import
89140
89141         * modules/getopt (Files): Rename getopt.h to getopt_.h.
89142         (Makefile.am): Rewrite, use logic from argz.
89143         (Include): Use <getopt.h> instead of "getopt.h".
89144
89145 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89146
89147         * modules/argp (Files): Add m4/unlocked-io.m4.
89148         (Depends-on): Add extensions.
89149
89150 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89151
89152         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
89153         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
89154         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
89155         Check for program_invocation_name, program_invocation_short_name,
89156         flockfile, funlockfile, features.h, _getopt_long_only_r.
89157
89158 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89159
89160         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
89161         its complicated substitute.
89162         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
89163         and program_invocation_name.
89164         (__argp_basename) [!_LIBC]: Remove; the only use was
89165         replaced by its body.
89166         (__argp_short_program_name): Change condition from
89167         !defined __argp_short_program_name to
89168         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
89169         to match argp-namefrob.h.
89170         (__argp_failure): Don't assume strerror_r returns char *.
89171         * lib/argp-parse.c (N_): Define unconditionally.
89172         (argp_default_options): Fill out initializers with 0 to avoid
89173         gcc warnings.
89174
89175 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
89176
89177         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
89178         getopt1.c.
89179
89180 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89181
89182         Merge from coreutils.
89183
89184         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
89185
89186         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
89187         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
89188
89189 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89190
89191         Merge from coreutils.
89192
89193         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
89194         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
89195         for Reliant Unix 5.43.
89196
89197         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
89198         (union fooround): Use uintmax_t, not long int.
89199         The rest is a merge from libc:
89200         [defined _LIBC]: Include <shlib-compat.h>.
89201         (_obstack) [defined _LIBC]: Remove after 2.3.4.
89202
89203         * lib/settime.c (settime): Recode to avoid warning with
89204         Sun Forte C 6U2.
89205
89206         * lib/strverscmp.c: Convert to UTF-8.
89207
89208 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
89209
89210         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
89211         m4/uintmax_t.m4.
89212
89213 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89214
89215         * modules/xalloc-die: New file.
89216         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
89217
89218         * modules/md5 (Files): Add m4/uint32_t.m4.
89219         * modules/sha1: Renamed from modules/sha.
89220         (Files):
89221         Rename lib/sha.h to lib/sha1.h.
89222         Rename lib/sha.c to lib/sha1.c.
89223         Rename m4/sha.m4 to m4/sha1.m4.
89224         (lib_SOURCES): Likewise.
89225         (configure.ac): Rename gl_SHA to gl_SHA1.
89226         (Include): sha.h -> sha1.h.
89227
89228 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89229
89230         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
89231         * m4/sha1.m4: Renamed from sha.m4.
89232         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
89233
89234 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
89235
89236         * lib/obstack.h (obstack_empty_p):
89237         Don't assume that chunk->contents is suitably aligned.
89238         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
89239         Likewise. Problem reported by Benno in
89240         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
89241
89242         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
89243         readable.  This could be improved further but it'd take some work.
89244
89245 2004-08-08  Simon Josefsson  <jas@extundo.com>
89246
89247         * modules/xgethostname (Depends-on): Remove exit and error (not
89248         used).
89249
89250         * modules/getpass-gnu: Add getpass.h.
89251         (Depends-on): Add stdbool.
89252         * modules/getpass: Add getpass.h.
89253
89254 2004-08-08  Simon Josefsson  <jas@extundo.com>
89255
89256         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
89257         Check getpass declaration.
89258
89259 2004-08-08  Simon Josefsson  <jas@extundo.com>
89260
89261         * lib/xgethostname.c: Don't include error.h (not used).
89262
89263         * lib/getpass.h: Add.
89264         * lib/getpass.c: Include getpass.h first.
89265
89266 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
89267
89268         * lib/xalloc-die.c: New file.
89269         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
89270         All uses removed.
89271         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
89272         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
89273         xalloc-die.c.
89274         (_, N_, xalloc_die): Move to xalloc-die.c.
89275         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
89276         so that we needn't mess with xalloc_msg_memory_exhausted.
89277
89278         * lib/sha1.h: Renamed from sha.h.
89279         (SHA1_H): Renamed from _SHA_H.
89280         (sha1_ctx): Renamed from sha_ctx.
89281         (sha1_init_ctx): Renamed from sha_init_ctx.
89282         (sha1_process_block): Renamed from sha_process_block.
89283         (sha1_process_bytes): Renamed from sha_process_bytes.
89284         (sha1_finish_ctx): Renamed from sha_finish_ctx.
89285         (sha1_read_ctx): Renamed from sha_read_ctx.
89286         (sha1_stream): Renamed from sha_stream.
89287         (sha1_buffer): Renamed from sha_buffer.
89288         * lib/sha1.c: Likewise; renamed from sha.c.
89289         Do not include <sys/types.h>.
89290         Include <stddef.h> rather than <stdlib.h>.
89291
89292 2004-08-08  Bruno Haible  <bruno@clisp.org>
89293
89294         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
89295         FILESYSTEM_PREFIX_LEN.
89296         * lib/progreloc.c: Likewise.
89297         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
89298
89299 2004-08-06  Simon Josefsson  <jas@extundo.com>
89300
89301         * modules/progname (Depends-on): Don't depend on stdbool.
89302
89303 2004-08-06  Simon Josefsson  <jas@extundo.com>
89304
89305         * modules/getsubopt: New file.
89306         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
89307         getsubopt.
89308
89309 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89310
89311         More merge from coreutils.
89312
89313         * m4/utimens.m4, m4/utimecmp.m4: New files.
89314         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
89315         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
89316         prereq.m4, sha.m4: Import changes from coreutils.
89317
89318 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89319
89320         More merge from coreutils.
89321         * modules/raise, modules/readtokens0, modules/utimens:
89322         * modules/utimecmp, module/xnanosleep: New files.
89323         * modules/strftime: Add lib/strftime.h.
89324         Change include from <time.h> to "strftime.h".
89325         * modules/yesno: Add lib/yesno.h.
89326         * modules/backupfile: Remove lib/addext.c.
89327         * modules/euidaccess: Add stat-macros.h.
89328         * modules/canonicalize, modules/euidaccess,
89329         modules/filemode, modules/lchown, modules/makepath,
89330         modules/rmdir, modules/stat: Likewise.
89331
89332 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
89333
89334         Merge from tar.
89335         * lib/argp-help.c (make_hol, hol_append): Don't assume that
89336         SIZE_MAX is a valid preprocessor constant.
89337         (__argp_basename): Change from "#ifndef _LIBC"
89338         to "#ifndef __argp_short_program_name", so that
89339         we don't compile these functions for tar.
89340
89341         More merges from coreutils.
89342         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
89343         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
89344         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
89345         * lib/addext.c: Remove; no longer needed.
89346         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
89347         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
89348         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
89349         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
89350         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
89351         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
89352         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
89353         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
89354         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
89355         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
89356         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
89357         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
89358         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
89359         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
89360         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
89361         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
89362         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
89363         Import changes from coreutils.
89364
89365 2004-08-05  Simon Josefsson  <jas@extundo.com>
89366
89367         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
89368
89369 2004-08-05  Simon Josefsson  <jas@extundo.com>
89370
89371         * m4/getsubopt.m4: New file.
89372
89373 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89374
89375         Merge from coreutils.
89376
89377         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
89378         * m4/getcwd-path-max.m4: New files.
89379
89380         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
89381         FILESYSTEM_PREFIX_LEN ->
89382         FILE_SYSTEM_PREFIX_LEN.
89383         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
89384         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
89385         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
89386         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
89387
89388         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
89389         prerequisite modules now handle the DOS stuff.
89390         Don't check for unistd.h.
89391
89392 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89393
89394         Merge from coreutils.
89395
89396         * lib/.gdb-history: Remove; this doesn't belong here.
89397
89398         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
89399         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
89400         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
89401         * lib/getcwd.c: New files.
89402
89403         * lib/dirname.h: Include <stdbool.h>.
89404         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
89405         for consistency with POSIX terminology.  All uses changed.
89406         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
89407         (strip_trailing_slashes): Use bool for booleans.
89408         * lib/stripslash.c (strip_trailing_slashes): Likewise.
89409
89410         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
89411         sometimes returns a positive errno value even when it succeeds.
89412         (print_errno_message) [!LIBC]: Fall back on strerror if
89413         __strerror_r fails.
89414
89415         * lib/path-concat.c (mempcpy): Don't define if a system header defines
89416         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
89417         (longest_relative_suffix): New function.
89418         (path_concat): Use it.  Assume first argument is not NULL.
89419         Port to DOS.  Omit redundant separators.
89420         Report an error instead of returning NULL.
89421         Use mempcpy instead of memcpy.
89422         (xpath_concat): Remove: not declared or used.
89423
89424         * lib/same.h: Include <stdbool.h>
89425         (same_name): Return bool, not int.
89426         * lib/same.c (same_name): Likewise.
89427         (errno): Don't declare; we assume C89 or better now.
89428
89429         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
89430         if not already defined.
89431
89432         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
89433         * lib/dup-safer.c (errno): Likewise.
89434
89435 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
89436
89437         Merge from coreutils.
89438         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
89439         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
89440         * modules/path-concat: Don't depend on strdup.
89441
89442 2004-08-03  Simon Josefsson  <jas@extundo.com>
89443
89444         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
89445         * lib/progname.h: Don't include stdbool.h.
89446
89447 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89448
89449         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
89450         * MODULES.html.sh (func_all_modules): Remove fatal.
89451
89452 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89453
89454         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
89455
89456 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
89457
89458         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
89459         working.
89460
89461 2004-08-02  Simon Josefsson  <jas@extundo.com>
89462
89463         * lib/getsubopt.h: New file, with comments from Bruno Haible.
89464         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
89465         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
89466
89467 2004-08-01  Simon Josefsson  <jas@extundo.com>
89468
89469         * lib/xgetdomainname.c: Include stdlib.h, for free().
89470
89471 2004-07-19  Bruno Haible  <bruno@clisp.org>
89472
89473         * MODULES.html.sh (func_all_modules): Add dummy.
89474
89475 2004-07-16  Simon Josefsson  <jas@extundo.com>
89476
89477         * modules/dummy: New file.
89478
89479 2004-07-16  Simon Josefsson  <jas@extundo.com>
89480
89481         * lib/dummy.c: New file.
89482
89483 2004-07-16  Bruno Haible  <bruno@clisp.org>
89484
89485         * lib/backupfile.h: Add extern "C" for C++.
89486         * lib/closeout.h: Likewise.
89487         * lib/copy-file.h: Likewise.
89488         * lib/findprog.h: Likewise.
89489         * lib/full-write.h: Likewise.
89490         * lib/pathname.h: Likewise.
89491         * lib/progname.h: Likewise.
89492         * lib/stpcpy.h: Likewise.
89493         * lib/stpncpy.h: Likewise.
89494         * lib/strcase.h: Likewise.
89495         * lib/strstr.h: Likewise.
89496         * lib/xalloc.h: Likewise.
89497
89498         * lib/mbswidth.h: Add extern "C" for C++.
89499         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
89500
89501 2004-07-13  Robert Millan  <robertmh@gnu.org>
89502
89503         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
89504
89505 2004-07-09  Simon Josefsson  <jas@extundo.com>
89506
89507         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
89508         failed without this.)
89509
89510 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89511
89512         * modules/chown (Files): Add lib/fchown-stub.c, since
89513         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
89514
89515 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
89516
89517         * lib/fchown-stub.c: New file.
89518
89519 2004-06-24  Jim Meyering  <jim@meyering.net>
89520
89521         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
89522
89523 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89524
89525         * modules/argz: Omit "#include".
89526
89527         * MODULES.html.sh (func_all_modules): Add calloc, to match
89528         2004-06-01 addition of calloc module.
89529
89530 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89531
89532         * m4/argz.m4: New file, which is autoupdated from libtool.
89533
89534 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89535
89536         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
89537         libtool.
89538
89539 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
89540
89541         * config/srclist-update: Don't insist on "USA." before the
89542         close-comment, as libtool omits the period and puts the */ on a
89543         separate line.
89544         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
89545         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
89546
89547 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
89548
89549         * modules/argz: New file.
89550         * MODULES.html.sh (func_all_modules): Add argz.
89551
89552 2004-06-12  Jim Meyering  <jim@meyering.net>
89553         and  Paul Eggert  <eggert@cs.ucla.edu>
89554
89555         * modules/hash (Files): Add lib/xalloc.h.
89556         * modules/pipe (Depends-on): Add wait-process.
89557         * modules/stat (Depends-on): Add xalloc.
89558         * modules/userspec (Files): Add lib/userspec.h.
89559         * modules/xstrto
89560
89561         Upgrade from gettext-0.13.
89562         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
89563         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
89564         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
89565
89566 2004-06-10  Jim Meyering  <jim@meyering.net>
89567
89568         * lib/calloc.c: New file.
89569
89570 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
89571
89572         * lib/getdate.y (yylex): Allow space between sign and number.
89573         Problem reported by Dan Jacobson.
89574
89575 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89576
89577         Merge from coreutils CVS.
89578
89579         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
89580         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
89581         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
89582         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
89583         xstrtol.m4: Fix copyright date and/or serial number.
89584
89585         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
89586         See if we need an fchown replacement.
89587         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
89588         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
89589         and use the replacement function if we detect either defect.
89590
89591         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
89592         gl_UTIMECMP.
89593
89594 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
89595         and  Jim Meyering  <jim@meyering.net>
89596
89597         Merge from coreutils CVS.
89598
89599         * lib/stat-macros.h: New file, with contents from file-type.h
89600         and coreutils' system.h.
89601         * lib/file-type.c: Include "stat-macros.h".
89602         * lib/file-type.h (file_type): Move all macro definitions to new file,
89603         stat-macros.h.
89604
89605         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
89606         Wrap old code with this conditional.
89607         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
89608         function that does not dereference symlinks.
89609         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
89610
89611         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
89612         dependency problems.
89613         (xreadlink): Accept new arg SIZE, for efficiency.
89614         All decls and uses changed.
89615         * lib/xreadlink.h: Include <stddef.h>, for size_t.
89616
89617         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
89618         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
89619
89620         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
89621         sysexits.h.
89622
89623 2004-06-01  Jim Meyering  <jim@meyering.net>
89624
89625         * m4/calloc.m4: New file.
89626
89627 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
89628
89629         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
89630         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
89631         Also, fix a typo in a diagnostic.
89632
89633 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89634
89635         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
89636         or AC_FUNC_REALLOC.
89637
89638 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
89639
89640         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
89641         macros to be defined.
89642         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
89643         the allocator returns NULL because the requested size is zero.
89644
89645 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
89646
89647         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
89648         var.  Add comment explaining why libc still defines it.  This
89649         merges the following patch from glibc:
89650         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
89651
89652 2004-05-20  Andreas Schwab  <schwab@suse.de>
89653
89654         * m4/free.m4: Replace free if it not known to work, not the other
89655         way round.
89656
89657 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
89658
89659         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
89660         present in glibc since revision 1.1 of this file.
89661         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
89662         obstack_alignment_mask, obstack_alloc, obstack_base,
89663         obstack_blank, obstack_blank_fast, obstack_chunk_size,
89664         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
89665         obstack_grow0, obstack_init, obstack_int_grow,
89666         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
89667         obstack_next_free, obstack_object_size, obstack_ptr_grow,
89668         obstack_ptr_grow_fast, obstack_room): Remove declarations of
89669         nonexistent functions.
89670
89671 2004-05-18  Karl Berry  <karl@gnu.org>
89672
89673         * config/srclist.txt: break link for vasnprintf.c.
89674
89675 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89676
89677         Port obstack to the AS/400, where pointers are 16 bytes wide and
89678         you cannot cast an integer to a valid pointer.  This patch is
89679         currently waiting to be integrated into glibc; see
89680         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
89681
89682         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
89683         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
89684         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
89685         (struct obstack): temp member is now a union of a pointer and
89686         an integer, instead of an integer.  All integer uses changed.
89687         This does not affect the physical layout of struct obstack,
89688         except on hosts (like the AS/400) where the size or alignment of
89689         void * is greater than that of ptrdiff_t.
89690         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
89691         __STDC__)]: Store temporary in pointer member of union, not
89692         integer member.
89693         * lib/obstack.c: Include <stddef.h>, for offsetof.
89694         (struct fooalign): Remove; it doesn't need a name.
89695         (union fooround): Change double to long double, and add void *.
89696         (DEFAULT_ALIGNMENT): Use offsetof to compute.
89697         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
89698         not a macro.  Hence the values are always int; so remove all
89699         casts-to-int in uses.
89700
89701 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
89702
89703         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
89704         we can get this patch merged into glibc.
89705
89706 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89707             Paul Eggert  <eggert@cs.ucla.edu>
89708
89709         * m4/argp: Depend on alloca.
89710
89711 2004-05-17  Derek R. Price  <derek@ximbiot.com>
89712             Paul Eggert  <eggert@cs.ucla.edu>
89713
89714         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
89715         freecoding.
89716
89717 2004-05-17  Bruno Haible  <bruno@clisp.org>
89718
89719         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
89720         precision that consists of a '.' followed by an empty digit string.
89721         Patch by Tor Lillqvist <tml@iki.fi>.
89722
89723 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89724
89725         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
89726         for backward compatibility with older code.  We need our own
89727         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
89728         it under some other name, and our alloca.h will define it.
89729
89730 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
89731             Derek Price  <derek@ximbiot.com>
89732
89733         * lib/alloca.c: Include <alloca.h>, to get our interface.
89734         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
89735         include <alloca.h> first.  Use C89 prototype for alloca; this
89736         requires including <stddef.h> for size_t.  Use extern "C" if C++.
89737         Use #elif for simplicity, since we can assume C89 now.
89738         Don't try to source the system alloca.h since it will not be found
89739         and to prevent recursively including its replacement.
89740         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
89741         * lib/regex.c: Likewise.
89742
89743 2004-05-16  Derek Price  <derek@ximbiot.com>
89744             Paul Eggert  <eggert@cs.ucla.edu>
89745
89746         getline cleanup.  This changes the getndelim2 API: both order of
89747         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
89748         no delimiter).
89749
89750         * lib/getline.c: Don't include stddef.h or stdio.h, since our
89751         interface does that.
89752         (getline): Always use getdelim, so that we don't have two
89753         copies of this code.
89754         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
89755         if available.
89756         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
89757         (GETNDELIM2_MAXIMUM): New macro.
89758         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
89759         instead of the old practice of delim2==0.  All callers changed.
89760         Return -1 on overflow, instead of returning junk.
89761         Do not set *linesize unless allocation succeeds.
89762         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
89763         that we include sys/types.h.
89764         * lib/getnline.h: Likewise.
89765         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
89766         (getndelim2): Reorder arguments.
89767         * lib/getnline.c (getnline, getndelim):
89768         Don't discard the NMAX argument.
89769         (getnline): Invoke getndelim, to avoid code duplication.
89770         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
89771         of (size_t) -1 by callers of the getnline family.
89772
89773 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89774
89775         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
89776         Check for gettimeofday.
89777         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
89778         Check for settimeofday, stime.
89779
89780 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
89781
89782         * lib/nanosleep.c (suspended): Change its type from int to
89783         sig_atomic_t volatile.
89784         (first_call): Make it private to rpl_nanosleep, and have it
89785         be zero initially as that's a bit faster.
89786         (my_usleep): Round up fractional times instead of truncating them,
89787         as this is the usual meaning for 'sleep'.
89788
89789         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
89790         doesn't work.
89791         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
89792         (ENOSYS): Define if not defined.
89793         (settime): Fall back on stime if it exists and settimeofday fails.
89794         But don't bother with fallbacks if a method fails with errno == EPERM.
89795
89796 2004-05-11  Jim Meyering  <jim@meyering.net>
89797
89798         Prior to this change, the save_cwd caller required read access to the
89799         current directory on most systems (ones with the fchdir function).
89800
89801         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
89802         fails, try write-only, and finally, resort to using xgetcwd.
89803
89804 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
89805
89806         * lib/obstack.c, obstack.h: Import changes from libc.
89807
89808 2004-04-28  Bruno Haible  <bruno@clisp.org>
89809
89810         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89811         also implicitly appends .exe to executables.
89812         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89813         accepts Windows pathnames.
89814         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89815         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89816         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89817         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89818         Reported by Derek Robert Price <derek@ximbiot.com>.
89819
89820 2004-04-21  Karl Berry  <karl@gnu.org>
89821
89822         * config/srclist.txt (localcharset.c): break sync.
89823
89824 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89825
89826         * m4/host-os.m4: Add a copyright notice.
89827
89828 2004-04-20  Jim Meyering  <jim@meyering.net>
89829
89830         Change UTILS_ to gl_ in AC_DEFINE'd names.
89831         Change utils_- and jm_-prefixed variables, too.
89832         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89833         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89834         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89835
89836         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89837         Don't emit trailing blanks.
89838         Also rename jm_-prefixed variables to have gl_ prefix.
89839
89840         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89841         Also rename jm_-prefixed variables to have gl_ prefix.
89842
89843         * m4/jm-macros.m4: Reflect the renamings.
89844         * m4/prereq.m4: Likewise.
89845
89846 2004-04-20  Jim Meyering  <jim@meyering.net>
89847
89848         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89849         memory.
89850
89851 2004-04-20  Jim Meyering  <jim@meyering.net>
89852             Bruno Haible  <bruno@clisp.org>
89853
89854         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89855         memory when realloc fails.
89856
89857 2004-04-19  Jim Meyering  <jim@meyering.net>
89858
89859         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89860         now that readutmp.c may call `free (0)'.
89861
89862 2004-04-19  Bruno Haible  <bruno@clisp.org>
89863
89864         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89865         * m4/inttypes_h.m4: Likewise.
89866         * m4/stdint_h.m4: Likewise.
89867         * m4/intmax_t.m4: Likewise.
89868         * m4/uintmax_t.m4: Likewise.
89869
89870 2004-04-18  Jim Meyering  <jim@meyering.net>
89871
89872         * m4/prereq.m4: Don't forbid jm_ prefix.
89873
89874         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89875         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89876         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89877         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89878         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89879         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89880         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89881         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89882         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89883         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89884         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89885         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89886         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89887         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89888         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89889         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89890         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89891         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89892         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89893
89894 2004-04-18  Jim Meyering  <jim@meyering.net>
89895
89896         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89897         failure, don't leak memory and do call END_UTMP_ENT.
89898
89899 2004-04-16  Jim Meyering  <jim@meyering.net>
89900
89901         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89902         coreutils' stat program.
89903         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89904
89905 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89906
89907         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89908         C89.
89909         (CHAR_BIT): Remove, since we assume C89.
89910         Include <stdint.h> if available, as per current Autoconf CVS advice.
89911
89912 2004-03-31  Jim Meyering  <jim@meyering.net>
89913
89914         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89915         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89916         * m4/xalloc.m4: Likewise.
89917
89918 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89919
89920         Merge from coreutils.
89921
89922         * m4/inttostr.m4: New file.
89923         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89924         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89925         Require gl_CLOCK_TIME.
89926         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89927
89928 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89929
89930         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89931         not bool, to be more consistent with Unix conventions.
89932         Suggested by Bruno Haible.
89933
89934         Merge from coreutils.
89935
89936         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89937         * lib/umaxtostr.c: New files.
89938
89939         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89940         the usual <time.h> dance.
89941         (get_date): Change signature to support fractional time stamps.
89942         All callers changed.
89943         * lib/getdate.y: Include "getdate.h" first, as we can now
89944         assume C89 and don't need to worry about 'const'.
89945         Similarly, include "unlocked-io.h" near start, not in middle.
89946         Include <limits.h>.
89947         (textint.value): Use long int rather than int.
89948         (textint.digits): Use size_t rather than int.
89949         (BILLION, LOG10_BILLION): New constants.
89950         (parser_control): New member rel_ns.  Members day_ordinal,
89951         time_zone, month, day, hour, minutes, rel_year, rel_month,
89952         rel_day, rel_hour, rel_minutes, rel_seconds
89953         are now long int, not int.  Member seconds is now struct timespec,
89954         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89955         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89956         not int.
89957         (%union.intval): Now long int, not int.
89958         New member timespec.
89959         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89960         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89961         (spec): Now is a timespec or an item list.
89962         (timespec, items): New nonterminals.
89963         (time, rel, relunit, number, get_date):
89964         Add support for fractional seconds.
89965         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89966         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89967         (to_hour): First arg is now long int, not int.
89968         (to_year): Returns long int, not int.
89969         Don't treat year -70 like 70.
89970         (tm_diff): Returns long int, not int.
89971         (lookup_word): Use bool instead of int when appropriate.
89972         (yylex): Use size_t for count, not int.
89973         Detect overflow when parsing large integer constants.
89974         Add support for fractions.
89975         (get_date): Make pointers 'const' if possible.
89976         Use more-portable code to detect integer overflow.
89977         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89978         Don't use ctime; it's not reliable if the year has >4 digits.
89979
89980         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89981         This is for compatibility with BSD.
89982
89983         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89984         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89985         From coreutils' system.h.
89986
89987         * lib/userspec.c: Don't include "posixver.h".
89988         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89989         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89990         compatible extension.  Simplify code by removing a boolean int
89991         that was always nonzero if a string was nonnull.
89992
89993 2004-03-30  Jim Meyering  <jim@meyering.net>
89994
89995         Merge from coreutils.
89996
89997         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89998         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89999         on some systems one must include <grp.h> before it.
90000         Reported by Christian Krackowizer.
90001
90002 2004-03-30  Jim Meyering  <jim@meyering.net>
90003
90004         Merge from coreutils.
90005
90006         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
90007
90008         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
90009         an empty input stream.
90010
90011         * lib/readtokens.c: Include <stdbool.h>.
90012         (readtoken): Use `size_t' rather than int/long.
90013         All callers adjusted.
90014         Use `bool' rather than `int' where appropriate.
90015         Use memset rather than an explicit loop.
90016         Use x2nrealloc rather than xrealloc.
90017         Allow the use of `\0' as a delimiter.
90018         (readtokens): Likewise.
90019         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
90020
90021 2004-03-30  Jim Meyering  <jim@meyering.net>
90022
90023         * m4/realloc.m4: Remove file, since now it does no more than
90024         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
90025         the `configure.ac' section of module/realloc.
90026         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
90027
90028 2004-03-30  Bruno Haible  <bruno@clisp.org>
90029
90030         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
90031         nonnull.
90032
90033 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90034
90035         Merge changes to getloadavg.c from coreutils and Emacs.
90036
90037         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
90038         Define to an expression, not to the empty string.
90039         Include cloexec.h and xalloc.h.
90040         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
90041         Use set_cloexec_flag rather than rolling our own.
90042         * lib/cloexec.c, lib/cloexec.h: New files.
90043
90044 2004-03-29  Paul Eggert  <eggert@twinsun.com>
90045
90046         * m4/cloexec.m4: New file.
90047
90048 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90049
90050         * lib/getopt.h: Sync with libc CVS.
90051
90052 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90053             Bruno Haible  <bruno@clisp.org>
90054
90055         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
90056         mbswidth.
90057
90058 2004-03-18  Paul Eggert  <eggert@twinsun.com>
90059             Bruno Haible  <bruno@clisp.org>
90060
90061         * lib/mbswidth.h: Include <wchar.h> only if
90062         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
90063         <wchar.h>.
90064         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
90065
90066 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90067
90068         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
90069         Sync with libc CVS.
90070         * lib/getopt_int.h: New file, also synced from libc.
90071
90072 2004-03-09  Paul Eggert  <eggert@twinsun.com>
90073
90074         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
90075         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
90076         Bring back getopt.c, getopt.h, getopt1.c.
90077
90078 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90079
90080         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
90081         All uses changed.  Check for sa_sigaction member; this fixes
90082         a bug first reported by Jason Andrade in
90083         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90084
90085 2004-03-07  Paul Eggert  <eggert@twinsun.com>
90086
90087         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
90088         '#if' expressions.  Unlike the code it replaces, it does not
90089         depend on (defined _SC_PAGESIZE).  However, it does depend on
90090         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
90091         first reported by Jason Andrade in
90092         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
90093
90094 2004-02-25  Simon Josefsson  <jas@extundo.com>
90095
90096         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
90097
90098 2004-02-25  Simon Josefsson  <jas@extundo.com>
90099
90100         * lib/strdup.h: New file.
90101         * lib/strdup.c: Include it.
90102         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
90103         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
90104
90105 2004-02-23  Karl Berry  <karl@gnu.org>
90106
90107         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
90108         (from fencepost.gnu.org:/gd/gnuorg).
90109
90110 2004-02-23  Karl Berry  <karl@gnu.org>
90111
90112         * config/srclistvars.sh (GNUORG) [karl]: redefine.
90113         * config/srclist.txt: add maintain/standards documents.
90114
90115 2004-02-18  Bruno Haible  <bruno@clisp.org>
90116
90117         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
90118         Reported by Derek Robert Price <derek@ximbiot.com>.
90119
90120 2004-02-16  Karl Berry  <karl@gnu.org>
90121
90122         * config/mkinstalldirs, install-sh: update from automake.
90123
90124 2004-02-06  Karl Berry  <karl@gnu.org>
90125
90126         * m4/po.m4: update from gettext 0.14.1.
90127
90128 2004-02-06  Karl Berry  <karl@gnu.org>
90129
90130         * lib/config.charset: update from gettext 0.14.1.
90131
90132 2004-02-05  Paul Eggert  <eggert@twinsun.com>
90133
90134         Add comments and code, prompted by suggestions from Bruno Haible
90135         for sh-quote.
90136         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
90137         describing the enum quoting_style values.
90138         * lib/quotearg.c (quotearg_alloc): New function.
90139         (quotearg_buffer_restyled): Treat lone { and } as special.
90140         Treat = as special.  Work around bug with older shells
90141         that "see" a '\' that is really the 2nd byte of a multibyte char.
90142         Quote empty string with shell_quoting_style.
90143
90144 2004-02-03  Bruno Haible  <bruno@clisp.org>
90145
90146         * m4/pipe.m4: New file, from GNU gettext.
90147
90148 2004-02-03  Bruno Haible  <bruno@clisp.org>
90149
90150         * lib/pipe.h: New file, from GNU gettext.
90151         * lib/pipe.c: New file, from GNU gettext.
90152
90153 2004-01-27  Bruno Haible  <bruno@clisp.org>
90154
90155         * m4/execute.m4: New file, from GNU gettext.
90156
90157 2004-01-27  Bruno Haible  <bruno@clisp.org>
90158
90159         * lib/execute.h: New file, from GNU gettext.
90160         * lib/execute.c: New file, from GNU gettext.
90161         * lib/w32spawn.h: New file, from GNU gettext.
90162
90163 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90164
90165         Merge from diffutils.
90166
90167         * lib/file-type.c (file_type): Add typed memory objects.
90168         * lib/file-type.h (S_TYPEISTMO): New macro.
90169
90170         * lib/c-stack.h (c_stack_action): Remove argv argument.
90171         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
90172         (die): Don't calculate message unless segv_action returns.
90173         (get_stack_location, min_address_from_argv, max_address_from_argv,
90174         volatile stack_base, volatile_stack_size): Remove.
90175         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
90176         that every segmentation violation is a stack overflow.  (Ouch!)
90177         See Debian bug 136249 (still outstanding) for more info about why
90178         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
90179
90180 2004-01-24  Paul Eggert  <eggert@twinsun.com>
90181
90182         Exit-status fix from coreutils.
90183
90184         Use exit_failure consistently in place of EXIT_FAILURE,
90185         so that program exit statuses are consistent on failure.
90186
90187         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
90188         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
90189         * lib/argmatch.h: Comment fix to match the above.
90190         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
90191         Now a macro referring to exit_failure, instead of a separate
90192         variable.  Include "exitfail.h" to get it.
90193         * lib/xstrtol.h: Include "exitfail.h".
90194         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
90195
90196         * lib/long-options.c (parse_long_options): Use prototype
90197         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
90198         for clarity.
90199
90200 2004-01-21  Jim Meyering  <jim@meyering.net>
90201
90202         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
90203         so as not to conflict with a different-sized __mktime_internal
90204         function in GNU libc.
90205         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
90206         Problem building statically-linked `ls' reported by Michael Brunnbauer.
90207
90208 2004-01-20  Karl Berry  <karl@gnu.org>
90209
90210         * config/config.guess: update from config.
90211
90212         * config/srclistvars.sh: GNUWWWLICENSES for karl.
90213
90214 2004-01-20  Bruno Haible  <bruno@clisp.org>
90215
90216         Safer stack allocation.
90217         * lib/setenv.c: Include allocsa.h.
90218         (alloca): Remove fallback definition.
90219         (freea): Remove macro.
90220         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
90221         instead of freea.
90222
90223 2004-01-20  Bruno Haible  <bruno@clisp.org>
90224
90225         * m4/eealloc.m4: New file, from GNU gettext.
90226
90227 2004-01-20  Bruno Haible  <bruno@clisp.org>
90228
90229         * m4/allocsa.m4: New file, from GNU gettext.
90230
90231 2004-01-20  Bruno Haible  <bruno@clisp.org>
90232
90233         * lib/xallocsa.h: New file, from GNU gettext.
90234         * lib/xallocsa.c: New file, from GNU gettext.
90235
90236 2004-01-20  Bruno Haible  <bruno@clisp.org>
90237
90238         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
90239
90240 2004-01-20  Bruno Haible  <bruno@clisp.org>
90241
90242         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
90243         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
90244         specially.
90245
90246 2004-01-20  Bruno Haible  <bruno@clisp.org>
90247
90248         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
90249         patch.
90250
90251 2004-01-20  Bruno Haible  <bruno@clisp.org>
90252
90253         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
90254
90255 2004-01-20  Bruno Haible  <bruno@clisp.org>
90256
90257         * lib/eealloc.h: New file.
90258
90259 2004-01-20  Bruno Haible  <bruno@clisp.org>
90260
90261         * lib/binary-io.h: Avoid warnings on Cygwin.
90262
90263 2004-01-20  Bruno Haible  <bruno@clisp.org>
90264
90265         * lib/allocsa.h: New file, from GNU gettext.
90266         * lib/allocsa.c: New file, from GNU gettext.
90267
90268 2004-01-18  Karl Berry  <karl@gnu.org>
90269
90270         * doc/gpl.texi, doc/lgpl.texi: new files.
90271
90272 2004-01-18  Karl Berry  <karl@gnu.org>
90273
90274         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
90275         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
90276
90277 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90278
90279         Merge from coreutils.
90280
90281         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
90282         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
90283         (gl_DEFAULT_POSIX2_VERSION): Move
90284         the documentation from 'configure' into 'config.hin',
90285         so that 'configure --help' isn't burdened by it and
90286         we don't have to worry about its formatting there.
90287         Reword the documentation so that it's more succinct
90288         and can be run together into a single paragraph.
90289         * m4/same.m4 (gl_SAME): Check for pathconf.
90290
90291 2004-01-15  Paul Eggert  <eggert@twinsun.com>
90292
90293         Merge from coreutils.
90294
90295         * lib/posixver.c: Include posixver.h.
90296
90297         * lib/same.c: Include <stdbool.h>, <limits.h>.
90298         (_POSIX_NAME_MAX): Define if not defined.
90299         (MIN): New macro.
90300         (same_name): If file names are silently truncated, report
90301         that the file names are the same if they are the same after
90302         the silent truncation.
90303
90304         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
90305         conversion function.
90306         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
90307         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
90308         longer needed.
90309
90310 2004-01-15  Jim Meyering  <jim@meyering.net>
90311
90312         Merge from coreutils.
90313
90314         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
90315         if no library is required.
90316         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
90317         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
90318         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
90319         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
90320         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
90321         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
90322         value, $ac_cv_search_crypt, if it's "none required".
90323         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
90324         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
90325         not gl_FUNC_GETLOADAVG.
90326         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
90327         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
90328
90329 2004-01-15  Jim Meyering  <jim@meyering.net>
90330
90331         Merge from coreutils.
90332
90333         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
90334         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
90335         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
90336
90337         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
90338         optional configure-time default.
90339
90340         * lib/version-etc.c (version_etc_copyright): Update copyright date.
90341
90342         * lib/xreadlink.c (xreadlink): Correct outdated comment.
90343
90344 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
90345
90346         Merge from coreutils.
90347
90348         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
90349         value, $ac_cv_search_nanosleep, if it's "none required".
90350
90351 2004-01-14  Paul Eggert  <eggert@twinsun.com>
90352
90353         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
90354         with like-named macro in fnmatch.c.
90355         (EXT): Use an internal constant instead.
90356
90357         Merge fnmatch patches from glibc.
90358         * lib/fnmatch.c (mbsinit): Remove define.
90359         Add libc_hidden_ver (__fnmatch, fnmatch).
90360         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
90361         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
90362
90363 2004-01-14  Karl Berry  <karl@gnu.org>
90364
90365         * config/install-sh: update from automake.
90366
90367 2004-01-13  Karl Berry  <karl@gnu.org>
90368
90369         * config/install-sh: update from automake.
90370
90371 2004-01-09  Karl Berry  <karl@gnu.org>
90372
90373         * config/install-sh: update from automake.
90374
90375 2004-01-05  Karl Berry  <karl@gnu.org>
90376
90377         * config/config.{sub,guess}: update from config.
90378
90379 2003-12-31  Karl Berry  <karl@gnu.org>
90380
90381         * config/depcomp: update from automake.
90382
90383 2003-12-14  Karl Berry  <karl@gnu.org>
90384
90385         * lib/config.charset: update from gettext-runtime.
90386
90387 2003-12-03  Paul Eggert  <eggert@twinsun.com>
90388
90389         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
90390         Bug reported by Alfred M. Szmidt.
90391
90392 2003-12-03  Bruno Haible  <bruno@clisp.org>
90393
90394         * m4/gettext.m4: Upgrade from gettext-0.13.
90395         * m4/po.m4: Upgrade from gettext-0.13.
90396         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
90397         * m4/intmax.m4: New file, from gettext-0.13.
90398         * m4/printf-posix.m4: New file, from gettext-0.13.
90399
90400 2003-11-29  Karl Berry  <karl@gnu.org>
90401
90402         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
90403
90404 2003-11-25  Paul Eggert  <eggert@twinsun.com>
90405             Bruno Haible  <bruno@clisp.org>
90406
90407         * lib/printf-parse.h: Don't include sys/types.h.
90408         (ARG_NONE): New macro.
90409         (char_directive): Change type of *arg_index fields to size_t.
90410         * lib/printf-parse.c: Don't include sys/types.h.
90411         (SSIZE_MAX): Remove macro.
90412         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
90413         Remove unnecessary overflow check.
90414         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
90415         fields.
90416
90417 2003-11-25  Bruno Haible  <bruno@clisp.org>
90418
90419         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
90420
90421 2003-11-25  Bruno Haible  <bruno@clisp.org>
90422
90423         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
90424         gt_TYPE_SSIZE_T.
90425
90426 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90427
90428         * modules/alloca: Remove dependency on xalloc.
90429
90430 2003-11-24  Paul Eggert  <eggert@twinsun.com>
90431
90432         * lib/alloca.c: Remove dependency on xalloc module.
90433         (xalloc_die): Remove.
90434         (memory_full) [!defined emacs]: New macro.
90435         [!defined emacs]: Don't include xalloc.h.
90436         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
90437         address arithmetic overflows.  Change datatypes a bit to avoid
90438         unnecessary casts.
90439
90440 2003-11-22  Jim Meyering  <jim@meyering.net>
90441
90442         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
90443         s/size/size_t/.
90444
90445 2003-11-21  Karl Berry  <karl@gnu.org>
90446
90447         * config/config.{sub,guess}: update from config.
90448
90449 2003-11-18  Karl Berry  <karl@gnu.org>
90450
90451         * config/config.{sub,guess}: update from config.
90452
90453         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
90454
90455 2003-11-17  Paul Eggert  <eggert@twinsun.com>
90456
90457         * README: Mention that S+T cannot overflow if S is the size of
90458         an existing object and T is sufficiently small.
90459
90460 2003-11-17  Jim Meyering  <jim@meyering.net>
90461
90462         On systems without utime and without a utimes function capable of
90463         dealing with a NULL struct utimbuf* argument, this utime replacement
90464         could -- in unusual circumstances -- leak a file descriptor.
90465         * lib/utime.c: Include <unistd.h> and <errno.h>.
90466         (utime_null): Be sure to close `fd' and to preserve errno.
90467         Reported by Geoff Collyer via Arnold Robbins.
90468
90469 2003-11-17  Bruno Haible  <bruno@clisp.org>
90470
90471         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
90472         (Depends-on): Add xsize.
90473
90474 2003-11-17  Bruno Haible  <bruno@clisp.org>
90475
90476         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
90477
90478 2003-11-17  Bruno Haible  <bruno@clisp.org>
90479
90480         * lib/vasnprintf.c (alloca): Remove fallback definition.
90481         (freea): Remove definition.
90482         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
90483         Reported by Paul Eggert.
90484
90485 2003-11-16  Paul Eggert  <eggert@twinsun.com>
90486             Bruno Haible  <bruno@clisp.org>
90487
90488         Protect against address arithmetic overflow.
90489         * lib/printf-args.h: Include stddef.h.
90490         (arguments): Change type of field 'count' to size_t.
90491         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
90492         'unsigned int' where appropriate.
90493         * lib/printf-parse.h: Include sys/types.h.
90494         (char_directive): Change type of *arg_index fields to ssize_t.
90495         (char_directives): Change type of fields 'count', max_*_length to
90496         size_t.
90497         * lib/printf-parse.c: Include sys/types.h and xsize.h.
90498         (SSIZE_MAX): Define fallback value.
90499         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
90500         instead of 'int' where appropriate. Check a_allocated, d_allocated
90501         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
90502         * lib/vasnprintf.c: Include xsize.h.
90503         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
90504         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
90505         overflow. Avoid wraparound when converting a width or precision from
90506         decimal to binary.
90507
90508 2003-11-16  Bruno Haible  <bruno@clisp.org>
90509
90510         Update from GNU gettext.
90511         * lib/printf-parse.c: Generalize to it can be compiled for wide
90512         strings.
90513         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
90514         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
90515         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
90516         SNPRINTF): New macros.
90517         Don't include <alloca.h> if the file is used inside libintl.
90518         (local_wcslen): New function, for Solaris 2.5.1.
90519         (VASNPRINTF): Use it instead of wcslen.
90520
90521 2003-11-16  Bruno Haible  <bruno@clisp.org>
90522
90523         * lib/xsize.h (xmax): New function.
90524         (xsum, xsum3, xsum4): Declare as "pure" functions.
90525
90526 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90527
90528         * modules/xalloc (Files): Undo latest change, since xalloc.h
90529         no longer needs SIZE_MAX or PTRDIFF_MAX.
90530
90531 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90532
90533         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
90534         gl_PTRDIFF_MAX.
90535
90536 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90537
90538         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
90539         "return", to pacify some unknown compiler.  Problem reported
90540         by Joerg Schilling.
90541
90542 2003-11-12  Paul Eggert  <eggert@twinsun.com>
90543
90544         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
90545         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
90546         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
90547         heuristic is just as accurate as far as we know, and it removes a
90548         dependency on size_max.m4 and ptrdiff_max.m4.
90549
90550 2003-11-11  Bruno Haible  <bruno@clisp.org>
90551
90552         * modules/xsize (Files): Add m4/size_max.m4.
90553         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
90554
90555 2003-11-11  Bruno Haible  <bruno@clisp.org>
90556
90557         * m4/size_max.m4: New file.
90558         * m4/ptrdiff_max.m4: New file.
90559         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
90560         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
90561         (gl_XALLOC): Invoke it.
90562
90563 2003-11-11  Bruno Haible  <bruno@clisp.org>
90564
90565         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
90566         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
90567         defined.
90568
90569 2003-11-10  Paul Eggert  <eggert@twinsun.com>
90570
90571         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
90572         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
90573         rejected some allocations of exactly SIZE_MAX - 2 bytes.
90574         From Bruno Haible.
90575         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
90576         not (size_t) -1, since it's defined here.
90577
90578 2003-11-09  Karl Berry  <karl@gnu.org>
90579
90580         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
90581
90582 2003-11-06  Paul Eggert  <eggert@twinsun.com>
90583
90584         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
90585         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
90586         Reject sizes of exactly SIZE_MAX bytes.
90587         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
90588         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
90589
90590 2003-11-05  Bruno Haible  <bruno@clisp.org>
90591
90592         * lib/xsize.h: Include limits.h, to avoid a possible collision with
90593         SIZE_MAX defined in <limits.h> on Solaris.
90594
90595 2003-11-04  Jim Meyering  <jim@meyering.net>
90596
90597         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
90598         variable names, rather than @VAR@.
90599         * modules/poll: Likewise.
90600
90601 2003-11-04  Bruno Haible  <bruno@clisp.org>
90602
90603         * modules/xsize: New file.
90604         * modules/linebreak: Depend on xsize.
90605         * MODULES.html.sh (func_all_modules): Add xsize.
90606
90607 2003-11-04  Bruno Haible  <bruno@clisp.org>
90608
90609         * m4/xsize.m4: New file.
90610
90611 2003-11-04  Bruno Haible  <bruno@clisp.org>
90612
90613         * lib/xsize.h: New file.
90614         * lib/linebreak.c: Include xsize.h.
90615         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
90616         argument for overflow.
90617         Suggested by Paul Eggert.
90618
90619 2003-11-03  Karl Berry  <karl@gnu.org>
90620
90621         * config/config.{guess,sub}: update from config.
90622
90623 2003-11-03  Jim Meyering  <jim@meyering.net>
90624
90625         * modules/userspec (lib_SOURCES): Add userspec.h.
90626         (Include): Add "userspec.h".
90627         Improve description.
90628
90629 2003-11-03  Jim Meyering  <jim@meyering.net>
90630
90631         * lib/userspec.c: Include "userspec.h".
90632         * lib/userspec.h: New file.
90633
90634 2003-11-03  Bruno Haible  <bruno@clisp.org>
90635
90636         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
90637
90638 2003-11-03  Bruno Haible  <bruno@clisp.org>
90639
90640         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
90641         available, to avoid (extremely rare) race condition.
90642         Suggested by Paul Eggert.
90643
90644 2003-11-02  Karl Berry  <karl@gnu.org>
90645
90646         * config/srclist.txt (vasprintf.c): sync broken, sigh.
90647
90648 2003-10-31  Paul Eggert  <eggert@twinsun.com>
90649
90650         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
90651         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
90652         (read_filesystem_list): Set and use me_type_malloced.
90653         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
90654         whatever the type happens to be), for brevity and consistency.
90655         Check for size calculation overflow on Alphas running OSF/1.
90656
90657 2003-10-31  Jim Meyering  <jim@meyering.net>
90658
90659         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
90660
90661         * lib/linebuffer.c: Include <string.h> for declaration of memset.
90662
90663 2003-10-30  Paul Eggert  <eggert@twinsun.com>
90664             Bruno Haible  <bruno@clisp.org>
90665
90666         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
90667         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
90668
90669 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
90670
90671         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
90672         netbsd*-gnu*.  Suggested by Robert Millan.
90673
90674 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90675
90676         * modules/group-member: Depend on stdbool.
90677
90678 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90679
90680         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
90681
90682 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90683
90684         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
90685         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
90686         after the 'gnu' in these cases.  This fixes some bugs in the
90687         previous change, and is based on suggestions by Robert Millan.
90688
90689 2003-10-29  Paul Eggert  <eggert@twinsun.com>
90690
90691         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
90692         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
90693         no longer needed.
90694         * lib/quotearg.c (quotearg_n_options): Use it.
90695         * lib/group-member.c: Include <stdbool.h>.
90696         (free_group_info): Arg is now const *; don't free arg.
90697         (get_group_info): Now returns bool and accepts struct group_info *,
90698         rather than returning a malloc'ed struct group_info *.
90699         All uses changed.  Check for overflow in internal size calculation.
90700
90701         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
90702         rather than xmalloc/xrealloc.
90703         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
90704         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
90705         conformance bug: the old code used a pointer after freeing the
90706         storage that it addressed.
90707         * lib/hash.c (hash_initialize): Simplify the code by using
90708         xalloc_oversized rather than doing it by hand.
90709         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
90710         the buffer preserved.  Use free and xmalloc instead.
90711         * lib/quotearg.c (quotearg_n_options): Likewise.
90712         Use a simpler test for size overflow.  Don't use xalloc_oversized
90713         because unsigned int might be wider than size_t (!); this suggests
90714         that we should switch from unsigned int to size_t for slot numbers.
90715
90716 2003-10-28  Paul Eggert  <eggert@twinsun.com>
90717
90718         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
90719         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
90720         NetBSD kernels.  Requested by Richard Stallman.
90721
90722 2003-10-27  Paul Eggert  <eggert@twinsun.com>
90723
90724         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
90725         to allocate the returned structure.  Do not allocate a subarray,
90726         as x2nrealloc will do that.
90727         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
90728         instead of xnrealloc.
90729         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
90730
90731 2003-10-27  Bruno Haible  <bruno@clisp.org>
90732
90733         * lib/stdbool_.h: Better support for BeOS.
90734
90735 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90736
90737         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
90738         now uses inline.
90739
90740 2003-10-26  Paul Eggert  <eggert@twinsun.com>
90741
90742         * lib/xalloc.h (xalloc_oversized): New static inline function, for
90743         callers that want to do their own size-overflow checking.  Include
90744         <stdbool.h>, since xalloc_oversized returns bool.
90745         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
90746         to use xalloc_oversized.
90747
90748         Add two functions x2realloc, x2nrealloc, for programs that grow
90749         arrays dynamically by doubling their sizes.
90750         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
90751         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
90752         New functions.
90753
90754         Port to C99 semantics for 'inline' of external functions.
90755         Bug reported by Bruno Haible.
90756         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
90757         with the old contents of xnmalloc.
90758         (xnmalloc, xmalloc): Use it.
90759         (xnrealloc_inline): New static inline function,
90760         with the old contents of xnrealloc.
90761         (xnrealloc, xrealloc): Use it.
90762
90763         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
90764         that.
90765
90766 2003-10-26  Karl Berry  <karl@gnu.org>
90767
90768         * config/srclist.txt (COPYING.DOC): no longer available from
90769         /gd/gnuorg; don't know where the ultimate source is.
90770
90771 2003-10-25  Paul Eggert  <eggert@twinsun.com>
90772
90773         Fix several address-calculation bugs in the hash modules,
90774         plus some minor code cleanup.
90775
90776         * lib/hash.h: Include <stdbool.h>, for bool.
90777         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
90778         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
90779         hash_get_n_entries, hash_get_max_bucket_length,
90780         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
90781         hash_rehash): Use size_t rather than unsigned.
90782         * lib/hash.c (struct hash_table, hash_get_n_buckets,
90783         hash_get_n_buckets_used, hash_get_n_entries,
90784         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
90785         hash_get_entries, hash_do_for_each, hash_string, is_prime,
90786         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
90787         Likewise.
90788         (SIZE_MAX): Define if not defined.
90789         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
90790         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
90791         hash_print):
90792         Use const * when possible.
90793         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
90794         (check_tuning): Fix bug: if tuning parameters were very close to
90795         0 or 1, rounding errors could have caused subscript violations.
90796         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
90797         (hash_initialize): Add 'fail:' label
90798         to free table and return NULL, and use it to simplify code.
90799         Use calloc rather than clearing the storage ourself.
90800         (hash_initialize, hash_rehash): Check for arithmetic overflow in
90801         buffer size calculations.
90802         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
90803         Include <stddef.h>, for size_t.
90804         * lib/hash-pjw.c (hash_pjw): Likewise.
90805         Switch to method described by Bruno Haible.
90806         Include <limits.h>, for CHAR_BIT.
90807         (SIZE_BITS): New macro.
90808
90809 2003-10-23  Paul Eggert  <eggert@twinsun.com>
90810
90811         * m4/getline.m4 (AM_FUNC_GETLINE):
90812         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90813         hosts.  Problem reported by Derek Robert Price in
90814         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90815         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90816         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90817
90818 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90819
90820         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90821         ceiling the allocation at NMAX bytes rather than silently
90822         discarding input bytes before NMAX is reached.  This makes
90823         a difference only if NMAX exceeds SIZE_MAX / 2.
90824
90825         * lib/obstack.c: Merge from glibc.
90826         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90827         Add libc_hidden_def (_obstack_newchunk).
90828         (_obstack_free) [! defined _LIBC]: Remove.
90829         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90830         a clone of the function body.
90831         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90832         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90833
90834         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90835         glibc.
90836         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90837         arg to memcpy.
90838
90839         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90840         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90841         Don't use lvalue casts, as GCC plans to remove support for them
90842         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90843         was also present in the non-GCC version, indicating that this
90844         code had always been buggy and had never been widely used.
90845         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90846         Use the fast variant of each macro, rather than copying the
90847         definiens of the fast variant; that way, we'll be more likely to
90848         catch future bugs in the fast variants.
90849
90850 2003-10-20  Bruno Haible  <bruno@clisp.org>
90851
90852         * modules/wait-process: New file.
90853         * MODULES.html.sh (func_all_modules): Add wait-process.
90854
90855 2003-10-20  Bruno Haible  <bruno@clisp.org>
90856
90857         * m4/wait-process.m4: New file.
90858
90859 2003-10-20  Bruno Haible  <bruno@clisp.org>
90860
90861         * lib/wait-process.h: New file, from GNU gettext.
90862         * lib/wait-process.c: New file, from GNU gettext.
90863
90864 2003-10-19  Jim Meyering  <jim@meyering.net>
90865
90866         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90867         HPUX 10.20.
90868
90869 2003-10-18  Karl Berry  <karl@gnu.org>
90870
90871         * config/config.guess: update from config.
90872
90873 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90874
90875         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90876         (getgroups): First arg is int, not size_t.
90877         Don't let 'free' mangle errno.
90878
90879 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90880
90881         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90882
90883 2003-10-16  Karl Berry  <karl@gnu.org>
90884
90885         * config/config.{guess,sub}: update from config.
90886
90887 2003-10-16  Jim Meyering  <jim@meyering.net>
90888
90889         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90890         memcpy.
90891
90892 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90893
90894         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90895         (SIZE_MAX): Remove.
90896         (new_exclude, add_exclude_file): Initial size no longer needs to
90897         be a power of 2.
90898         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90899         our own address arithmetic overflow checking.
90900
90901         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90902         (fnmatch): Do not alloca more than 2000 wide characters;
90903         instead, use malloc for large buffers.
90904         Check for address arithmetic overflow, and return -1
90905         with errno set to ENOMEM in that case.
90906         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90907         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90908         instead, return -1.  Check for address arithmetic overflow.
90909
90910 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90911
90912         Handle invalid suffixes and overflow independently, so that
90913         callers can treat them independently as needed.  Fix some bugs in
90914         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90915         suffix for a human-readable blocksize.  The major caller-visible
90916         change is the addition of a new
90917         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90918         that both overflow and suffix chars were found.
90919
90920         * lib/human.c (humblock): Don't check separately for invalid suffix
90921         char; that is xstrtoumax's job (now that its bug is fixed).
90922         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90923         INTMAX_MAX]: New macros.
90924         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90925         TYPE_MAXIMUM): New macros.
90926         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90927         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90928         if overflow occurs, as it's what __strtol does and it's more useful
90929         in practice.
90930         (__xstrtol): If __strtol reports some error other than ERANGE,
90931         reflect it to the caller as LONGINT_INVALID.  If it reports
90932         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90933         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90934         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90935         value.
90936         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90937         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90938         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90939         [defined UINTMAX_MAX]: New macros.
90940
90941 2003-10-14  Bruno Haible  <bruno@clisp.org>
90942
90943         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90944
90945 2003-10-14  Bruno Haible  <bruno@clisp.org>
90946
90947         * m4/sig_atomic_t: New file, from GNU gettext.
90948         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90949
90950 2003-10-14  Bruno Haible  <bruno@clisp.org>
90951
90952         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90953         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90954         Also use volatile where needed.
90955
90956 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90957
90958         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90959         Change maintainer from Bruno Haible to 'all'.
90960
90961 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90962
90963         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90964
90965 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90966
90967         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90968         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90969         and define in terms of the other primitives.
90970         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90971         (SIZE_MAX): Define if not already defined.
90972         (array_size_overflow): New function.
90973         (xalloc_die): Abort instead of exiting if 'error' returns.
90974         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90975         (xmalloc, xrealloc): Use them.
90976         (xcalloc): Check for address arithmetic overflow.
90977         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90978         a bit faster than strcpy.
90979
90980 2003-10-10  Simon Josefsson  <jas@extundo.com>
90981
90982         * modules/argp (Depends-on): Add restrict and strcase.
90983
90984 2003-10-10  Simon Josefsson  <jas@extundo.com>
90985
90986         * m4/argp.m4: Add AC_C_INLINE.
90987
90988 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90989
90990         Merge getpass from libc, plus a few fixes.
90991
90992         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90993         Include <stdbool.h>.
90994         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90995         __fsetlocking to empty.
90996         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90997         do include <bits/libc-lock.h>.
90998         Do not include <fcntl.h>; not needed.
90999         [_LIBC]: Include <wchar.h>.
91000         (NOTCANCEL_MODE): New macro.
91001         (flockfile, funlockfile) [_LIBC]: New macros.
91002         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
91003         [!_LIBC]: New macros.
91004         (call_fclose): New function.
91005         (getpass): Use it.  Save tty stream separately; this simplifies the
91006         code and makes it more reliable if stdin happens to equal stdout.
91007         Invoke __fsetlocking on tty.
91008         Handle thread cancellation if needed.
91009         Namespace cleanup (use __tcgetattr, __getline).
91010         Use bool for Booleans.
91011         [USE_IN_LIBIO]: Handle wide streams.
91012         [!_LIBC]: Unconditionally do the fseek, since we don't know what
91013         stream might go where.
91014
91015         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
91016         doesn't have to include <stdio.h> before us.
91017         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
91018         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
91019         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
91020         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
91021         if not declared, so that we can use getpass.c code from libc without
91022         rewriting it.
91023         (flockfile, ftrylockfile, funlockfile): New macros.
91024
91025 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91026
91027         * modules/getpass: Depend on stdbool.
91028
91029 2003-10-08  Paul Eggert  <eggert@twinsun.com>
91030
91031         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
91032
91033 2003-10-07  Karl Berry  <karl@gnu.org>
91034
91035         * config/config.{guess,sub}: update from config.
91036
91037 2003-10-06  Jim Meyering  <jim@meyering.net>
91038             Bruno Haible  <bruno@clisp.org>
91039
91040         This lets translators provide better translations for the
91041         "Written by ..." part of --version output.
91042         * lib/version-etc.h: Include stdarg.h.
91043         (version_etc_copyright): Declare as readonly.
91044         (version_etc): Make this function variadic with a NULL-terminated list
91045         of author name strings.
91046         (version_etc_va): New declaration.
91047         * lib/version-etc.c: Include stdarg.h, stdlib.h.
91048         (version_etc_copyright): Declare as readonly.
91049         (version_etc_va): New function. Provide a different translatable string
91050         for each possible number of authors < 10. Abbreviate when there are 10
91051         authors or more.
91052         (version_etc): Make this function variadic. Call version_etc_va.
91053         Suggestion from Gary V. Vaughan.
91054
91055         * lib/long-options.h (parse_long_options): Change prototype: the
91056         authors string is moved to the end and becomes variadic.
91057         * lib/long-options.c: Include stdarg.h.
91058         (parse_long_options): Make this function variadic, too.
91059         Call version_etc_va, not version_etc.
91060
91061 2003-10-06  Bruno Haible  <bruno@clisp.org>
91062
91063         * modules/version-etc-2: Remove file.
91064         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
91065
91066 2003-10-06  Bruno Haible  <bruno@clisp.org>
91067
91068         * modules/fatal-signal: New file.
91069         * MODULES.html.sh (func_all_modules): Add fatal-signal.
91070
91071 2003-10-06  Bruno Haible  <bruno@clisp.org>
91072
91073         * m4/fatal-signal.m4: New file.
91074         * m4/signalblocking.m4: New file, from GNU gettext.
91075
91076 2003-10-06  Bruno Haible  <bruno@clisp.org>
91077
91078         * lib/version-etc-2.h: Remove file.
91079         * lib/version-etc-2.c: Remove file.
91080
91081 2003-10-06  Bruno Haible  <bruno@clisp.org>
91082
91083         * lib/fatal-signal.h: New file, from GNU gettext.
91084         * lib/fatal-signal.c: New file, from GNU gettext.
91085
91086 2003-10-05  Paul Eggert  <eggert@twinsun.com>
91087
91088         * README: Rework advice for preventing empty .o files.
91089         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
91090         not <sys/types.h>.
91091
91092 2003-10-04  Karl Berry  <karl@gnu.org>
91093
91094         * lib/argp*: update from libc.
91095
91096 2003-10-04  Karl Berry  <karl@gnu.org>
91097
91098         * config/config.{guess,sub}: update from config.
91099
91100 2003-10-02  Bruno Haible  <bruno@clisp.org>
91101
91102         * modules/lchown (Include): Add lchown.h.
91103         * modules/time_r (Include): Use "..." syntax.
91104         * modules/xgetdomainname (Include): Add xgetdomainname.h.
91105
91106 2003-10-01  Simon Josefsson  <jas@extundo.com>
91107
91108         * MODULES.html.sh (func_all_modules): Move gethostname from section
91109         'based on' to section 'lacking' POSIX:2001.
91110
91111 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
91112
91113         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
91114         to output mode on the same stream.
91115
91116 2003-09-29  Paul Eggert  <eggert@twinsun.com>
91117
91118         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
91119         Fix arg typo in previous patch.
91120
91121 2003-09-28  Jim Meyering  <jim@meyering.net>
91122
91123         * lib/error.c: Correct cpp indentation.
91124
91125 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91126
91127         * modules/free: New file.
91128
91129 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91130
91131         * m4/free.m4: New file.
91132
91133 2003-09-27  Paul Eggert  <eggert@twinsun.com>
91134
91135         * lib/minmax.h (MIN, MAX)
91136         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
91137         Omit the special code that used __typeof__, since we worry that
91138         it could be more trouble than it's worth.  See:
91139         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
91140         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
91141
91142         * lib/free.c: New file.
91143
91144 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
91145
91146         Trivial fixes to Makefile.am parts of module listings.
91147         * modules/strstr: Append strstr.h to lib_SOURCES.
91148         * modules/strcase: Likewise, for strcase.h.
91149
91150 2003-09-27  Karl Berry  <karl@gnu.org>
91151
91152         * config/mkinstalldirs: update from automake.
91153
91154 2003-09-26  Paul Eggert  <eggert@twinsun.com>
91155
91156         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
91157         (error_tail): Do not loop, reallocating temporary buffer, since
91158         the output cannot contain more wide characters than the input
91159         contains bytes, the size must be big enough already.  This avoids
91160         one potential size overflow calculation.  Check for size overflow
91161         when calculating temporary buffer size.  Free temporary buffer
91162         when done, if it was allocated with malloc; this plugs a memory
91163         leak.  Remove casts from void * to pointers, that are no longer
91164         needed now that we're assuming C89 or better.
91165
91166         Merge error changes from glibc.
91167
91168         * lib/error.c, error.h: Update copyright notice header to match glibc.
91169         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
91170         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
91171         Disable cancellation while printing error.
91172         * lib/error.h: Prepend __ to parameter names.
91173
91174 2003-09-26  Jim Meyering  <jim@meyering.net>
91175
91176         * lib/error.c (error_tail): Move some declarations
91177         into inner scope where the local variables are used.
91178
91179 2003-09-26  Bruno Haible  <bruno@clisp.org>
91180
91181         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
91182         stpncpy().
91183         Don't define stpncpy through config.h; it's now done through stpncpy.h.
91184
91185 2003-09-26  Bruno Haible  <bruno@clisp.org>
91186
91187         * lib/stpncpy.h (gnu_stpncpy): New declaration.
91188         (stpncpy): Define as alias for gnu_stpncpy.
91189         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
91190
91191 2003-09-25  Simon Josefsson  <jas@extundo.com>
91192
91193         * lib/xgetdomainname.h: New file.
91194         * lib/xgetdomainname.c: New file.
91195
91196 2003-09-25  Simon Josefsson  <jas@extundo.com>
91197             Bruno Haible  <bruno@clisp.org>
91198
91199         * modules/getdomainname: New file.
91200         * modules/xgetdomainname: New file.
91201         * MODULES.html.sh (func_all_modules): Add getdomainname,
91202         xgetdomainname.
91203
91204 2003-09-25  Simon Josefsson  <jas@extundo.com>
91205             Bruno Haible  <bruno@clisp.org>
91206
91207         * m4/getdomainname.m4: New file.
91208
91209 2003-09-25  Simon Josefsson  <jas@extundo.com>
91210             Bruno Haible  <bruno@clisp.org>
91211
91212         * lib/getdomainname.h: New file.
91213         * lib/getdomainname.c: New file.
91214
91215 2003-09-25  Karl Berry  <karl@gnu.org>
91216
91217         * lib/argp-fmtstream.c, argp-help.c: update from libc.
91218
91219 2003-09-25  Karl Berry  <karl@gnu.org>
91220
91221         * config/install-sh: update from automake.
91222
91223 2003-09-25  Bruno Haible  <bruno@clisp.org>
91224
91225         * modules/version-etc-2: New file, from modules/version-etc with
91226         modifications.
91227         * MODULES.html.sh (func_all_modules): Add version-etc-2.
91228
91229 2003-09-25  Bruno Haible  <bruno@clisp.org>
91230
91231         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
91232         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
91233
91234 2003-09-24  Simon Josefsson  <jas@extundo.com>
91235
91236         * modules/xgethostname: Add xgethostname.h.
91237
91238 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91239
91240         * lib/linebuffer.c (freebuffer): Don't free the argument, just
91241         the buffer associated with the argument.  Bug reported by
91242         Simon Josefsson.
91243
91244 2003-09-24  Paul Eggert  <eggert@twinsun.com>
91245
91246         * README: Document assumptions that 'int' is at least 32 bits
91247         wide, that integer arithmetic is 2's complement without overflow,
91248         that there are no holes in integer values, that adding sizes of
91249         two nonoverlapping objects can't overflow, and that all-bits-zero
91250         yields scalar zero.  Fix spelling and capitalization typos.
91251
91252 2003-09-19  Karl Berry  <karl@gnu.org>
91253
91254         * lib/argp.h: update from libc.
91255
91256 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91257
91258         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
91259         to avoid spurious warnings like "AC_RUN_IFELSE was called before
91260         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
91261
91262 2003-09-17  Paul Eggert  <eggert@twinsun.com>
91263
91264         * gnulib-tool: Use "test -h", not "test -L", for portability
91265         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
91266         (tags_regexp): Remove, since \| doesn't conform to POSIX.
91267         (sed_extract_prog): Issue s commands one-by-one, rather than
91268         using \| in one s command.
91269
91270 2003-09-16  Paul Eggert  <eggert@twinsun.com>
91271
91272         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
91273         input error, instead of returning NULL the next time we are called
91274         (and therefore losing track of errno).
91275
91276 2003-09-16  Bruno Haible  <bruno@clisp.org>
91277
91278         * gnulib-tool (func_create_testdir): Warn about duplicated
91279         dependencies.
91280
91281 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91282
91283         * modules/argmatch, modules/fatal, modules/obstack,
91284         modules/xalloc, modules/xgethostname: Sort dependencies by
91285         importance, not alphabetically.
91286
91287 2003-09-15  Paul Eggert  <eggert@twinsun.com>
91288
91289         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
91290         fails, so that the caller gets the proper errno.
91291
91292         * lib/readutmp.c (read_utmp): Likewise.
91293         Check for fstat error.  Close stream and free storage
91294         when failing.
91295
91296 2003-09-14  Karl Berry  <karl@gnu.org>
91297
91298         * config/srclist.txt (strdup.c): disable for c89 changes.
91299
91300 2003-09-14  Jim Meyering  <jim@meyering.net>
91301
91302         * lib/getloadavg.c: Correct cpp indentation.
91303         * lib/strdup.c: Likewise.
91304         * lib/vasnprintf.c: Likewise.
91305
91306 2003-09-14  Bruno Haible  <bruno@clisp.org>
91307
91308         * modules/fwriteerror: New file.
91309         * MODULES.html.sh (func_all_modules): Add fwriteerror.
91310
91311 2003-09-14  Bruno Haible  <bruno@clisp.org>
91312
91313         * lib/fwriteerror.h: New file.
91314         * lib/fwriteerror.c: New file.
91315
91316 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91317
91318         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
91319         modules/xgethostname, modules/xalloc: Depend on exit.
91320
91321 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91322
91323         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
91324
91325         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
91326         and AC_MINIX, too, so that their extensions are available.
91327
91328         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
91329         This macro has been superseded by gl_BACKUPFILE.
91330
91331         More patches to assume C89 or better.
91332
91333         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
91334
91335         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
91336         unconditionally.
91337         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
91338         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
91339         Include <string.h>, <stdlib.h> unconditionally.
91340         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
91341         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
91342         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
91343         headers or for string.h.
91344         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
91345         or strtoul.
91346
91347         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
91348         headers.
91349         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
91350         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91351         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
91352         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
91353         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91354         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
91355         memcpy, memset.
91356         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
91357         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
91358         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
91359         strtol.
91360         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
91361         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
91362         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
91363         strtoul.
91364
91365 2003-09-12  Paul Eggert  <eggert@twinsun.com>
91366
91367         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
91368         * lib/obstack.c [!defined _LIBC]: Likewise.
91369         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
91370         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
91371         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
91372
91373         More changes to assume C89 or better.
91374
91375         * lib/error.c (error_tail): Assume vprintf.
91376
91377         * lib/argmatch.c (getenv): Remove decl.
91378         * lib/progreloc.c (get_full_program_name): Define via prototype.
91379         * lib/setenv.c (clearenv): Likewise.
91380         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
91381         needed.
91382         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
91383         (malloc, memcpy): Remove decls.
91384         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
91385         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
91386         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91387         (memcpy): Remove macro.
91388         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
91389         (__P): Remove.  All uses removed.
91390         (PTR): Remove.  All uses changed to void *.
91391         (CHAR_BIT, NULL): Remove.
91392         (spaces, zeros, memset_space, memset_zero)
91393         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
91394         Remove.
91395         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
91396         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
91397         Define with prototype.
91398         Remove now-unnecessary prototype decl.
91399         (extra_args_spec): Assume ANSI C.  All uses changed.
91400         (extra_args_spec_iso): Remove.
91401         (my_strftime, emacs_strftimeu): Define via prototype.
91402         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
91403         unconditionally.
91404         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
91405         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
91406         (strtoul, strtol): Remove decls.
91407         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
91408         LONG_MAX): Remove.
91409         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
91410         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
91411         (LOCALE_PARAM_PROTO): New macro.
91412         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
91413         (INTERNAL (strtol), strtol): Define with a prototype.
91414         (PARAMS): Remove.  All uses removed.
91415         * lib/tempname.c: Include <string.h> unconditionally.
91416         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
91417         * lib/xgethostname.c (main): Define with a prototype.
91418         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
91419         Include <stdlib.h> unconditionally.
91420         (calloc, malloc, realloc, free): Remove decls.
91421         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
91422         Include <stdlib.h> unconditionally.  Sort include file names.
91423         (strtod): Remove.
91424         (xstrtod): Define with a prototype.
91425         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
91426         (strtol, strtoul): Remove decls.
91427
91428 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91429
91430         More patches to assume C89 or better.
91431         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
91432         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
91433         string.h, memchr, STDC_HEADERS.
91434
91435 2003-09-11  Paul Eggert  <eggert@twinsun.com>
91436
91437         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
91438         Include <stdlib.h>, <string.h> unconditionally.
91439         Remove now-unnecessary cast to char *.
91440         * lib/strnlen.c: Include <string.h> unconditionally.
91441         * lib/yesno.c (yesno): Define with a prototype.
91442
91443 2003-09-11  Bruno Haible  <bruno@clisp.org>
91444
91445         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
91446
91447 2003-09-10  Jim Meyering  <jim@meyering.net>
91448
91449         * lib/error.c: Correct indentation of cpp directives.
91450
91451 2003-09-10  Bruno Haible  <bruno@clisp.org>
91452
91453         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
91454         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
91455         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
91456         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
91457         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
91458         <stdlib.h> and <string.h> checks.
91459         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
91460         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
91461
91462 2003-09-10  Bruno Haible  <bruno@clisp.org>
91463
91464         * lib/strcspn.c: Include <string.h> unconditionally.
91465         * lib/strpbrk.c: Include <string.h> unconditionally.
91466         * lib/strstr.c: Include <string.h> unconditionally.
91467         * lib/unicodeio.c: Include <string.h> unconditionally.
91468         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
91469         * lib/unsetenv.c: Likewise.
91470         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
91471         * lib/yesno.c: Include <stdlib.h> unconditionally.
91472         (rpmatch): Add prototype.
91473
91474 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91475
91476         More patches to assume C89 or better.
91477         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
91478         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
91479         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
91480         or for string.h.
91481         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
91482         stdlib.h.
91483         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
91484         C headers.
91485         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
91486         string.h.
91487         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
91488         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
91489         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
91490         or for string.h.
91491         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
91492         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
91493         C headers.
91494         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
91495         memcpy.
91496         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
91497         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
91498         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
91499         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
91500         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
91501         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
91502         string.h, free.
91503         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
91504         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
91505         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
91506         C headers, or for string.h.
91507         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
91508         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
91509         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
91510         headers, memory.h, stdlib.h, string.h, strings.h.
91511         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
91512         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
91513         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
91514         strchr.
91515         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
91516         headers, memory.h, string.h.
91517         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
91518         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
91519         free.
91520         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
91521         headers.
91522         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
91523         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
91524         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
91525         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
91526         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
91527
91528 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91529
91530         More K&R removal.
91531
91532         * lib/acosl.c (main): Use a prototype.
91533         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
91534         tanl.c: Likewise.
91535
91536         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
91537
91538         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
91539         (getopt, etopt_long, getopt_long_only, _getopt_internal)
91540         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
91541         with a prototype.
91542         * lib/getopt.c (const): Remove macro.
91543         Include <string.h> unconditionally.
91544         (my_index): Remove; all uses changed to strchr.
91545         (strlen): Remove decl.
91546         (exchange): Remove forward decl; no longer needed.
91547         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
91548         Define with prototype.
91549         * lib/getopt1.c (const): Remove macro.
91550         (getopt_long, getopt_long_only, main): Define with prototype.
91551
91552         * lib/getugroups.c: Include <string.h> unconditionally.
91553
91554         * lib/getusershell.c: Include <stdlib.h> unconditionally.
91555         (getusershell, setusershell, endusershell, readname, main):
91556         Define with prototypes.
91557
91558         * lib/group-member.c: Include group-member.h first.
91559         Include <stdlib.h> unconditionally.
91560
91561         * lib/hard-locale.c: Include hard-locale.h first.
91562         Include <stdlib.h>, <string.h> unconditionally.
91563
91564         * lib/hash.c (free, malloc): Remove decls.
91565         Include <stdlib.h> unconditionally.
91566
91567         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
91568         (getenv): Do not declare.
91569
91570         * lib/idcache.c: Include <string.h> unconditionally.
91571
91572         * lib/long-options.c: Include long-options.h first, to test interface.
91573         Include <stdlib.h> unconditionally.
91574
91575         * lib/makepath.c: Include makepath.h first, to test interface.
91576         Include <stdlib.h> and <string.h> unconditionally.
91577
91578         * lib/linebuffer.c: Include <stdlib.h>.
91579         (free): Remove decl.
91580
91581         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
91582         stddef.h. rpl_malloc returns void *, not char *.
91583         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
91584         prototype.
91585
91586         * lib/md5.h: Include <limits.h> unconditionally.
91587         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
91588         (__P): Remove; all uses removed.
91589         * lib/md5.c: Include "md5.h" first.
91590         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
91591         md5_buffer, md5_process_bytes, md5_process_block):
91592         Define with prototypes.
91593         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
91594         * lib/sha.c: Include "sha.h" first.
91595         Include <stdlib.h>, <string.h> unconditionally.
91596
91597         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
91598         * lib/memcmp.c (__ptr_t): Likewise.
91599         * lib/memrchr.c (__ptr_t): Likewise.
91600         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
91601         Include <string.h> unconditionally.
91602         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
91603         * lib/memchr.c: Include <stdlib.h> unconditionally.
91604         * lib/memchr.c (LONG_MAX): Remove.
91605         * lib/memrchr.c (LONG_MAX): Likewise.
91606         * lib/memchr.c (__memchr): Define via a prototype.
91607         * lib/memrchr.c (__memrchr): Likewise.
91608         * lib/memcmp.c (__P): Remove, and remove all uses.
91609         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
91610         Remove forward decls; no longer needed.
91611         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
91612         Use types required by C89 in prototype.
91613
91614         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
91615         * lib/savedir.c: Likewise.
91616         * lib/mkdir.c (free): Remove decl.
91617         * lib/rmdir.c (rmdir): Define with a prototype.
91618         * lib/savedir.c: Include savedir.h first, to test interface.
91619
91620         * lib/mktime.c (STDC_HEADERS): Remove.
91621         Include <stdlib.h>, <string.h> unconditionally.
91622
91623         * lib/modechange.c: Include <stdlib.h> unconditionally.
91624         (malloc): Remove decl.
91625
91626         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
91627         (free): Remove decl.
91628
91629         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
91630         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
91631         (This type really should be intptr_t, but that's a C99ism.)
91632         (_obstack_memcpy): Remove: all uses changed to memcpy.
91633         Include <string.h> unconditionally.
91634         (struct obstack): Assume __STDC__ for types of members
91635         chunkfun, freefun, extra_arg.
91636         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
91637         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
91638         obstack_begin, obstack_specify_allocation,
91639         obstack_specify_allocation_with_arg, obstack_chunkfun,
91640         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
91641         Remove unprototyped decls and the macros that use them.
91642         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
91643         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
91644         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
91645         (defined __STDC__ && __STDC__)]:
91646         Remove nonprototyped code.
91647         Include <stdlib.h> unconditionally.
91648         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
91649         _obstack_allocated_p, _obstack_free, obstack_free,
91650         _obstack_memory_used, print_and_abort):
91651         Define using prototypes.
91652         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
91653         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
91654         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
91655         obstack_next_free, obstack_object_size, obstack_room) [0]:
91656         Remove unused, unprototyped code.
91657
91658         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
91659
91660         * lib/physmem.c (physmem_total, physmem_available, main): Define
91661         with prototypes.
91662
91663         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
91664         (main): Define with a prototype.
91665
91666         * lib/posixver.c (getenv): Remove decl.
91667
91668         * lib/putenv.c (malloc): Returns void *, not char *.
91669         Include <string.h> unconditionally.
91670         (strchr, memcpy, NULL): Do not define.
91671
91672         * lib/readtokens.c: Include readtokens.h first, to test interface.
91673         Include <stdlib.h>, <string.h> unconditionally.
91674         (init_tokenbuffer): Define with a prototype.
91675
91676         * lib/regex.c (PARAMS): Remove.  All uses removed.
91677         All uses of _RE_ARGS removed, too.
91678         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
91679         unconditionally.
91680         (bzero): Assume memset exists.
91681         (memcmp, memcpy, NULL): Remove.
91682         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
91683         char, or assignments to local vars of type signed char.
91684         (init_syntax_once, PREFIX(extract_number_and_incr),
91685         PREFIX(print_partial_compiled_pattern),
91686         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
91687         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
91688         PREFIX(regex_grow_registers), PREFIX(regex_compile),
91689         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
91690         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
91691         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
91692         wcs_compile_range, byte_compile_range, truncate_wchar,
91693         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
91694         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
91695         count_mbs_length, wcs_re_match_2_internal,
91696         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
91697         PREFIX(alt_match_null_string_p),
91698         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
91699         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
91700         regfree, PREFIX(extract_number)): Define with prototype.  Remove
91701         now-unnecessary declaration, if any.
91702         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
91703         regcomp, regexec):
91704         Remove now-unnecessary casts among pointer types.
91705         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
91706
91707         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
91708         (free): Remove decl.
91709
91710         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
91711
91712         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
91713         (free): Remove decl.
91714
91715         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
91716         * lib/xgetcwd.c: Likewise.
91717
91718         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
91719         (free): Remove decl.
91720
91721         * lib/strchrnul.c (strchrnul): Define with a prototype.
91722         Fix bug: c_in was not converted to char before searching.
91723
91724         The following changes are not K&R related:
91725
91726         * lib/group-member.h: Include <sys/types.h>, so that this file is
91727         self-contained.
91728         * lib/makepath.h: Likewise.
91729
91730         * lib/getusershell.c (readname, default_index, line_size, readname):
91731         Use size_t, not int, for sizes.
91732         (readname): If the size overflows, report an error instead of
91733         looping forever.
91734
91735 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91736
91737         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
91738         libc.
91739
91740 2003-09-09  Paul Eggert  <eggert@twinsun.com>
91741
91742         * README: New section: portability guidelines.
91743
91744 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91745
91746         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
91747         C89 spec.
91748
91749 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
91750
91751         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
91752
91753 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91754
91755         Assume C89 or better; remove K&R cruft.
91756         A few of these changes were first proposed by Derek Robert Price
91757         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
91758
91759         * lib/addext.c: Include <string.h> unconditionally.
91760         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
91761         Don't declare getenv or malloc.
91762
91763         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
91764         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
91765         (NULL): Remove.
91766         (find_stack_direction, alloca): Use prototypes.
91767
91768         * lib/atexit.c (atexit): Define using a prototype.
91769
91770         * lib/basename.c, dirname.c, stripslash.c:
91771         Include <string.h> unconditionally.
91772
91773         * lib/bcopy.c: Include <stddef.h>.
91774         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
91775
91776         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
91777
91778         * lib/error.h (error, error_at_line, error_print_progname)
91779         [! (defined (__STDC__) && __STDC__)]: Remove decls.
91780         * lib/error.c: Include error.h first, to check interface.
91781         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91782         (VA_START): Remove; all uses changeed to va_start.
91783         (exit, strerror): Remove decls.
91784         (error_print_progname): Prototype uncondionally.
91785         Don't include <errno.h>; no longer needed.
91786         (private_strerror): Remove.
91787         (error_tail): Always define.
91788         (error, error_at_line): Assume C89 or better; always use prototypes.
91789         * lib/fatal.c: Include "fatal.h" first, to test interface.
91790         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
91791         (VA_START): Remove; all uses changed to va_start.
91792         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
91793         this case.
91794         (exit): Remove decl.
91795         (fatal): Prototype unconditionally.  Assume va_start works.
91796         Abort at end, to pacify gcc.
91797
91798         * lib/euidaccess.c (main): Define with a prototype.
91799
91800         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
91801
91802         * lib/exitfail.c: Include <stdlib.h> unconditionally.
91803
91804         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
91805         prototypes.
91806         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
91807         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
91808         (getenv): Remove decl.
91809         (fnmatch): Define using a prototype.
91810         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91811         (FCT): Define using a prototype.
91812
91813         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91814
91815         * lib/gethostname.c: Include <stddef.h>.
91816         (gethostname): Define with prototype.  Length is size_t, not int.
91817
91818 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91819
91820         Assume C89 or better; remove K&R cruft.
91821         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91822         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91823         string.h, getenv, malloc.
91824         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91825         headers.
91826         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91827         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91828         do not check for strerror.
91829         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91830         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91831         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91832         do not check for doprnt or vprintf.
91833         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91834         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91835
91836 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91837
91838         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91839         getversion.c should have been removed then, but was accidentally
91840         preserved.
91841
91842         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91843         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91844
91845 2003-09-08  Karl Berry  <karl@gnu.org>
91846
91847         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91848                 config, forget about prep.
91849
91850         * config/depcomp, missing: update from automake.
91851
91852 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91853
91854         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91855         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91856
91857 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91858
91859         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91860         copy_tm_result.  Bug reported by Simon Josefsson in
91861         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91862
91863 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91864
91865         * m4/time_r.m4: New file.
91866         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91867         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91868         is. Check for timegm declaration.
91869         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91870         Do not check for gmtime_r.
91871         Replace mktime if __mktime_internal does not exist and if mktime
91872         hasn't been replaced already.
91873
91874 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91875
91876         * lib/time_r.c, lib/time_r.h: New files.
91877
91878         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91879         __localtime_r.
91880         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91881         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91882
91883         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91884         __gmtime_r.
91885         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91886         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91887         Include <time_r.h>.
91888
91889         * lib/timegm.c: Switch to glibc implementation, with the following
91890         changes:
91891         [defined HAVE_CONFIG_H]: Include <config.h>.
91892         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91893         (__mktime_internal) [!defined _LIBC]: New decl.
91894         (__gmtime_r) [!defined _LIBC]: New macro and function.
91895         (timegm): Use a prototype, since gnulib assumes C89.
91896         Do not bother declaring tmp to be const, as it's not really usefu.
91897         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91898         (timegm): Declare only if HAVE_DECL_TIMEGM.
91899
91900 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91901
91902         * MODULES.html.sh (func_all_modules): Add time_r.
91903         * modules/time_r: New file.
91904         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91905         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91906
91907 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91908
91909         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91910         Bug reported by Lute Kamstra in
91911         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91912
91913         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91914         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91915         course with correspondingly smaller numbers for tomorrow and
91916         yesterday.  From Tadayoshi Funaba.  Originally installed into
91917         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91918         coreutils merge?).
91919
91920 2003-08-31  Simon Josefsson  <jas@extundo.com>
91921
91922         * modules/timegm: New file.
91923         * MODULES.html.sh (func_all_modules): Add timegm.
91924
91925 2003-08-31  Simon Josefsson  <jas@extundo.com>
91926
91927         * m4/timegm.m4: New file.
91928
91929 2003-08-31  Simon Josefsson  <jas@extundo.com>
91930
91931         * lib/timegm.h: New file.
91932         * lib/timegm.c: New file.  Based on
91933         wget-1.8.2/src/http.c:mktime_from_utc.
91934
91935 2003-08-31  Karl Berry  <karl@gnu.org>
91936
91937         * lib/argp.h: update from libc.
91938
91939 2003-08-28  Bruno Haible  <bruno@clisp.org>
91940
91941         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91942         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91943         followed by '#define fnmatch fnmatch_posix' gives an error.
91944
91945 2003-08-28  Bruno Haible  <bruno@clisp.org>
91946
91947         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91948         warning on QNX, which defines O_BINARY to 000000.
91949
91950 2003-08-27  Jim Meyering  <jim@meyering.net>
91951
91952         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91953         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91954         would fail after 32.  Reported by Danny Levinson.  Details here:
91955         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91956
91957 2003-08-24  Bruno Haible  <bruno@clisp.org>
91958
91959         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91960         MSVC7 <stdio.h> is included later.
91961
91962 2003-08-22  Simon Josefsson  <jas@extundo.com>
91963
91964         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91965
91966 2003-08-20  Karl Berry  <karl@gnu.org>
91967
91968         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91969
91970 2003-08-20  Bruno Haible  <bruno@clisp.org>
91971
91972         * modules/progname: New file.
91973         * MODULES.html.sh (func_all_modules): Add progname.
91974
91975 2003-08-20  Bruno Haible  <bruno@clisp.org>
91976
91977         * lib/progname.h: New file, from GNU gettext.
91978         * lib/progname.c: New file, from GNU gettext.
91979         * lib/progreloc.c: New file, from GNU gettext.
91980
91981 2003-08-19  Jim Meyering  <jim@meyering.net>
91982
91983         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91984         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91985
91986 2003-08-19  Bruno Haible  <bruno@clisp.org>
91987
91988         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91989         more.
91990
91991 2003-08-19  Bruno Haible  <bruno@clisp.org>
91992
91993         * lib/xstrdup.c: Assume <string.h> exists.
91994
91995 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91996
91997         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91998         in makefile rules.
91999
92000 2003-08-18  Jim Meyering  <jim@meyering.net>
92001
92002         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
92003         * m4/lib-ld.m4: Likewise.
92004
92005 2003-08-18  Jim Meyering  <jim@meyering.net>
92006
92007         * lib/setenv.h: Indent nested cpp directive.
92008         * lib/vasnprintf.c: Remove trailing blanks.
92009
92010 2003-08-17  Simon Josefsson  <jas@extundo.com>
92011
92012         * modules/xstrndup: New file.
92013         * MODULES.html.sh (func_all_modules): Add xstrndup.
92014
92015 2003-08-17  Simon Josefsson  <jas@extundo.com>
92016
92017         * modules/argp: Fix autoconf macro name. Add more dependencies.
92018
92019 2003-08-17  Simon Josefsson  <jas@extundo.com>
92020
92021         * m4/xstrndup.m4: New file.
92022
92023 2003-08-17  Simon Josefsson  <jas@extundo.com>
92024
92025         * m4/argp.m4: New file.
92026
92027 2003-08-17  Simon Josefsson  <jas@extundo.com>
92028             Bruno Haible  <bruno@clisp.org>
92029
92030         * lib/xstrndup.h: New file.
92031         * lib/xstrndup.c: New file.
92032
92033 2003-08-17  Bruno Haible  <bruno@clisp.org>
92034
92035         * modules/strndup (Files, Include): Add lib/strndup.h.
92036
92037 2003-08-17  Bruno Haible  <bruno@clisp.org>
92038
92039         * modules/euidaccess (Files): Add lib/euidaccess.h.
92040
92041 2003-08-17  Bruno Haible  <bruno@clisp.org>
92042
92043         * lib/strndup.h: New file.
92044
92045 2003-08-17  Bruno Haible  <bruno@clisp.org>
92046
92047         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
92048         like AC_GNU_SOURCE.
92049         * modules/extensions (configure.ac): Comment out the invocation of
92050         gl_USE_SYSTEM_EXTENSIONS.
92051
92052 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92053
92054         Merges from coreutils, etc.
92055         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
92056         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
92057         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
92058         fixing a typo.
92059         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
92060         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
92061
92062 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92063
92064         Document merge from coreutils.
92065         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
92066         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
92067         * modules/utime: Add m4/utimes-null.m4.
92068
92069 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92070
92071         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
92072         space, undoing this 2003-08-12 change:
92073         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92074
92075 2003-08-16  Paul Eggert  <eggert@twinsun.com>
92076
92077         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
92078         strtoul.c from libc, undoing this 2003-08-12 change:
92079         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
92080
92081 2003-08-16  Jim Meyering  <jim@meyering.net>
92082
92083         Merges from coreutils.
92084         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
92085         prefix.  Adjust cache variables similarly.  Create 500 rather than
92086         just 300 files, to exercise bug on Darwin6.5, too.
92087         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
92088         $missing_dir.
92089         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
92090         AM_SYS_POSIX_TERMIOS.
92091         Reported by mkc@mathdogs.com.
92092         Also change use of $am_cv_sys_posix_termios
92093         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
92094         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
92095         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
92096         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
92097         in /proc/mounts until it finds one with matching device number.  This
92098         is unnecessary when the FILE argument *is* a mount point.  No stat call
92099         is necessary in that case.  So, disable the statvfs-testing code on
92100         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
92101         as RedHat bug# 84846.
92102         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92103         to 1MB, so as not to render systems with no stack size limit (e.g.,
92104         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92105         Include <unistd.h>.  On some systems,
92106         it is required for the definition of _SC_PAGESIZE.
92107
92108 2003-08-16  Jim Meyering  <jim@meyering.net>
92109
92110         Merge from coreutils.
92111         * lib/xstrtoimax.c: #else #if -> #elif.
92112         * lib/xstrtoumax.c: Likewise.
92113
92114 2003-08-16  Jim Meyering  <jim@meyering.net>
92115
92116         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
92117         * m4/utimes.m4: Removed.
92118         * m4/utimes-null.m4: Renamed from utimes.m4.
92119
92120         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
92121         to 1MB, so as not to render systems with no stack size limit (e.g.,
92122         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
92123         Include <unistd.h>.  On some systems,
92124         it is required for the definition of _SC_PAGESIZE.
92125
92126 2003-08-16  Jim Meyering  <jim@meyering.net>
92127         and Paul Eggert  <eggert@cs.ucla.edu>
92128
92129         Merges from coreutils, etc.
92130
92131         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
92132         using the latest version from cvs.  This avoids problems with #line
92133         directives using a vendor (Sun) compiler.
92134         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
92135         Don't set GETGROUPS_LIB here; now it's
92136         done via getgroups.m4's wrapper function.
92137         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
92138         rather than just in sh-util/configure.in, so that the
92139         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
92140         same.
92141         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
92142         AC_FUNC_GETLOADAVG where to find getloadavg.c.
92143         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
92144         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
92145         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
92146         Remove code that is now done by the newly-required macros.
92147         Append $(EXEEXT) to DF_PROG.
92148         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
92149         Do not invoke or require the following here,
92150         since prereq.m4 or some gnulib .m4 now does this for us:
92151         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
92152         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
92153         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
92154         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
92155         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
92156         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
92157         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
92158         AC_FUNC_OBSTACK.
92159         Do not replace the following functions, as this is now the job
92160         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
92161         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
92162         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
92163         atexit getpass, strdup, getpagesize.
92164         Replace 'raise'.
92165         Do not check for the following functions, as this is now the job
92166         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
92167         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
92168         setregid.
92169         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
92170         Check for sys/sysctl.h.
92171         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
92172         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
92173         of checking for ssize_t ourselves.
92174
92175         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
92176         Require every macro that gnulib/modules/* suggests for us.
92177         (jm_PREREQ_ADDEXT): New macro.
92178         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
92179         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
92180
92181         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
92182         (gl_PHYSMEM): Use it.
92183         Also check for `table' function.
92184         Check for new headers and functions.
92185         Add check for sys/sysmp.h.
92186         With suggestions from Kaveh Ghazi.
92187         Ignore headers that are present but cannot be compiled.  This
92188         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
92189         C 5.4.
92190
92191 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92192
92193         Document merge from coreutils.
92194         * modules/userspec: Depend on posixver.
92195         * modules/strftime: Depend on tzset.
92196
92197 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92198
92199         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
92200         rather than tab, after '#' in shell-script copyright notices.
92201         Suggested by Bruno Haible.
92202
92203 2003-08-15  Paul Eggert  <eggert@twinsun.com>
92204
92205         * config/srclist-update: Use three spaces, rather than tab, after '#'
92206         in shell-script copyright notices.  Suggested by Bruno Haible.
92207         Remove unnecessary parenthesization in regular expression.
92208
92209 2003-08-15  Jim Meyering  <jim@meyering.net>
92210
92211         Merge from coreutils.
92212         * lib/xgethostname.c: Include <stdlib.h>.
92213         (xghostname): Don't exit for anything other than memory-related
92214         failure; just return NULL.
92215         * lib/userspec.c: Include "posixver.h".
92216         (parse_user_spec): Accept `.' as a separator only
92217         in pre-POSIX-200112 mode.
92218         * lib/strtoimax.c: Use #elif rather than #else #if.
92219         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
92220         Remove function, now that we can rely on a working tzset function.
92221         [!_LIBC]: Ensure that the required autoconf test has been run.
92222         [!defined _NL_CURRENT && HAVE_STRFTIME]:
92223         Use underlying_strftime for %r.
92224         * lib/sha.c: Merge in some clean-up and optimization changes from
92225         glibc.
92226         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
92227         Ensure that it is a multiple of 64.
92228         Rearrange loop exit tests so as to avoid performing an
92229         additional fread after encountering an error or EOF.
92230         * lib/realloc.c: Update copyright date.
92231
92232 2003-08-15  Jim Meyering  <jim@meyering.net>
92233         and Paul Eggert  <eggert@twinsun.com>
92234
92235         Merge from coreutils.
92236         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
92237         member but strut utmpx does not.  Needed for AIX 4.3.3.
92238         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
92239
92240 2003-08-15  Jim Meyering  <jim@meyering.net>
92241         and Paul Eggert  <eggert@cs.ucla.edu>
92242
92243         Merges from coreutils, etc.
92244         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
92245         Require gl_FUNC_TZSET_CLOBBER.
92246         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
92247         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
92248         members.
92249
92250 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92251
92252         Help the merge from coreutils.
92253         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
92254         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
92255         * m4/tzset.m4: Use it too.
92256
92257 2003-08-14  Paul Eggert  <eggert@twinsun.com>
92258
92259         * modules/tzset: New file.
92260
92261 2003-08-14  Jim Meyering  <jim@meyering.net>
92262
92263         Merges from coreutils.
92264         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
92265         variable names, rather than @FNMATCH_H@.
92266         * modules/alloca: Likewise for $(ALLOCA_H).
92267
92268         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
92269         the three copies of the literal target, `fnmatch.h'.
92270         * modules/alloca (alloca.h): Likewise.
92271
92272 2003-08-14  Jim Meyering  <jim@meyering.net>
92273
92274         Merge from coreutils.
92275         * m4/tzset.m4: New file.
92276         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
92277         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
92278         otherwise, AIX 5.1 systems would end up using the latter.
92279         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
92280         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
92281         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
92282         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
92283
92284 2003-08-14  Jim Meyering  <jim@meyering.net>
92285
92286         Merge from coreutils.
92287         * lib/obstack.h: Whitespace changes.
92288         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
92289         and xcalloc return values.
92290         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
92291         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
92292         hang on OSF/1 5.1 for DIR on both local and remote file systems.
92293         Reported by (and fix confirmed by) Nelson H. F. Beebe.
92294         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92295         error from mntctl.
92296         Use mntctl's return value to drive the entry-processing loop, since
92297         we can't rely on the value of the vmt_length member in the last
92298         entry.  On some systems doing so could result in exhausting
92299         virtual memory.  Based in part on a patch from Mike Jetzer.
92300
92301 2003-08-14  Jim Meyering  <jim@meyering.net>
92302         and Paul Eggert  <eggert@twinsun.com>
92303
92304         Merges from coreutils, plus other fixes.
92305         * lib/physmem.c: Merge in portability changes from gcc/libiberty
92306         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
92307         for credits and details.  Thanks to Kaveh Ghazi for helping
92308         to keep these files in sync.
92309         (ARRAY_SIZE): Define it.
92310         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
92311         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
92312         (memcasecmp): Don't assume size_t fits in unsigned int.
92313         Remove casts and duplicate code.
92314         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
92315         (memcpy): Remove definition.
92316         Merge in some clean-up and optimization changes from glibc.
92317         [BLOCKSIZE]: Move definition to top of file.
92318         Ensure that it is a multiple of 64.
92319         Rearrange loop exit tests so as to avoid performing an
92320         additional fread after encountering an error or EOF.
92321         * lib/md5.h (md5_uintptr): Define.
92322         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
92323         return to the initial working directory.  Preserve errno
92324         for caller.
92325         * lib/idcache.c: Include "xalloc.h".
92326         (xmalloc, xrealloc): Remove decls.
92327         (getuser): Remove casts no longer required in C89.
92328         * lib/human.c: Include stdio.h, for sprintf.
92329         * lib/group-member.c: Include "xalloc.h".
92330         (xmalloc, xrealloc): Remove decls.
92331         (get_group_info): Remove casts no longer required in C89.
92332         * lib/getusershell.c (readname): Remove casts no longer required in
92333         C89.
92334         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
92335         * lib/getline.c: Whitespace fix, from coreutils.
92336
92337 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92338
92339         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
92340         Check for isascii.
92341
92342         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92343         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92344         Undo previous (whitespace-only) change.
92345
92346 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92347
92348         * lib/exclude.c: Include <ctype.h>
92349         (IN_CTYPE_DOMAIN): New macro.
92350         (is_space): New fn.
92351         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
92352         and empty lines.
92353
92354         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92355         Undo previous (whitespace-only) change.
92356
92357 2003-08-13  Paul Eggert  <eggert@twinsun.com>
92358
92359         * config/srclist-update: Change update back to the old behavior,
92360         leaving whitespace alone.  Use one 'sed' command rather than a
92361         pipeline.
92362         (fixlicense): Now a variable, not a function.
92363         (remove_trailing_blanks): Remove.
92364         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
92365         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92366         Undo previous (whitespace-only) change.
92367
92368 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92369
92370         Merge from coreutils.
92371         * modules/euidaccess: Add lib_SOURCES, include for new
92372         file euidaccess.h
92373
92374 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92375
92376         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
92377         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
92378         Normalize leading white space and remove trailing white space.
92379
92380         Merge from coreutils
92381         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
92382
92383         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
92384         0.12.1.  These files are now being upgraded automatically by
92385         ../config/srclist-update.
92386
92387 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92388
92389         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
92390         Normalize leading white space and remove trailing white space.
92391         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
92392         notice, as per ../config/srclist-update.
92393
92394         Merge from coreutils.
92395         * lib/euidaccess.h: New file.
92396         * lib/euidaccess.c: Include it.
92397         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
92398         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
92399         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
92400
92401 2003-08-12  Paul Eggert  <eggert@twinsun.com>
92402
92403         * config/srclist-update: Add copyright notice.
92404         (remove_id_lines, remove_trailing_blanks): New constants.
92405         (fixfile): Use them to normalize spacing a bit in copied files.
92406         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
92407         Normalize leading white space and remove trailing white space.
92408
92409         * config/texinfo.tex: Sync with texinfo.
92410
92411         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
92412         strtoul.c from libc, to merge coreutils whitespace changes.
92413
92414         * config/srclist.txt: Get the following m4 files from gettext:
92415         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
92416         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
92417         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
92418         wint_t.m4.
92419
92420 2003-08-12  Karl Berry  <karl@gnu.org>
92421
92422         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
92423         been made.
92424
92425 2003-08-11  Paul Eggert  <eggert@twinsun.com>
92426
92427         * modules/gnu-source, m4/gnu-source.m4:
92428         Remove; we're assuming Autoconf 2.54 or later now.
92429         Suggested by Bruno Haible.
92430         * MODULES.html.sh (func_all_modules): Remove gnu-source.
92431
92432 2003-08-11  Bruno Haible  <bruno@clisp.org>
92433
92434         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
92435
92436 2003-08-11  Bruno Haible  <bruno@clisp.org>
92437
92438         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
92439         (vasnprintf): Use it instead of wcslen.
92440
92441 2003-08-11  Bruno Haible  <bruno@clisp.org>
92442
92443         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
92444         value to ensure that _Bool promotes to int. Use #define for _Bool when
92445         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
92446
92447 2003-08-10  Karl Berry  <karl@gnu.org>
92448
92449         * lib/regex.h: update from libc (whitespace fix).
92450
92451 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92452
92453         Merge some files from coreutils.  These changes were
92454         originally made by Jim Meyering.
92455         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
92456         many older Unixes require this.
92457         * lib/alloca.c (alloca): Remove cast to argument of free;
92458         no longer needed in C89.
92459         * lib/alloca_.h, regex.h: Fix white space to match
92460         what GNU indent does.
92461
92462 2003-08-09  Paul Eggert  <eggert@twinsun.com>
92463
92464         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
92465         apparently Emacs's Unicode mode got confused before my 2003-08-05
92466         checkin.
92467
92468 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92469
92470         * m4/extensions.m4: New file.
92471         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
92472         Require gl_USE_SYSTEM_EXTENSIONS.
92473         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
92474         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
92475
92476 2003-08-08  Paul Eggert  <eggert@twinsun.com>
92477
92478         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
92479         * modules/extensions, modules/gnu-source: New files.
92480         * modules/timespec, modules/unlocked-io: Depend on extensions.
92481
92482 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92483
92484         * modules/restrict: New file.
92485         * MODULES.html.sh (func_all_modules): Add restrict.
92486         * modules/regex: Depend on restrict.
92487
92488 2003-08-07  Paul Eggert  <eggert@twinsun.com>
92489
92490         * m4/restrict.m4: New file.
92491         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
92492
92493 2003-08-07  Bruno Haible  <bruno@clisp.org>
92494
92495         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
92496         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
92497
92498 2003-08-07  Bruno Haible  <bruno@clisp.org>
92499
92500         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
92501         makes the module 'getndelim2' compatible with the module 'getline'.
92502
92503 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92504
92505         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
92506         byte with "\201" to avoid glitches when editing that source file
92507         with multi-gnome-terminal.
92508
92509 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92510
92511         * lib/bumpalloc.h: Remove.
92512
92513 2003-08-05  Paul Eggert  <eggert@twinsun.com>
92514
92515         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
92516         * modules/bumpalloc: Remove.
92517
92518 2003-08-04  Paul Eggert  <eggert@twinsun.com>
92519
92520         * lib/getloadavg.c: Change copyright notice and spacing to conform to
92521         GNU coding style.
92522
92523         Merge from coreutils.
92524         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
92525         1. From glibc.
92526         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
92527         from Karl Berry, implemented by Jim Meyering.
92528         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
92529         from Dmitry V. Levin.
92530         Remove anachronistic cast of xrealloc.
92531         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
92532         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
92533         type. Otherwise, it wouldn't compile with at least /bin/cc on
92534         ymp-cray-unicos9.0.2.X.
92535         Combine two mostly-identical uses of alloca into one.
92536         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
92537
92538 2003-08-04  Dave Love  <d.love@dl.ac.uk>
92539
92540         [From Emacs.]
92541
92542         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
92543         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
92544         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
92545         obsolete NLIST_NAME_UNION.
92546         [__GNU__]: Undef BSD and FSCALE.
92547         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
92548
92549 2003-08-03  Paul Eggert  <eggert@twinsun.com>
92550
92551         * lib/stdbool_.h (_Bool): Make it signed char, instead of
92552         an enum type, so that it's guaranteed to promote to int.  See:
92553         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
92554
92555 2003-08-03  Karl Berry  <karl@gnu.org>
92556
92557         * config/depcomp: update from automake.
92558
92559 2003-07-31  Paul Eggert  <eggert@twinsun.com>
92560
92561         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
92562         (strerror): Don't assume that a printable int fits in 14 bytes.
92563
92564 2003-07-31  Bruno Haible  <bruno@clisp.org>
92565
92566         * modules/getpass-gnu: New file.
92567         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
92568
92569 2003-07-31  Bruno Haible  <bruno@clisp.org>
92570
92571         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
92572
92573 2003-07-24  Karl Berry  <karl@gnu.org>
92574
92575         * config/missing: update from automake.
92576
92577 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
92578             Bruno Haible  <bruno@clisp.org>
92579
92580         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
92581         * lib/getline.c (getline, getdelim): Likewise.
92582         Remove _GNU_SOURCE define; now it's defined in config.h through
92583         m4/getline.m4.
92584
92585 2003-07-23  Karl Berry  <karl@gnu.org>
92586
92587         * config/config.sub: update from prep.
92588
92589 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92590
92591         * modules/xalloc (Depends-on): Add exitfail.
92592         * modules/xmemcoll: Likewise.
92593
92594 2003-07-22  Paul Eggert  <eggert@twinsun.com>
92595
92596         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
92597         over-parenthesization in macros.
92598
92599         Sync with coreutils.
92600
92601         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
92602         required by C99.
92603
92604         Use `exit_failure' for xalloc and xmemcoll instead of their own
92605         private exit-failure variables.
92606         * lib/xalloc.h (xalloc_exit_failure): Remove.
92607         * lib/xmalloc.c: Likewise.  Include exitfail.h.
92608         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
92609         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
92610         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
92611         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
92612
92613 2003-07-20  Jim Meyering  <jim@meyering.net>
92614
92615         * modules/closeout (Depends-on): Add exitfail.
92616         Suggestion from Bruno Haible.
92617
92618 2003-07-19  Karl Berry  <karl@gnu.org>
92619
92620         * config/config.sub: update from prep.
92621
92622 2003-07-18  Paul Eggert  <eggert@twinsun.com>
92623
92624         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
92625         Remove.
92626         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
92627         to test that it can stand by itself.  Include "exitfail.h".
92628         Clients should set exit_failure instead.
92629         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
92630
92631 2003-07-18  Bruno Haible  <bruno@clisp.org>
92632
92633         * modules/getndelim2: New file.
92634         * modules/getline: Share files with module getndelim2.
92635         * modules/getnline: Depend on getndelim2 instead of sharing files with
92636         it. Add getnline.c to lib_SOURCES.
92637         * MODULES.html.sh (func_all_modules): Add getndelim2.
92638
92639 2003-07-18  Bruno Haible  <bruno@clisp.org>
92640
92641         * m4/getndelim2.m4: New file.
92642         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
92643         invoke gl_PREREQ_GETNDELIM2.
92644         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
92645         gl_PREREQ_GETNDELIM2.
92646         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
92647         gl_GETNDELIM2.
92648
92649 2003-07-18  Bruno Haible  <bruno@clisp.org>
92650
92651         * lib/getndelim2.h: New file.
92652         * lib/getndelim2.c: Make into a module of its own. Include config.h,
92653         getndelim2.h.
92654         (getndelim2): Make non-static. Change return type to ssize_t.
92655         * lib/getline.h: Change argument names.
92656         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
92657         * lib/getnline.c: Include getndelim2.h.
92658
92659 2003-07-18  Andreas Schwab  <schwab@suse.de>
92660
92661         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
92662
92663 2003-07-17  Karl Berry  <karl@gnu.org>
92664
92665         * config/config.sub: update from prep.
92666
92667 2003-07-17  Bruno Haible  <bruno@clisp.org>
92668
92669         * modules/getnline: New file.
92670         * modules/getline: Add lib/getndelim2.c to source file list.
92671         * MODULES.html.sh (func_all_modules): Add getnline.
92672
92673 2003-07-17  Bruno Haible  <bruno@clisp.org>
92674
92675         * m4/getnline.m4: New file.
92676
92677 2003-07-17  Bruno Haible  <bruno@clisp.org>
92678
92679         * m4/Makefile.am.in: Remove file.
92680         * m4/Makefile.am: Remove file.
92681         * m4/Makefile.in: Remove file.
92682
92683 2003-07-17  Bruno Haible  <bruno@clisp.org>
92684
92685         * lib/getnline.h: New file.
92686         * lib/getnline.c: New file.
92687         * lib/getndelim2.c: New file, extracted from getline.c.
92688         (getndelim2): Renamed from getdelim2, with added nmax argument.
92689         * lib/getline.c: Include getndelim2.c.
92690         (getdelim2): Moved out to getndelim2.c.
92691         (getline, getdelim): Update.
92692
92693 2003-07-17  Bruno Haible  <bruno@clisp.org>
92694
92695         * lib/Makefile.am: Remove file.
92696         * lib/Makefile.in: Remove file.
92697
92698 2003-07-17  Bruno Haible  <bruno@clisp.org>
92699
92700         * configure.in: Remove file.
92701         * Makefile.in: Remove file.
92702
92703 2003-07-17  Bruno Haible  <bruno@clisp.org>
92704
92705         * MODULES.html.sh: Put the </BODY> right before </HTML>.
92706
92707 2003-07-16  Karl Berry  <karl@gnu.org>
92708
92709         * config/srclist-update: was running fixlicense twice, which caused
92710                 texinfo.tex to be nullified for some reason.  Simplify,
92711                 $gplsrc is no longer needed as far as I can see?
92712
92713 2003-07-16  Jim Meyering  <jim@meyering.net>
92714
92715         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
92716
92717 2003-07-15  Paul Eggert  <eggert@twinsun.com>
92718
92719         * config/srclist.txt: Get the following files from gettext-runtime/intl
92720         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
92721         ref-del.sin.  From Bruno Haible.
92722         * config/srclist-update (fixfile): Change grep pattern again, since the
92723         previous fix didn't work (there was another trailing $).  Use
92724         '[$]' to escape the $s.
92725
92726 2003-07-15  Karl Berry  <karl@gnu.org>
92727
92728         * lib/vasnprintf.c: update from gettext.
92729
92730 2003-07-15  Karl Berry  <karl@gnu.org>
92731
92732         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
92733         gets expanded when surrounded by '$'.
92734
92735 2003-07-15  Jim Meyering  <jim@meyering.net>
92736
92737         * modules/save-cwd: Don't depend on error.  From Derek Price.
92738
92739 2003-07-15  Jim Meyering  <jim@meyering.net>
92740
92741         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
92742
92743 2003-07-14  Simon Josefsson  <jas@extundo.com>
92744
92745         * modules/mempcpy: New file.
92746         * MODULES.html.sh (func_all_modules): Add mempcpy.
92747
92748 2003-07-14  Simon Josefsson  <jas@extundo.com>
92749
92750         * m4/mempcpy.m4: New file.
92751
92752 2003-07-14  Simon Josefsson  <jas@extundo.com>
92753
92754         * lib/mempcpy.h: New file.
92755         * lib/mempcpy.c: New file.
92756
92757 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92758
92759         * modules/getdate, modules/posixtm: Depend on mktime.
92760
92761 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92762
92763         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
92764         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
92765         unicodeio.c, unicodeio.h, unlocked-io.h:
92766         Switch from LGPL to GPL.
92767
92768 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92769
92770         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
92771         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
92772         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
92773         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
92774         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
92775         updated automatically by ../config/srclist-update.  This changes
92776         their license from LPGL to GPL.
92777
92778 2003-07-14  Paul Eggert  <eggert@twinsun.com>
92779
92780         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
92781         assumed to refer to the root of the most recent stable gettext version.
92782         * config/srclistvars.sh: Add defaults for eggert.
92783         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
92784         Match "This program" as well as "The program".  This is needed
92785         for gettext.
92786
92787 2003-07-14  Jim Meyering  <jim@meyering.net>
92788
92789         Don't emit diagnostics.  Let callers do that.
92790         * lib/save-cwd.c: Don't include "error.h".
92791         (save_cwd): Don't call error.  Ensure that errno is valid
92792         when returning nonzero.
92793
92794         * lib/save-cwd.h (restore_cwd): Update prototype.
92795         * lib/save-cwd.c (restore_cwd): Remove two parameters.
92796         Simplify.  Don't call error upon failure.  Let callers do that.
92797         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
92798         when auditing is enabled.  But don't bother updating the #if.
92799
92800 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
92801
92802         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
92803         it breaks C++ compilation.
92804         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
92805
92806 2003-07-10  Simon Josefsson  <jas@extundo.com>
92807
92808         * modules/strchrnul (Makefile.am): Add strchrnul.h.
92809
92810 2003-07-10  Jim Meyering  <jim@meyering.net>
92811
92812         * m4/clock_time.m4: Remove trailing blank.
92813         * m4/intmax_t.m4: Likewise.
92814
92815 2003-07-10  Jim Meyering  <jim@meyering.net>
92816
92817         * lib/vasnprintf.c: Remove trailing blanks.
92818         Make cpp indentation consistent.
92819
92820 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92821
92822         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92823         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92824         Switch from LGPL to GPL.
92825
92826 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92827
92828         * config/srclist.txt: Sort sublists.  Add
92829         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92830         that differ from gnulib for one reason or another; we'd like this list
92831         to be smaller but for now let's document what we have.
92832
92833 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92834
92835         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92836         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92837         and sweeter "eval x=$x".
92838         * config/srclist.txt: Get lib/argp* from glibc.
92839
92840 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92841
92842         * lib/mktime.c: Fix some boundary cases and remove need for floating
92843         point.
92844
92845         Issue a compile-time diagnostic if time_t is floating point, or if
92846         two's complement arithmetic is not in effect, or if arithmetic
92847         right shift does not propagate the sign.  These assumptions were
92848         all in the original code but they weren't checked.
92849
92850         (TIME_T_MIDPOINT, verify): New macros.
92851         (__isleap): Remove; it has integer overflow problems.
92852         (leapyear): New function, without those problems.
92853         (ydhms_tm_diff): Remove; splitting into two parts.
92854         (ydhms_diff): New function, containing the arithmetic part of
92855         the old ydhms_tm_diff function.  Issue a compile-time
92856         diagnostic if we are not using C99 integer division.
92857         Avoid casts when possible.
92858         (guess_time_tm): New function, containing the checking part of
92859         the old ydhms_tm_diff function.  Return the new value, rather than
92860         the difference between it and the old.  Accept a new argument T
92861         so that *T specifies the old value.  Check for overflow in the result.
92862
92863         (__mktime_internal): Use a time_t offset, not a long int offset.
92864         This undoes the 2003-06-04 change, which is no longer needed now
92865         that we have better overflow checking.
92866         (localtime_offset): Likewise.
92867
92868         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92869         and long are 64-bit but int is only 32-bit.
92870         (ydhms_diff): Use long int to store year1 and yday1.
92871         Issue a compile-time diagnostic if long int is not wide enough.
92872
92873         (__mktime_internal): Use long int to store adjusted year and yday.
92874         Use plain C rather than preprocessor commands, if that doesn't
92875         affect efficiency.
92876         Check for overflow (and try to repair) after each probe
92877         rather than checking only at the very end.  This avoids some bugs
92878         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92879         does not equal GMT offset at maximum time).
92880         Use integer to check for overflow rather than floating point; this
92881         is more portable to non-IEEE hosts, and is a tad faster.
92882         When we detect that we are oscillating between two values,
92883         don't check whether tm_isdst has the requested value, since
92884         we already know the answer.  When tm_isdst has the wrong value,
92885         use a different heuristic to find the right one, based on the
92886         extreme values actually observed in practice in tz2003a,
92887         rather than the (overly optimistic) "previous 3 calendar quarters".
92888
92889         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92890         "T const" to accommodate glibc style.
92891         (check_result): Use less-confusing report format.  "long" -> "long int.
92892         (main): Likewise.
92893         Don't loop if the iteration overflows time_t.
92894         Allow a negative step in the iteration.
92895
92896 2003-07-06  Karl Berry  <karl@gnu.org>
92897
92898         * config/depcomp: update from automake.
92899         * config/config.sub: update from prep.
92900
92901 2003-07-03  Karl Berry  <karl@gnu.org>
92902
92903         * config/config.guess: update from prep.
92904
92905 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92906
92907         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92908         xreadlink.c now includes it unconditionally.
92909
92910 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92911
92912         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92913         having it depend on HAVE_SYS_TYPES_H.
92914
92915 2003-07-01  Bruno Haible  <bruno@clisp.org>
92916
92917         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92918         <sys/types.h> should be sufficient.
92919         Reported by Paul Eggert.
92920
92921 2003-06-26  Karl Berry  <karl@gnu.org>
92922
92923         * config/depcomp: update from automake.
92924
92925 2003-06-26  Bruno Haible  <bruno@clisp.org>
92926
92927         * modules/human: Depend on module stdbool.
92928
92929 2003-06-25  Bruno Haible  <bruno@clisp.org>
92930
92931         * modules/readlink: New file.
92932         * modules/xreadlink: Depend on it.
92933         * MODULES.html.sh (func_all_modules): Add readlink.
92934
92935 2003-06-25  Bruno Haible  <bruno@clisp.org>
92936
92937         * m4/readlink.m4: New file.
92938
92939 2003-06-25  Bruno Haible  <bruno@clisp.org>
92940
92941         * lib/readlink.c: New file.
92942
92943 2003-06-22  Karl Berry  <karl@gnu.org>
92944
92945         * config/srclist.txt: update mkinstalldirs from automake.
92946         * config/mkinstalldirs: update.
92947
92948 2003-06-22  Bruno Haible  <bruno@clisp.org>
92949
92950         Portability to mingw32.
92951         * m4/ssize_t.m4: New file, from GNU gettext.
92952         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92953         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92954
92955 2003-06-22  Bruno Haible  <bruno@clisp.org>
92956
92957         * modules/safe-read: Add m4/ssize_t.m4.
92958         * modules/xreadlink: Add m4/ssize_t.m4.
92959
92960 2003-06-20  Bruno Haible  <bruno@clisp.org>
92961
92962         Assume C89, so PARAMS isn't needed.
92963         * lib/unicodeio.h (PARAMS): Remove.
92964         * lib/unicodeio.c: Don't use PARAMS.
92965
92966 2003-06-18  Karl Berry  <karl@gnu.org>
92967
92968         * config/config.{guess,sub}: update from prep.
92969
92970 2003-06-18  Jim Meyering  <jim@meyering.net>
92971
92972         Merge changes from coreutils.
92973         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92974         Remove explicit declarations of xmalloc and realloc.
92975         Include xalloc.h.
92976         (read_utmp): Remove anachronistic cast of xmalloc.
92977
92978 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92979
92980         Assume C89, so PARAMS isn't needed.
92981         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92982         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92983         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92984         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92985         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92986         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92987         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92988         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92989         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92990         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92991         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92992         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92993         no longer needed. Anyway, config.h should always be included before any
92994         other file.
92995
92996 2003-06-11  Simon Josefsson  <jas@extundo.com>
92997
92998         * modules/sysexits: New file.
92999         * MODULES.html.sh (func_all_modules): Add sysexits.
93000
93001 2003-06-11  Simon Josefsson  <jas@extundo.com>
93002
93003         * lib/sysexit_.h: New file.
93004
93005 2003-06-11  Derek Price  <derek@ximbiot.com>
93006
93007         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
93008         necessary.
93009
93010 2003-06-11  Bruno Haible  <bruno@clisp.org>
93011
93012         * m4/sysexits.m4: New file.
93013
93014 2003-06-10  Simon Josefsson  <jas@extundo.com>
93015
93016         * lib/argp.h: New file, from glibc.
93017         * lib/argp-ba.c: New file, from glibc.
93018         * lib/argp-eexst.c: New file, from glibc.
93019         * lib/argp-fmtstream.c: New file, from glibc.
93020         * lib/argp-fmtstream.h: New file, from glibc.
93021         * lib/argp-fs-xinl.c: New file, from glibc.
93022         * lib/argp-help.c: New file, from glibc.
93023         * lib/argp-namefrob.h: New file, from glibc.
93024         * lib/argp-parse.c: New file, from glibc.
93025         * lib/argp-pv.c: New file, from glibc.
93026         * lib/argp-pvh.c: New file, from glibc.
93027         * lib/argp-xinl.c: New file, from glibc.
93028
93029 2003-06-10  Simon Josefsson  <jas@extundo.com>
93030
93031         * modules/strchrnul: New file.
93032
93033 2003-06-10  Simon Josefsson  <jas@extundo.com>
93034
93035         * modules/argp: New file.
93036
93037 2003-06-10  Simon Josefsson  <jas@extundo.com>
93038
93039         * m4/strchrnul.m4: New file.
93040
93041 2003-06-10  Simon Josefsson  <jas@extundo.com>
93042
93043         * lib/strchrnul.h: New file.
93044         * lib/strchrnul.c: New file.
93045
93046 2003-06-10  Bruno Haible  <bruno@clisp.org>
93047
93048         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
93049
93050 2003-06-07  Karl Berry  <karl@gnu.org>
93051
93052         * config/config.{guess,sub}: update from prep.
93053
93054 2003-06-07  Jim Meyering  <jim@meyering.net>
93055
93056         * modules/strtod: Use $(...) notation, not @...@ for
93057         AC_REPLACE'd variables.
93058         * modules/localcharset: Likewise.
93059
93060 2003-06-07  Jim Meyering  <jim@meyering.net>
93061
93062         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
93063         in place of my name in the copyright comment.
93064         Remove definition and uses of __P.
93065
93066         From coreutils.
93067         * lib/stat.c: Don't declare xmalloc explicitly.
93068         Instead, include "xalloc.h".
93069         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
93070         xrealloc, and xcalloc return values.
93071         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
93072         Improve comment.
93073         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
93074
93075 2003-06-07  Bruno Haible  <bruno@clisp.org>
93076
93077         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
93078         avoid AC_CONFIG_LINKS.
93079         * modules/fnmatch (Makefile.am): Use explicit creation rule for
93080         fnmatch.h, to avoid AC_CONFIG_LINKS.
93081         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
93082
93083 2003-06-07  Bruno Haible  <bruno@clisp.org>
93084
93085         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
93086         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
93087         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93088         directory.
93089         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
93090         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
93091         directory.
93092
93093 2003-06-06  Jim Meyering  <jim@meyering.net>
93094
93095         Merge from coreutils.
93096         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
93097         Consolidate declarations and initializations of *_base* locals.
93098
93099         Merge from coreutils.
93100         This avoids a core dump on systems without GNU putenv,
93101         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
93102         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
93103         (unsetenv): New static function, from GNU libc.
93104         (rpl_putenv): Use it.
93105
93106         * lib/modechange.c: Remove trailing blanks.
93107
93108         Merge from coreutils.
93109         * lib/fsusage.c: Remove declaration of statfs.
93110         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
93111
93112         * lib/posixtm.c: Include <stdbool.h> unconditionally.
93113
93114 2003-06-06  Jim Meyering  <jim@meyering.net>
93115
93116         * lib/stdbool_.h: Renamed from stdbool.h.in.
93117
93118 2003-06-06  Jim Meyering  <jim@meyering.net>
93119             Bruno Haible  <bruno@clisp.org>
93120
93121         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
93122         Adjust Makefile.am snippet not to redirect directly to target.
93123         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
93124
93125 2003-06-05  Paul Eggert  <eggert@twinsun.com>
93126
93127         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
93128         mismatch, look in future quarters as well as past.  This fixes a
93129         bug when processing fall-backwards gaps immediately after a long
93130         period of daylight-saving time.
93131
93132         * lib/mktime.c: Assume freestanding C89 or better.
93133         (HAVE_LIMITS_H): Remove.  Assume it's 1.
93134         (__P): Remove; not used.
93135         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
93136         (mktime, not_equal_tm, print_tm, check_result,
93137         main): Use prototypes.  Use const * where appropriate.
93138         (main): Fix typo in testing code that uncovered by above changes.
93139         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
93140
93141 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93142
93143         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
93144         locale.h, localeconv.  This merges changes from coreutils.
93145
93146         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
93147         It can be removed after the next Autoconf is released.
93148         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
93149         needed.
93150
93151 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93152
93153         * lib/mktime.c: Fix Debian bug 177940
93154         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
93155         (localtime_offset): Now long int, not time_t, because we want it
93156         to be guaranteed to be signed.  All uses changed.
93157         (__mktime_internal): If overflow would occur when adding offset,
93158         don't add it.
93159
93160         Merge 'human' changes from coreutils.  Rewrite to support
93161         locale-specific notations like thousands separators.
93162         * lib/human.c: Simplify authorship notice.
93163         Include human.h immediately after config.h.
93164         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
93165         <limits.h>: Do not include, since human.h does.
93166         (SIZE_MAX, UINTMAX_MAX): New macros.
93167         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
93168         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
93169         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
93170         (power_letter): Renamed from suffixes.
93171         (generate_suffix_backwards): Remove.
93172         (adjust_value): Now takes int style (because of human.h changes)
93173         and long double value (for greater precision on some platforms).
93174         (group_number): New function.
93175         (human_readable): Use it.  Use integer options, not enum.
93176         Put the options before the sizes in the arg list.
93177         Support all the new options.
93178         The old human_readable function has been removed;
93179         use inttostr.h instead.
93180         (human_readable, default_block_size, humblock):
93181         Use uintmax_t, not int, for block sizes.
93182         (human_readable_inexact, block_size_types): Remove.
93183         (block_size_opts): New constant.
93184         (human_options): Renamed from human_block_size, with new signature
93185         that allows block sizes up to UINTMAX_MAX.  All callers changed.
93186         * lib/human.h: Add copyright and authorship notice.
93187         Include <limits.h> and <stdbool.h> unconditionally.
93188         (PARAMS): Remove.  All uses removed.
93189         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
93190         (enum human_inexact_style): Remove tag; now a nameless enum.
93191         (human_floor, human_ceiling, human_round_to_even): Now have
93192         values 2, 0, 1 rather than -1, 1, 0.
93193         (human_group_digits, human_suppress_point_zero, human_autoscale,
93194         human_base_1024, human_SI, human_B): New constants.
93195         (human_readable_inexact, human_block_size): Remove.
93196         (human_readable): Size args are now uintmax_t, not int.
93197         (human_options): New decl.
93198
93199         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
93200         unnecessary now that we assume C89 or better.  This change
93201         imported from coreutils.
93202
93203         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93204         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
93205         in the 2003-05-30 sync from glibc.
93206
93207         .h files should stand alone, but we shouldn't include <sys/types.h>
93208         if we can get away with just <stddef.h>.
93209
93210         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
93211         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
93212         rather than <sys/types.h>, as we merely need size_t.
93213         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
93214         to get size_t.
93215         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
93216         Include <stdio.h>, to get FILE.
93217         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
93218         memcasecmp.h has included <stddef.h> and all we need is size_t.
93219         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
93220         our interface, instead of including <sys/types.h>
93221
93222 2003-06-04  Paul Eggert  <eggert@twinsun.com>
93223
93224         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
93225         now, as glibc mktime is buggy on non-glibc systems.
93226
93227 2003-06-03  Karl Berry  <karl@gnu.org>
93228
93229         * config/config.sub: update from prep.
93230
93231 2003-06-02  Paul Eggert  <eggert@twinsun.com>
93232
93233         [from coreutils]
93234         Fix some minor time-related bugs with POSIX time arguments.
93235         Some valid time stamps were being rejected (notably -1, and
93236         time stamps before 1900 on 64-bit hosts).  And some invalid
93237         time stamps were being accepted, e.g. September 31.
93238
93239         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
93240         that we can return (time_t) -1 successfully.
93241         * lib/posixtm.c: Likewise.
93242         [HAVE_STDBOOL_H]: Include <stdbool.h>.
93243         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
93244         (t): Remove static var.
93245         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
93246         of static var.  All uses changed.
93247         (year): Do not reject years before 1900; they can occur with
93248         64-bit time_t.
93249         (posix_time_parse): Do not check for out-of-range components;
93250         that is now the caller's responsibility, since our checks were
93251         only approximations.
93252         (posixtime): Use mktime to check for out-of-range components,
93253         since it knows them exactly.
93254         If mktime returns (time_t) -1, check whether an error actually occurred
93255         by invoking localtime on -1.
93256         (main) [TEST_POSIXTIME]: Check for input data errors, and report
93257         posixtime failures better.
93258         Improve the test data (in comments only).
93259
93260 2003-06-02  Karl Berry  <karl@gnu.org>
93261
93262         * config/mkinstalldirs (version): new variable.
93263         (--version): new option.
93264         (usage): improve message.
93265
93266 2003-05-30  Karl Berry  <karl@gnu.org>
93267
93268         * lib/mktime.c: update from libc.
93269
93270 2003-05-30  Bruno Haible  <bruno@clisp.org>
93271
93272         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
93273         * config/config.rpath: Upgrade to gettext-0.12.1.
93274
93275 2003-05-30  Bruno Haible  <bruno@clisp.org>
93276
93277         * m4/gettext.m4: Upgrade to gettext-0.12.1.
93278         * m4/nls.m4: New file, from gettext-0.12.1.
93279         * m4/po.m4: New file, from gettext-0.12.1.
93280         * m4/progtest.m4: Upgrade to gettext-0.12.1.
93281
93282 2003-05-30  Bruno Haible  <bruno@clisp.org>
93283
93284         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
93285         * lib/localcharset.h: Likewise.
93286         * lib/localcharset.c: Likewise.
93287
93288 2003-05-29  Karl Berry  <karl@gnu.org>
93289
93290         * config/config.rpath: update from gettext.
93291
93292 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93293
93294         Assume the headers required for C89 freestanding compilers.
93295         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
93296         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
93297         * m4/human.m4 (gl_HUMAN): Likewise.
93298         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
93299         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
93300         * m4/userspec.m4 (gl_USERSPEC): Likewise.
93301         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
93302         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
93303         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
93304
93305 2003-05-28  Paul Eggert  <eggert@twinsun.com>
93306
93307         Assume the headers required for C89 freestanding compilers.
93308         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
93309         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
93310         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
93311         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
93312         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
93313         define, since <limits.h> is guaranteed to do that.
93314         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
93315         * lib/exclude.c: Include <stdbool.h> unconditionally.
93316         * lib/tempname.c: Include <stddef.h> unconditionally.
93317         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
93318         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
93319         <stddef.h> does that.
93320         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
93321         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
93322         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
93323         needed.
93324         * lib/xstrtol.c: Likewise.
93325         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
93326         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
93327
93328         * lib/addext.c (addext): Use assignment rather than cast, to avoid
93329         warnings on some platforms.
93330
93331         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
93332         arbitrarily.
93333
93334 2003-05-26  Jim Meyering  <jim@meyering.net>
93335
93336         Merge in a change from coreutils:
93337         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
93338         that is guaranteed to be `no'.  Use `no_such_member' to indicate
93339         that condition, rather than `-1' which is slightly misleading.
93340         Change the name of the cache variable to have the gl_ prefix.
93341         Prompted by a patch from Richard Dawe for DJGPP.
93342
93343 2003-05-24  Karl Berry  <karl@gnu.org>
93344
93345         * config/config.guess: update from prep.
93346
93347 2003-05-22  Karl Berry  <karl@gnu.org>
93348
93349         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
93350
93351 2003-05-20  Karl Berry  <karl@gnu.org>
93352
93353         * config/config.guess: update from prep.
93354
93355 2003-05-18  Karl Berry  <karl@gnu.org>
93356
93357         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
93358         might actually be set by the user.
93359
93360         * config/depcomp, install-sh, mdate-sh: update from automake.
93361
93362 2003-05-17  Bruno Haible  <bruno@clisp.org>
93363
93364         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
93365         invalid expansion for AC_EGREP_CPP.
93366         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
93367         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
93368         Suggested by Akim Demaille <akim@epita.fr> in
93369         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
93370
93371 2003-05-12  Jim Meyering  <jim@meyering.net>
93372
93373         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
93374         the space-padded-by-default conversion specifiers, %e, %k, %l.
93375
93376 2003-05-12  Bruno Haible  <bruno@clisp.org>
93377
93378         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
93379         the string is longer than 4 KB.
93380
93381 2003-05-11  Karl Berry  <karl@gnu.org>
93382
93383         * config/config.{guess,sub}: update from prep.
93384
93385 2003-05-09  Bruno Haible  <bruno@clisp.org>
93386
93387         * modules/error: Add m4/strerror_r.m4 to file list.
93388
93389 2003-05-03  Bruno Haible  <bruno@clisp.org>
93390
93391         Upgrade to Unicode-4.0.
93392         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
93393         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
93394         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
93395         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
93396         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
93397         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
93398         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
93399         Change width of U+E0100..U+E01EF from 1 to 0.
93400
93401 2003-04-25  Jim Meyering  <jim@meyering.net>
93402
93403         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
93404         of type size_t, not int.
93405
93406 2003-04-25  Bruno Haible  <bruno@clisp.org>
93407
93408         * lib/copy-file.c: Include <stddef.h>, for size_t.
93409
93410 2003-04-21  Paul Eggert  <eggert@twinsun.com>
93411
93412         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
93413         code which expansion is under static control.  Patch imported from
93414         Akim Demaille's patch to Bison; see
93415         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
93416
93417 2003-04-14  Bruno Haible  <bruno@clisp.org>
93418
93419         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
93420
93421 2003-04-11  Jim Meyering  <jim@meyering.net>
93422
93423         Merge changes from Coreutils.
93424
93425         2003-03-22  Jim Meyering  <jim@meyering.net>
93426
93427         * lib/strftime.c (widen): Cast alloca return value to proper type.
93428
93429         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
93430
93431         From GNU libc.
93432         * lib/strftime.c (my_strftime): Handle very large width
93433         specifications for numeric values correctly.  Improve checks for
93434         overflow.
93435
93436         2003-01-19  Jim Meyering  <jim@meyering.net>
93437
93438         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
93439         definitions.
93440         (nl_get_alt_digit) [! defined my_strftime]: Define.
93441         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
93442         _nl_get_alt_digit and _nl_get_walt_digit.
93443
93444         * lib/strftime.c (my_strftime): Merge in locale-related changes from
93445         libc. These changes have no effect outside of _LIBC.
93446
93447 2003-04-10  Bruno Haible  <bruno@clisp.org>
93448
93449         * modules/findprog: New file.
93450         * MODULES.html.sh (func_all_modules): Add it.
93451
93452 2003-04-10  Bruno Haible  <bruno@clisp.org>
93453
93454         * m4/findprog.m4: New file.
93455         * m4/eaccess.m4: New file.
93456
93457 2003-04-10  Bruno Haible  <bruno@clisp.org>
93458
93459         * lib/findprog.h: New file, from GNU gettext.
93460         * lib/findprog.c: New file, from GNU gettext.
93461
93462 2003-04-05  Jim Meyering  <jim@meyering.net>
93463
93464         Merge changes from Coreutils.
93465
93466         * lib/exclude.h (PARAMS): Remove definition and uses.
93467         * lib/exclude.c: Remove uses of `PARAMS'.
93468
93469         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
93470         Add test-cases for DOS filenames. Declare program_name.
93471         (main): Set up program_name.  Patch by Rich Dawe.
93472
93473         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
93474         error from mntctl.
93475         Use mntctl's return value to drive the entry-processing loop, since
93476         we can't rely on the value of the vmt_length member in the last
93477         entry.  On some systems doing so could result in exhausting
93478         virtual memory.  Based in part on a patch from Mike Jetzer.
93479
93480 2003-04-04  Bruno Haible  <bruno@clisp.org>
93481
93482         * modules/linebreak: New file.
93483         * MODULES.html.sh (func_all_modules): Add it.
93484
93485 2003-04-04  Bruno Haible  <bruno@clisp.org>
93486
93487         * m4/linebreak.m4: New file.
93488
93489 2003-04-04  Bruno Haible  <bruno@clisp.org>
93490
93491         * lib/linebreak.h: New file, from GNU gettext.
93492         * lib/linebreak.c: New file, from GNU gettext with slight
93493         modifications.
93494         * lib/lbrkprop.h: New file, from GNU gettext.
93495
93496 2003-04-03  Bruno Haible  <bruno@clisp.org>
93497
93498         * modules/utf8-ucs4: New file.
93499         * modules/utf16-ucs4: New file.
93500         * modules/ucs4-utf8: New file.
93501         * modules/ucs4-utf16: New file.
93502         * MODULES.html.sh (func_all_modules): Add them.
93503
93504 2003-04-03  Bruno Haible  <bruno@clisp.org>
93505
93506         * m4/utf-ucs4.m4: New file.
93507         * m4/ucs4-utf.m4: New file.
93508
93509 2003-04-03  Bruno Haible  <bruno@clisp.org>
93510
93511         * lib/utf8-ucs4.h: New file, from GNU gettext.
93512         * lib/utf16-ucs4.h: New file, from GNU gettext.
93513         * lib/ucs4-utf8.h: New file, from GNU gettext.
93514         * lib/ucs4-utf16.h: New file, from GNU gettext.
93515
93516 2003-04-02  Bruno Haible  <bruno@clisp.org>
93517
93518         * modules/binary-io: New file.
93519         * MODULES.html.sh (func_all_modules): Add it.
93520
93521 2003-04-02  Bruno Haible  <bruno@clisp.org>
93522
93523         * lib/binary-io.h: New file, from GNU gettext.
93524
93525 2003-04-01  Bruno Haible  <bruno@clisp.org>
93526
93527         * modules/pathname: New file.
93528         * MODULES.html.sh (func_all_modules): Add it.
93529
93530 2003-04-01  Bruno Haible  <bruno@clisp.org>
93531
93532         * lib/pathname.h: New file, from GNU gettext.
93533         * lib/concatpath.c: New file, from GNU gettext.
93534
93535 2003-03-30  Bruno Haible  <bruno@clisp.org>
93536
93537         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
93538
93539 2003-03-30  Bruno Haible  <bruno@clisp.org>
93540
93541         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
93542         function chown() doesn't exist.
93543
93544 2003-03-28  Bruno Haible  <bruno@clisp.org>
93545
93546         * modules/copy-file: New file.
93547         * MODULES.html.sh (func_all_modules): Add it.
93548
93549 2003-03-28  Bruno Haible  <bruno@clisp.org>
93550
93551         * m4/copy-file.m4: New file.
93552
93553 2003-03-28  Bruno Haible  <bruno@clisp.org>
93554
93555         * lib/copy-file.h: New file, from GNU gettext.
93556         * lib/copy-file.c: New file, from GNU gettext.
93557
93558 2003-03-18  Jim Meyering  <jim@meyering.net>
93559
93560         * lib/quote.c (quote_n): Fix typo in comment.
93561
93562 2003-03-18  Bruno Haible  <bruno@clisp.org>
93563
93564         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
93565         checking.
93566         * m4/onceonly_2_57.m4: Likewise.
93567
93568 2003-03-17  Bruno Haible  <bruno@clisp.org>
93569
93570         * m4/onceonly.m4: Require autoconf 2.54 or newer.
93571         (m4_quote): Remove macro.
93572         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
93573
93574 2003-03-14  Jim Meyering  <jim@meyering.net>
93575
93576         Merge changes from Coreutils.
93577         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
93578         to be const, in order to avoid warnings.
93579         (obstack_room): Likewise.
93580         (obstack_empty_p): Likewise.
93581
93582 2003-03-14  Bruno Haible  <bruno@clisp.org>
93583
93584         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
93585         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
93586
93587 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93588
93589         Merge changes from Bison.
93590         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
93591         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
93592         when compiling Bison 1.875's `bitset bset = obstack_alloc
93593         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
93594         * lib/hash.c: Include <stdbool.h> unconditionally.
93595
93596 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93597
93598         * m4/onceonly.m4 (m4_quote): New macro.
93599         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
93600         Quote AC_FOREACH variable-expansions properly.
93601
93602 2003-03-13  Paul Eggert  <eggert@twinsun.com>
93603
93604         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
93605
93606 2003-03-09  Paul Eggert  <eggert@twinsun.com>
93607
93608         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
93609         Reported by Bruce Becker; see:
93610         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
93611
93612 2003-03-03  Paul Eggert  <eggert@twinsun.com>
93613             Bruno Haible  <bruno@clisp.org>
93614
93615         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
93616         Reported by John Hughes, see
93617         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
93618
93619 2003-02-20  Bruno Haible  <bruno@clisp.org>
93620
93621         * MODULES.html.sh (func_all_modules): Add poll.
93622
93623 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93624
93625         * modules/poll: New file.
93626
93627 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93628
93629         * lib/poll_.h: New file.
93630         * lib/poll.c: New file.
93631
93632 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
93633
93634         * m4/poll.m4: New file.
93635
93636 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93637
93638         * modules/mathl: New file.
93639
93640 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93641
93642         * lib/mathl.h: New file.
93643         * lib/acosl.c: New file.
93644         * lib/asinl.c: New file.
93645         * lib/atanl.c: New file.
93646         * lib/ceill.c: New file.
93647         * lib/cosl.c: New file.
93648         * lib/expl.c: New file.
93649         * lib/floorl.c: New file.
93650         * lib/frexpl.c: New file.
93651         * lib/ldexpl.c: New file.
93652         * lib/logl.c: New file.
93653         * lib/sincosl.c: New file.
93654         * lib/sinl.c: New file.
93655         * lib/sqrtl.c: New file.
93656         * lib/tanl.c: New file.
93657         * lib/trigl.c: New file.
93658         * lib/trigl.h: New file.
93659
93660 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
93661
93662         * m4/mathl.m4: New file.
93663
93664 2003-02-18  Bruno Haible  <bruno@clisp.org>
93665
93666         * MODULES.html.sh (func_all_modules): Add mathl.
93667
93668 2003-02-17  Bruno Haible  <bruno@clisp.org>
93669
93670         * modules/mkdtemp: New module.
93671         * MODULES.html.sh (func_all_modules): Add it.
93672
93673 2003-02-17  Bruno Haible  <bruno@clisp.org>
93674
93675         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
93676
93677 2003-02-17  Bruno Haible  <bruno@clisp.org>
93678
93679         * lib/mkdtemp.h: New file, from GNU gettext.
93680         * lib/mkdtemp.c: New file, from GNU gettext.
93681
93682 2003-02-02  Jim Meyering  <jim@meyering.net>
93683
93684         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
93685         e.g. glibc-2.2.93.
93686
93687 2003-01-31  Bruno Haible  <bruno@clisp.org>
93688
93689         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
93690         'rpl_rename'.
93691         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
93692         'rpl_strnlen'.
93693         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
93694         'rpl_strtod'.
93695         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
93696         'rpl_utime'.
93697
93698 2003-01-31  Bruno Haible  <bruno@clisp.org>
93699
93700         * lib/rename.c: #undef rename before defining rpl_rename.
93701         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
93702
93703 2003-01-30  Bruno Haible  <bruno@clisp.org>
93704
93705         * modules/vasnprintf, modules/vasprintf: New modules.
93706         * MODULES.html.sh (func_all_modules): Add them.
93707
93708 2003-01-30  Bruno Haible  <bruno@clisp.org>
93709
93710         * m4/signed.m4: New file, from GNU gettext.
93711         * m4/longdouble.m4: New file, from GNU gettext.
93712         * m4/wchar_t.m4: New file, from GNU gettext.
93713         * m4/wint_t.m4: New file, from GNU gettext.
93714         * m4/vasnprintf.m4: New file.
93715         * m4/vasprintf.m4: New file.
93716
93717 2003-01-30  Bruno Haible  <bruno@clisp.org>
93718
93719         * lib/printf-args.h: New file, from GNU gettext.
93720         * lib/printf-args.c: New file, from GNU gettext.
93721         * lib/printf-parse.h: New file, from GNU gettext.
93722         * lib/printf-parse.c: New file, from GNU gettext.
93723         * lib/vasnprintf.h: New file, from GNU gettext.
93724         * lib/vasnprintf.c: New file, from GNU gettext.
93725         * lib/asnprintf.c: New file, from GNU gettext.
93726         * lib/vasprintf.h: New file, from GNU gettext with modifications.
93727         * lib/vasprintf.c: New file, from GNU gettext.
93728         * lib/asprintf.c: New file, from GNU gettext.
93729
93730 2003-01-29  Bruno Haible  <bruno@clisp.org>
93731
93732         * modules/stpncpy: New module.
93733         * MODULES.html.sh (func_all_modules): Add it.
93734
93735 2003-01-29  Bruno Haible  <bruno@clisp.org>
93736
93737         * m4/stpncpy.m4: New file.
93738
93739 2003-01-29  Bruno Haible  <bruno@clisp.org>
93740
93741         * lib/stpncpy.h: New file, from GNU gettext with modifications.
93742         * lib/stpncpy.c: New file, from GNU gettext with modifications.
93743
93744 2003-01-28  Bruno Haible  <bruno@clisp.org>
93745
93746         * modules/c-ctype: New module.
93747         * MODULES.html.sh (func_all_modules): Add it.
93748
93749 2003-01-28  Bruno Haible  <bruno@clisp.org>
93750
93751         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
93752         Paul Eggert.
93753         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
93754         Paul Eggert.
93755
93756 2003-01-27  Bruno Haible  <bruno@clisp.org>
93757
93758         * modules/xsetenv: New module.
93759         * MODULES.html.sh (func_all_modules): Add it.
93760
93761 2003-01-27  Bruno Haible  <bruno@clisp.org>
93762
93763         * lib/xsetenv.h: New file, from GNU gettext.
93764         * lib/xsetenv.c: New file, from GNU gettext.
93765
93766 2003-01-23  Jim Meyering  <jim@meyering.net>
93767
93768         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
93769         from working on systems without dirfd (at least Irix and OSF1/Tru64).
93770
93771 2003-01-23  Bruno Haible  <bruno@clisp.org>
93772
93773         * modules/minmax: New module.
93774         * MODULES.html.sh (func_all_modules): Add it.
93775
93776 2003-01-23  Bruno Haible  <bruno@clisp.org>
93777
93778         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
93779         Eggert.
93780
93781 2003-01-22  Bruno Haible  <bruno@clisp.org>
93782
93783         * modules/exit: New module.
93784         * MODULES.html.sh (func_all_modules): Add it.
93785
93786 2003-01-22  Bruno Haible  <bruno@clisp.org>
93787
93788         * lib/exit.h: New file, from GNU gettext.
93789
93790 2003-01-19  Bruno Haible  <bruno@clisp.org>
93791
93792         * gnulib-tool: Recognize option --extract-maintainer.
93793         (func_get_maintainer): New function.
93794         * modules/*: Add Maintainer entry.
93795
93796 2003-01-16  Jim Meyering  <jim@meyering.net>
93797
93798         * m4/regex.m4: The `regex' struct is both input and output.
93799         Initialize it before each use.  Patch by Tim Waugh.
93800
93801 2003-01-16  Bruno Haible  <bruno@clisp.org>
93802
93803         * MODULES.html.sh: Add a table of contents. Add the module name as
93804         leftmost column. Add hyperlinks.
93805
93806 2003-01-15  Bruno Haible  <bruno@clisp.org>
93807
93808         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
93809
93810 2003-01-15  Bruno Haible  <bruno@clisp.org>
93811
93812         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93813         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93814         suffix.
93815
93816 2003-01-15  Bruno Haible  <bruno@clisp.org>
93817
93818         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93819
93820 2003-01-15  Bruno Haible  <bruno@clisp.org>
93821
93822         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93823         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93824
93825 2003-01-14  Jim Meyering  <jim@meyering.net>
93826
93827         * lib/same.c (same_name): Tweak a comment.
93828
93829 2003-01-14  Bruno Haible  <bruno@clisp.org>
93830
93831         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93832         when a string comparison is sufficient.
93833
93834 2003-01-14  Bruno Haible  <bruno@clisp.org>
93835
93836         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93837         'unsigned int'.
93838
93839 2003-01-14  Bruno Haible  <bruno@clisp.org>
93840
93841         * lib/hash-pjw.c: Add comment about low quality of this function.
93842
93843 2003-01-13  Bruno Haible  <bruno@clisp.org>
93844
93845         * modules/stpcpy: Distribute lib/stpcpy.h.
93846         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93847
93848 2003-01-13  Bruno Haible  <bruno@clisp.org>
93849
93850         * modules/*: Add a description.
93851         * modules/strpbrk: Fix Makefile.am snippet.
93852         * modules/strtoimax: Fix dependencies.
93853         * modules/strtoumax: Likewise.
93854
93855 2003-01-13  Bruno Haible  <bruno@clisp.org>
93856
93857         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93858         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93859         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93860
93861 2003-01-13  Bruno Haible  <bruno@clisp.org>
93862
93863         * gnulib-tool (func_create_testdir): Store config/* files in the main
93864         directory.
93865         * config.rpath: Move to ...
93866         * config/config.rpath: ... here.
93867         * modules/gettext: Contains config/config.rpath, not config.rpath.
93868         * modules/iconv: Likewise.
93869
93870 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93871
93872         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93873         to avoid collisions with libcurses and libreadline.
93874
93875         * m4/getstr.m4: Remove.
93876         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93877
93878 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93879
93880         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93881         to avoid collisions with libcurses and libreadline.
93882
93883         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93884         * lib/getstr.h, getstr.c: Remove.
93885         * lib/getline.c: Include "getline.h", to check interface.
93886         Move body of old getstr.c here: this defines MIN_CHUNK and
93887         declares getdelim2, which is renamed from getstr.
93888         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93889
93890         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93891         All uses changed.
93892         * lib/linebuffer.h: Likewise.
93893         (readline): Remove backward-compatibility macro.
93894
93895 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93896
93897         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93898         to avoid collisions with libcurses and libreadline.
93899         * getstr: Remove.
93900         * MODULES.html.sh: Remove getstr.
93901         * modules/getline: Depend on unlocked-io, not getstr.
93902
93903 2003-01-12  Jim Meyering  <jim@meyering.net>
93904
93905         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93906
93907 2003-01-10  Bruno Haible  <bruno@clisp.org>
93908
93909         * modules/alloca: Change Makefile.am requirements. Simplify Include
93910         requirements. Add lib/alloca_.h to file list.
93911
93912 2003-01-10  Bruno Haible  <bruno@clisp.org>
93913
93914         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93915
93916 2003-01-10  Bruno Haible  <bruno@clisp.org>
93917
93918         * lib/alloca_.h: New file.
93919         * lib/getdate.y: Unconditionally include alloca.h.
93920         * lib/makepath.c: Likewise.
93921         * lib/setenv.c: Likewise.
93922         * lib/userspec.c: Likewise.
93923
93924 2003-01-09  Karl Berry  <karl@gnu.org>
93925
93926         * MODULES.html.sh: include `dirname $0` in PATH, to find
93927         gnulib-tool.
93928
93929 2003-01-09  Bruno Haible  <bruno@clisp.org>
93930
93931         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93932         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93933
93934 2003-01-09  Bruno Haible  <bruno@clisp.org>
93935
93936         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93937
93938 2003-01-09  Bruno Haible  <bruno@clisp.org>
93939
93940         * lib/stdbool.h.in: New file.
93941
93942 2003-01-09  Bruno Haible  <bruno@clisp.org>
93943
93944         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93945         * MODULES.html.sh: Likewise.
93946
93947 2003-01-08  Jim Meyering  <jim@meyering.net>
93948
93949         * lib/full-write.c: Undefine and define-away `const' after inclusion
93950         of errno.h, not before.  Suggestion from Bruno Haible.
93951
93952 2003-01-08  Bruno Haible  <bruno@clisp.org>
93953
93954         * modules/full-read: Depend on full-write.
93955
93956 2003-01-08  Bruno Haible  <bruno@clisp.org>
93957
93958         * lib/safe-read.c: Include specification header first, to ensure its
93959         selfcontainedness.
93960         * lib/full-write.c: Likewise.
93961
93962 2003-01-07  Jim Meyering  <jim@meyering.net>
93963
93964         * lib/full-write.c: Rework so that it may serve to define full_read,
93965         too.
93966         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93967
93968 2003-01-07  Bruno Haible  <bruno@clisp.org>
93969
93970         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93971         <inttypes.h>.
93972         * lib/xstrtol.h: Likewise.
93973         * lib/xstrtoimax.c: Likewise.
93974         * lib/xstrtoumax.c: Likewise.
93975         * lib/human.h: Likewise.
93976
93977         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93978         on systems that have <inttypes.h> but not <stdint.h>.
93979
93980 2003-01-07  Bruno Haible  <bruno@clisp.org>
93981
93982         * MODULES.html.sh: Add copyright notice.
93983         (missed_files): Omit CVS directory entries.
93984         (func_module): Make it work with sed-3.02.
93985         * MODULES.txt: Remove file.
93986
93987 2003-01-06  Jim Meyering  <jim@meyering.net>
93988
93989         * lib/version-etc.c: Update year in translatable copyright string.
93990
93991 2003-01-03  Karl Berry  <karl@gnu.org>
93992
93993         * config/config.{guess,sub}: update from prep.
93994
93995 2003-01-02  Karl Berry  <karl@gnu.org>
93996
93997         * doc/COPYING.DOC: belatedly updated to 1.2.
93998
93999 2003-01-01  Karl Berry  <karl@gnu.org>
94000
94001         * gnulib-tool (func_verify_module): report module name $module in
94002         error message, not $1.
94003         * gnulib-tool (create-testdir): don't complain if destdir couldn't
94004         be created, only if it doesn't exist.
94005         * gnulib-tool (last_checkin_date): don't expand the $Date here.
94006
94007 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94008
94009         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
94010
94011 2002-12-31  Paul Eggert  <eggert@twinsun.com>
94012
94013         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
94014         memcmp if strcoll doesn't work.
94015
94016 2002-12-31  Bruno Haible  <bruno@clisp.org>
94017
94018         * lib/utime.c (utime_null): No need to call ftruncate if the file was
94019         nonempty.
94020
94021 2002-12-31  Bruno Haible  <bruno@clisp.org>
94022
94023         * lib/memcoll.c (STRCOLL): New macro.
94024         (memcoll): Use it.
94025
94026 2002-12-31  Bruno Haible  <bruno@clisp.org>
94027
94028         * lib/localcharset.h: New file.
94029         * lib/localcharset.c: Include it.
94030         * lib/unicodeio.c: Likewise.
94031
94032 2002-12-31  Bruno Haible  <bruno@clisp.org>
94033
94034         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
94035         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
94036
94037 2002-12-31  Bruno Haible  <bruno@clisp.org>
94038
94039         * lib/getline.h: Include <stddef.h>, for size_t.
94040
94041         * lib/unicodeio.h: Include <stddef.h>, for size_t.
94042         * lib/unicodeio.c: Don't include <stddef.h>.
94043
94044 2002-12-31  Bruno Haible  <bruno@clisp.org>
94045
94046         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
94047         HAVE_TM_ZONE.
94048
94049 2002-12-24  Karl Berry  <karl@gnu.org>
94050
94051         * config/config.guess: update from prep.
94052
94053 2002-12-24  Bruno Haible  <bruno@clisp.org>
94054
94055         General infrasructure.
94056         * m4/README: Rewritten.
94057         * m4/onceonly.m4: New file.
94058         * m4/onceonly_2_57.m4: New file.
94059
94060         Module atexit.
94061         * m4/atexit.m4: New file.
94062
94063         Module strtod.
94064         * m4/strtod.m4: New file.
94065
94066         Module strtol.
94067         * m4/strtol.m4: New file.
94068
94069         Module strtoul.
94070         * m4/strtoul.m4: New file.
94071
94072         Module memchr.
94073         * m4/memchr.m4: New file.
94074
94075         Module memcmp.
94076         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
94077         (jm_FUNC_MEMCMP): Invoke it.
94078
94079         Module memcpy.
94080         * m4/memcpy.m4: New file.
94081
94082         Module memmove.
94083         * m4/memmove.m4: New file.
94084
94085         Module memset.
94086         * m4/memset.m4: New file.
94087
94088         Module strcspn.
94089         * m4/strcspn.m4: New file.
94090
94091         Module strpbrk.
94092         * m4/strpbrk.m4: New file.
94093
94094         Module strstr.
94095         * m4/strstr.m4: New file.
94096
94097         Module strerror.
94098         * m4/strerror.m4: New file.
94099
94100         Module mktime.
94101         * m4/mktime.m4: Renamed from jm-mktime.m4.
94102         (gl_PREREQ_MKTIME): New macro.
94103         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
94104
94105         Module malloc.
94106         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
94107         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
94108         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
94109
94110         Module realloc.
94111         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
94112         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
94113         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
94114
94115         Module strftime.
94116         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
94117         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
94118         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
94119         gl_TM_GMTOFF.
94120         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
94121
94122         Module xalloc.
94123         * m4/xalloc.m4: New file.
94124
94125         Module alloca.
94126         * m4/alloca.m4: New file.
94127
94128         Module putenv.
94129         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
94130         (jm_FUNC_PUTENV): Invoke it.
94131
94132         Module setenv.
94133         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
94134         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
94135         when invoked twice.
94136         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
94137         gt_FUNC_SETENV.
94138
94139         Module memrchr.
94140         * m4/memrchr.m4: New file.
94141
94142         Module stpcpy.
94143         * m4/stpcpy.m4: New file.
94144
94145         Module strcase.
94146         * m4/strcase.m4: New file.
94147
94148         Module strdup.
94149         * m4/strdup.m4: New file.
94150
94151         Module strnlen.
94152         * m4/strnlen.m4: New file.
94153
94154         Module strndup.
94155         * m4/strndup.m4: New file.
94156
94157         Module xstrtod.
94158         * m4/xstrtod.m4: New file.
94159
94160         Module xstrtol.
94161         * m4/xstrtol.m4: New file.
94162
94163         Module getdate.
94164         * m4/getdate.m4: New file.
94165
94166         Module unlocked-io.
94167         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
94168         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
94169         * m4/jm-glibc-io.m4n: Remove file.
94170
94171         Module long-options.
94172         * m4/long-options.m4: New file.
94173
94174         Module md5.
94175         * m4/md5.m4: New file.
94176
94177         Module sha.
94178         * m4/sha.m4: New file.
94179
94180         Module getstr.
94181         * m4/getstr.m4: New file.
94182
94183         Module getline.
94184         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
94185         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
94186         <sys/types.h>, for size_t. Use the function name gnu_getline, not
94187         simply getline. Infoke gl_PREREQ_GETLINE.
94188
94189         Module obstack.
94190         * m4/obstack.m4: New file.
94191
94192         Module hash.
94193         * m4/hash.m4: New file.
94194
94195         Module readtokens.
94196         * m4/readtokens.m4: New file.
94197
94198         Module strverscmp.
94199         * m4/strverscmp.m4: New file.
94200
94201         Module stdbool.
94202         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
94203         OSF/1.
94204
94205         Module strtoll.
94206         * m4/strtoll.m4: New file.
94207
94208         Module strtoull.
94209         * m4/strtoull.m4: New file.
94210
94211         Module strtoimax.
94212         * m4/strtoimax.m4: New file.
94213
94214         Module strtoumax.
94215         * m4/strtoumax.m4: New file.
94216
94217         Module xstrtoimax.
94218         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
94219         jm_AC_PREREQ_XSTRTOIMAX.
94220         Moved the strtol prerequisites to strtol.m4.
94221         Moved the strtoll prerequisites to strtoll.m4.
94222         Moved the strtoimax prerequisites to strtoimax.m4.
94223
94224         Module xstrtoumax.
94225         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
94226         jm_AC_PREREQ_XSTRTOUMAX.
94227         Moved the strtoul prerequisites to strtoul.m4.
94228         Moved the strtoull prerequisites to strtoull.m4.
94229         Moved the strtoumax prerequisites to strtoumax.m4.
94230
94231         Module chown.
94232         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
94233         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
94234
94235         Module dup2.
94236         * m4/dup2.m4: New file.
94237
94238         Module ftruncate.
94239         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
94240         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
94241
94242         Module getgroups.
94243         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
94244         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
94245
94246         Module gettimeofday.
94247         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
94248         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
94249         gl_PREREQ_GETTIMEOFDAY.
94250
94251         Module mkdir.
94252         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
94253         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
94254
94255         Module mkstemp.
94256         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
94257         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
94258         jm_AC_TYPE_UINTMAX_T.
94259         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
94260
94261         Module stat.
94262         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
94263         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
94264
94265         Module lstat.
94266         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
94267         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
94268
94269         Module timespec.
94270         * m4/timespec.m4 (gl_TIMESPEC): New macro.
94271         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
94272         * m4/st_mtim.m4: Indentation.
94273
94274         Module nanosleep.
94275         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
94276         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
94277         gl_PREREQ_NANOSLEEP.
94278
94279         Module regex.
94280         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
94281         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
94282         (gl_REGEX): New macro.
94283
94284         Module rename.
94285         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
94286         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
94287
94288         Module rmdir.
94289         * m4/rmdir.m4: New file.
94290
94291         Module utime.
94292         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
94293         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
94294         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
94295
94296         Module dirname.
94297         * m4/dirname.m4: New file.
94298
94299         Module getopt.
94300         * m4/getopt.m4: New file.
94301
94302         Module unistd-safer.
94303         * m4/unistd-safer.m4: New file.
94304
94305         Module fnmatch.
94306         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
94307         declaration.
94308         (gl_PREREQ_FNMATCH_EXTRA): New macro.
94309         (gl_FUNC_FNMATCH_POSIX): New macro.
94310         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
94311         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
94312         simply fnmatch.
94313
94314         Module exclude.
94315         * m4/exclude.m4: New file.
94316
94317         Module human.
94318         * m4/human.m4: New file.
94319
94320         Module acl.
94321         * m4/acl.m4: Nop.
94322
94323         Module backupfile.
94324         * m4/backupfile.m4: New file.
94325         * m4/d-ino.m4: Indentation.
94326
94327         Module fsusage.
94328         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
94329         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
94330         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
94331
94332         Module dirfd.
94333         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
94334         requirements.
94335
94336         Module euidaccess.
94337         * m4/euidaccess.m4: New file.
94338
94339         Module file-type.
94340         * m4/file-type.m4: New file.
94341
94342         Module fileblocks.
94343         * m4/fileblocks.m4: New file.
94344
94345         Module filemode.
94346         * m4/filemode.m4: New file.
94347
94348         Module isdir.
94349         * m4/isdir.m4: New file.
94350
94351         Module lchown.
94352         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
94353         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
94354
94355         Module makepath.
94356         * m4/makepath.m4: New file.
94357
94358         Module modechange.
94359         * m4/modechange.m4: New file.
94360
94361         Module mountlist.
94362         * m4/mountlist.m4: New file.
94363         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
94364         Indentation.
94365
94366         Module path-concat.
94367         * m4/path-concat.m4: New file.
94368
94369         Module pathmax.
94370         * m4/pathmax.m4: New file.
94371
94372         Module same.
94373         * m4/same.m4: New file.
94374
94375         Module save-cwd.
94376         * m4/save-cwd.m4: New file.
94377
94378         Module savedir.
94379         * m4/savedir.m4: New file.
94380
94381         Module xgetcwd.
94382         * m4/xgetcwd.m4: New file.
94383         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
94384
94385         Module xreadlink.
94386         * m4/xreadlink.m4: New file.
94387
94388         Module safe-read.
94389         * m4/safe-read.m4: New file.
94390
94391         Module safe-write.
94392         * m4/safe-write.m4: New file.
94393
94394         Module closeout.
94395         * m4/closeout.m4: New file.
94396
94397         Module stdio-safer.
94398         * m4/stdio-safer.m4: New file.
94399
94400         Module getpass.
94401         * m4/getpass.m4: New file.
94402
94403         Module getugroups.
94404         * m4/getugroups.m4: New file.
94405
94406         Module group-member.
94407         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
94408         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
94409
94410         Module idcache.
94411         * m4/idcache.m4: New file.
94412
94413         Module userspec.
94414         * m4/userspec.m4: New file.
94415
94416         Module gettime.
94417         * m4/clock_time.m4: New file.
94418         * m4/gettime.m4: New file.
94419
94420         Module settime.
94421         * m4/settime.m4: New file.
94422
94423         Module posixtm.
94424         * m4/posixtm.m4: New file.
94425
94426         Module gethostname.
94427         * m4/gethostname.m4: New file.
94428
94429         Module canon-host.
94430         * m4/canon-host.m4: New file.
94431
94432         Module gettext.
94433         * m4/codeset.m4: New file, from gettext-0.11.5.
94434         * m4/gettext.m4: New file, from gettext-0.11.5.
94435         * m4/glibc21.m4: New file, from gettext-0.11.5.
94436         * m4/iconv.m4: New file, from gettext-0.11.5.
94437         * m4/intdiv0.m4: New file, from gettext-0.11.5.
94438         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
94439         * m4/inttypes.m4: New file, from gettext-0.11.5.
94440         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
94441         * m4/isc-posix.m4: New file, from gettext-0.11.5.
94442         * m4/lcmessage.m4: New file, from gettext-0.11.5.
94443         * m4/lib-ld.m4: New file, from gettext-0.11.5.
94444         * m4/lib-link.m4: New file, from gettext-0.11.5.
94445         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
94446         * m4/progtest.m4: New file, from gettext-0.11.5.
94447         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
94448         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
94449         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
94450
94451         Module localcharset.
94452         * m4/localcharset.m4: New file.
94453
94454         Module hard-locale.
94455         * m4/hard-locale.m4: New file.
94456
94457         Module mbswidth.
94458         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
94459         onceonly macros.
94460         * m4/mbrtowc.m4: Add comment.
94461
94462         Module memcasecmp.
94463         * m4/memcasecmp.m4: New file.
94464
94465         Module memcoll.
94466         * m4/memcoll.m4: New file.
94467
94468         Module unicodeio.
94469         * m4/unicodeio.m4: New file.
94470
94471         Module rpmatch.
94472         * m4/rpmatch.m4: New file.
94473
94474         Module yesno.
94475         * m4/yesno.m4: New file.
94476
94477         Module exitfail.
94478         * m4/exitfail.m4: New file.
94479
94480         Module c-stack.
94481         * m4/c-stack.m4 (gl_C_STACK): New macro.
94482         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
94483
94484         Module error.
94485         * m4/error.m4 (gl_ERROR): New macro.
94486         (jm_PREREQ_ERROR): Use onceonly macros.
94487
94488         Module fatal.
94489         * m4/fatal.m4: New file.
94490
94491         Module getloadavg.
94492         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
94493         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
94494
94495         Module getpagesize.
94496         * m4/getpagesize.m4: New file.
94497
94498         Module getusershell.
94499         * m4/getusershell.m4: New file.
94500
94501         Module physmem.
94502         * m4/physmem.m4: New file.
94503
94504         Module posixver.
94505         * m4/posixver.m4: New file.
94506
94507         Module quotearg.
94508         * m4/quotearg.m4: New file.
94509
94510         Module quote.
94511         * m4/quote.m4: New file.
94512
94513         Module readutmp.
94514         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
94515
94516         Module sig2str.
94517         * m4/sig2str.m4: New file.
94518
94519         Other.
94520         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
94521         ulonglong.m4.
94522         * m4/intmax_t.m4: New file.
94523         * m4/d-type.m4: Indentation.
94524         * m4/jm-macros.m4: Update.
94525         * m4/prereq.m4 (jm_PREREQ): Update.
94526         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
94527         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
94528         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
94529         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
94530         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
94531         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
94532         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
94533         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
94534         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
94535         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
94536         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
94537         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
94538         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
94539         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
94540         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
94541         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
94542         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
94543         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
94544         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
94545
94546 2002-12-24  Bruno Haible  <bruno@clisp.org>
94547
94548         * MODULES.txt: Update according to m4/ changes.
94549
94550         Module gettext.
94551         * config.rpath: New file, from gettext-0.11.5.
94552
94553         * modules/*: New module descriptions.
94554         * gnulib-tool: New file.
94555         * MODULES.html.sh: New file.
94556
94557 2002-12-21  Karl Berry  <karl@gnu.org>
94558
94559         * doc/fdl.texi: update to version 1.2.
94560
94561 2002-12-19  Karl Berry  <karl@gnu.org>
94562
94563         * config/config.guess: update from prep.
94564
94565 2002-12-18  Bruno Haible  <bruno@clisp.org>
94566
94567         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
94568         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
94569
94570 2002-12-17  Bruno Haible  <bruno@clisp.org>
94571
94572         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
94573         stdlib.h, string.h.
94574
94575 2002-12-17  Bruno Haible  <bruno@clisp.org>
94576
94577         * lib/canon-host.c (strdup): Remove unused declaration.
94578
94579         * lib/fsusage.c: Include full_read.h.
94580         (get_fs_usage): Use full_read instead of safe_read.
94581
94582         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
94583
94584 2002-12-12  Karl Berry  <karl@gnu.org>
94585
94586         * config/config.guess: update from prep.
94587
94588 2002-12-11  Bruno Haible  <bruno@clisp.org>
94589
94590         * m4/setenv.m4: New file, from gettext-0.11.5.
94591
94592 2002-12-11  Bruno Haible  <bruno@clisp.org>
94593
94594         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
94595         not unsetenv().
94596         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
94597         modifications:
94598
94599         2002-12-11  Bruno Haible  <bruno@clisp.org>
94600
94601                 * setenv.c (alloca): Fall back to malloc.
94602                 (freea): New macro.
94603                 (setenv): Use freea() to free memory allocated with alloca().
94604
94605         2002-11-13  Bruno Haible  <bruno@clisp.org>
94606
94607                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
94608                 function declarations.
94609                 * unsetenv.c (unsetenv): Likewise.
94610
94611         2002-03-04  Bruno Haible  <bruno@clisp.org>
94612
94613                 Portability to AIX 4.3.3.
94614                 * unsetenv.c: New file, extracted from setenv.c.
94615                 * setenv.c: Move the unsetenv() function to unsetenv.c.
94616
94617         2001-12-20  Bruno Haible  <bruno@clisp.org>
94618
94619                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
94620                 use malloc instead. For SunOS 4.
94621
94622         2001-12-11  Bruno Haible  <bruno@clisp.org>
94623
94624                 * setenv.c: Declare alloca.
94625                 (compar_fn_t): New typedef.
94626                 (KNOWN_VALUE, STORE_VALUE): Use it.
94627
94628         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
94629         setenv.h.
94630
94631 2002-12-10  Paul Eggert  <eggert@twinsun.com>
94632
94633         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
94634         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
94635         Choose values that are less likely to collide with system fnmatch
94636         options.
94637         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
94638         defined (e.g., a pure POSIX system).
94639         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
94640         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
94641
94642 2002-12-06  Paul Eggert  <eggert@twinsun.com>
94643
94644         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
94645         a pain in practice to deal with generated m4 files.  This change
94646         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
94647
94648         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
94649         and jm-glibc-io.m4, as they are no longer a special case.
94650         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
94651         kludge and the auto-generation stuff.  Check only whether the
94652         functions are declared, not whether they exist, since older hosts
94653         that don't declare the functions can't use the optimization anyway.
94654
94655 2002-12-06  Jim Meyering  <jim@meyering.net>
94656
94657         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
94658
94659         Merge in changes from libc's misc/error.c, in preparation
94660         for the merge of gnulib's changes back into libc.
94661
94662         * lib/error.c (_): Define only if not already defined.
94663         Move definition to follow all #include directives.
94664         Include unlocked-io.h only if !_LIBC.
94665         [_LIBC]: Include <libio/libioP.h>.
94666         [USE_IN_LIBIO]: Include <libio/iolibio.h>
94667         (fflush): Tweak definition to use INTUSE.
94668         (putc): Define.
94669
94670 2002-12-05  Paul Eggert  <eggert@twinsun.com>
94671
94672         * lib/alloca.c [defined emacs]: Include "lisp.h".
94673         (xalloc_die) [defined emacs]: New macro.
94674         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
94675         [! defined emacs]: Include <xalloc.h>.
94676         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
94677         (pointer): Typedef to POINTER_TYPE *.
94678         (malloc): Remove decl; we now always use xmalloc.
94679         (alloca): Use old-style definition, since Emacs needs this.
94680         Check for arithmetic overflow when computing combined size.
94681
94682 2002-12-04  Paul Eggert  <eggert@twinsun.com>
94683
94684         Do not generate unlocked-io.h automatically, since it's easier to
94685         maintain it by hand.
94686
94687         * lib/unlocked-io.h: New file, from GNU diffutils,
94688         but with proper copyright notice and attribution.
94689         * lib/gen-uio: Remove.
94690         * lib/Makefile.am: Add copyright notice.
94691         (libfetish_a_SOURCES): Add unlocked-io.h.
94692         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
94693         (DISTCLEANFILES, io_functions): Remove macros.
94694         (EXTRA_DIST): Remove gen_uio.
94695         (unlocked-io.h): Remove rule.
94696
94697 2002-12-04  Jim Meyering  <jim@meyering.net>
94698
94699         Reflect the fact that stat.c and lstat.c are no longer generated.
94700         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
94701         (DISTCLEANFILES): Likewise.
94702         (EXTRA_DIST): Likewise.
94703         (all_local): Don't depend on stat.c or lstat.c.
94704         (stat.c, lstat.c): Remove rules.
94705         (EXTRA_DIST): Remove xstat.in.
94706
94707         * lib/xstat.in: Remove file.  Contents moved into stat.c.
94708         * lib/stat.c: New file.  Contents mostly from xstat.in.
94709         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
94710         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
94711
94712         * lib/safe-read.c: Rework so that it may serve to define safe_write,
94713         too.
94714         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
94715
94716 2002-12-03  Jim Meyering  <jim@meyering.net>
94717
94718         * lib/safe-read.c, safe-write.c: Change variable names and comments,
94719         but not semantics, to minimize the differences between these two files.
94720         (safe_read): Change comment to mention SAFE_READ_ERROR.
94721
94722         * lib/safe-read.c (IS_EINTR): Define.
94723         (safe_read): Use IS_EINTR in place of in-function cpp directives.
94724
94725 2002-12-02  Jim Meyering  <jim@meyering.net>
94726
94727         * lib/safe-read.c (EINTR): Define.
94728         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
94729         (INT_MAX): Provide fallback.
94730         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
94731
94732         * lib/safe-read.h (SAFE_READ_ERROR): Define.
94733
94734 2002-12-02  Bruno Haible  <bruno@clisp.org>
94735
94736         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
94737         Define, taken from safe-read.c.
94738         (INT_MAX): Provide fallback.
94739         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
94740         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
94741
94742         * lib/safe-read.c (EINTR): Remove definition.
94743         (safe_read): Don't use EINTR if it is absent.
94744
94745 2002-12-01  Jim Meyering  <jim@meyering.net>
94746
94747         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
94748         zero.
94749         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
94750
94751 2002-11-27  Paul Eggert  <eggert@twinsun.com>
94752
94753         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
94754         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
94755         with `if (! (value < limit)) abort ();', for readability.
94756
94757 2002-11-26  Karl Berry  <karl@gnu.org>
94758
94759         * lib/strdup.c: copy from libc again, with jim's ok.
94760         * lib/.cppi-disable: re-add strdup.c
94761
94762 2002-11-25  Karl Berry  <karl@gnu.org>
94763
94764         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
94765         instead of "strtol.c".
94766
94767 2002-11-25  Karl Berry  <karl@gnu.org>
94768
94769         * config/install-sh: update from automake for variable quoting, $0 in
94770         error msgs, etc.
94771
94772         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
94773         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
94774         entry.
94775
94776 2002-11-25  Jim Meyering  <jim@meyering.net>
94777
94778         * lib/mktime.c: Sync from libc, now that it has the latest fix.
94779
94780 2002-11-24  Karl Berry  <karl@gnu.org>
94781
94782         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
94783         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
94784
94785 2002-11-24  Jim Meyering  <jim@meyering.net>
94786
94787         Update from coreutils:
94788
94789         * lib/mktime.c: Merge in changes from libc.
94790
94791         Avoid a link-time failure on some Linux systems.
94792         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
94793         (otherwise).
94794         (__mon_yday): Declare with the STATIC attribute.
94795         (__mktime_internal): Likewise.
94796         Based on a report from Greg Schafer.
94797
94798 2002-11-23  Jim Meyering  <jim@meyering.net>
94799
94800         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
94801         Use `unsigned', not `int', as type of index.
94802
94803         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
94804
94805         * lib/fsusage.c: Remove unneeded parentheses around operands of
94806         `defined'.
94807
94808 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94809
94810         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94811         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94812         so that we can be included first.
94813         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94814         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94815         No need to include stddef.h or sys/types.h any more.
94816         Surround local include files with "", not "<>".
94817         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94818         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94819         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94820         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94821         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94822         (ISPRINT): Remove; no longer needed now that we assume C89.
94823
94824         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94825         Preserve errno.
94826
94827         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94828         quotearg_char): Use SIZE_MAX rather than
94829         (size_t) -1 when we are talking about "infinity".
94830
94831         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94832
94833 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94834
94835         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94836         hint that one should use `if (! x) abort ();' rather than `assert
94837         (x);', and anyway it's one less thing to worry about configuring.
94838         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94839         hash_rehash, hash_insert): Use abort rather than assert.
94840
94841 2002-11-22  Bruno Haible  <bruno@clisp.org>
94842
94843         * lib/safe-read.h: Assume C89. Add comments.
94844         (safe_read): Change return type to size_t.
94845         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94846         byte counts > SSIZE_MAX correctly.
94847         * lib/safe-write.h: New file.
94848         * lib/safe-write.c: New file.
94849         * lib/full-read.h: New file.
94850         * lib/full-read.c: New file.
94851         * lib/full-write.h: Assume C89. Add comments.
94852         * lib/full-write.c: Include safe-write.h.
94853         (full_write): Rewritten to use safe_write.
94854         Suggested by Jim Meyering and Paul Eggert.
94855
94856 2002-11-21  Jim Meyering  <jim@meyering.net>
94857
94858         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94859
94860         Merge in changes from the coreutils.
94861
94862         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94863         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94864         <stdint.h>.
94865         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94866         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94867         int.  Work more efficiently if X is the same width as uintmax_t.
94868         Do not compare X to -1, to avoid bogus compiler warning.
94869         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94870         Don't assume that f_frsize and f_bsize are the same type.
94871
94872         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94873         warning on FreeBSD.
94874
94875         * lib/makepath.c (make_path): Restore umask *before* creating the final
94876         component.
94877         (make_path): Minor reformatting.
94878
94879         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94880         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94881         HAVE_MALLOC/HAVE_REALLOC.
94882
94883         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94884         dummy ones.  At least on GNU/Linux systems, `auto' means something
94885         else.
94886         From Michael Stone.
94887
94888 2002-11-21  Bruno Haible  <bruno@clisp.org>
94889
94890         Remove case insensitive option matching.
94891         * lib/argmatch.h (argcasematch): Remove declaration.
94892         (ARGCASEMATCH): Remove macro.
94893         (__xargmatch_internal): Remove case_sensitive argument.
94894         (XARGMATCH): Update.
94895         (XARGCASEMATCH): Remove macro.
94896         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94897         case_sensitive argument.
94898         (argcasematch): Remove function.
94899         (__xargmatch_internal): Remove case_sensitive argument.
94900         (main): Use XARGMATCH instead of XARGCASEMATCH.
94901
94902         * lib/xmalloc.c: Change compile-time error message. Add comment about
94903         required autoconf version.
94904
94905 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94906
94907         Merge argmatch cleanups from Bison.  Assume C89.
94908
94909         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94910         Include stdlib.h, for EXIT_FAILURE.
94911         Always include <string.h>, since we assume C89.
94912         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94913         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94914         Include <stddef.h> instead, since it's all we need for size_t.
94915         (PARAMS): Remove.  All uses removed.
94916         (ARRAY_CARDINALITY): Do not bother to #undef.
94917         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94918         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94919         Remove unnecessary parentheses.
94920         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94921         Insert necessary parentheses.
94922         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94923         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94924
94925 2002-11-19  Bruno Haible  <bruno@clisp.org>
94926
94927         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94928         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94929
94930         * lib/mbswidth.h (PARAMS): Remove macro.
94931         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94932         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94933
94934         * lib/gcd.h (PARAMS): Remove macro.
94935         (gcd): Use ANSI C function declarations.
94936         * lib/gcd.c (gcd): Likewise.
94937
94938 2002-11-15  Bruno Haible  <bruno@clisp.org>
94939
94940         * lib/strcspn.c: Include <stddef.h>.
94941         (strcspn): Use ANSI C function declaration. Change return type to
94942         size_t. Use NULL.
94943         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94944         (strpbrk): Use NULL.
94945         * lib/strpbrk.h (PARAMS): Remove macro.
94946         (strpbrk): Use ANSI C function declaration.
94947         * lib/strstr.c: Don't include <sys/types.h>.
94948         * lib/strstr.h (PARAMS): Remove macro.
94949         (strstr): Use ANSI C function declarations.
94950
94951 2002-11-14  Karl Berry  <karl@gnu.org>
94952
94953         * config/mkinstalldirs: `do' on separate line, instead of
94954         `for var; do'.
94955
94956 2002-11-06  Bruno Haible  <bruno@clisp.org>
94957
94958         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94959         * lib/gcd.c (gcd): Likewise.
94960
94961 2002-11-05  Bruno Haible  <bruno@clisp.org>
94962
94963         * lib/gcd.h: New file, from gettext-0.11.5.
94964         * lib/gcd.c: New file, from gettext-0.11.5.
94965
94966 2002-11-05  Bruno Haible  <bruno@clisp.org>
94967
94968         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94969         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94970         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94971         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94972
94973         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94974         <libintl.h>.
94975         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94976         <libintl.h>.
94977
94978         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94979         * lib/human.c: Include gettext.h instead of <libintl.h>.
94980         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94981         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94982         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94983         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94984         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94985         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94986         (textdomain): Remove definition.
94987         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94988
94989         * lib/long-options.c: Remove include of <libintl.h> and definition of
94990         _.
94991         * lib/same.c: Remove include of <libintl.h> and definition of _.
94992
94993 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94994
94995         * lib/config.charset: A few additions for Solaris.
94996
94997 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94998
94999         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
95000         * lib/localcharset.c (locale_charset): Declare as extern "C".
95001
95002 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
95003
95004         * lib/config.charset: msdos in uk_UA uses CP1125.
95005
95006 2002-11-04  Bruno Haible  <bruno@clisp.org>
95007
95008         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
95009         * lib/strcase.h: New file, from GNU gettext-0.11.5.
95010         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
95011         * lib/strstr.h: New file, from GNU gettext-0.11.5.
95012         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
95013
95014 2002-11-04  Bruno Haible  <bruno@clisp.org>
95015
95016         * lib/localcharset.c (locale_charset): Don't return an empty string.
95017
95018 2002-11-04  Bruno Haible  <bruno@clisp.org>
95019
95020         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
95021         aliases.
95022
95023 2002-11-04  Bruno Haible  <bruno@clisp.org>
95024
95025         * lib/config.charset: Update for newest glibc. Add canonical names
95026         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
95027
95028 2002-11-04  Bruno Haible  <bruno@clisp.org>
95029
95030         * lib/config.charset: Add support for NetBSD.
95031
95032 2002-11-04  Bruno Haible  <bruno@clisp.org>
95033
95034         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
95035
95036 2002-11-01  Bruno Haible  <bruno@clisp.org>
95037
95038         * configure.in: Add AC_CONFIG_AUX_DIR call.
95039         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
95040         test/Makefile.
95041         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
95042
95043 2002-09-28  Karl Berry  <karl@gnu.org>
95044
95045         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
95046         installed automake until the next release, since changes have been
95047         made.
95048
95049 2002-09-25  Karl Berry  <karl@gnu.org>
95050
95051         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
95052         * lib/getopt*: copy from libc/posix.
95053         * lib/gettext.h: copy from gettext.
95054         * lib/.cppi-disable: add strdup.c, gettext.h.
95055
95056 2002-09-25  Karl Berry  <karl@gnu.org>
95057
95058         * config/srclist.txt: enable gettext.h check.
95059         * config/config.{guess,sub}: update from prep.
95060         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
95061                 from automake 1.6.3.
95062         See srclist*.
95063
95064 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
95065
95066         * regex.c (PATFETCH): Remove the translating fetch.
95067         (PATFETCH_RAW): Rename to PATFETCH.
95068         (set_image_of_range): New fun.
95069         (SET_RANGE_TABLE_WORK_AREA): Use it.
95070         (regex_compile): Don't translate the pattern chars so eagerly.
95071         Only do it when inserting an `exactn' bytecode or when handling
95072         a char-range.
95073         (mutually_exclusive_p): Avoid empty statement.
95074
95075 2002-07-06  Jim Meyering  <meyering@lucent.com>
95076
95077         * m4/README: Don't mention Makefile.am.in.
95078         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
95079
95080 2002-07-01  Jim Meyering  <meyering@lucent.com>
95081
95082         * lib/c-stack.c: Include sys/time.h.
95083         From Volker Borchert.
95084
95085 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95086
95087         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
95088
95089 2002-06-26  Paul Eggert  <eggert@twinsun.com>
95090
95091         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
95092         New macro.  Use it uniformly instead of
95093         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
95094         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
95095         reported by Vin Shelton.
95096
95097 2002-06-22  Paul Eggert  <eggert@twinsun.com>
95098
95099         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
95100         Do not assume SA_SIGINFO behavior.
95101         Bug reported by Jim Meyering on NetBSD 1.5.2.
95102
95103 2002-06-22  Jim Meyering  <meyering@lucent.com>
95104
95105         * m4/c-stack.m4: New file, from diffutils-2.8.2.
95106         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
95107
95108         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
95109         now that configure.ac uses AC_GNU_SOURCE.
95110         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
95111         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
95112
95113         Update to latest tools.  Suggestions from Paul Eggert.
95114         * m4/stdbool.m4: New file, from diffutils-2.8.2.
95115         * m4/gnu-source.m4: Update from diffutils-2.8.2.
95116         * m4/fnmatch.m4: Likewise.
95117         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
95118         to AC_HEADER_STDBOOL
95119
95120 2002-06-22  Jim Meyering  <meyering@lucent.com>
95121
95122         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
95123         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
95124
95125 2002-06-22  Jim Meyering  <meyering@lucent.com>
95126
95127         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
95128
95129         * lib/exitfail.c, exitfail.h: Likewise.
95130         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
95131
95132         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
95133         of fnmatch.h.
95134         (EXTRA_DIST): Add fnmatch_loop.c.
95135         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
95136
95137         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
95138         * lib/fnmatch.c: Update from diffutils-2.8.2.
95139         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
95140         * lib/fnmatch.h: Remove file.
95141
95142 2002-06-21  Jim Meyering  <meyering@lucent.com>
95143
95144         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
95145         * m4/mbrtowc.m4: Likewise.
95146
95147         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
95148         * m4/mbswidth.m4: Reflect name change:
95149         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
95150         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95151
95152         * m4/lib-link.m4: Update from gettext-0.11.2.
95153         * m4/gettext.m4: Likewise.
95154
95155         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
95156         From Alfred M. Szmidt.
95157
95158 2002-06-18  Paul Eggert  <eggert@twinsun.com>
95159
95160         * lib/file-type.h: Report an error if neither S_ISREG nor
95161         S_IFREG is defined, instead of using a test specific to glibc
95162         2.2.  This should be safe, since POSIX requires S_ISREG and
95163         Unix Version 7 had S_IFREG.  We don't need to check for
95164         <sys/types.h> since we don't use any symbols that it defines.
95165
95166 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
95167
95168         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
95169         $@-t, so that each temporary file name is unique and valid in the first
95170         8 characters, for operation under DOS.
95171
95172 2002-06-15  Paul Eggert  <eggert@twinsun.com>
95173
95174         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
95175
95176 2002-06-15  Jim Meyering  <meyering@lucent.com>
95177
95178         Work even with DJGPP 2.03, which lacks support for symlinks.
95179         From Richard Dawe.
95180         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
95181         is defined.
95182         * lib/lchown.c (S_ISLNK): Likewise.
95183
95184 2002-06-15  Jim Meyering  <meyering@lucent.com>
95185
95186         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
95187         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
95188         have been included before this file.
95189
95190 2002-06-14  Jim Meyering  <meyering@lucent.com>
95191
95192         * lib/file-type.h: Use the version from diffutils-2.8.2.
95193         * lib/file-type.c: Likewise.
95194
95195 2002-06-07  Jim Meyering  <meyering@lucent.com>
95196
95197         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
95198         They're needed at least for NetBSD 1.5.2.
95199         ($statxfs_includes): Include those same headers.
95200         ($statxfs_includes): Include sys/vfs.h if available.
95201         ($statxfs_includes): Likewise for sys/statvfs.h.
95202         Check for the following members in both structs statfs and statvfs:
95203         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
95204
95205 2002-06-01  Jim Meyering  <meyering@lucent.com>
95206
95207         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
95208         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
95209
95210 2002-05-28  Jim Meyering  <meyering@lucent.com>
95211
95212         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
95213         Reported by Volker Borchert.
95214
95215 2002-05-27  Jim Meyering  <meyering@lucent.com>
95216
95217         Fix a problem seen only on nonconforming systems whereby ls.c's
95218         use of localtime, and then of gettimeofday would cause trouble:
95219         the localtime call used to initialize rpl_gettimeofday's save
95220         mechanism would clobber ls's current local time information so
95221         that in any long listing the first file would always be listed
95222         with date 1970-01-01.  Analysis by Volker Borchert.
95223
95224         * lib/gettimeofday.c (localtime): Undefine.
95225         (rpl_localtime): New function.
95226
95227 2002-05-27  Jim Meyering  <meyering@lucent.com>
95228
95229         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
95230         localtime.
95231
95232         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
95233         use the replacement function; it wouldn't resolve at link time.
95234         Reported by Volker Borchert.
95235
95236 2002-05-22  Jim Meyering  <meyering@lucent.com>
95237
95238         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
95239         file-type.h.
95240         * lib/file-type.h: New file.
95241         * lib/file-type.c (file_type): New file/function.  Extracted from
95242         diffutils.
95243
95244 2002-04-30  Jim Meyering  <meyering@lucent.com>
95245
95246         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
95247
95248 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95249
95250         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
95251
95252 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95253
95254         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
95255         Do not check for alloca.h (no longer used) or stdbool.h (was never
95256         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
95257
95258 2002-04-29  Paul Eggert  <eggert@twinsun.com>
95259
95260         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
95261
95262 2002-04-29  Jim Meyering  <meyering@lucent.com>
95263
95264         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
95265         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
95266         Use AC_FUNC_STRNLEN here instead.
95267
95268         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
95269         With autoconf-2.53a, it's part of AC_PROG_CC.
95270
95271 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95272
95273         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
95274         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
95275
95276 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95277
95278         * lib/sig2str.h, lib/sig2str.c: New files.
95279         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
95280
95281 2002-04-28  Paul Eggert  <eggert@twinsun.com>
95282
95283         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
95284         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
95285         of 127, since 64 is the largest conceivable number for ancient
95286         nonstandard hosts.
95287         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
95288
95289 2002-04-28  Jim Meyering  <meyering@lucent.com>
95290
95291         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
95292
95293 2002-04-24  Jim Meyering  <meyering@lucent.com>
95294
95295         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
95296         (jm_PREREQ): Use it.
95297
95298         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
95299         mach/mach.h fcntl.h.
95300         Check for this function: setlocale.
95301
95302 2002-04-24  Jim Meyering  <meyering@lucent.com>
95303
95304         * lib/gettext.h: New file, from Gettext.
95305         * lib/Makefile.am (INCLUDES): Remove -I../intl.
95306         (libfetish_a_SOURCES): Add gettext.h.
95307
95308 2002-04-16  Jim Meyering  <meyering@lucent.com>
95309
95310         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
95311         ut_pid, ut_id, ut_exit.
95312
95313 2002-04-16  Jim Meyering  <meyering@lucent.com>
95314
95315         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
95316         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
95317         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
95318
95319 2002-04-12  Jim Meyering  <meyering@lucent.com>
95320
95321         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
95322         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
95323         existence of the getmntinfo function.  Needed for Darwin 5.3.
95324
95325         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
95326         This is necessary at least on Darwin 5.3.
95327
95328         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
95329         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
95330         strnlen.o in the library, and that makes some versions of ranlib
95331         object.
95332
95333 2002-04-12  Jim Meyering  <meyering@lucent.com>
95334
95335         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
95336
95337 2002-04-09  Jim Meyering  <meyering@lucent.com>
95338
95339         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
95340         to be more precise.  Rather than saying we're checking whether the
95341         function `works', say what we're testing.
95342         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
95343         Reported by Bruno Haible.
95344
95345 2002-03-10  Jim Meyering  <meyering@lucent.com>
95346
95347         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
95348         Suggestion from Santiago Vila.
95349
95350 2002-03-08  Jim Meyering  <meyering@lucent.com>
95351
95352         * lib/rename.c: Mention that this wrapper is needed also on
95353         mips-dec-ultrix4.4 systems.
95354
95355 2002-03-02  Jim Meyering  <meyering@lucent.com>
95356
95357         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
95358         not HAVE_CLOCK_SETTIME.
95359
95360 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95361
95362         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
95363         Check for clock_settime.
95364
95365 2002-02-27  Paul Eggert  <eggert@twinsun.com>
95366
95367         * lib/nanosleep.h: Rename to....
95368         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
95369
95370         * lib/gettime.c: New file.
95371         * lib/settime.c: New file.
95372         * lib/stime.c: Remove.
95373
95374         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
95375         timespec.h.  Remove nanosleep.h.
95376
95377 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95378
95379         * m4/acl.m4: New file.
95380         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
95381         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
95382
95383 2002-02-25  Paul Eggert  <eggert@twinsun.com>
95384
95385         * lib/acl.c, lib/acl.h: New files.
95386         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
95387
95388 2002-02-24  Jim Meyering  <meyering@lucent.com>
95389
95390         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
95391         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
95392         cause trouble.  Reported by Nelson Beebe.
95393
95394 2002-02-23  Paul Eggert  <eggert@twinsun.com>
95395
95396         * lib/path-concat.c (xpath_concat): Reorder code to pacify
95397         compilers that don't know that xalloc_die never returns.
95398
95399 2002-02-20  Jim Meyering  <meyering@lucent.com>
95400
95401         * lib/getdate.c: Regenerate using bison-1.33.
95402
95403 2002-02-17  Jim Meyering  <meyering@lucent.com>
95404
95405         * config/config.guess (main): Don't use `head -1'; it's no longer
95406         portable. Use `sed 1q' instead.
95407
95408 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
95409
95410         * m4/codeset.m4: Upgrade to gettext-0.11.
95411         * m4/gettext.m4: Upgrade to gettext-0.11.
95412         * m4/glibc21.m4: Upgrade to gettext-0.11.
95413         * m4/iconv.m4: Upgrade to gettext-0.11.
95414         * m4/isc-posix.m4: Upgrade to gettext-0.11.
95415         * m4/lcmessage.m4: Upgrade to gettext-0.11.
95416         * m4/lib-ld.m4: New file, from gettext-0.11.
95417         * m4/lib-link.m4: New file, from gettext-0.11.
95418         * m4/lib-prefix.m4: New file, from gettext-0.11.
95419         * m4/progtest.m4: Upgrade to gettext-0.11.
95420
95421 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95422
95423         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
95424         (jm_PREREQ): Use it.
95425
95426 2002-02-15  Paul Eggert  <eggert@twinsun.com>
95427
95428         * lib/posixver.c, lib/posixver.h: New files.
95429         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95430
95431 2002-02-02  Paul Eggert  <eggert@twinsun.com>
95432             Bruno Haible  <bruno@clisp.org>
95433
95434         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
95435         (fwrite_success_callback): New declaration.
95436         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
95437         print_unicode_char. Call failure callback instead of error.
95438         (fwrite_success_callback): New function.
95439         (exit_failure_callback): New function.
95440         (fallback_failure_callback): New function.
95441         (print_unicode_char): Call unicode_to_mb.
95442
95443 2002-01-26  Jim Meyering  <meyering@lucent.com>
95444
95445         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
95446         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
95447
95448 2002-01-26  Jim Meyering  <meyering@lucent.com>
95449
95450         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
95451
95452 2002-01-22  Paul Eggert  <eggert@twinsun.com>
95453
95454         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
95455
95456 2002-01-22  Jim Meyering  <meyering@lucent.com>
95457
95458         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
95459         Otherwise, some versions of automake would omit the rule that makes
95460         Makefile from Makefile.in.
95461
95462 2002-01-21  Paul Eggert  <eggert@twinsun.com>
95463
95464         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
95465         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
95466         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
95467         (memcoll): Set errno to zero if there is no error.
95468
95469         * lib/quotearg.c (quotearg_buffer_restyled):
95470         Fix bug with quoting buffers containing NUL when backslashing escapes.
95471         This bug was exposed by the other changes in this patch.
95472         (quotearg_n_options): New arg ARGSIZE.
95473         All callers changed.
95474         (quoting_options_from_style): New function.
95475         (quotearg_n_style): Use it.
95476         (quotearg_n_style_mem): New function.
95477
95478         * lib/quotearg.h (quotearg_n_style_mem): New function.
95479
95480 2002-01-19  Jim Meyering  <meyering@lucent.com>
95481
95482         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
95483         Remove useless quotes: DF_PROG="df".
95484         * m4/strnlen.m4: New file.
95485
95486 2002-01-16  Paul Eggert  <eggert@twinsun.com>
95487
95488         * lib/backupfile.c (ISDIGIT): Comment fix.
95489         * lib/getdate.y (ISDIGIT): Likewise.
95490         * lib/posixtm.c (ISDIGIT, year): Likewise.
95491         * lib/strverscmp.c (ISDIGIT): Likewise.
95492         * lib/userspec.c (ISDIGIT): Likewise.
95493
95494 2002-01-16  Jim Meyering  <meyering@lucent.com>
95495
95496         * lib/getdate.y: Add three semicolons, each just before a closing
95497         brace. Bison (as of version 1.31) no longer papers over that mistake.
95498
95499 2002-01-05  Jim Meyering  <meyering@lucent.com>
95500
95501         * lib/version-etc.c (version_etc_copyright): Update copyright year.
95502
95503 2001-12-19  Paul Eggert  <eggert@twinsun.com>
95504
95505         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
95506         not silently exit merely because the output buffer happens to
95507         have nothing pending.
95508
95509 2001-12-18  Paul Eggert  <eggert@twinsun.com>
95510
95511         See the big note in ../ChangeLog.
95512         * lib/human.c (suffixes): Prefer K to k for 1024.
95513         (generate_suffix_backwards): New function.
95514         (human_readable_inexact): Use it.
95515         * lib/xstrtol.c (__xstrtol): If there is no number but there
95516         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
95517         Accept 'K' as well as 'k'.
95518
95519 2001-12-15  Jim Meyering  <meyering@lucent.com>
95520
95521         * lib/regex.h (__restrict_arr): Update from libc.
95522
95523         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
95524         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
95525         (STREQ): Define.
95526
95527 2001-12-14  Jim Meyering  <meyering@lucent.com>
95528
95529         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
95530         Suggestion from Bruno Haible.
95531
95532 2001-12-10  Jim Meyering  <meyering@lucent.com>
95533
95534         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
95535         xrealloc, Instead, include "xalloc.h".
95536         (initbuffer): Don't cast xmalloc return value to char*.
95537         (readline): Reword comment.
95538         Don't cast xrealloc return value to char*
95539         Return NULL, not 0.
95540
95541 2001-12-09  Jim Meyering  <meyering@lucent.com>
95542
95543         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
95544         about `signed and unsigned type in conditional expression'.
95545         * lib/posixtm.c (posix_time_parse): Likewise.
95546
95547         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
95548
95549         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
95550         to avoid a pedantic warning.
95551
95552         * lib/getstr.c: Don't include assert.h.
95553         (getstr): Remove warning-evoking assertions.
95554         Return -1 if offset parameter is out of bounds.
95555         Change the type of a local from int to size_t.
95556
95557         * lib/strftime.c (my_strftime_localtime_r): Include this function
95558         definition in the `#if ! HAVE_TM_GMTOFF' block.
95559
95560         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
95561         Include xalloc.h instead.
95562
95563 2001-12-02  Jim Meyering  <meyering@lucent.com>
95564
95565         * lib/tempname.c: Don't declare getenv, thus reverting the change of
95566         2001-11-18.  It's no longer necessary, now that stdlib.h is always
95567         included.
95568
95569         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
95570         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
95571
95572 2001-11-30  Akim Demaille  <akim@epita.fr>
95573
95574         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
95575         before being defined.
95576
95577 2001-11-27  Paul Eggert  <eggert@twinsun.com>
95578
95579         * lib/quotearg.h (quotearg_n, quotearg_n_style):
95580         First arg is int, not unsigned.
95581         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
95582         (SIZE_MAX, UINT_MAX): New macros.
95583         (quotearg_n_options): Abort if N is negative.
95584         Avoid overflow check on hosts where size_t is 64 bits and int
95585         is 32 bits, as overflow is impossible there.
95586         Fix off-by-one typo that caused unnecessary reallocation.
95587
95588 2001-11-27  Jim Meyering  <meyering@lucent.com>
95589
95590         * lib/tempname.c: Merge with version from libc.
95591         * lib/regex.c: Likewise.
95592
95593         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
95594         systems for which STDC_HEADERS is 0, it was not included, resulting in
95595         a warning about an integer-to-pointer conversion problem with getenv.
95596         Reported by Volker Borchert.
95597
95598 2001-11-26  Jim Meyering  <meyering@lucent.com>
95599
95600         * lib/gtod.h: Remove file.
95601         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
95602         * lib/gettimeofday.c: Don't include gtod.h.
95603         (GTOD_init): Remove function.
95604         (rpl_gettimeofday): Do its job here instead, rather than aborting.
95605         Suggestion from Volker Borchert.
95606
95607 2001-11-23  Jim Meyering  <meyering@lucent.com>
95608
95609         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
95610         it.
95611         * lib/hash.c (struct hash_table): Define it here instead.
95612
95613 2001-11-22  Jim Meyering  <meyering@lucent.com>
95614
95615         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
95616
95617 2001-11-20  Jim Meyering  <meyering@lucent.com>
95618
95619         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
95620         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
95621
95622 2001-11-19  Jim Meyering  <meyering@lucent.com>
95623
95624         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
95625         directory.  Use "conftestXXXXXX" as the template.
95626         Suggestion from Paul Eggert.
95627
95628         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
95629         immediately, so the test doesn't mistakenly hit the max-open-files
95630         limit.
95631
95632 2001-11-18  Paul Eggert  <eggert@twinsun.com>
95633
95634         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
95635         (TEMPORARIES): New macro.
95636         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
95637         removes an artificial limitation (e.g. HP-UX 10.20, where
95638         TMP_MAX is 17576).
95639
95640 2001-11-18  Jim Meyering  <meyering@lucent.com>
95641
95642         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
95643
95644 2001-11-18  Jim Meyering  <meyering@lucent.com>
95645
95646         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
95647         on SunOS 4.
95648
95649         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
95650         files will be created before anything else.
95651
95652 2001-11-17  Paul Eggert  <eggert@twinsun.com>
95653
95654         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
95655         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
95656
95657 2001-11-17  Jim Meyering  <meyering@lucent.com>
95658
95659         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
95660         Prompted by a report from Bob Proulx.
95661
95662         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
95663         Instead, require UTILS_FUNC_MKSTEMP.
95664
95665 2001-11-17  Jim Meyering  <meyering@lucent.com>
95666
95667         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
95668         Now, that's done as part of AC_FUNC_STRTOD.
95669
95670 2001-11-17  Jim Meyering  <meyering@lucent.com>
95671
95672         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
95673         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
95674         rather than group writable.  Patch by Juan F. Codagnone.
95675
95676         * lib/readtokens.c: Remove explicit declarations of xmalloc and
95677         xrealloc, Instead, include "xalloc.h".
95678
95679         * lib/mountlist.c: Include unlocked-io.h after all system headers.
95680         Remove explicit declarations of xmalloc, xrealloc,
95681         and xstrdup.  Instead, include "xalloc.h".
95682
95683         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
95684         unlocked-io.h.
95685         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
95686         Likewise.
95687         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
95688
95689         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
95690         Reported by Padraig Brady.
95691
95692         * lib/mkstemp.c: #undef mkstemp.
95693         Include config.h.
95694         (rpl_mkstemp): Rename from mkstemp.
95695         Protoize.
95696
95697 2001-11-16  Jim Meyering  <meyering@lucent.com>
95698
95699         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
95700         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
95701         determine the amount of total physical memory, use pstat_getstatic.
95702         HPUX-11 doesn't define _SC_PHYS_PAGES.
95703         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
95704         If sysconf couldn't be used to determine the amount of available
95705         physical memory, use both pstat_getstatic and pstat_getdynamic.
95706         Based on a patch from Bob Proulx.
95707
95708 2001-11-10  Jim Meyering  <meyering@lucent.com>
95709
95710         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
95711         (jm_PREREQ): Use it.
95712
95713 2001-11-09  Jim Meyering  <meyering@lucent.com>
95714
95715         * m4/jm-macros.m4: Require autoconf-2.52f.
95716         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
95717         Use these AC_-prefixed names, not the AM_-prefixed ones.
95718
95719         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
95720
95721 2001-11-05  Jim Meyering  <meyering@lucent.com>
95722
95723         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
95724
95725 2001-11-04  Jim Meyering  <meyering@lucent.com>
95726
95727         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
95728         $DEFS.
95729
95730 2001-11-03  Jim Meyering  <meyering@lucent.com>
95731
95732         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
95733         of AC_DEFUN.
95734
95735         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
95736         know the name of the variable in the macro definition.
95737
95738 2001-11-03  Jim Meyering  <meyering@lucent.com>
95739
95740         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
95741         in argmatch_to_argument call.
95742
95743         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
95744         argument.
95745
95746         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
95747         e.g., a fault due to an attempt to free a NULL pointer.
95748
95749 2001-11-01  Jim Meyering  <meyering@lucent.com>
95750
95751         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
95752         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
95753
95754 2001-11-01  Jim Meyering  <meyering@lucent.com>
95755
95756         * lib/dirfd.c, lib/dirfd.h: New files.
95757         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
95758
95759         * lib/hash.c (hash_print) [TESTING]: Clean up.
95760
95761 2001-10-22  Paul Eggert  <eggert@twinsun.com>
95762
95763         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
95764         to avoid a warning if -Wall.
95765
95766 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
95767
95768         * README: New file
95769         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
95770         (per RMS's instructions, this is now the canonical source)
95771         * lgpl/, gpl/: New directories.
95772
95773 2001-10-21  Paul Eggert  <eggert@twinsun.com>
95774
95775         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
95776
95777 2001-10-21  Jim Meyering  <meyering@lucent.com>
95778
95779         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
95780         this code would end up calling gettext even in packages built
95781         with --disable-nls.
95782         * lib/getopt.c (_): Likewise.
95783         * lib/regex.c (_): Likewise.
95784
95785 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95786
95787         * m4/error.m4 (jm_PREREQ_ERROR):
95788         Do not invoke AC_CHECK_FUNCS with strerror_r, as
95789         AC_FUNC_STRERROR_R does that.
95790         Check for strerror declaration.
95791
95792         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
95793         are supposed to have them these days.
95794         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
95795         Merge changes from latest Autoconf CVS.
95796         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
95797         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
95798         POSIX decided to standardize on the int flavor of strerror_r.
95799
95800 2001-10-20  Paul Eggert  <eggert@twinsun.com>
95801
95802         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
95803         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
95804         Use strerror_r that is only a macro, even if it is not a function.
95805         (strerror): Check for HAVE_DECL_STRERROR before declaring.
95806         (private_strerror): Use prototypes, not old-style function definition.
95807         (print_errno_message): New function.
95808         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
95809         char*-flavored one.
95810         (error_tail, error, error_at_line): Use it.
95811
95812 2001-10-11  Jim Meyering  <meyering@lucent.com>
95813
95814         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95815         and quote_n (1, ... to avoid clobbering a buffer.
95816
95817 2001-10-05  Jim Meyering  <meyering@lucent.com>
95818
95819         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95820         hash-pjw.h.
95821         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95822         * lib/hash-pjw.h: New file.
95823
95824 2001-09-30  Jim Meyering  <meyering@lucent.com>
95825
95826         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95827         `struct fsstat' has the `f_fstypename' member.
95828         Use that to define FS_TYPE, which is now used to make
95829         the getfsstat link test tighter.
95830
95831 2001-09-30  Jim Meyering  <meyering@lucent.com>
95832
95833         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95834         Include <sys/ucred.h>, for Apple Darwin.
95835         Include sys/mount.h and sys/fs_types.h only if available.
95836         (FS_TYPE): Define.
95837         (read_filesystem_list): Use FS_TYPE.
95838
95839 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95840
95841         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95842         a boolean context.
95843
95844 2001-09-29  Jim Meyering  <meyering@lucent.com>
95845
95846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95847         [one-argument getmntent function]): Include stdio.h before mntent.h.
95848         SunOS 4.1.x needs it for the declaration of `FILE'.
95849         Patch by Volker Borchert.
95850
95851         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95852         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95853         sys/fs_types.h, and make the link-test for getfsstat guard #include
95854         directives with appropriate #if HAVE_*_H tests so that we can
95855         detect getfsstat on Apple Darwin1.3.7 systems.
95856         Reported by Nelson Beebe.
95857         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95858
95859 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95860
95861         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95862         #defines strtoimax.  Also treat the other strto* functions
95863         like strtoimax.
95864
95865         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95866         Check for strtoul and strtoumax,
95867         as those declarations are made even in the signed case.
95868         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95869         Likewise, for strtol and strtoimax.
95870
95871 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95872
95873         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95874         #defines strtoimax.  Also treat the other strto* functions
95875         like strtoimax.
95876
95877         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95878         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95879         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95880
95881 2001-09-26  Jim Meyering  <meyering@lucent.com>
95882
95883         Most macros in unlocked-io.h had the wrong number of arguments.
95884         * lib/gen-uio: New script.
95885         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95886         * lib/unlocked-io.hin: Remove file.
95887         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95888         rather than trying to embed it here.
95889         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95890         Reported by Padraig Brady.
95891
95892 2001-09-25  Volker Borchert  <bt@teknon.de>
95893
95894         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95895         `result'.
95896
95897 2001-09-24  Jim Meyering  <meyering@lucent.com>
95898
95899         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95900
95901 2001-09-23  Jim Meyering  <meyering@lucent.com>
95902
95903         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95904         instead of the mere test for existence of mntent.h.  The latter
95905         would get a false-positive on AIX 3.4 systems.
95906         In the outer getmntent if-block, don't die if neither of the getmntent
95907         tests succeeds.  Instead, just fall through and continue with the
95908         remaining tests.
95909
95910 2001-09-23  Jim Meyering  <meyering@lucent.com>
95911
95912         * lib/mountlist.c: Remove useless parentheses in #if directives.
95913         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95914         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95915
95916 2001-09-22  Jim Meyering  <meyering@lucent.com>
95917
95918         * m4/gettext.m4: New file.  From gettext.
95919         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95920         * m4/progtest.m4: Likewise
95921         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95922         * m4/glibc21.m4: Likewise.
95923
95924         * m4/libintl.m4: Remove.  No longer used.
95925
95926 2001-09-22  Jim Meyering  <meyering@lucent.com>
95927
95928         * lib/localcharset.c: Update from latest gettext.
95929         * lib/config.charset: Likewise.
95930
95931 2001-09-20  Jim Meyering  <meyering@lucent.com>
95932
95933         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95934         strtoimax.
95935         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95936         strtoumax.
95937
95938 2001-09-20  Jim Meyering  <meyering@lucent.com>
95939
95940         * lib/xstrtol.c (strtoimax): Guard declaration with
95941         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95942         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95943         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95944         (strtoumax): Likewise, for completeness (it wasn't necessary).
95945
95946 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95947
95948         * lib/strtoimax.c (HAVE_LONG_LONG):
95949         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95950         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95951         to work around bug in IBM C compiler.
95952
95953 2001-09-17  Jim Meyering  <meyering@lucent.com>
95954
95955         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95956         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95957         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95958         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95959         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95960         whenever the right hand side need not be expanded by the shell.
95961
95962 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95963
95964         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95965         library.  It's not correct, as some older glibcs are buggy.
95966         fnmatch wasn't fixed until glibc 2.2.
95967
95968         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95969         special shell magic here.
95970
95971 2001-09-16  Jim Meyering  <meyering@lucent.com>
95972
95973         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95974         * m4/jm-macros.m4: Require it.
95975
95976 2001-09-16  Jim Meyering  <meyering@lucent.com>
95977
95978         * lib/mkdir.c: New file.
95979
95980 2001-09-15  Jim Meyering  <meyering@lucent.com>
95981
95982         * m4/jm-macros.m4: Check for help2man.
95983
95984 2001-09-11  Jim Meyering  <meyering@lucent.com>
95985
95986         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95987         The body, by Paul Eggert, was moved here from configure.in.
95988         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95989
95990 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95991
95992         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95993         (jm_PREREQ): Use it.
95994
95995 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95996
95997         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95998         Use ssize_t, not int, to store result of readlink.
95999         Check for ssize_t overflow as well as size_t overflow,
96000         as POSIX says the result of readlink is implementation-defined
96001         when ssize_t overflows.
96002         Remove unnecessary cast to char*.
96003         Use free+malloc instead of realloc, as the storage doesn't need
96004         to be preserved and it's clearer and can be more efficient that way.
96005         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
96006         * lib/xreadlink.h (xreadlink): Update prototype.
96007
96008 2001-09-04  Paul Eggert  <eggert@twinsun.com>
96009
96010         * lib/xgetcwd.c: Revert some of the previous change; intead,
96011         fix the HAVE_GETCWD_NULL code to behave more like the
96012         !HAVE_GETCWD_NULL code used to.
96013
96014         Include "xalloc.h".
96015         (xgetcwd): Do not return NULL when memory is exhausted; instead,
96016         invoke xalloc_die.
96017
96018 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96019
96020         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
96021         sys/param.h, as pathmax.h includes them.
96022
96023 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96024
96025         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
96026         (jm_PREREQ_XGETCWD): New macro.
96027
96028         * m4/getcwd.m4: New file.
96029
96030 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96031
96032         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
96033         like the HAVE_GETCWD_NULL code.
96034         Include pathmax.h if not HAVE_GETCWD.
96035         Do not include xalloc.h.
96036         (INITIAL_BUFFER_SIZE): New symbol.
96037         Do not use xmalloc / xrealloc, since the caller is responsible for
96038         handling errors.  Preserve errno around `free' during failure.
96039         Do not overrun buffer when using getwd.
96040
96041 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96042
96043         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
96044         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
96045         getcwd (NULL, 0).
96046
96047 2001-09-03  Paul Eggert  <eggert@twinsun.com>
96048
96049         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
96050         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
96051         spotted by Jim Meyering.
96052
96053 2001-09-03  Jim Meyering  <meyering@lucent.com>
96054
96055         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
96056         failure.
96057
96058 2001-09-02  Jim Meyering  <meyering@lucent.com>
96059
96060         * lib/error.c: Update from GNU libc.
96061
96062 2001-09-01  Jim Meyering  <meyering@lucent.com>
96063
96064         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
96065         Used by df.
96066
96067 2001-09-01  Jim Meyering  <meyering@lucent.com>
96068
96069         * lib/xreadlink.c: New file.
96070         * lib/xreadlink.h: New file.
96071         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
96072         xreadlink.h.
96073
96074         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
96075         doesn't conflict with sparc Solaris 7's definition in
96076         /usr/include/sys/int_types.h.
96077
96078         * lib/exclude.c: Use `""', not `<>' to #include non-system header
96079         files.
96080         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
96081         and strncasecmp as r-values.  Unixware didn't have declarations.
96082
96083 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96084
96085         * lib/xstrtol.h: Add copyright notice.
96086         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
96087         LONGINT_INVALID_SUFFIX_CHAR.
96088
96089 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96090
96091         * lib/xstrtol.c (strtoimax): New decl.
96092
96093 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96094
96095         * lib/xgetcwd.c: Don't include pathmax.h.
96096         Include stdlib.h and unistd.h if available.
96097         Include xalloc.h.
96098         (xmalloc, xstrdup, free): Remove decls.
96099         (xgetcwd): Don't assume sizes fit in unsigned.
96100         Check for overflow when computing sizes.
96101         Simplify reallocation code.
96102
96103 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96104
96105         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
96106         a directory's st_size can have an arbitrary value, so the old
96107         usage could waste an arbitrary amount of memory.  All uses
96108         changed.
96109         * lib/savedir.h: Update prototype.
96110
96111 2001-08-31  Paul Eggert  <eggert@twinsun.com>
96112
96113         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
96114
96115         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
96116         old strtoimax.c.
96117
96118         Also, make the following further changes to make this file's
96119         configuration more similar to that of strtol.c:
96120         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
96121         (strtoumax, uintmax_t, strtoull, strtol): Remove.
96122         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
96123         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
96124         changed to signed values.
96125
96126         And make the following changes as well:
96127         Fix copyright notice, as 1999 was missing.
96128         (verify): New macro.
96129         (strtoimax): Check sizes at compile-time, not run-time.
96130         Prefer strtol to strtoll if both work.
96131         (main): Remove; it was not that useful and was a pain to maintain.
96132
96133         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
96134
96135 2001-08-31  Jim Meyering  <meyering@lucent.com>
96136
96137         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
96138         Use an initial, malloc'd, buffer of length 128 rather than
96139         a statically allocated one of length 1024.
96140
96141 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96142
96143         Simplify code, partly by assuming autoconf 2.52 semantics.
96144
96145         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
96146
96147         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
96148         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
96149         All uses removed.
96150         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
96151         Move AC_REQUIRE to next-to-top level, to avoid confusion.
96152         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
96153         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
96154         jm_AC_HEADER_INTTYPES_H.
96155         * m4/jm-macros.m4 (jm_MACROS): Likewise.
96156
96157         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
96158
96159         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
96160         Quote first arg of AC_DEFUN.
96161         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
96162         since they are needed to parse the include file even if we need
96163         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
96164         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
96165         but with opposite signedness.
96166
96167 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96168
96169         Merge 'exclude' changes from tar 1.13.22.
96170         This fixes one or two unlikely storage allocation overflow bugs,
96171         but doesn't change user-visible behavior otherwise.
96172
96173 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96174
96175         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
96176         (jm_PREREQ_EXCLUDE): New macro.
96177
96178 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96179
96180         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
96181         tm to be declared.
96182
96183 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96184
96185         * lib/hash.c: Remove '2001' from copyright notice.
96186
96187 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96188
96189         * lib/full-write.h: New file.
96190         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
96191         * lib/full-write.c: Correct credits, as cccp.c no longer
96192         exists and anyway it was so heavily changed from the old cccp
96193         code as to be unrecognizable.  Include full-write.h.
96194         (full_write): Return size_t, with short writes meaning failure.
96195         All callers changed.  This fixes a bug with large buffers
96196         on 64-bit hosts.
96197         * lib/utime.c: Include full-write.h.
96198
96199 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96200
96201         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
96202         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
96203         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
96204         Include if available.
96205         (<xalloc.h>): Include
96206         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
96207         (verify): New macro.  Use it to verify that EXCLUDE macros do not
96208         collide with FNM macros.
96209         (struct patopts): New struct.
96210         (struct exclude): Use it, as exclude patterns now come with options.
96211         (new_exclude): Support above changes.
96212         (new_exclude, add_exclude_file):
96213         Initial size must now be a power of two to simplify overflow checking.
96214         (free_exclude, fnmatch_no_wildcards): New function.
96215         (excluded_filename): No longer requires options arg, as the options
96216         are determined by add_exclude.  Now returns bool, not int.
96217         (excluded_filename, add_exclude):
96218         Add support for the fancy new exclusion options.
96219         (add_exclude, add_exclude_file): Now takes int options arg.
96220         Check for arithmetic overflow when computing sizes.
96221         (add_exclude_file): xrealloc might modify errno, so don't
96222         realloc until after errno might be used.
96223
96224         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
96225         New macros.
96226         (free_exclude): New decl.
96227         (add_exclude, add_exclude_file): Now takes int options arg.
96228         (excluded_filename): No longer requires options arg, as the options
96229         are determined by add_exclude.  Now returns bool, not int.
96230
96231 2001-08-30  Paul Eggert  <eggert@twinsun.com>
96232
96233         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
96234
96235 2001-08-27  Jim Meyering  <meyering@lucent.com>
96236
96237         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
96238
96239         * lib/version-etc.c (N_): Remove definition.
96240         Revert most of last change.
96241         Instead, simply don't mark the `Copyright...' string for translation.
96242         Based on advice from Paul Eggert.
96243
96244         * lib/strtoxmax.c: Tweak comment.
96245
96246 2001-08-26  Jim Meyering  <meyering@lucent.com>
96247
96248         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
96249
96250         * m4/xstrtoimax.m4: New file.
96251         * m4/xstrtoumax.m4: Add comments explaining why we
96252         AC_REPLACE_FUNCS(strtol).
96253
96254 2001-08-26  Jim Meyering  <meyering@lucent.com>
96255
96256         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
96257         of copyright with `%s' so translators don't get an untranslated
96258         message in 2002.
96259         (COPYRIGHT_YEAR): Define.
96260         (version_etc): Use fprintf rather than fputs.
96261         Suggestion from Ulrich Drepper.
96262
96263         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
96264
96265         * lib/strtoll.c: New file, from GNU libc.
96266         * lib/xstrtoimax.c: New file.
96267
96268         * lib/xstrtol.h: Add xstrtoimax.
96269         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
96270         * lib/strtoimax.c: New file.  Likewise, but first define
96271         STRTOUXMAX_SIGNED.
96272
96273         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
96274         ...
96275         * lib/strtoxmax.c: ... then renamed to this.
96276
96277 2001-08-18  Paul Eggert  <eggert@twinsun.com>
96278
96279         * m4/inttypes.m4: Add AC_PREREQ(2.13).
96280         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
96281         (jm_AC_TYPE_INTMAX_T): New macro.
96282         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
96283
96284         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
96285
96286         * m4/longlong.m4: Renamed from ulonglong.m4.
96287         * m4/inttypes.m4: Renamed from inttypes_h.m4.
96288         * m4/uintmax_t.m4: Removed.
96289
96290 2001-08-13  Paul Eggert  <eggert@twinsun.com>
96291
96292         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
96293         Port to Solaris 8, where 'sed' requires a space after the 'r'
96294         command, and where sh dislikes "$/".  Clean up the spacing a bit.
96295         Redirect output to $tmp just once.
96296
96297 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
96298
96299         * lib/addext.c (<errno.h>): Include.
96300         (errno): Declare if not defined.
96301         (addext): Work correctly when pathconf returns -1 and leaves
96302         errno alone because there is no limit.  Also, work even if
96303         pathconf returns a value greater than SIZE_MAX.
96304
96305 2001-08-12  Jim Meyering  <meyering@lucent.com>
96306
96307         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
96308         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
96309         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
96310         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
96311         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
96312         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
96313         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
96314         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
96315         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
96316         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
96317         utime.m4, utimes.m4, xstrtoumax.m4:
96318         Quote the first argument in each use of AC_DEFUN.
96319
96320 2001-08-12  Jim Meyering  <meyering@lucent.com>
96321
96322         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
96323         Simply `return getcwd (NULL, 0);'.
96324         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
96325         Use 1300 as initial value for length, not PATH_MAX.
96326
96327         * lib/pathmax.h: Clean up cpp syntax.
96328
96329 2001-08-12  Jim Meyering  <meyering@lucent.com>
96330
96331         * lib/gettimeofday.c: New file.
96332         * lib/gtod.h: New file.
96333         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
96334
96335 2001-08-05  Jim Meyering  <meyering@lucent.com>
96336
96337         * m4/jm-macros.m4: Require autoconf-2.52.
96338
96339 2001-08-04  Jim Meyering  <meyering@lucent.com>
96340
96341         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
96342         stmt, to get in sync with glibc.
96343
96344 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96345
96346         The following changes are from gettext 0.10.39 as maintained by
96347         Bruno Haible.
96348
96349         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
96350         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
96351         with inverted sense.  All uses changed.
96352
96353         * lib/mbswidth.c: Don't include <limits.h>.
96354         Include <stdlib.h> and <string.h> unconditionally.
96355         (iswcntrl, mbsinit, ISCNTRL): New macros.
96356         (mbsnwidth): Use K&R style function declarations.
96357         Don't bother checking for MB_LEN_MAX == 1, since the compiler
96358         can optimize it when MB_CUR_MAX == 1.
96359         The width of control characters is zero, not 1.
96360
96361 2001-08-03  Paul Eggert  <eggert@twinsun.com>
96362
96363         The following changes are from gettext 0.10.39 as maintained by
96364         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
96365
96366         * m4/codeset.m4: Upgrade to serial AM1.
96367         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
96368         all uses changed.  Quote first arg of AC_DEFUN.
96369         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
96370
96371         * m4/iconv.m4: Upgrade to serial AM2.
96372         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
96373         Add --with-libconv-prefix.
96374         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
96375         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
96376         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
96377         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
96378         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
96379
96380         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
96381         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
96382         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
96383         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
96384         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
96385         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
96386         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
96387         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
96388         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
96389
96390         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
96391         string.h any more.
96392
96393         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
96394         not the default value.
96395
96396         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
96397         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
96398         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
96399         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
96400         Also check for iswcntrl, used for wcwidth fallback.
96401         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
96402         to Autoconf 2.13.
96403
96404 2001-08-03  Jim Meyering  <meyering@lucent.com>
96405
96406         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
96407         as it was in the original.  Reported by Paul Eggert.
96408
96409 2001-07-16  Jim Meyering  <meyering@lucent.com>
96410
96411         * m4/gettimeofday.m4: New file.
96412         Prompted by a report from Bernhard Baehr.
96413
96414 2001-07-15  Jim Meyering  <meyering@lucent.com>
96415
96416         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
96417         stuff. Now it's in ../Makefile.cfg.
96418
96419 2001-07-15  Jim Meyering  <meyering@lucent.com>
96420
96421         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
96422         (BUILT_SOURCES): Add unlocked-io.h.
96423         (io_functions): Define.
96424         (unlocked-io.h): New rule.
96425         (DISTCLEANFILES): Add unlocked-io.h.
96426         (all-local): Depend on unlocked-io.h, to ensure it is created.
96427
96428         * lib/unlocked-io.hin: New file
96429
96430         * lib/regex.c: Update from glibc.
96431
96432 2001-07-05  Jim Meyering  <meyering@lucent.com>
96433
96434         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
96435         recommendation.
96436         (libfetish_a_SOURCES): Put all .h files here instead.
96437         Remove a thus-exposed (better checks in automake) duplicate and
96438         two unnecessary .h files.
96439
96440 2001-07-04  Jim Meyering  <meyering@lucent.com>
96441
96442         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
96443         that generates jm-glibc-io.m4 so that it doesn't trigger any make
96444         distcheck failure.
96445
96446 2001-07-02  Jim Meyering  <meyering@lucent.com>
96447
96448         The following changes were prompted by suggestions from Bruno Haible.
96449
96450         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
96451         is now generated.
96452         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
96453         definition of EXTRA_DIST.
96454         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
96455         ensure that the generated file is created/updated whenever the list
96456         of $(unlocked_functions) is changed.
96457         (jm-glibc-io.m4): New rule.
96458         (unlocked-io.h): New rule -- currently unused.
96459
96460 2001-06-24  Jim Meyering  <meyering@lucent.com>
96461
96462         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
96463         unmatched right bracket, rather than kludging it with an extra,
96464         falsely-matching quote in a comment.  Patch by Akim Demaille.
96465
96466 2001-06-11  Jim Meyering  <meyering@lucent.com>
96467
96468         * lib/regex.c: Update from GNU libc.
96469
96470 2001-05-27  Jim Meyering  <meyering@lucent.com>
96471
96472         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
96473         Check for ut_type in struct utmp.
96474
96475 2001-05-27  Jim Meyering  <meyering@lucent.com>
96476
96477         * lib/readutmp.h (UT_TYPE): Define.
96478
96479 2001-05-24  Jim Meyering  <meyering@lucent.com>
96480
96481         * lib/argmatch.c: Include "quote.h".
96482         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
96483         quote function.  Reported by Göran Uddeborg.
96484
96485 2001-05-22  Jim Meyering  <meyering@lucent.com>
96486
96487         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
96488         now that we use the package-supplied version unconditionally.
96489         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
96490
96491 2001-05-21  Jim Meyering  <meyering@lucent.com>
96492
96493         * m4/regex.m4: Change a couple backticks to single quotes to avoid
96494         shell syntax errors.
96495
96496 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96497
96498         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
96499
96500 2001-05-20  Paul Eggert  <eggert@twinsun.com>
96501
96502         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
96503         Don't bother to check library strftime, since
96504         we'll be using our own my_strftime function anyway.
96505         Define my_strftime instead of strftime.
96506
96507 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
96508
96509         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
96510         which is not yet declared.
96511
96512 2001-05-15  Jim Meyering  <meyering@lucent.com>
96513
96514         * m4/regex.m4: Use proper quoting so brackets appear in the test
96515         program.
96516         Reported by, and with help from, Bruno Haible.
96517
96518 2001-05-13  Jim Meyering  <meyering@lucent.com>
96519
96520         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
96521         undefined.
96522
96523 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96524
96525         dirname code cleanup.  base_name now behaves more compatibly
96526         with POSIX basename when given file names that have trailing
96527         slashes, and similarly for dir_name.  Add new primitives
96528         base_len and dir_len.  Put the directory-name-related decls
96529         into dirname.h.
96530
96531         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
96532         * lib/backupfile.c (base_name): Likewise.
96533         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
96534         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
96535         * lib/makepath.c (strip_trailing_slashes): Likewise.
96536         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
96537         ISSLASH): Likewise.
96538         * lib/rename.c (strip_trailing_slashes): Likewise.
96539         * lib/same.c (base_name): Likewise.
96540         * lib/stripslash.c (ISSLASH): Likewise.
96541
96542         * lib/addext.c: Include <dirname.h> after size_t is defined.
96543         * lib/backupfile.c: Likewise.
96544
96545         * lib/addext.c (addext): Use base_len to trim redundant
96546         trailing slashes instead of doing it ourselves.
96547         But do not trim the last slash if it is not redundant.
96548
96549         * lib/backupfile.c (find_backup_file_name,
96550         max_backup_version): Use base_len instead of rolling it ourselves.
96551         Handle the case of "" and (on DOS) "C:" correctly.
96552
96553         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
96554         needed. Include <string.h>, <dirname.h>.
96555         (base_name): Allow file names ending in slashes, other than names
96556         that are all slashes.  In this case, return the basename followed
96557         by the slashes.  This is more general, and can be used in places
96558         where the original base_name purposely had an assertion failure.
96559         (base_len): New function.
96560
96561         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
96562         Do not include <assert.h>; no longer needed.
96563         Include xalloc.h.
96564         (memrchr): Remove decl.
96565         (dir_name_r): Remove.
96566         (dir_len): Renamed from dirlen.  All callers changed.
96567         Rewrite in terms of base_name, for simplicity and consistency.
96568         (dir_name): Never return NULL.  All callers changed.
96569         Do not include <stdlib.h> in test program; no longer needed.
96570         return 0; is fine for test program.
96571
96572         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
96573         New macros.
96574         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
96575
96576         * lib/path-concat.c (path_concat): Use base_len to compute
96577         base length, not strlen; this means we cannot rely on memcpy
96578         to null-terminate.
96579
96580         * lib/same.c (STREQ): Remove.
96581         (same_name): Handle the case where the basename ends in trailing '/'.
96582
96583         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
96584         a slash was stripped.  Do not strip the last slash after a
96585         file system prefix.
96586
96587 2001-05-11  Paul Eggert  <eggert@twinsun.com>
96588
96589         * lib/Makefile.am (libfetish_a_SOURCES):
96590         Add strftime.c, since we now compile it on all hosts.
96591
96592         * lib/strftime.c (my_strftime):
96593         Define to nstrftime if emacs, but only if my_strftime is not defined.
96594         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
96595         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
96596         Add one more extra argument: a nanoseconds value.
96597         All uses changed.
96598         (ns): New macro.
96599         (my_strftime function): Add %N format.
96600         (emacs_strftimeu): Renamed from emacs_strftime,
96601         with extra ut argument.
96602
96603 2001-05-09  Paul Eggert  <eggert@twinsun.com>
96604
96605         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
96606
96607 2001-04-21  Jim Meyering  <meyering@lucent.com>
96608
96609         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
96610         doesn't interfere.
96611
96612 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
96613
96614         * m4/ftruncate.m4: Check for chsize.
96615         Link with ftruncate.o unconditionally if ftruncate is missing.
96616         This was required when cross-compiling to i586-mingw32msvc.
96617
96618 2001-04-08  Jim Meyering  <meyering@lucent.com>
96619
96620         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
96621         recomputed; that's necessary when the offset spans a DST transition.
96622         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
96623
96624 2001-04-02  Jim Meyering  <meyering@lucent.com>
96625
96626         * lib/regex.h, regex.c: Update from GNU libc.
96627
96628 2001-03-24  Jim Meyering  <meyering@lucent.com>
96629
96630         * m4/jm-macros.m4: Require autoconf-2.49d.
96631
96632 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
96633
96634         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
96635
96636 2001-03-19  Paul Eggert  <eggert@twinsun.com>
96637
96638         * lib/version-etc.c (version_etc_copyright): Update to 2001.
96639
96640 2001-03-17  Jim Meyering  <meyering@lucent.com>
96641
96642         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
96643         now that the version in autoconf is equivalent.
96644         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
96645
96646         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
96647         Suggestion from Akim Demaille.
96648
96649         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
96650         (jm_PREREQ_TEMPNAME): New function.
96651
96652 2001-03-16  Paul Eggert  <eggert@twinsun.com>
96653
96654         * lib/tempname.c (uint64_t): Define to uintmax_t if
96655         not defined, and if UINT64_MAX is not defined.
96656         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
96657         Reported by John David Anglin.
96658
96659 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
96660
96661         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
96662         resolve alias if codeset is empty.
96663         * lib/config.charset (BeOS): Use wildcard syntax.
96664
96665 2001-03-13  Jim Meyering  <meyering@lucent.com>
96666
96667         * lib/path-concat.c (path_concat)
96668         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
96669         concatenating e.g., `C:' and `foo'.
96670         From Bruno Haible.
96671
96672 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96673
96674         * lib/localcharset.c (locale_charset): Don't use
96675         setlocale(LC_CTYPE,NULL). Don't return NULL.
96676         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
96677
96678 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
96679
96680         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
96681         support for DOS/DJGPP.
96682
96683 2001-03-01  Paul Eggert  <eggert@twinsun.com>
96684
96685         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
96686         lacks mkstemp.  Compile our own tempname.c if we compile our own
96687         mkstemp.c, as mkstemp relies on tempname.
96688
96689 2001-03-01  Jim Meyering  <meyering@lucent.com>
96690
96691         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
96692         AH_VERBATIM really does output its argument verbatim.
96693
96694 2001-02-28  Paul Eggert  <eggert@twinsun.com>
96695
96696         * lib/Makefile.am (libfetish_a_SOURCES):
96697         Add dup-safer.c, fopen-safer.c.
96698         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
96699
96700         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
96701         * lib/unistd-safer.h: New files.
96702
96703 2001-02-25  Paul Eggert  <eggert@twinsun.com>
96704
96705         The mkstemp replacement is taken from glibc 2.2.2, with some
96706         portability fixes for use outside glibc, as follows:
96707
96708         * lib/tempname.c (struct_stat64): New macro.
96709         (direxists, __gen_tempname): Use it.
96710         This avoids a portability problem with Solaris 8.
96711
96712         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
96713         (<stddef.h>, <stdint.h>, <string.h>):
96714         Include only if STDC_HEADERS || _LIBC.
96715         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
96716         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
96717         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
96718         (__set_errno): Define this macro if <errno.h> doesn't.
96719         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
96720         Define these macros if <stdio.h> doesn't.
96721         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
96722         Define these macros if <sys/stat.h>
96723         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
96724         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
96725         __xstat64): Define if not _LIBC.
96726         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
96727         (__gen_tempname): Invoke gettimeofday only if
96728         HAVE_GETTIMEOFDAY || _LIBC;
96729         otherwise, fall back on plain "time".
96730         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
96731
96732         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
96733
96734         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
96735
96736 2001-02-18  Paul Eggert  <eggert@twinsun.com>
96737
96738         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
96739
96740 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96741
96742         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
96743         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
96744         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
96745         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
96746
96747 2001-02-17  Paul Eggert  <eggert@twinsun.com>
96748
96749         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
96750         Remove workaround macros for hosts that have mbrtowc but not
96751         mbstate_t, as we now insist on proper declarations for both
96752         before using mbrtowc.
96753
96754 2001-02-17  Jim Meyering  <meyering@lucent.com>
96755
96756         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
96757         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
96758         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
96759         UnixWare 7.1.1.
96760
96761         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
96762         rather than AC_CACHE_VAL.
96763
96764 2001-02-17  Jim Meyering  <meyering@lucent.com>
96765
96766         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
96767         around included file name.
96768
96769         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
96770
96771         * lib/strftime.c: Update from GNU libc (the only changes were to
96772         comments).
96773
96774 2001-02-17  Jim Meyering  <meyering@lucent.com>
96775
96776         * lib/regex.c: Update from libc.
96777
96778 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
96779
96780         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
96781         clash.
96782
96783 2001-02-16  Paul Eggert  <eggert@twinsun.com>
96784
96785         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
96786         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
96787         Reported by Mark Hounschell via Paul Eggert.
96788
96789 2001-02-07  Jim Meyering  <meyering@lucent.com>
96790
96791         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
96792
96793 2001-02-05  Jim Meyering  <meyering@lucent.com>
96794
96795         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
96796         it includes the patch required for `large file' support with at least
96797         HP-UX's 10.20 /bin/cc.
96798
96799 2001-02-03  Jim Meyering  <meyering@lucent.com>
96800
96801         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
96802         AS_IF, now that it works once again (mysteriously).
96803         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96804
96805 2001-01-30  Jim Meyering  <meyering@lucent.com>
96806
96807         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
96808         * m4/chown.m4: Rename conftestchown to conftest.chown.
96809         * m4/rename.m4: s/conftestdir/conftest.d1/ and
96810         s/conftestdir2/conftest.d2/.
96811         * m4/utimes.m4: s/conftestdata/conftest.data/
96812         Inspired by Pavel Roskin's change in autoconf.
96813
96814 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96815
96816         * lib/config.charset: Update for FreeBSD 4.2.
96817
96818 2001-01-27  Jim Meyering  <meyering@lucent.com>
96819
96820         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96821         a use of AS_IF.
96822         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96823
96824 2001-01-26  Jim Meyering  <meyering@lucent.com>
96825
96826         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96827         quotearg.c includes it.
96828
96829 2001-01-26  Jim Meyering  <meyering@lucent.com>
96830
96831         * lib/quotearg.c: Include stddef.h.
96832         * lib/quote.c: Include stddef.h.
96833         Reported by Axel Kittenberger.
96834
96835         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96836         line in double quotes so that it evokes a better diagnostic.
96837         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96838         Reported by Axel Kittenberger.
96839
96840 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96841
96842         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96843         as if it was a `charset'.
96844
96845 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96846
96847         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96848         has const.
96849
96850 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96851
96852         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96853         to avoid a warning.  Add back 'const' to inptr.
96854
96855 2001-01-20  Jim Meyering  <meyering@lucent.com>
96856
96857         Be sure that headers are checked before used in code compiled
96858         for the type checks.
96859         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96860         In place of that, invoke jm_CHECK_ALL_TYPES.
96861         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96862         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96863         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96864         The check for ssize_t was mistakenly run before the test for unistd.h.
96865
96866         The configure-time check for stdbool.h was missing.
96867         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96868         (jm_PREREQ_HASH): New function.
96869
96870 2001-01-17  Jim Meyering  <meyering@lucent.com>
96871
96872         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96873         for autoconf-2.49c.
96874         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96875
96876 2001-01-16  Jim Meyering  <meyering@lucent.com>
96877
96878         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96879         From Bruno Haible.
96880
96881 2001-01-14  Jim Meyering  <meyering@lucent.com>
96882
96883         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96884         foo and bar.  Create conftestdir/ in the script, not in the C code.
96885         Remove directories in the script, not in the C code.
96886         Remove conftestdir{,2} before trying to create the directory.
96887         Make the entire configure script fail if the mkdir fails.
96888
96889 2001-01-14  Jim Meyering  <meyering@lucent.com>
96890
96891         * lib/rename.c: New file.  From Volker Borchert.
96892         Include stdlib.h, string.h or strings.h, and xalloc.h.
96893         Use strip_trailing_slashes rather than open-coding it.
96894
96895 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96896
96897         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96898
96899 2001-01-03  Jim Meyering  <meyering@lucent.com>
96900
96901         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96902         of local `inptr' to avoid warning with some system declarations of
96903         iconv.
96904
96905 2001-01-02  Volker Borchert  <bt@teknon.de>
96906
96907         * m4/rename.m4: New file.
96908         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96909
96910 2001-01-01  Jim Meyering  <meyering@lucent.com>
96911
96912         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96913         even on systems with utmpx.h.  It's necessary for the declaration of
96914         utmp's ut_user member.  Reported by Andreas Jaeger.
96915
96916         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96917         available. They are required for the declarations of getgrgid and
96918         getpwuid resp.
96919         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96920         Reported by Andreas Jaeger.
96921
96922 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96923
96924         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96925         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96926         so `make install' also works in VPATH builds.
96927
96928 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96929
96930         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96931         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96932         can be used in subdirectories.
96933
96934 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96935
96936         * lib/modechange.c: Do not assume that mode_t uses the
96937         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96938         the other-execute bit of FOO even if S_IXOTH != 1.
96939
96940         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96941         WOTH, XOTH, ALLM): New macros.
96942         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96943          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96944         Use them.
96945         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96946         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96947         (mode_compile):
96948         No need to use uintmax_t; unsigned long is long enough.
96949         Don't bother to get suffix since we don't use it.
96950
96951 2000-12-26  Jim Meyering  <meyering@lucent.com>
96952
96953         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96954         better with autoheader.
96955
96956 2000-12-24  Jim Meyering  <meyering@lucent.com>
96957
96958         * lib/hash.c (is_prime): Return explicit boolean values.
96959         (hash_get_first): Return NULL to appease Irix5.6's 89.
96960         Reported by Nelson Beebe.
96961
96962 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96963
96964         * lib/localcharset.c (locale_charset): Add support for Win32.
96965
96966 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96967
96968         * lib/physmem.h, lib/physmem.c: New files.
96969
96970         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96971         (noinst_HEADERS): Add physmem.h.
96972
96973         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96974         't' for compatibility with Solaris 8 sort.
96975
96976 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96977
96978         * lib/config.charset: Add support for BeOS.
96979
96980 2000-12-17  Jim Meyering  <meyering@lucent.com>
96981
96982         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96983         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96984
96985 2000-12-16  Jim Meyering  <meyering@lucent.com>
96986
96987         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96988         N and M) would have treated it like `chown N:N FILE'.
96989
96990         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96991
96992 2000-12-16  Jim Meyering  <meyering@lucent.com>
96993
96994         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96995         SHELLS_FILE to a file name that's useful on djgpp systems.
96996         Include stdlib.h.
96997         (ADDITIONAL_DEFAULT_SHELLS): Define.
96998         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96999         Based mostly on a patch from Prashant TR.
97000
97001 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
97002
97003         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
97004         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
97005         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
97006
97007 2000-12-08  Andreas Schwab  <schwab@suse.de>
97008
97009         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
97010         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
97011
97012 2000-12-07  Jim Meyering  <meyering@lucent.com>
97013
97014         * lib/stripslash.c (ISSLASH): Define.
97015         (strip_trailing_slashes): Use ISSLASH rather than comparing against
97016         `/'.
97017         From Prashant TR.
97018
97019         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
97020         (dir_name_r): Declare this function as static.
97021         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
97022         manifest itself on a name containing a mix of slashes and
97023         backslashes.
97024         Make this function work with names starting with a DOS-style
97025         drive letter and colon prefix.
97026         (dir_name): Append `.' if necessary.
97027         Based mostly on patches from Prashant TR and Eli Zaretskii.
97028
97029         * lib/dirname.h (dir_name_r): Remove prototype.
97030
97031 2000-12-06  Paul Eggert  <eggert@twinsun.com>
97032
97033         * m4/off_t-format.m4: Remove this file.
97034         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
97035
97036 2000-12-06  Jim Meyering  <meyering@lucent.com>
97037
97038         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
97039         replacement strtoull, we may well need the replacement strtoul, too.
97040         Check for declarations of strtoul and strtoull.
97041         Check for strtol.  Mainly as a cue to cause automake to include
97042         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
97043         Check for limits.h -- strtol.c needs it.
97044
97045 2000-12-05  Jim Meyering  <meyering@lucent.com>
97046
97047         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
97048
97049 2000-12-04  Jim Meyering  <meyering@lucent.com>
97050
97051         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
97052         Also include memory.h, stdlib.h, unistd.h if appropriate.
97053         Reported by Andreas Jaeger (conflicting declaration of malloc).
97054
97055 2000-12-02  Jim Meyering  <meyering@lucent.com>
97056
97057         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
97058         * m4/jm-macros.m4 (jm_MACROS): require it.
97059
97060 2000-12-02  Jim Meyering  <meyering@lucent.com>
97061
97062         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
97063
97064 2000-12-01  Paul Eggert  <eggert@twinsun.com>
97065
97066         * lib/memrchr.c: Include <config.h> before any system include file.
97067
97068 2000-11-30  Jim Meyering  <meyering@lucent.com>
97069
97070         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
97071
97072 2000-11-30  Jim Meyering  <meyering@lucent.com>
97073
97074         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
97075
97076 2000-11-29  Paul Eggert  <eggert@twinsun.com>
97077
97078         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
97079
97080 2000-11-26  Jim Meyering  <meyering@lucent.com>
97081
97082         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
97083
97084 2000-11-22  Paul Eggert  <eggert@twinsun.com>
97085
97086         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
97087         size of (size_t) -1; it's not portable.
97088
97089 2000-11-17  Jim Meyering  <meyering@lucent.com>
97090
97091         * lib/strstr.c: Update from GNU libc.
97092
97093 2000-11-17  Akim Demaille  <akim@epita.fr>
97094
97095         * lib/obstack.h: Formatting changes.
97096         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
97097         prevent type checking.
97098         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
97099         cast the value to (void *): assigning a `foo *' to a `void *'
97100         variable is valid.
97101         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
97102
97103 2000-11-16  Jim Meyering  <meyering@lucent.com>
97104
97105         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
97106
97107 2000-11-11  Jim Meyering  <meyering@lucent.com>
97108
97109         * lib/error.c: Add a couple #includes, merging from GNU libc version.
97110
97111 2000-11-10  Jim Meyering  <meyering@lucent.com>
97112
97113         * lib/obstack.h: Update from GNU libc.
97114         * lib/obstack.c: Likewise.
97115
97116 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
97117
97118         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
97119
97120 2000-11-06  Paul Eggert  <eggert@twinsun.com>
97121
97122         * lib/getusershell.c (setusershell): Use rewind rather than
97123         fseek/fseeko, to avoid configuration hassles with fseeko.
97124         Don't bother opening SHELLS_FILE if shellstream is NULL;
97125         it's not necessary.
97126
97127 2000-11-05  Jim Meyering  <meyering@lucent.com>
97128
97129         * lib/makepath.h (make_dir): Declare.
97130         * lib/makepath.c (make_dir): Remove `static' attribute.
97131         Tweak a comment.
97132
97133 2000-11-04  Jim Meyering  <meyering@lucent.com>
97134
97135         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
97136
97137 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
97138
97139         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
97140         last one in a bucket, advance to the next bucket.
97141
97142 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
97143
97144         * lib/fnmatch.c: Do not comment out all the code if we are using
97145         the GNU C library, because in some cases we are replacing buggy
97146         code in the GNU C library itself.
97147
97148 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
97149
97150         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
97151         (regex_compile): Catch bogus \(\1\).
97152
97153 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97154
97155         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
97156         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
97157         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
97158
97159 2000-10-30  Paul Eggert  <eggert@twinsun.com>
97160
97161         * lib/error.h, getline.h, modechange.h:
97162         Remove "2000" from Copyright line, as the file hasn't been
97163         changed this year other than in the copyright notice.
97164
97165         * lib/xalloc.h: Add "2000" to Copyright line, as this file
97166         was changed this year.
97167
97168 2000-10-29  Jim Meyering  <meyering@lucent.com>
97169
97170         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
97171         renaming.
97172         * m4/ls-mntd-fs.m4: Likewise
97173
97174 2000-10-29  Jim Meyering  <meyering@lucent.com>
97175
97176         * lib/xstat.in: Fix grammar in comment.
97177
97178 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
97179
97180         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
97181         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
97182         doesn't define __restrict_arr.
97183
97184 2000-10-28  Jim Meyering  <meyering@lucent.com>
97185
97186         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
97187         (jm_PREREQ_MEMCHR): New function.
97188
97189 2000-10-28  Jim Meyering  <meyering@lucent.com>
97190
97191         * lib/memchr.c: Update from libc.
97192         Adjust for portability:
97193         [HAVE_STDLIB_H]: Include stdlib.h.
97194         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
97195         Undef __memchr, too.
97196         [!weak_alias]: Define __memchr to memchr.
97197
97198         * lib/regex.c: Update from libc.
97199         * lib/regex.h: Likewise.
97200         * lib/getopt1.c: Likewise.
97201         * lib/memcmp.c: Likewise.
97202
97203         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
97204         Avoid using fseek, when possible -- it's broken by design.
97205         Patch by Ulrich Drepper.
97206
97207 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
97208
97209         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
97210         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
97211         Giving in to popular pressure to shut up the compiler with casts.
97212
97213 2000-10-26  Jim Meyering  <meyering@lucent.com>
97214
97215         * lib/strftime.c: Update from libc.
97216
97217 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
97218
97219         * regex.c: More `unsigned char' -> `re_char' changes.
97220         Also change several `int' into `re_wchar_t'.
97221         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
97222         (PUSH_FAILURE_POINTER): Don't cast any more.
97223         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
97224         We want GCC to complain, since this piece of code makes
97225         re_match non-reentrant, which *should* be fixed.
97226         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
97227         (EXTEND_BUFFER): Use RETALLOC.
97228         (SET_LIST_BIT): Don't cast.
97229         (re_wchar_t): New type.
97230         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
97231         that those two functions will always properly return.
97232         (IMMEDIATE_QUIT_CHECK): Cast to void.
97233         (analyse_first): Use recursion rather than an explicit stack.
97234         (re_compile_fastmap): Can't fail anymore.
97235         (re_search_2): Don't check re_compile_fastmap for failure.
97236         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
97237         Now also sets the new value (passed in a new argument).
97238         (re_match_2_internal): Use it.
97239         Also, use a new var `reg' of type size_t when looping through regs
97240         rather than reuse the inappropriate `mcnt'.
97241
97242 2000-10-25  Jim Meyering  <meyering@lucent.com>
97243
97244         * lib/obstack.c: Update from libc.
97245
97246 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
97247
97248         * regex.c (regex_compile): Change the way of handling a range from
97249         a char less than 256 to a char not less than 256.
97250
97251 2000-10-24  Andrew Innes  <andrewi@gnu.org>
97252
97253         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
97254         NT-Emacs only.
97255         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
97256         so that re_search functions only quit when callers expect them to.
97257
97258 2000-10-23  Jim Meyering  <meyering@lucent.com>
97259
97260         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
97261         wrong.  That set_locale call must not have any side effects.
97262         From Paul Eggert.
97263
97264 2000-10-22  Jim Meyering  <meyering@lucent.com>
97265
97266         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
97267         [CYCLIC]: Remove now-unused definition.
97268
97269         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
97270         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
97271         Suggestion from Ulrich Drepper.
97272
97273 2000-10-21  Jim Meyering  <meyering@lucent.com>
97274
97275         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
97276         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
97277         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
97278
97279 2000-10-21  Jim Meyering  <meyering@lucent.com>
97280
97281         * lib/dirname.c (memrchr): Declare if necessary.
97282         (dir_name): Remove the restriction that there be no
97283         trailing slashes.  Now, this code skips past them, effectively
97284         ignoring them.
97285         [TEST_DIRNAME] (main): New unit tests.
97286
97287         * lib/memrchr.c: New file from GNU libc.
97288         Undef __memrchr, too.
97289         [!weak_alias]: Define __memrchr to memrchr.
97290         Guard weak_alias use with `#ifdef weak_alias'.
97291
97292 2000-10-21  Jim Meyering  <meyering@lucent.com>
97293
97294         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
97295         (dir_name): Use dir_name_r.
97296         * lib/dirname.h (dir_name_r): Declare it.
97297
97298 2000-10-17  Jim Meyering  <meyering@lucent.com>
97299
97300         * lib/quote.h (PARAMS): Define and use.
97301         Reported by Akim Demaille.
97302
97303         * lib/getopt.c: Update from libc.
97304
97305 2000-10-16  Jim Meyering  <meyering@lucent.com>
97306
97307         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
97308         setlocale.
97309         From Jan Fedak.
97310
97311 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
97312
97313         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
97314
97315 2000-09-25  Jim Meyering  <meyering@lucent.com>
97316
97317         * lib/md5.h (rol): Define (from GnuPG).
97318
97319         * lib/sha.c: Give credit (GnuPG) where due.
97320         (M): Use rol rather than open-coding it.
97321         Add a FIXME comment.
97322
97323 2000-09-21  Jim Meyering  <meyering@lucent.com>
97324
97325         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
97326         Reported by Michael Stone.
97327
97328 2000-09-20  Jim Meyering  <meyering@lucent.com>
97329
97330         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
97331         (noinst_HEADERS): Add sha.h.
97332         Based on code from Scott G. Miller and from GnuPG.
97333
97334 2000-09-18  Jim Meyering  <meyering@lucent.com>
97335
97336         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
97337         LIBS. Otherwise, everyone ends up linking with -lelf for some
97338         configurations.
97339         Reported by Mike Stone.
97340
97341 2000-09-15  Jim Meyering  <meyering@lucent.com>
97342
97343         * lib/regex.c: Update from libc.
97344
97345 2000-09-10  Jim Meyering  <meyering@lucent.com>
97346
97347         * lib/getopt.c (_getopt_internal): Update from glibc.
97348
97349 2000-09-09  Jim Meyering  <meyering@lucent.com>
97350
97351         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
97352         think it should be used as a general replacement for isascii.
97353         * lib/fnmatch.c: Likewise.
97354         * lib/mbswidth.c: Likewise
97355         * lib/regex.c: Likewise.
97356
97357         Don't use atoi.
97358         * lib/userspec.c: Include sys/param.h and limits.h.
97359         Include xstrtol.h.
97360         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
97361         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
97362         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
97363         UID, GID.  Check range.
97364
97365 2000-09-06  Jim Meyering  <meyering@lucent.com>
97366
97367         * lib/getopt.c (_getopt_internal): Update from glibc.
97368
97369 2000-08-30  Jim Meyering  <meyering@lucent.com>
97370
97371         * lib/strftime.c: Merge in changes from GNU libc.
97372
97373 2000-08-26  Jim Meyering  <meyering@lucent.com>
97374
97375         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
97376         * m4/fpending.m4: New file.
97377
97378 2000-08-26  Jim Meyering  <meyering@lucent.com>
97379
97380         * lib/closeout.c: Include "__fpending.h".
97381         (close_stdout_status): Return right away if there's nothing to flush.
97382
97383         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
97384         * lib/__fpending.c: New file.
97385         * lib/__fpending.h: New file.
97386
97387 2000-08-20  Jim Meyering  <meyering@lucent.com>
97388
97389         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
97390         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
97391         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
97392
97393 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
97394
97395         Improve fileutils installation on systems where running
97396         programs (like install) can't be unlinked.
97397         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
97398         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
97399
97400 2000-08-07  Paul Eggert  <eggert@twinsun.com>
97401
97402         Standardize on "memory exhausted" instead of "Memory exhausted"
97403         or "virtual memory exhausted".
97404         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
97405         "virtual memory exhausted".
97406         * lib/same.c (same_name): Invoke xalloc_die instead of printing
97407         our own message.
97408         * lib/userspec.c (parse_user_spec): Likewise.
97409         * lib/bumpalloc.h: comment fix
97410         * lib/same.c, userspec.c: Include xalloc.h.
97411
97412         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
97413         not char *const and pointing to a constant array.
97414         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
97415         (xrealloc): Comment fix.
97416
97417         * lib/userspec.c (parse_user_spec):
97418         Don't translate a message until just before returning,
97419         to avoid unnecessary translation.
97420
97421 2000-08-07  Jim Meyering  <meyering@lucent.com>
97422
97423         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
97424         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
97425         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
97426         getgroups.c, gethostname.c, getopt.h, group-member.c,
97427         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
97428         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
97429         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
97430         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
97431         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
97432         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
97433         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
97434         yesno.c: Back out Copyright date changes for each file with no change
97435         this year.  This eases coordination with other programs using the same
97436         source code modules.  From Paul Eggert.
97437
97438 2000-08-06  Paul Eggert  <eggert@twinsun.com>
97439
97440         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
97441         not char, for compatibility with glibc 2.1.3 strftime.c.
97442
97443 2000-08-03  Greg McGary  <greg@mcgary.org>
97444
97445         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
97446         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
97447         (EXTEND_BUFFER): Use them.
97448
97449 2000-08-01  Jim Meyering  <meyering@lucent.com>
97450
97451         * lib/dirname.c (ISSLASH): Define.
97452         (BACKSLASH_IS_PATH_SEPARATOR): Define.
97453         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
97454         both `\' and `/' may be use as path separators.
97455         Based on a patch from Prashant TR.
97456
97457 2000-07-31  Paul Eggert  <eggert@twinsun.com>
97458
97459         * lib/quotearg.c (quotearg_n_options): Don't make the initial
97460         slot vector a constant, since it might get modified.
97461
97462 2000-07-31  Jim Meyering  <meyering@lucent.com>
97463
97464         * lib/xmalloc.c: Use `virtual memory exhausted', not
97465         `Memory exhausted'.
97466         * lib/obstack.c (print_and_abort): Likewise.
97467
97468 2000-07-30  Paul Eggert  <eggert@twinsun.com>
97469
97470         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
97471         buffer, so that the caller can always quote one small
97472         component of a "memory exhausted" message in slot 0.
97473         From a suggestion by Jim Meyering.
97474
97475 2000-07-30  Jim Meyering  <meyering@lucent.com>
97476
97477         * lib/makepath.c (make_path): Quote the other instance, too.
97478
97479         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
97480         (STATIC_BUF_SIZE): Define.
97481         (quotearg_n_options): Use only statically allocated storage when
97482         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
97483         than STATIC_BUF_SIZE.
97484
97485 2000-07-29  Jim Meyering  <meyering@lucent.com>
97486
97487         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
97488         * lib/dirname.c (dir_name): Likewise.
97489
97490         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
97491         `/'.
97492
97493         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
97494         (dir_name): Assert that there are no trailing slashes.
97495
97496 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
97497
97498         * lib/mbswidth.h (mbswidth): Add a flags argument.
97499         (mbswidth): New declaration.
97500         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
97501         * lib/mbswidth.c (mbswidth): Add a flags argument.
97502         (mbsnwidth): New function.
97503
97504 2000-07-24  Jim Meyering  <meyering@lucent.com>
97505
97506         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
97507
97508 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97509
97510         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
97511
97512 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97513
97514         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
97515         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
97516         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
97517         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
97518         invoke multibyte primitives.
97519
97520 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97521
97522         * lib/quotearg.c:
97523         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
97524         so that mbstate_t is always defined.
97525
97526         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
97527         be 1 in at least one GCC installation, and this configuration
97528         error is likely to be common.  Ignoring MB_LEN_MAX hurts
97529         performance on hosts that have mbrtowc but have only unibyte
97530         locales, but I assume these hosts are rare.
97531
97532 2000-07-23  Paul Eggert  <eggert@twinsun.com>
97533
97534         * lib/mbswidth.c (_XOPEN_SOURCE):
97535         Don't define; this causes problems on Solaris 7.
97536         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
97537
97538 2000-07-23  Jim Meyering  <meyering@lucent.com>
97539
97540         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
97541         too: getgrgid, getpwuid, getuid.
97542
97543 2000-07-23  Jim Meyering  <meyering@lucent.com>
97544
97545         * lib/basename.c (base_name): Add an assertion.
97546
97547 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
97548
97549         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
97550         shadow its mbsinit function.
97551
97552 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97553
97554         * lib/mbswidth.h: New file.
97555         * lib/mbswidth.c: New file.
97556         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
97557         (noinst_HEADERS): Add mbswidth.h.
97558
97559 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
97560
97561         * lib/config.charset: Add support for FreeBSD. Improve support for
97562         HP-UX and IRIX 6.
97563
97564 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
97565
97566         * m4/mbswidth.m4: New file.
97567         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
97568
97569 2000-07-15  Jim Meyering  <meyering@lucent.com>
97570
97571         * lib/makepath.c: Include quote.h.
97572         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
97573         corresponding argument in a `quote (...)' call.
97574         Give better diagnostics.
97575
97576         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
97577         (noinst_HEADERS): Add quote.h.
97578
97579         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
97580         from tar's src/misc.c.
97581         * lib/quote.h: New file.  Prototypes for same.
97582
97583 2000-07-14  Paul Eggert  <eggert@twinsun.com>
97584
97585         From a suggestion by Bruno Haible.
97586         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
97587         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
97588         to decide whether to define the BeOS workaround macro;
97589         this adjusts to the change to AC_MBSTATE_T.
97590
97591 2000-07-14  Jim Meyering  <meyering@lucent.com>
97592
97593         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
97594         jm_AC_TYPE_UINTMAX_T.
97595
97596 2000-07-13  Paul Eggert  <eggert@twinsun.com>
97597
97598         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
97599
97600         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
97601         quotearg_buffer_restyled): Add support for
97602         clocale_quoting_style.  Undo previous change to
97603         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
97604         and "{RIGHT QUOTATION MARK}" msgids.
97605
97606 2000-07-10  Paul Eggert  <eggert@twinsun.com>
97607
97608         From a suggestion by Bruno Haible.
97609         * m4/mbstate_t.m4 (AC_MBSTATE_T):
97610         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
97611         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
97612         and mbstate_t, to a single-part test that simply defines mbstate_t.
97613         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
97614         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
97615
97616 2000-07-10  Jim Meyering  <meyering@lucent.com>
97617
97618         * m4/strerror_r.m4: Mirror the correction made in autoconf.
97619
97620         * m4/gnu-source.m4: Output to confdefs.h directly.
97621         Suggestion from Akim Demaille.
97622
97623 2000-07-09  Paul Eggert  <eggert@twinsun.com>
97624
97625         The old behavior of quoting `like this' doesn't look good with
97626         newer, ISO-style fonts.  See:
97627         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
97628
97629         Instead, quote "like this" by default.  Let the translator
97630         tailor the locale-specific quoting behavior by providing
97631         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
97632
97633         * lib/quotearg.c (N_): New macro.
97634         (gettext_default): New function.
97635         (quotearg_buffer_restyled): Use
97636         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
97637         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
97638
97639 2000-07-09  Jim Meyering  <meyering@lucent.com>
97640
97641         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
97642         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
97643
97644         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
97645         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
97646
97647 2000-07-09  Jim Meyering  <meyering@lucent.com>
97648
97649         * lib/Most files: Update copyright dates to include 2000.
97650
97651 2000-07-08  Jim Meyering  <meyering@lucent.com>
97652
97653         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
97654         if not defined.
97655         (xgethostname): Remove now-unnecessary #ifdef.
97656         Move declaration of `err' into loop where it's used.
97657
97658 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97659         and Bruno Haible  <haible@clisp.cons.org>
97660
97661         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
97662         only if the test for an object-type mbstate_t fails.  This
97663         prevents us from mistakenly reporting that mbstate_t is a
97664         system object type after we "#define mbstate_t int" to work
97665         around its lack.
97666
97667 2000-07-05  Paul Eggert  <eggert@twinsun.com>
97668         and Bruno Haible  <haible@clisp.cons.org>
97669
97670         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
97671
97672 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97673
97674         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
97675         to strerror_r.
97676         Include <ctype.h> for use of isalpha.
97677
97678 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97679
97680         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
97681         by allocating a larger buffer. Test the gethostname return value for
97682         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
97683         returns an error and ENAMETOOLONG isn't defined.
97684
97685 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
97686
97687         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
97688         dimension.
97689
97690 2000-07-04  Jim Meyering  <meyering@lucent.com>
97691
97692         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
97693         of the deprecated AC_CHECKING.
97694
97695 2000-07-04  Jim Meyering  <meyering@lucent.com>
97696
97697         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
97698         Reported by Bruno Haible.
97699
97700 2000-07-04  Jim Meyering  <meyering@lucent.com>
97701
97702         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
97703         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
97704         lacks mbrtowc.
97705
97706 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97707
97708         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
97709         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
97710
97711 2000-07-03  Paul Eggert  <eggert@twinsun.com>
97712         and Bruno Haible  <haible@clisp.cons.org>
97713
97714         * lib/quotearg.c (mbrtowc):
97715         Assign to *pwc, and return 1 only if result is nonzero.
97716         (iswprint): Use ISPRINT when substituting our own mbrtowc.
97717
97718 2000-07-03  Jim Meyering  <meyering@lucent.com>
97719
97720         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
97721
97722 2000-07-03  Jim Meyering  <meyering@lucent.com>
97723
97724         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
97725         This is necessary to get a definition of e.g., UTMP_FILE on
97726         HP-UX 10.20.
97727         From Bob Proulx.
97728
97729 2000-07-02  Jim Meyering  <meyering@lucent.com>
97730
97731         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
97732
97733         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
97734         AC_LIBOBJ(function_name).
97735         * m4/chown.m4: Likewise.
97736         * m4/fnmatch.m4: Likewise.
97737         * m4/ftruncate.m4: Likewise.
97738         * m4/getgroups.m4: Likewise.
97739         * m4/getline.m4: Likewise.
97740         * m4/group-member.m4: Likewise.
97741         * m4/jm-macros.m4: Likewise.
97742         * m4/lstat.m4: Likewise.
97743         * m4/malloc.m4: Likewise.
97744         * m4/memcmp.m4: Likewise.
97745         * m4/nanosleep.m4: Likewise.
97746         * m4/putenv.m4: Likewise.
97747         * m4/realloc.m4: Likewise.
97748         * m4/regex.m4: Likewise.
97749         * m4/stat.m4: Likewise.
97750         * m4/strftime.m4: Likewise.
97751
97752 2000-07-02  Jim Meyering  <meyering@lucent.com>
97753
97754         * lib/quotearg.c (mbstate_t): Don't define here.
97755
97756 2000-07-02  Jim Meyering  <meyering@lucent.com>
97757
97758         * lib/nanosleep.c (SIGCONT): Define if not already defined.
97759
97760 2000-07-01  Jim Meyering  <meyering@lucent.com>
97761
97762         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
97763
97764 2000-07-01  Jim Meyering  <meyering@lucent.com>
97765
97766         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
97767         problem.
97768
97769 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97770
97771         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
97772         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
97773
97774 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
97775
97776         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
97777         per change in ../m4/ls-mntd-fs.m4.
97778         (read_filesystem_list): Ignore symbolic links.
97779
97780 2000-06-29  Jim Meyering  <meyering@lucent.com>
97781
97782         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
97783         for declaration of strcmp.
97784
97785         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
97786
97787         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
97788         Avoid warning by casting result to `char *' to remove `const'.
97789
97790 2000-06-28  Jim Meyering  <meyering@lucent.com>
97791
97792         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
97793         included by quotearg.c, for which we perform this test.  From
97794         Bruno Haible.
97795
97796 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97797
97798         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
97799         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
97800         <utmpx.h> exists, put readutmp.o into LIBOBJS.
97801
97802 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
97803
97804         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
97805
97806 2000-06-26  Paul Eggert  <eggert@twinsun.com>
97807
97808         savedir now sets errno on failure and invokes xmalloc to get memory.
97809         Fix a couple of other minor bugs while we're at it.
97810
97811         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97812         (NAMLEN): Remove macro.
97813         (malloc, realloc): Remove decls.
97814         (stpcpy): Likewise.
97815         ("xalloc.h"): Include.
97816         (NAME_SIZE_DEFAULT): New macro.
97817         (savedir): Use xmalloc / xrealloc to allocate memory.
97818         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97819         Skip "" directory entries.
97820         Use strlen to calculate directory entry length, since the old method
97821         is rarely used these days and isn't worth supporting.
97822         Don't use a pointer after freeing it.
97823         Check for integer overflow when calculating allocation size.
97824         Use memcpy to copy entries, instead of stpcpy.
97825         Set errno properly when returning NULL.
97826         Check for readdir error.
97827
97828 2000-06-26  Jim Meyering  <meyering@lucent.com>
97829
97830         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97831
97832 2000-06-25  Jim Meyering  <meyering@lucent.com>
97833
97834         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97835         Linux header bug when _XOPEN_SOURCE is defined to 500.
97836
97837 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97838
97839         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97840         deficiency.
97841
97842 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97843
97844         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97845         Include xalloc.h.
97846         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97847
97848 2000-06-24  Jim Meyering  <meyering@lucent.com>
97849
97850         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97851         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97852         for which strerror does return char*, but which lacks a conveniently
97853         accessible declaration of the function.  If the compile-test says
97854         strerror_r doesn't work, then resort to a `run'-test that works on
97855         BeOS and segfaults on DEC Unix.
97856
97857 2000-06-24  Jim Meyering  <meyering@lucent.com>
97858
97859         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97860
97861 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97862
97863         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97864         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97865
97866 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97867
97868         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97869         (mbrtowc, mbstate_t): Define substitutes if
97870         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97871         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97872         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97873
97874 2000-06-23  Jim Meyering  <meyering@lucent.com>
97875
97876         * m4/afs.m4: Add missing AC_MSG_RESULT.
97877         Reported by Bruno Haible.
97878
97879         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97880         Suggestion from Bruno Haible.
97881
97882 2000-06-23  Jim Meyering  <meyering@lucent.com>
97883
97884         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97885
97886 2000-06-21  Jim Meyering  <meyering@lucent.com>
97887
97888         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97889
97890 2000-06-21  Jim Meyering  <meyering@lucent.com>
97891
97892         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97893         (noinst_HEADERS): Add getstr.h.
97894
97895         * lib/getline.c (getstr): Move into a separate file.
97896         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97897         the following changes: new parameter, delim2; both delim[12]
97898         parameters have type `int', not `char'.  The latter would lose
97899         with 8-bit delimiters.
97900         * lib/getstr.h: New file.
97901
97902 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97903
97904         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97905         than 1024, return a memory chunk of least possible size, instead
97906         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97907         Use free/xmalloc instead of xrealloc to avoid copying for very long
97908         paths.
97909
97910 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97911
97912         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97913         the empty string.
97914
97915 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97916
97917         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97918         address, not strdup.  Include <stdlib.h> and don't declare free().
97919
97920 2000-06-19  Jim Meyering  <meyering@lucent.com>
97921
97922         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97923
97924 2000-06-18  Jim Meyering  <meyering@lucent.com>
97925
97926         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97927
97928         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97929         `checking whether...' message to be consistent with that of the
97930         lstat test.
97931
97932 2000-06-18  Jim Meyering  <meyering@lucent.com>
97933
97934         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97935         Besides, these days every porting target provides a mkdir function.
97936
97937         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97938         needed. (this snippet comes from src/system.h).
97939
97940 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97941
97942         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97943
97944 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97945
97946         * lib/human.c (adjust_value): New function.
97947         (human_readable_inexact): Apply rounding style even when
97948         printing approximate values.
97949
97950 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97951
97952         * lib/human.c (human_readable_inexact): Allow an input block
97953         size that is not a multiple of the output block size, and vice versa.
97954         Reported by Piergiorgio Sartor.
97955
97956 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97957
97958         * lib/getdate.y (get_date): Apply relative times after time
97959         zone indicator, not before.  Reported by Todd A. Jacobs.
97960
97961 2000-06-13  Jim Meyering  <meyering@lucent.com>
97962
97963         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97964
97965         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97966
97967 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97968
97969         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97970
97971 2000-06-12  Jim Meyering  <meyering@lucent.com>
97972
97973         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97974         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97975         optional argument.
97976         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97977         the optional argument, `lib'.
97978
97979 2000-06-08  Jim Meyering  <meyering@lucent.com>
97980
97981         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97982
97983 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97984
97985         Rewrite largefile configuration so that we don't need to run
97986         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97987         AC_CANONICAL_HOST in configure.in -- jmm]
97988
97989         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97990         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97991         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97992         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97993         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97994         All uses changed.
97995         Instead of inspecting the output of getconf, try to compile the
97996         test program without and with the macro definition.
97997         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97998         for getconf.  Instead, check for the needed flags by compiling
97999         test programs.
98000
98001 2000-06-04  Paul Eggert  <eggert@twinsun.com>
98002
98003         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
98004
98005 2000-06-04  Jim Meyering  <meyering@lucent.com>
98006
98007         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
98008         SunOS 4.1.4 for which gid_t is an unsigned type.
98009
98010 2000-06-03  Jim Meyering  <meyering@lucent.com>
98011
98012         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
98013         now that autoconf requires that.
98014
98015         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
98016         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
98017         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
98018
98019 2000-06-03  Jim Meyering  <meyering@lucent.com>
98020
98021         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
98022
98023 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98024
98025         * m4/glibc21.m4: New file.
98026         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
98027
98028 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
98029
98030         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
98031         newer, don't install charset.alias.
98032         * lib/config.charset: Change the Linux/glibc rules so they become empty
98033         on glibc-2.1 or newer.
98034
98035 2000-06-02  Jim Meyering  <meyering@lucent.com>
98036
98037         * lib/mountlist.c: Back out last change.  Instead, do this...
98038         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
98039         me_dummy member using the same `ignore'-testing code.
98040         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
98041         fs_type strings.
98042         From Mark D. Roth.
98043
98044 2000-05-29  Jim Meyering  <meyering@lucent.com>
98045
98046         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
98047         mounts with the `ignore' attribute.  Based on a patch from
98048         Mark D. Roth.
98049
98050 2000-05-28  Jim Meyering  <meyering@lucent.com>
98051
98052         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
98053         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98054         * m4/stat.m4: Likewise.
98055         * m4/lstat.m4: Likewise.
98056         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
98057
98058         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
98059         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
98060
98061 2000-05-26  Jim Meyering  <meyering@lucent.com>
98062
98063         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
98064
98065 2000-05-24  Jim Meyering  <meyering@lucent.com>
98066
98067         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
98068         autoconf requires that.
98069         * m4/lib-check.m4: Likewise.
98070         * m4/jm-macros.m4: Likewise.
98071         * m4/strftime.m4: Likewise.
98072
98073         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
98074         AC_CHECK_DECLS, now that autoconf requires that.
98075
98076 2000-05-22  Jim Meyering  <meyering@lucent.com>
98077
98078         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98079         * m4/lstat.m4: Likewise.
98080
98081 2000-05-22  Jim Meyering  <meyering@lucent.com>
98082
98083         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
98084
98085 2000-05-20  Jim Meyering  <meyering@lucent.com>
98086
98087         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
98088         (jm_PREREQ): Use it.
98089
98090 2000-05-18  Jim Meyering  <meyering@lucent.com>
98091
98092         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
98093         back, too, since it may have been modified by allocate_entry.
98094         (hash_delete): Rewrite to use neither the assignment operator
98095         nor the comma operator in an if-expression.
98096
98097 2000-05-15  Paul Eggert  <eggert@twinsun.com>
98098
98099         * lib/closeout.c:
98100         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
98101         Remove; no longer needed.
98102         "quotearg.h": Add include.
98103         (file_name): Do not bother to explicitly initialize to NULL; it's less
98104         efficient on some hosts.
98105         (close_stdout_status): Remove test as to whether stdout was already
98106         closed; it breaks for the case "echo x | sort >&-".
98107         Quote file name colons.
98108         Do not assume that _("write error") lacks format strings.
98109
98110 2000-05-15  Jim Meyering  <meyering@lucent.com>
98111
98112         * lib/version-etc.c (version_etc_copyright): Update the copyright
98113         string used in all --version output.
98114
98115 2000-05-14  Jim Meyering  <meyering@lucent.com>
98116
98117         * lib/closeout.c (close_stdout_set_file_name): New function.
98118         (close_stdout_status): Use new file-scoped global.
98119         Return right away if fstat says the stdout file descriptor is invalid.
98120         * lib/closeout.h (close_stdout_set_file_name): Declare.
98121
98122 2000-05-10  Jim Meyering  <meyering@lucent.com>
98123
98124         * lib/closeout.c [default_exit_status]: New file-scoped variable.
98125         (close_stdout_set_status): New function.
98126         * lib/closeout.h (close_stdout_set_status): Declare.
98127
98128 2000-05-09  Jim Meyering  <meyering@lucent.com>
98129
98130         * m4/gettext.m4: Rename this...
98131         * m4/libintl.m4: ...to this.
98132
98133 2000-05-08  Jim Meyering  <meyering@lucent.com>
98134
98135         * lib/long-options.c: Don't include closeout.h.
98136         (parse_long_options): Don't call close_stdout for --version.
98137
98138 2000-05-06  Paul Eggert  <eggert@twinsun.com>
98139
98140         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
98141         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
98142         2.1.3 bug.  This avoids a clash when files like regex.c define
98143         _GNU_SOURCE.
98144
98145 2000-05-06  Jim Meyering  <meyering@lucent.com>
98146
98147         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
98148         (AC_REPLACE_FUNCS): Add strnlen.
98149
98150         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
98151         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
98152
98153         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
98154         AC_SEARCH_LIBS call for nanosleep.
98155         (LIB_NANOSLEEP): Set and AC_SUBST.
98156
98157 2000-05-06  Jim Meyering  <meyering@lucent.com>
98158
98159         * lib/strnlen.c: Undefine __strnlen and strnlen.
98160         [!weak_alias]: Define __strnlen to strnlen.
98161
98162         * lib/atexit.c: New file, from libiberty.
98163
98164 2000-05-06  Jim Meyering  <meyering@lucent.com>
98165
98166         * lib/closeout.c (close_stdout_status): Also check for errors on the
98167         stderr stream.
98168
98169 2000-05-05  Jim Meyering  <meyering@lucent.com>
98170
98171         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
98172         AC_SEARCH_LIBS call for clock_gettime.
98173         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
98174
98175         * m4/search-libs.m4: Update from autoconf.
98176
98177         su doesn't work on Solaris 2.6.
98178         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
98179         <shadow.h>.  Reported by Dragos Harabor.
98180
98181 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
98182
98183         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
98184         memcpy instead of xmalloc, xrealloc, path_concat.
98185         (locale_charset): Treat empty environment variables as absent.
98186         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
98187
98188 2000-05-04  Jim Meyering  <meyering@lucent.com>
98189
98190         * lib/getopt.c: Update from glibc.
98191         * lib/obstack.c: Likewise.
98192         * lib/obstack.h: Likewise.
98193         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
98194         file
98195
98196         * lib/regex.h: Likewise.
98197         * lib/strndup.c: Likewise.
98198         * lib/strnlen.c: New file, from glibc.
98199
98200 2000-05-03  Jim Meyering  <meyering@lucent.com>
98201
98202         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
98203
98204 2000-05-02  Paul Eggert  <eggert@twinsun.com>
98205
98206         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
98207         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
98208         compile-time test, rather than inspecting host and OS, to
98209         decide whether to define _LARGEFILE_SOURCE.
98210
98211 2000-05-01  Jim Meyering  <meyering@lucent.com>
98212
98213         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
98214
98215         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
98216         Based on a patch from Bruno Haible.
98217
98218 2000-05-01  Jim Meyering  <meyering@lucent.com>
98219
98220         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
98221
98222 2000-04-29  Jim Meyering  <meyering@lucent.com>
98223
98224         * lib/path-concat.c: Declare strdup only if it's not defined.
98225         * lib/canon-host.c: Likewise.
98226
98227 2000-04-28  Jim Meyering  <meyering@lucent.com>
98228
98229         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
98230         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
98231         is included first, then limits.h is included by locale.h by libintl.h.
98232         From John David Anglin.
98233
98234 2000-04-25  Jim Meyering  <meyering@lucent.com>
98235
98236         * lib/makepath.c (S_IRWXUGO): Define.
98237         (make_path): Always perform explicit chmod if MODE specifies any
98238         of the `special' permission bits.  Prompted by a bug report against
98239         install from Mate Wierdl and Joost van Baal.
98240
98241 2000-04-18  Jim Meyering  <meyering@lucent.com>
98242
98243         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
98244         (jm_PREREQ): Use it.
98245
98246 2000-04-18  Jim Meyering  <meyering@lucent.com>
98247
98248         * lib/README: New file.
98249
98250         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
98251         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
98252
98253 2000-04-17  Jim Meyering  <meyering@lucent.com>
98254
98255         Get it right :-)
98256         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
98257         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
98258         Suggestion from Akim Demaille.
98259
98260 2000-04-17  Jim Meyering  <meyering@lucent.com>
98261
98262         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
98263         the definition of it to rpl_strftime also defined-away the system's
98264         declaration.
98265
98266 2000-04-15  Jim Meyering  <meyering@lucent.com>
98267
98268         Use `C' to denote so-called `contiguous' files, the same way
98269         that tar does.
98270         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
98271         (ftypelet): Use S_ISCTG.
98272         From Michael Deutschmann.
98273
98274 2000-04-14  Jim Meyering  <meyering@lucent.com>
98275
98276         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
98277         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
98278         clobbered.
98279
98280 2000-04-14  Jim Meyering  <meyering@lucent.com>
98281
98282         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
98283
98284 2000-04-13  Jim Meyering  <meyering@lucent.com>
98285
98286         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
98287         AH_VERBATIM to insert required #ifndef into config.h.in.
98288         Suggestion from Akim Demaille.
98289
98290 2000-04-12  Jim Meyering  <meyering@lucent.com>
98291
98292         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
98293         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
98294         Christian Krackowizer.
98295
98296         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
98297         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
98298         (AC_SYS_LARGEFILE): Require.
98299         (AM_C_PROTOTYPES): Require.
98300
98301 2000-04-08  Jim Meyering  <meyering@lucent.com>
98302
98303         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
98304         names don't conflict.  Reported by Eli Zaretskii.
98305
98306 2000-04-07  Jim Meyering  <meyering@lucent.com>
98307
98308         * lib/putenv.c: Move inclusion of errno.h so it follows that of
98309         sys/types.h, to work around system header problems on AIX 3.2.5.
98310         From Bruno Haible.
98311
98312 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
98313
98314         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
98315         bug.  Deal with the different error behavior of Irix iconv.
98316
98317 2000-04-05  Paul Eggert  <eggert@twinsun.com>
98318
98319         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
98320         IRIX if the installer said otherwise.
98321
98322 2000-04-05  Jim Meyering  <meyering@lucent.com>
98323
98324         Portability tweaks required for ultrix4.3.
98325         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
98326         (jm_CHECK_DECLS): Add getutent to the list of functions.
98327         (_jm_DECL_HEADERS): Add utmpx.h.
98328         From John David Anglin.
98329
98330         * m4/strftime.m4: Back out the 2000-04-02 change.
98331         Instead of that change, simply undefine putenv in the test program.
98332
98333 2000-04-05  Jim Meyering  <meyering@lucent.com>
98334
98335         Portability tweaks required for ultrix4.3.
98336         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
98337         getutent.
98338         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
98339         * lib/canon-host.c: Declare strdup.
98340         * lib/path-concat.c: Likewise.
98341         From John David Anglin.
98342
98343 2000-04-04  Jim Meyering  <meyering@lucent.com>
98344
98345         Be more DOS 8.3-friendly.
98346         * lib/ref-add.sin: Renamed from ref-add.sed.in.
98347         * lib/ref-del.sin: Renamed from ref-del.sed.in.
98348         * lib/Makefile.am: Reflect renaming.
98349         Reported by Eli Zaretskii.
98350
98351         Use a temporary file name that won't clash with `charset.alias'
98352         in the DOS 8.3 name space.
98353         * lib/Makefile.am (charset_tmp): Define.
98354         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
98355         (uninstall-local): Likewise.
98356         Reported by Eli Zaretskii.
98357
98358 2000-04-03  Jim Meyering  <meyering@lucent.com>
98359
98360         * m4/gettext.m4: Fix typo in comment.
98361
98362         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
98363         textutils/configure.in).  Suggestion from Paul Eggert.
98364         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
98365
98366 2000-04-02  Paul Eggert  <eggert@twinsun.com>
98367
98368         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
98369         variable in the shell rather than using putenv, which isn't
98370         portable.  This avoids the configure-time inter-test dependency
98371         on the potentially-renamed putenv function.
98372
98373 2000-03-30  Paul Eggert  <eggert@twinsun.com>
98374
98375         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
98376         before checking struct stat.st_blksize, so that
98377         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
98378
98379 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98380
98381         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
98382         since strftime.c uses HAVE_STRFTIME to decide whether to use
98383         the underlying strftime.
98384
98385 2000-03-29  Paul Eggert  <eggert@twinsun.com>
98386
98387         * lib/time/strftime.c (my_strftime): Make sure we call the system
98388         strftime, not ourselves, when invoking the underlying strftime.
98389
98390 2000-03-24  Jim Meyering  <meyering@lucent.com>
98391
98392         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
98393         (charset_alias): Define.
98394         (install-exec-local): Factor out common code.
98395         (uninstall-local): Split lines longer than 80.
98396         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
98397         (SUFFIXES): Define.
98398         (.sed.in.sed): New rule.  Don't redirect directly to $@.
98399         (CLEANFILES): Add ref-add.sed and ref-del.sed.
98400
98401 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
98402
98403         * lib/config.charset: Output a line containing "Packages using this
98404         file".
98405         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
98406         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
98407         ref-del.sed): New rules.
98408
98409 2000-03-17  Jim Meyering  <meyering@lucent.com>
98410
98411         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
98412         Otherwise, include <strings.h>
98413
98414 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
98415
98416         * lib/unicodeio.c (utf8_wctomb): New function.
98417         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
98418         format instead of in UCS-4 with platform dependent endianness.
98419
98420 2000-03-10  Jim Meyering  <meyering@lucent.com>
98421
98422         * m4/lib-check.m4: Look for getspnam in -lgen, too.
98423         From Marco Franzen.
98424
98425 2000-03-07  Paul Eggert  <eggert@twinsun.com>
98426
98427         * lib/savedir.c (savedir): Work even if directory size is
98428         negative; this can happen with some screwy NFS configurations.
98429
98430 2000-03-06  Jim Meyering  <meyering@lucent.com>
98431
98432         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
98433         if it's NULL (because we ran out of memory).  From Bruno Haible.
98434
98435 2000-03-05  Jim Meyering  <meyering@lucent.com>
98436
98437         * lib/localcharset.c ("path-concat.h"): Include.
98438         (get_charset_aliases): Use path_concat instead of ANSI string
98439         concatenation.
98440
98441         * lib/unicodeio.h (PARAMS): Define.
98442         Use it to guard prototype.
98443
98444 2000-03-04  Jim Meyering  <meyering@lucent.com>
98445
98446         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
98447         for lib/localcharset.c.
98448
98449 2000-03-04  Jim Meyering  <meyering@lucent.com>
98450
98451         * lib/Makefile.am (install-exec-local): Create $(libdir) before
98452         installing into it.
98453         (uninstall-local): Uncomment this rule so `make distcheck' works
98454         once again.
98455
98456         * lib/unicodeio.c (<errno.h>): Include it.
98457         (errno): Declare if not defined.
98458
98459         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
98460
98461         * lib/config.charset: New version, incorporating remarks from a linux
98462         i18n mailing list.  From Bruno Haible.
98463
98464 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
98465
98466         * m4/codeset.m4: New file.
98467         * m4/iconv.m4: New file.
98468         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
98469
98470 2000-03-03  Jim Meyering  <meyering@lucent.com>
98471
98472         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
98473
98474 2000-03-02  Jim Meyering  <meyering@lucent.com>
98475
98476         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
98477         the messages come out on separate lines.
98478
98479         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
98480         rather than jm_CHECK_DECLARATIONS.
98481         * m4/decl.m4: Remove now-unused file.
98482
98483         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
98484         geteuid.
98485
98486 2000-03-02  Jim Meyering  <meyering@lucent.com>
98487
98488         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
98489
98490 2000-03-01  Jim Meyering  <meyering@lucent.com>
98491
98492         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
98493         * lib/unicodeio.c: Likewise.
98494
98495 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
98496
98497         * lib/config.charset: New file.
98498         * lib/localcharset.c: New file.
98499         * lib/unicodeio.h, lib/unicodeio.c: New files.
98500         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
98501         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
98502         (noinst_HEADERS): Add unicodeio.h.
98503         (all-local, install-exec-local, charset.alias): New targets.
98504
98505 2000-02-28  Paul Eggert  <eggert@twinsun.com>
98506
98507         * lib/quotearg.c (ALERT_CHAR): New macro.
98508         (quotearg_buffer_restyled): Use it.
98509
98510 2000-02-27  Jim Meyering  <meyering@lucent.com>
98511
98512         * m4/check-decl.m4: Add getenv to the list.
98513
98514 2000-02-27  Jim Meyering  <meyering@lucent.com>
98515
98516         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
98517         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
98518
98519         * lib/backupfile.c: Guard inclusion of stdlib.h with
98520         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
98521         Declare malloc if needed.
98522
98523         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
98524         `#ifndef HAVE_DECL..'
98525         now that autoconf always defines the HAVE_DECL_ symbols.
98526         * lib/human.c: Likewise.
98527         * lib/same.c: Likewise.
98528         * lib/strtoumax.c: Likewise.
98529
98530         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
98531         declaration check was not run.
98532         * lib/hash.c: Likewise.
98533         * lib/human.c: Likewise.
98534         * lib/same.c: Likewise.
98535         * lib/strtoumax.c: Likewise.
98536
98537         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
98538         `.', then first look up the entire `.'-containing string as a login
98539         name.
98540
98541 2000-02-23  Jim Meyering  <meyering@lucent.com>
98542
98543         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
98544         in place of my hack.
98545
98546 2000-02-18  Paul Eggert  <eggert@twinsun.com>
98547
98548         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
98549         (textint): New typedef.
98550         (parser_control): Member year changed from int to textint.
98551         All uses changed.
98552         (YYSTYPE): Removed; replaced by %union with int and textint members.
98553         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
98554         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
98555         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
98556         (tSNUMBER, tUNUMBER): Now of type <textintval>.
98557         (date, number, to_year): Use width of number in digits, not its value,
98558         to determine whether it's a 2-digit year, or a 2-digit time.
98559         (yylex): Store number of digits of numeric tokens.
98560         Reported by John Kendall.
98561
98562         (parser_control): Changed from struct parser_control to typedef (for
98563         consistency).  All uses changed.
98564
98565         (tID): Removed; not used.
98566         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
98567
98568 2000-02-14  Paul Eggert  <eggert@twinsun.com>
98569
98570         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
98571         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
98572
98573 2000-02-12  Jim Meyering  <meyering@lucent.com>
98574
98575         * lib/userspec.c (ISDIGIT): Define it.
98576         (isdigit): Remove definition.
98577         (is_number): Use ISDIGIT, not isdigit.
98578         <libintl.h>: Include.
98579         (_ and N_): Define.
98580         (parse_user_spec): Mark translatable strings.
98581
98582 2000-02-10  Jim Meyering  <meyering@lucent.com>
98583
98584         With these changes, nanosleep.[ch] are finally enough like the other
98585         lib/* replacement files to compile on a few more losing systems.
98586
98587         * lib/nanosleep.h: Don't include config.h.
98588         Remove prototype from declaration of nanosleep.
98589         (PARAMS): Remove now-unneeded definition.
98590         * lib/nanosleep.c: #undef nanosleep.
98591         (rpl_nanosleep): Rename from nanosleep.
98592
98593 2000-02-10  Jim Meyering  <meyering@lucent.com>
98594
98595         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
98596         gnu_nanosleep to rpl_nanosleep.
98597
98598 2000-02-09  Jim Meyering  <meyering@lucent.com>
98599
98600         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
98601         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
98602
98603 2000-02-08  Akim Demaille  <akim@epita.fr>
98604
98605         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
98606         `[' and `]' and remove uses of `changequote'.
98607         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
98608         (AC_SYS_LARGEFILE): Likewise.
98609         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
98610         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
98611         of changequote.
98612         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
98613         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
98614         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
98615         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
98616
98617 2000-02-05  Jim Meyering  <meyering@lucent.com>
98618
98619         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
98620         Remove explicit use of AC_HEADER_TIME.  It is required by
98621         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
98622         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
98623         in autoconf whereby the expansion of the latter ended up preceding
98624         the expansion of its prerequisite, AC_HEADER_TIME.
98625         Reported by Volker Borchert.
98626
98627 2000-02-03  Jim Meyering  <meyering@lucent.com>
98628
98629         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
98630
98631 2000-02-03  Jim Meyering  <meyering@lucent.com>
98632
98633         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
98634         rather than with `#if HAVE_UTMPNAME'.
98635
98636 2000-02-02  Jim Meyering  <meyering@lucent.com>
98637
98638         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
98639         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
98640         Reported by Eli Zaretskii.
98641
98642 2000-02-01  Jim Meyering  <meyering@lucent.com>
98643
98644         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
98645
98646 2000-01-31  Jim Meyering  <meyering@lucent.com>
98647
98648         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
98649         functions.  Add the time.h and sys/time.h headers along with the
98650         AC_REQUIRE'ment of AC_HEADER_TIME.
98651
98652 2000-01-31  Jim Meyering  <meyering@lucent.com>
98653
98654         * lib/nanosleep.h (nanosleep): Guard declaration with
98655         `#if ! HAVE_DECL_NANOSLEEP'.
98656         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
98657         the declaration in that vendor's sys/timers.h.
98658         Reported by Christian Krackowizer.
98659
98660         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
98661         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
98662         (ISPRINT): Likewise.
98663         Reported by Tom Tromey.
98664
98665 2000-01-30  Jim Meyering  <meyering@lucent.com>
98666
98667         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
98668
98669         * m4/prereq.m4 (utmp_includes): Define.
98670         Check for ut_user and ut_name members in both struct utmpx
98671         and struct utmp.
98672
98673 2000-01-30  Jim Meyering  <meyering@lucent.com>
98674
98675         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
98676         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
98677         header files where only utmpx.ut_user is declared.
98678
98679         * lib/readutmp.h (UT_USER): Define.
98680
98681 2000-01-29  Jim Meyering  <meyering@lucent.com>
98682
98683         * m4/lib-check.m4: New file containing library-related checks from
98684         fileutils and sh-utils (textutils had none).
98685
98686 2000-01-28  Jim Meyering  <meyering@lucent.com>
98687
98688         * m4/perl.m4: Change format of warning message to look more like that
98689         from the missing script.  Suggestion from François Pinard.
98690
98691 2000-01-25  Jim Meyering  <meyering@lucent.com>
98692
98693         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
98694         well as time.h in the compile check.
98695         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
98696         Fix typo in cross-compiling case: s/yes/no/.
98697
98698 2000-01-23  Jim Meyering  <meyering@lucent.com>
98699
98700         * m4/jm-macros.m4: Move df-related tests here from
98701         fileutils/configure.in
98702
98703         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
98704         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
98705
98706         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
98707         s/space/ac_fsusage_space/.
98708         (jm_FILE_SYSTEM_USAGE): Take two parameters.
98709
98710         * m4/ftruncate.m4: New file (derived from part of
98711         fileutils/configure.in).
98712         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
98713         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
98714
98715         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
98716         AC_SUBST these here, rather than just in sh-util/configure.in, so
98717         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
98718         all the same.
98719         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
98720         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
98721         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
98722         (AC_SUBST(POW_LIBM)): Likewise.
98723         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
98724
98725 2000-01-23  Jim Meyering  <meyering@lucent.com>
98726
98727         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
98728         obstack.c.
98729
98730 2000-01-22  Jim Meyering  <meyering@lucent.com>
98731
98732         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
98733
98734         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
98735
98736         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
98737         configure.in
98738         (AC_CHECK_HEADERS): Likewise for sh-utils.
98739         (AC_CHECK_HEADERS): Likewise for textutils.
98740         Merge the three lists of headers.
98741
98742         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
98743         from fileutils' configure.in.
98744
98745         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
98746         code. Moved tests into their own function (_jm_DECL_HEADERS) in
98747         check-decl.m4.
98748
98749         * m4/check-decl.m4: Use #if rather than #ifdef.
98750         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
98751         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
98752         (_jm_DECL_HEADERS): Define new function.
98753         (jm_CHECK_DECLARATIONS): Require it.
98754
98755 2000-01-22  Jim Meyering  <meyering@lucent.com>
98756
98757         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
98758         [! HAVE_DECL_STRTOULL]: Declare strtoull.
98759         Required for some AIX systems.  Reported by Christian Krackowizer.
98760         [TESTING] (main): New function.
98761
98762         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
98763         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
98764         letters.
98765
98766         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
98767         iswprint.
98768
98769         * lib/strverscmp.c (ISDIGIT): Define.
98770         (strverscmp): Use ISDIGIT, not isdigit.
98771
98772 2000-01-19  Jim Meyering  <meyering@lucent.com>
98773
98774         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
98775         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
98776         defines `struct timespec' in <sys/time.h>
98777
98778         * m4/c-bs-a.m4: Remove uses of changequote altogether.
98779         Thanks to Akim for explaining.
98780
98781 2000-01-17  Paul Eggert  <eggert@twinsun.com>
98782
98783         * lib/nanosleep.c (nanosleep):
98784         Don't use SA_INTERRUPT to decide whether to call sigaction, as
98785         POSIX.1 doesn't require SA_INTERRUPT and some systems
98786         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
98787         it's been part of POSIX.1 since day 1 (in 1988).
98788
98789 2000-01-17  Jim Meyering  <meyering@lucent.com>
98790
98791         * lib/interlock: Remove unused file.  Reported by François Pinard.
98792
98793 2000-01-16  Paul Eggert  <eggert@twinsun.com>
98794
98795         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
98796         alert, backslash, formfeed, and vertical tab unnecessarily in
98797         shell quoting style.
98798
98799 2000-01-16  Jim Meyering  <meyering@lucent.com>
98800
98801         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
98802         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
98803         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
98804         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
98805
98806 2000-01-16  Jim Meyering  <meyering@lucent.com>
98807
98808         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
98809         because the latter didn't work.
98810
98811 2000-01-15  Jim Meyering  <meyering@lucent.com>
98812
98813         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98814         (AC_REPLACE_FUNCS): Add memcpy and memset.
98815         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98816         Add strpbrk.
98817         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98818
98819 2000-01-12  Jim Meyering  <meyering@lucent.com>
98820
98821         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98822         (jm_PREREQ): Use it.
98823         (jm_PREREQ_READUTMP): New macro.
98824         (jm_PREREQ): Use it.
98825
98826 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98827
98828         Quote multibyte characters correctly.
98829         * m4/c-bs-a.m4: New file.
98830         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98831         (jm_PREREQ): Use it.
98832
98833 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98834
98835         * m4/uintmax_t.m4: Port to autoconf 2.13.
98836
98837 2000-01-08  Jim Meyering  <meyering@ascend.com>
98838
98839         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98840         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98841
98842 2000-01-04  Jim Meyering  <meyering@ascend.com>
98843
98844         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98845         jm_STRUCT_DIRENT_D_TYPE.
98846         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98847         jm_STRUCT_DIRENT_D_INO.
98848         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98849         jm_STRUCT_UTIMBUF.
98850         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98851         renamings.
98852         * m4/utime.m4: Likewise.
98853
98854         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98855         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98856
98857 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98858
98859         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98860         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98861
98862 2000-01-02  Jim Meyering  <meyering@ascend.com>
98863
98864         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98865         remember if this is necessary.
98866
98867 1999-12-26  Jim Meyering  <meyering@ascend.com>
98868
98869         * m4/jm-macros.m4: Use it here.
98870         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98871
98872 1999-12-23  Jim Meyering  <meyering@ascend.com>
98873
98874         * m4/jm-macros.m4: Check for clock_gettime (moved from
98875         fileutils/configure.in)
98876         Check for gettimeofday.
98877
98878 1999-12-20  Jim Meyering  <meyering@ascend.com>
98879
98880         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98881         autoconf-2.14a-1999-12-20.
98882
98883 1999-12-19  Jim Meyering  <meyering@ascend.com>
98884
98885         * m4/lstat-slash.m4: New file.
98886         * m4/jm-macros.m4: Use the new macro:
98887         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98888
98889 1999-12-07  Jim Meyering  <meyering@ascend.com>
98890
98891         * m4/perl.m4: Require that File::Compare be available, too.
98892         Too many systems seem to lack it.
98893
98894         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98895         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98896
98897 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98898
98899         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98900         problem with the QNX 4.25 shell, which doesn't propagate exit
98901         status of failed commands inside shell assignments.
98902
98903 1999-11-17  Jim Meyering  <meyering@ascend.com>
98904
98905         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98906
98907 1999-11-07  Jim Meyering  <meyering@ascend.com>
98908
98909         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98910
98911 1999-11-06  Jim Meyering  <meyering@ascend.com>
98912
98913         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98914         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98915
98916 1999-11-05  Jim Meyering  <meyering@ascend.com>
98917
98918         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98919         configure.in of textutils, fileutils, and sh-utils into this one
98920         (shared between those packages) file.
98921         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98922         AC_STRUCT_ST_BLKSIZE.
98923
98924 1999-11-03  Jim Meyering  <meyering@ascend.com>
98925
98926         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98927         of AC_CHECK_TYPE checks includes unistd.h.
98928         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98929         Suggestion from Akim Demaille.
98930
98931 1999-10-30  Jim Meyering  <meyering@ascend.com>
98932
98933         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98934         m4-quoted string.
98935         * m4/ls-mntd-fs.m4: Likewise.
98936         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98937         * m4/jm-winsz1.m4: Likewise.
98938
98939         * m4/const.m4: Remove file, since the fix made it into the experimental
98940         version of autoconf.
98941         * m4/mktime.m4: Likewise.
98942
98943         * m4/check-type.m4: Remove file, now that the latest version of
98944         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98945
98946         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98947         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98948         AC_CHECK_TYPE.
98949
98950 1999-10-04  Jim Meyering  <meyering@ascend.com>
98951
98952         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98953
98954 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98955
98956         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98957         2.95.1 bug with HP-UX 10.20.
98958
98959 1999-09-17  Jim Meyering  <meyering@ascend.com>
98960
98961         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98962         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98963         due to missing strdup (against sh-utils-2.0).
98964
98965 1999-08-29  Jim Meyering  <meyering@ascend.com>
98966
98967         * m4/jm-macros.m4: Require jm_BISON.
98968         * m4/bison.m4: New file.
98969
98970 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98971
98972         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98973         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98974
98975 1999-08-05  Jim Meyering  <meyering@ascend.com>
98976
98977         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98978         to avoid conflicts with `conftest' on 8+3 filesystems.
98979         Suggestion from Eli Zaretskii.
98980
98981 1999-08-04  Jim Meyering  <meyering@ascend.com>
98982
98983         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98984         fileutils and sh-utils (textutils's getline test was inadequate).
98985         (AM_FUNC_GETLINE): Run this test.
98986         (AC_CHECK_FUNCS): Check for getdelim.
98987         Reported by Bob Proulx.
98988
98989 1999-08-02  Jim Meyering  <meyering@ascend.com>
98990
98991         * m4/jm-macros.m4: Add a comment.
98992
98993 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98994
98995         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98996         <inttypes.h> defines strtoumax as a macro (and not as a
98997         function).
98998
98999 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99000
99001         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
99002         that we can shift, multiply and divide unsigned long long
99003         values; Ultrix cc can't do it.
99004
99005 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99006
99007         * m4/mktime.m4: New file, which is a preview of what should appear
99008         in the next public autoconf release.
99009
99010 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99011
99012         * m4/lfs.m4: Remove this file.
99013         * m4/largefile.m4: New file.  It contains the old contents of
99014         lfs.m4, except that all names with prefix AC_LFS have been
99015         changed to use the prefix AC_SYS_LARGEFILE instead, to be
99016         compatible with future autoconf versions.  Also, some minor m4
99017         quoting problems have been fixed.
99018
99019 1999-08-01  Paul Eggert  <eggert@twinsun.com>
99020
99021         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
99022         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
99023         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
99024         and simplify the shell code.
99025
99026 1999-08-01  Jim Meyering  <meyering@ascend.com>
99027
99028         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
99029         m4.
99030
99031 1999-07-20  Jim Meyering  <meyering@ascend.com>
99032
99033         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
99034
99035 1999-07-15  Jim Meyering  <meyering@ascend.com>
99036
99037         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
99038
99039 1999-05-22  Jim Meyering  <meyering@ascend.com>
99040
99041         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
99042
99043 1999-05-20  Jim Meyering  <meyering@ascend.com>
99044
99045         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
99046         Add a colon after each `then' in case $4 is empty.
99047
99048 1999-05-16  Jim Meyering  <meyering@ascend.com>
99049
99050         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
99051
99052 1999-05-10  Jim Meyering  <meyering@ascend.com>
99053
99054         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
99055
99056         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
99057         AC_FUNC_MKTIME.
99058
99059 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
99060
99061         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
99062
99063 1999-05-04  Paul Eggert  <eggert@twinsun.com>
99064
99065         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
99066         not CPPFLAGS, so that linking works correctly in IRIX.
99067
99068 1999-04-30  Paul Eggert  <eggert@twinsun.com>
99069
99070         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
99071
99072 1999-04-20  Paul Eggert  <eggert@twinsun.com>
99073
99074         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
99075         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
99076         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
99077         jm_AC_TYPE_UNSIGNED_LONG_LONG.
99078         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
99079
99080         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
99081
99082 1999-04-20  Jim Meyering  <meyering@ascend.com>
99083
99084         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
99085         AC_REPLACE xstroull if necessary.  From Paul Eggert.
99086         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
99087
99088 1999-04-18  Jim Meyering  <meyering@ascend.com>
99089
99090         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
99091         * m4/jm-macros.m4: Use it.
99092
99093 1999-04-06  Jim Meyering  <meyering@ascend.com>
99094
99095         * m4/strftime.m4: Remove test for %f.
99096
99097 1999-03-29  Jim Meyering  <meyering@ascend.com>
99098
99099         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
99100         superset of the AC_TYPE_* checks in the textutils, fileutils,
99101         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
99102         AC_TYPE_PID_T.
99103
99104 1999-03-28  Jim Meyering  <meyering@ascend.com>
99105
99106         * m4/jm-macros.m4: Define GNU_PACKAGE here.
99107         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
99108         replaced e.g., in the *.sh files of the sh-utils.
99109
99110 1999-03-20  Jim Meyering  <meyering@ascend.com>
99111
99112         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
99113         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
99114         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
99115
99116 1999-03-19  Jim Meyering  <meyering@ascend.com>
99117
99118         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
99119
99120 1999-03-12  Jim Meyering  <meyering@ascend.com>
99121
99122         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
99123
99124 1999-03-07  Jim Meyering  <meyering@ascend.com>
99125
99126         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
99127         declared.
99128
99129 1999-02-17  Jim Meyering  <meyering@ascend.com>
99130
99131         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
99132         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
99133
99134 1999-02-07  Jim Meyering  <meyering@ascend.com>
99135
99136         * m4/group-member.m4: New file -- extracted from sh-utils'
99137         configure.in.
99138
99139         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
99140         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
99141
99142 1999-02-06  Jim Meyering  <meyering@ascend.com>
99143
99144         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
99145         * m4/fnmatch.m4: Likewise.
99146         * m4/getgroups.m4: Likewise.
99147         * m4/lstat.m4: Likewise.
99148         * m4/malloc.m4: Likewise.
99149         * m4/putenv.m4: Likewise.
99150         * m4/realloc.m4: Likewise.
99151         * m4/regex.m4: Likewise.
99152         * m4/stat.m4: Likewise.
99153         * m4/strftime.m4: Likewise.
99154         Suggestion from Alain Magloire.
99155
99156         * m4/chown.m4: Use `.$ac_objext', not `.o'.
99157         * m4/fnmatch.m4: Likewise.
99158         * m4/getgroups.m4: Likewise.
99159         * m4/getline.m4: Likewise.
99160         * m4/lstat.m4: Likewise.
99161         * m4/malloc.m4: Likewise.
99162         * m4/memcmp.m4: Likewise.
99163         * m4/putenv.m4: Likewise.
99164         * m4/realloc.m4: Likewise.
99165         * m4/regex.m4: Likewise.
99166         * m4/stat.m4: Likewise.
99167         * m4/strftime.m4: Likewise.
99168         Suggestion from Alain Magloire.
99169
99170         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
99171         an argument.
99172
99173         * m4/regex.m4: Add a run-time Test for proper operation of
99174         re_compile_pattern.
99175
99176 1999-01-31  Jim Meyering  <meyering@ascend.com>
99177
99178         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
99179
99180 1999-01-30  Jim Meyering  <meyering@ascend.com>
99181
99182         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
99183
99184         * m4/jm-mktime.m4: Make this a wrapper around the official
99185         AM_FUNC_MKTIME rather than my private copy, now that the official one
99186         is up to date.
99187         * m4/mktime.m4: Remove file.
99188
99189         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
99190         * m4/uptime.m4: Likewise.
99191         * m4/uintmax_t.m4: Likewise.
99192
99193 1999-01-28  Jim Meyering  <meyering@ascend.com>
99194
99195         * m4/jm-macros.m4: Use jm_AFS.
99196         * m4/afs.m4: New file (from fileutils' configure.in).
99197
99198         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
99199         * m4/chown.m4: Likewise.
99200         * m4/d-ino.m4: Likewise.
99201         * m4/d-type.m4: Likewise.
99202         * m4/fnmatch.m4: Likewise.
99203         * m4/getgroups.m4: Likewise.
99204         * m4/gettext.m4: Likewise.
99205         * m4/jm-mktime.m4: Likewise.
99206         * m4/jm-winsz2.m4: Likewise.
99207         * m4/lcmessage.m4: Likewise.
99208         * m4/ls-mntd-fs.m4: Likewise.
99209         * m4/malloc.m4: Likewise.
99210         * m4/memcmp.m4: Likewise.
99211         * m4/putenv.m4: Likewise.
99212         * m4/realloc.m4: Likewise.
99213         * m4/st_mtim.m4: Likewise.
99214         * m4/strftime.m4: Likewise.
99215
99216 1999-01-16  Jim Meyering  <meyering@ascend.com>
99217
99218         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
99219         (ARGMATCH_DIE_DECL): Define.
99220
99221 1999-01-12  Jim Meyering  <meyering@ascend.com>
99222
99223         * m4/Makefile.am.in: Rewrite to avoid using fmt.
99224         Reported by Lars Hecking.
99225
99226 1999-01-10  Jim Meyering  <meyering@ascend.com>
99227
99228         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
99229         gross kludge.
99230         * m4/inttypes_h.m4: Likewise.
99231         * m4/lstat.m4: Likewise.
99232         * m4/malloc.m4: Likewise.
99233         * m4/readdir.m4: Likewise.
99234         * m4/realloc.m4: Likewise.
99235         * m4/st_dm_mode.m4: Likewise.
99236         * m4/stat.m4: Likewise.
99237         * m4/utimbuf.m4: Likewise.
99238         * m4/utimes.m4: Likewise.
99239
99240         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
99241         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
99242         comments in config.h.in are meaningful.
99243
99244         * m4/jm-macros.m4: Require autoconf-2.13 here.
99245
99246         * m4/regex.m4: By default, don't use the included regex.c on systems
99247         with glibc 2.  Suggestion from Uli Drepper.
99248
99249 1999-01-02  Jim Meyering  <meyering@ascend.com>
99250
99251         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
99252
99253 1998-12-18  Jim Meyering  <meyering@ascend.com>
99254
99255         * m4/Makefile.am.in (Makefile.am): Simplify rule.
99256         Based on a suggestion from Lars Hecking.
99257
99258 1998-11-16  Paul Eggert  <eggert@twinsun.com>
99259
99260         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
99261
99262 1998-11-16  Jim Meyering  <meyering@ascend.com>
99263
99264         * m4/lfs.m4: Double-quote the `uname...` expression.
99265
99266 1998-11-14  Jim Meyering  <meyering@ascend.com>
99267
99268         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
99269         * m4/stat.m4: Likewise.
99270
99271 1998-11-03  Jim Meyering  <meyering@ascend.com>
99272
99273         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
99274         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
99275
99276 1998-10-18  Jim Meyering  <meyering@ascend.com>
99277
99278         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
99279
99280 1998-10-17  Jim Meyering  <meyering@ascend.com>
99281
99282         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
99283         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
99284         calls for those previously hard-coded headers.  Instead, take a new
99285         parameter.
99286         (jm_CHECK_DECLARATIONS): Reflect interface change.
99287         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
99288         (jm_CHECK_DECL_LOCALTIME_R): New macro.
99289
99290         * m4/mktime.m4: Test for spring-forward gap before long-running test.
99291
99292 1998-10-14  Jim Meyering  <meyering@ascend.com>
99293
99294         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
99295         instead of "TZ=America/Vancouver".  From Paul Eggert.
99296
99297 1998-10-11  Jim Meyering  <meyering@ascend.com>
99298
99299         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
99300         This adds a test for a recently added compatibility fix for mktime.c.
99301         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
99302
99303 1998-09-27  Jim Meyering  <meyering@ascend.com>
99304
99305         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
99306
99307         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
99308         ../configure.in, including a change from Gordon Matzigkeit to allow
99309         cross-compiling for the Hurd.
99310
99311         * m4/glibc.m4: New file/macro to test for the GNU C Library
99312         versions 1 and 2.  From Gordon Matzigkeit.
99313         Indent.
99314
99315 1998-09-21  Jim Meyering  <meyering@ascend.com>
99316
99317         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
99318
99319 1998-08-18  Paul Eggert  <eggert@twinsun.com>
99320
99321         Port nanosecond-resolution times to UnixWare 2.1.2 and
99322         pedantic Solaris 2.6.
99323
99324         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
99325         AC_STRUCT_ST_MTIM.
99326         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
99327         Generate name of ns member, instead of just 1 or undef.
99328         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
99329
99330 1998-08-15  Jim Meyering  <meyering@ascend.com>
99331
99332         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
99333         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
99334         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
99335         instead of jm_TYPE_SSIZE_T.
99336
99337 1998-08-12  Jim Meyering  <meyering@ascend.com>
99338
99339         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
99340
99341 1998-08-02  Jim Meyering  <meyering@ascend.com>
99342
99343         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
99344         in acconfig.h manually.
99345
99346 1998-07-31  Paul Eggert  <eggert@twinsun.com>
99347
99348         * m4/st_mtim.m4: New file.
99349
99350 1998-07-28  Jim Meyering  <meyering@ascend.com>
99351
99352         * m4/utimes.m4: Undef stat.
99353
99354 1998-07-25  Jim Meyering  <meyering@ascend.com>
99355
99356         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
99357         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
99358
99359 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
99360
99361         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
99362         uid and gid actually remain unchanged.
99363
99364 1998-07-07  Jim Meyering  <meyering@ascend.com>
99365
99366         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
99367
99368 1998-07-04  Jim Meyering  <meyering@ascend.com>
99369
99370         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
99371         to prove that this macro can be used in packages without regex.c.
99372
99373 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
99374
99375         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
99376         is to be used.
99377
99378 1998-07-03  Jim Meyering  <meyering@ascend.com>
99379
99380         * m4/gettext.m4: Add -lintl if it's found to be necessary.
99381
99382         * m4/gettext.m4: New file -- from gettext-0.10.35.
99383         * m4/lcmessage.m4: Likewise.
99384         * m4/progtest.m4: Likewise.
99385
99386         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
99387         * m4/jm-macros.m4: Require the new macro.
99388
99389 1998-06-29  Jim Meyering  <meyering@ascend.com>
99390
99391         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
99392         for the definition of NGROUPS (used in a system header included
99393         by sys/mount.h).
99394
99395 1998-06-28  Jim Meyering  <meyering@ascend.com>
99396
99397         * m4/ls-mntd-fs.m4: New file.
99398         * m4/fstypename.m4: New file.
99399
99400         * m4/jm-macros.m4: Require the new macro.
99401         * m4/jm-glibc-io.m4: New file.
99402
99403 1998-05-19  Jim Meyering  <meyering@ascend.com>
99404
99405         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
99406         * m4/lchown.m4: New file.
99407
99408         * m4/Makefile.am.in: New file.
99409         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
99410
99411 1998-05-14  Jim Meyering  <meyering@ascend.com>
99412
99413         * m4/Makefile.am (EXTRA_DIST): Add them.
99414         * m4/jm-macros.m4: New file.
99415         * m4/utimbuf.m4: New file.
99416
99417 1998-05-12  Jim Meyering  <meyering@ascend.com>
99418
99419         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
99420
99421 1998-05-11  Jim Meyering  <meyering@ascend.com>
99422
99423         * m4/isc-posix.m4: New file.
99424
99425 1998-05-10  Jim Meyering  <meyering@ascend.com>
99426
99427         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
99428
99429 1998-05-09  Jim Meyering  <meyering@ascend.com>
99430
99431         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
99432         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
99433         with automake.
99434
99435         * m4/ssize_t.m4: New file.
99436         * m4/mktime.m4: Remove file -- the new automake has this now.
99437
99438 1998-04-26  Jim Meyering  <meyering@ascend.com>
99439
99440         * m4/assert.m4: New file.
99441         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
99442
99443 1998-04-05  Jim Meyering  <meyering@ascend.com>
99444
99445         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
99446         (jm_PREREQ): Use it here.
99447
99448 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
99449
99450         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
99451         in acconfig.h.
99452
99453 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
99454
99455         * m4/prereq.m4: New file.
99456         * m4/error.m4: New file.
99457         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
99458
99459 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
99460
99461         * m4/getline.m4: Don't set am_cv_func_working_getline before the
99462         cache-check for the same variable -- that defeated the purpose of
99463         the test; the test program was never run.  This was a problem only
99464         on systems with losing getline functions -- HP-UX 10.20 is one.
99465         Reported by Bjorn Helgaas.
99466
99467 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
99468
99469         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
99470
99471 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
99472
99473         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
99474
99475         * m4/const.m4: New file.  Use an initializer in this declaration
99476         typedef int charset[2]; const charset x;
99477         Reported by Bob Glickstein.
99478
99479 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
99480
99481         * m4/chown.m4: Fix reversed types on -1 args to chown.
99482         From Kaveh Ghazi.
99483
99484 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
99485
99486         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
99487         Add lseek and memchr.
99488
99489         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
99490         T.E.Dickey <dickey@clark.net> said that some older preprocessors
99491         have a 20-character limit on names.
99492
99493 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
99494
99495         * m4/inttypes_h.m4: New file.
99496         * m4/uintmax_t.m4: New file.
99497         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
99498
99499
99500         -----
99501
99502         Local Variables:
99503         coding: utf-8
99504         End:
99505
99506         Copyright (C) 1997-2013 Free Software Foundation, Inc.
99507
99508         Copying and distribution of this file, with or without
99509         modification, are permitted provided the copyright notice
99510         and this notice are preserved.